rachnasutra
Health Uyari
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Uyari
- network request — Outbound network request in benchmarks/act.mjs
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
UI/UX audit and accessibility agent skills + CLI for Claude Code, Cursor, Codex, Copilot, Gemini CLI
RachnaSutra AI - UI/UX Audit & Accessibility Agent for Claude Code, Cursor, Codex, Copilot & Gemini CLI
Design Beautifully. Audit Precisely. Deliver Delight.
Quick links: Live docs | First 15 minutes | Real-world scenarios | Documentation | Validation | Sample report | Test evidence | Rules | Legal and limits
RachnaSutra AI is an open-source UI/UX design engineering and auditing agent: 13 portable Agent Skills led by RachnaSutra Prime, plus a keyless CLI that audits front-end code for accessibility (WCAG 2.2 AA oriented), responsive design, design-system, content and performance risks. Reports come out as JSON, Markdown, accessible HTML and SARIF 2.1.0.
No extra API key. Inside a supported AI IDE, the skills use that IDE's own model. The CLI is deterministic, offline and read-only: no model, no network, no telemetry.
Created by Vatsal Shah. Official site: shahvatsal.com. Licensed under Apache-2.0.
What it does
| Capability | How | Needs an AI model? |
|---|---|---|
Static UI/UX audit with file:line evidence, severity, confidence |
rachnasutra audit |
No |
| Accessibility rules: alt text, labels, names, focus, tabindex, lang, zoom, landmarks, target size | rachnasutra accessibility |
No |
| Measured text contrast (WCAG 1.4.3) from literal CSS colour pairs | rachnasutra audit |
No |
| Responsive checks: viewport meta, fixed widths, responsive CSS | rachnasutra audit |
No |
| Design-token inventory (colours, type, spacing, radii) | rachnasutra design-system inspect (writes tokens.md and tokens.html) |
No |
| JSON, Markdown, accessible HTML, SARIF reports | rachnasutra audit (writes Markdown, HTML, JSON to ./rachnasutra-reports) |
No |
| Fix plan and fix verification against a saved baseline | rachnasutra plan-fixes, rachnasutra verify --report (each writes Markdown and HTML next to the JSON report) |
No |
| CI gate with stable exit codes | rachnasutra ci |
No |
| Visual critique, flows, copy, redesign proposals, implementation | the rachnasutra-* skills |
Yes (your IDE's model) |
| Browser, screenshot, axe and Lighthouse | rachnasutra audit --mode browser when Playwright is installed. Exit 3 if it is not. No invented result |
docs/status.md |
Quick start
Requires Node.js 22 or newer (Node 20 on a best-effort basis).
# audit a project: no network, no API key, source files are never changed.
# Writes easy-to-read Markdown + HTML + JSON reports to ./rachnasutra-reports and prints the path to open.
npx rachnasutra audit .
# summary only, no files / other formats and folder
npx rachnasutra audit . --no-report
npx rachnasutra audit . --format json,md,html,sarif --out my-reports
# install the skills for your AI IDE (dry run first)
npx rachnasutra skills install --host claude --target . --dry-run
npx rachnasutra skills install --host claude --target .
Then ask your assistant: "Use rachnasutra-prime to review this project's UI and suggest the most valuable accessible and responsive improvements with source evidence."
Try it on the bundled fixtures
git clone https://github.com/shahvatsalofficial/rachnasutra.git
cd rachnasutra && npm install && npm run build
node dist/cli.js audit fixtures/intentionally-broken-ui # 22 findings with file:line evidence
node dist/cli.js audit fixtures/good-ui # 0 findings
The agent family
| Skill | Role |
|---|---|
rachnasutra-prime |
Chief UI/UX reviewer and orchestrator: capability detection, scope, risk, consent |
rachnasutra-vision |
Visual hierarchy, typography, colour, brand consistency |
rachnasutra-flow |
Journeys, information architecture, forms, usability heuristics |
rachnasutra-canvas |
Approved, minimal-diff implementation in your framework |
rachnasutra-access |
WCAG 2.2 AA evidence and manual-test guidance |
rachnasutra-adapt |
Responsive, touch, desktop, foldable and TV interfaces |
rachnasutra-tokens |
Design tokens, theming, migration plans |
rachnasutra-motion |
Animation, reduced motion, vestibular safety |
rachnasutra-speed |
Core Web Vitals risks, asset weight, layout shift |
rachnasutra-content |
UX writing, localisation, RTL, plain language |
rachnasutra-convert |
Ethical conversion hypotheses, dark-pattern detection |
rachnasutra-audit |
Multi-dimensional ranked audit report |
rachnasutra-verify |
Before/after verification and regression reporting |
Prime selects only the specialists a task needs. See docs/agent-catalog.md.
CLI
rachnasutra init | doctor | hosts
rachnasutra skills list | install --host <id> | uninstall --host <id>
rachnasutra audit [path] [--no-report] [--format json,md,html,sarif] [--out dir] [--fail-on high] # default: MD + HTML + JSON in ./rachnasutra-reports
rachnasutra accessibility [path]
rachnasutra design-system inspect [path] # tokens.md + tokens.html in ./rachnasutra-reports
rachnasutra plan-fixes --report rachnasutra-reports/latest.json # fix-plan.md + fix-plan.html
rachnasutra verify # package integrity
rachnasutra verify --report rachnasutra-reports/latest.json [path] # verify.md + verify.html
rachnasutra export --format sarif [path]
rachnasutra ci [path] [--fail-on confirmed-critical]
rachnasutra baseline [path] # accept today's findings, then: rachnasutra ci . --baseline
rachnasutra config validate [path]
rachnasutra <command> --help # options for one command
Every error starts with a code such as RS-E001; causes and fixes. --quiet prints no summary. rachnasutra completion bash|zsh|fish|powershell prints a tab-completion script.
Exit codes: 0 ok, 1 findings at or above threshold, 2 usage, 3 capability not available, 4 verification failed, 5 error. Full reference: docs/cli-reference.md.
AI IDE compatibility
| Host | Level | Install location |
|---|---|---|
| Claude Code | adapter | .claude/skills/ |
| Cursor | adapter | .cursor/skills/ |
| OpenAI Codex | adapter | .agents/skills/ + managed block in AGENTS.md |
| GitHub Copilot | adapter | .github/skills/ |
| Gemini CLI | experimental | .gemini/skills/ |
"Adapter" means the files follow the vendor's documented layout; they have not been smoke-tested inside each live host by this project yet. Details: docs/compatibility.md. No tool can inject a model into an arbitrary IDE; RachnaSutra does not touch IDE credentials.
Proof, not promises
Everything below is reproducible from this repository.
| Evidence | Result | Where |
|---|---|---|
| Automated tests | All tests pass on every pull request; the CI badge above is the live result. Blocking CI is Windows and Linux on Node 20, 22, 24 and 26. macOS is not in CI: GitHub cancels those jobs before a runner starts | test-results.txt |
| Every rule tested both ways | A failing and a passing input for all 33 rules, plus false-positive guards; the same inputs generate the docs | rule examples |
| W3C ACT test cases | 154 cases, 10 rules: 71% precision, 65% recall after fixing defects the benchmark found (first run: 53% and 38%) | act.md |
| Comparison with axe-core | axe-core is more accurate (92% / 83% against 81% / 73% on 7 comparable rules); RachnaSutra works on source files, offline, in CI | act-vs-axe.md |
| 12 public repositories | 1,360 files, 767 findings; manual check of 95 findings: 77% clearly real, 93% real or context-dependent; 7 false-positive patterns found and fixed | real-world.md |
| Before and after on a real template | 14 findings resolved, 0 introduced; axe-core agrees | case study |
| Intentionally flawed fixture | 22 findings, each with file and line; identical on every run | sample report |
| Correct fixture | 0 findings | sample report |
| Contrast maths | Matches WCAG reference ratios (21:1 black on white; 4.54:1 for #767676 on white) |
tests |
| Security tests | Secret redaction, path traversal, report escaping, prompt-injection text in audited files | security doc |
| Browser mode | audit --mode browser on this machine used Edge, wrote screenshot.png, ran axe-core, and recorded Lighthouse lab scores. Exit 3 only when Playwright or a browser binary is missing |
status |
What is not proven: the skills have not yet been verified inside live AI IDEs (protocol and status); manual labelling of findings was done by the author with AI assistance, not independently; screen-reader and keyboard testing are still manual. The published static comparison with axe-core is unchanged (92% / 83% against 81% / 73%). Browser mode calls axe-core; it does not replace that comparison. Full discussion: Validation and benchmarks.
Example output:
Scanned 2 file(s). 22 finding(s): 0 critical, 8 high, 8 medium, 5 low, 1 info.
RS-aa4b8fdf [high/confirmed] RS-A11Y-001 index.html:11 - Image has no alt attribute
RS-e89ec01d [high/confirmed] RS-A11Y-013 index.html:20 - Text contrast 2.32:1 is below 4.5:1 (#aaaaaa on #ffffff)
RS-90bf4b7f [high/confirmed] RS-A11Y-010 styles.css:2 - Focus indicator removed (button:focus, a:focus)
Documentation
The full documentation set is live at https://shahvatsalofficial.github.io/rachnasutra/. The same pages are in documents/rachnasutra/ as Markdown and as a self-contained HTML site (documents/rachnasutra/html/index.html works offline, in light and dark themes, and on phones). A short Gujarati overview is in README.gu.md.
rachnasutra history <dir> writes history.md and history.html from saved JSON reports. It counts findings. It does not compare screenshots. A container for the static CLI is Dockerfile (node:22-bookworm-slim). It does not add a browser.
| Audience | Document |
|---|---|
| Executives | Executive summary |
| Product and design | Functional specification, User guide |
| Engineers | Architecture, Technical reference, Rules |
| AI-agent users | Skills and agents |
| Security and legal | Security and privacy, Legal and compliance |
| Operations | Deployment and CI |
| Contributors | Maintainer handbook, Roadmap |
| Trust and validation | Validation and benchmarks, Rule examples, Host smoke tests |
| Everyone | FAQ, Glossary, Guides by role, Troubleshooting, Support matrix |
Use in CI
- run: npx --yes rachnasutra ci .
Fails the job on confirmed high or critical findings. A scan that stopped at a limit, could not read a file or found nothing to scan does not pass (--allow-partial, --allow-empty). See Deployment and CI for SARIF upload and regression-only gating.
FAQ
Short answers in plain words. Tap a question. See also the glossary, guides by role, first 15 minutes and troubleshooting.
What is RachnaSutra AI?A free tool that reads your web page code and lists design and accessibility problems. It shows the file, the line and how to fix each one. It also comes with guides, called skills, for AI coding assistants. More: first 15 minutes.
What does it cost?Nothing. It is open source under the Apache-2.0 licence, also for paid work. There is no paid plan, account or key. If you use the skills, your AI assistant may have its own price. More: legal.
How do I try it?Install Node.js 22 or newer. Open a terminal in your project folder and run npx rachnasutra audit . (the dot means "this folder"). Then open rachnasutra-reports/latest.html in a browser. More: first 15 minutes.
No, not for the command line tool. The skills are different: they run inside an AI coding assistant, so you need that assistant. You never need a RachnaSutra account. More: skills and agents.
Does it send my code anywhere?The command line tool does not send your code and does not track you. Browser mode loads the page you point it at, like any browser. If you use the skills, your AI provider sees what the assistant reads. More: privacy.
Does it work without internet?Yes, once it is installed. A normal check reads files on your computer and makes no network calls. You need internet to download it the first time, and browser mode may load things your page asks for. More: privacy.
Will it change my files?A check never changes your source files. It only writes report files. The fix command can change files, but it shows the changes first and waits for you to type yes. More: user guide.
It has 33 rules. Examples: pictures with no text description, buttons with no name, text that is hard to read against its background, and pages that block zoom. It reads the code. It does not look at the screen. More: rules.
What does it not check?It cannot hear a screen reader, use your keyboard, or judge if words make sense. It does not see content that appears only while the page runs. Each report has a table of what was and was not checked. More: legal limits.
Will it make my site WCAG compliant?No tool can promise that. WCAG is the main web accessibility standard. RachnaSutra finds some common problems and shows how to fix them. You still need tests by people, best with users who rely on assistive tools. More: legal.
How do I read a result?Each line shows an ID, how serious it is, how sure the tool is, the rule, the file and line, and a short title. In the HTML report, start with "Fix these first". More: user guide.
What do "confirmed" and "review-required" mean?"Confirmed" means the tool saw or measured the problem in your code. Fix it. "Review-required" means it might be a problem, so a person should look. For example, another part of your code may already handle it. More: first 15 minutes.
What does "0 findings" mean?Only that the rules found nothing in the files they read. It does not mean the page is accessible. Check the coverage table, then test by hand with a keyboard, zoom and a screen reader. More: user guide.
How do I fix the top 3 problems?Open the HTML report and read "Fix these first". Each item says what to change and how to check it. For an ordered list, run npx rachnasutra plan-fixes --report rachnasutra-reports/latest.json. It changes nothing. More: first 15 minutes.
Run npx rachnasutra verify --report rachnasutra-reports/latest.json . after your change. It lists what is fixed, what is left and what is new. Do this before you run a new audit, because a new audit replaces that file. More: user guide.
Only a few with one safe answer, such as a page that blocks zoom. Run npx rachnasutra fix . to see the changes. Add --apply to make them. Text for pictures, labels and colours need a person. More: user guide.
It is a warning about code that is actually fine. You can silence one with a comment that names the rule and gives a reason. Please also report it, so the rule can improve. More: silence a finding.
How do I report a bug?Open an issue on the GitHub issues page. Say what you ran, what you saw and your Node.js version. Add a tiny code sample. Never paste passwords, keys or private code. More: troubleshooting.
How do I use it in CI?CI means checks that run by themselves on each change. Add the step npx rachnasutra ci . to your pipeline. It fails when it is sure of a high or critical problem. It prints the report as JSON text. More: CI setup.
Save today's list with npx rachnasutra baseline .. Then run npx rachnasutra ci . --baseline so only new problems fail. Fix old ones a few at a time. More: adopt on old code.
The tool could not check everything, so it will not say you passed. A limit was reached, a file could not be read, or nothing was found to check. The error line says which. More: errors and exit codes.
Why is there no score?Reading code only checks part of what matters. One number would look more certain than it is. Instead, the report shows which areas were checked, partly checked or not checked. More: rating guide.
How accurate is it?It depends on the rule, and it misses things. We publish test results against public examples and real projects, including the weak spots. Treat the report as a helper, not a judge. More: test results.
How is it different from axe, Lighthouse or WAVE?Those tools check a page that is open in a browser. RachnaSutra reads your source files, works without a running site, and adds skills for AI assistants. They work well together. More: test results.
How is it different from eslint-plugin-jsx-a11y?That plugin checks accessibility in JSX code while you lint. RachnaSutra also reads HTML, CSS and other file types, writes reports for people, and can compare before and after. You can use both. More: rules.
Which kinds of files and frameworks work?It reads HTML, CSS, JSX, TSX, Vue, Svelte, Astro, MDX and common template files. It cannot see most styles written as JavaScript objects, or pages built only while the app runs. More: technical reference.
Which computers does it work on?It is tested on Windows and Linux with Node.js 22 or newer. It should work on a Mac, but that is not tested here. Files saved with Windows line endings give the same results. More: support matrix.
Which AI assistants can use the skills?There are install steps for Claude Code, Cursor, OpenAI Codex and GitHub Copilot, and a test version for Gemini CLI. None has been tried inside the live product yet, so please report what you see. More: host test status.
Can a file in my project give orders to the AI assistant?It should not. The skills tell the assistant to treat file text as information, never as orders. An AI can still be fooled, so keep its approval questions turned on. More: safe use with AI.
Can I share a report outside my team?Yes, but make it safe first. Use --no-excerpts --redact-paths to leave out your code and file names. Titles may still quote a few words from your page, so read it before you send it. More: privacy.
Yes. The licence allows business use at no cost. Keep the licence and notice files if you share the tool. Its reports are not a legal certificate. Ask your legal team about your own duties. More: legal.
Why does browser mode stop with code 3?Browser mode needs extra tools: Playwright and a browser. It also needs an index.html file or a web address. If one is missing, it says so and stops. It never makes up a result. More: troubleshooting.
Run npx rachnasutra skills uninstall --host claude --target . (change claude to your assistant). It removes only files that still match what was installed. Files you edited stay. More: user guide.
Legal and disclaimers
- Licensed under Apache-2.0: free for commercial use, with attribution via NOTICE. Provided "as is", without warranty.
- Reports are review aids. They are not a WCAG, ADA, Section 508, EN 301 549 or European Accessibility Act conformance statement, a VPAT, or legal advice.
- Independent project, not affiliated with or endorsed by W3C, Deque, Anthropic, OpenAI, Google, GitHub, Cursor or any IDE vendor. Product names are used only to describe compatibility. No trademark clearance has been performed.
- Details: Legal and compliance.
Cite this project
See CITATION.cff, or use GitHub's "Cite this repository".
Honest limits
- Static analysis reads source text. It does not render pages, run scripts, or measure Core Web Vitals.
- Automated findings are review aids, not a WCAG conformance statement. Manual testing with keyboard and screen readers is still required.
- No numeric quality score is produced, because most categories are only partly covered. Coverage is shown instead.
- CSS frameworks, CSS-in-JS and runtime-injected markup are only partly visible.
Privacy and safety
Your source files are never modified; the only files written are the report files (default ./rachnasutra-reports, skip with --no-report) and, when you ask, installed skills. No telemetry, no network, no model calls from the CLI. Symlinks are not followed, writes are path-contained, excerpts are secret-redacted, reports escape HTML. Install records SHA-256 hashes so uninstall never deletes files you edited. See docs/privacy-and-security.md and SECURITY.md.
Contributing
Add a rule, a skill or a host adapter: CONTRIBUTING.md. Roadmap: ROADMAP.md. Machine-readable summary for LLMs: llms.txt.
Related projects by the same author
ArchSutra AI (architecture) and VigilSutra AI (security) are separate products. RachnaSutra does not require either.
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi