RachnaSutra AI GitHub

Executive summary

What it is#

RachnaSutra AI helps teams find, fix and verify user-interface quality problems. It has two parts that work together or separately:

  1. A command-line tool that reads front-end source code and produces an evidence-linked audit. It needs no AI model, no API key and no network access.
  2. Thirteen Agent Skills that teach AI coding assistants (Claude Code, Cursor, OpenAI Codex, GitHub Copilot, Gemini CLI) how to review, redesign, implement and verify UI work safely, using the assistant's own model.

Tagline: Design Beautifully. Audit Precisely. Deliver Delight.

How RachnaSutra works end to endHow RachnaSutra works end to end
Audit, read, fix, verify, gate.
Tap or click to enlarge

The problem#

  • Accessibility and responsive defects are common, costly to fix late, and carry legal and reputational risk.
  • AI assistants can review UI, but often state opinions without evidence, invent scores, or claim a page is "accessible" without testing it.
  • Teams need audits that are repeatable, reviewable and safe to run in CI, and that say clearly what was not checked.

The approach#

PrincipleHow it shows up
Evidence firstEvery finding carries file, line, an excerpt, a criterion and a verification step
Honest coverageA coverage table marks what was evaluated, partly evaluated, or not run
No invented numbersNo quality score is produced while most categories are only partly covered
Safe by defaultRead-only, no network, no telemetry, secrets redacted, path-contained writes
Human in controlSkills ask for approval before edits; changes are small diffs with rollback notes
Vendor neutralWorks with several AI IDEs; requires no proprietary service

What is proven today#

All items below are backed by automated tests or captured output. See Testing and evidence.

ClaimEvidence
The audit finds 22 distinct issues in an intentionally flawed fixture, each with file and lineTest "broken fixture yields deterministic, evidenced findings"; sample report
The audit reports zero findings on a correct fixture and on correct inline snippetsTests "good fixture has zero findings", "rules do not fire on correct inline snippets"
Contrast is measured, not guessed, and matches WCAG reference ratiosTest "contrast math matches WCAG reference values" (21:1 and 4.54:1)
Reports are escaped against markup injectionTest "malicious content is escaped in HTML and Markdown reports"
Text inside audited files cannot change resultsTest "prompt-injection text in audited files does not change results"
Install and uninstall never delete files a user editedTest "install/uninstall: dry-run, hash tracking, conflict, preserve edits"
Unavailable capabilities are reported as unavailableTest "CLI: exit codes, json, not-available honesty, usage errors"
A fix can be verified against a saved baselineTest "fix verification: resolved and introduced findings by fingerprint"

Independent validation#

Fixtures written by the author only prove the code does what the author intended, so the audit was also tested against inputs it did not write. Details, weaknesses included, are in Validation and benchmarks.

CheckResult
W3C ACT Rules test cases (154 cases, 10 rules)Precision 71% and recall 65% after fixing defects the benchmark exposed (53% and 38% on the first run)
axe-core 4.10.2 on the same 109 cases for 7 rulesaxe-core is more accurate (92% / 83% against 81% / 73%); RachnaSutra is a complement that works on source files in CI
12 public repositories, 1,360 files767 findings; manual spot check of 95 findings: 77% strict and 93% lenient precision, 7 false-positive patterns found and fixed
Before and after on a real template14 findings resolved, 0 introduced; axe-core agrees (12 link-name violations to 0)

The manual labelling was done by the project author with AI assistance and is not an independent audit; samples and labels are published for anyone to challenge.

What is not claimed#

  • It does not certify WCAG, ADA, EN 301 549 or any other legal conformance. Automated static checks cover only part of any standard.
  • It does not render pages, run browsers, take screenshots, or measure Core Web Vitals in this version.
  • The host adapters follow vendors' documented layouts but have not yet been smoke-tested inside each live IDE.
  • It does not guarantee conversion uplift, performance gains or the absence of defects.

Business value#

ValueExplanation
Earlier defect detectionRun in CI to block confirmed high-severity accessibility regressions before release
Lower review costReviewers receive ranked, evidenced findings instead of raw opinions
Risk transparencyCoverage and limitations are part of every report, which supports honest stakeholder reporting
No vendor lock-in or data egressRuns locally; source code never leaves the machine in the CLI
Low adoption frictionOne npx command, no account, no key, Apache-2.0 licence

Licence and ownership#

Created by Vatsal Shah. Official site: shahvatsal.com. Apache License 2.0: free to use, modify and redistribute commercially, with a patent grant and attribution through the NOTICE file. See Legal and compliance.

Key risks and mitigations#

RiskMitigation
Users read "no findings" as "accessible"Every report states the limits; the good fixture result is documented as not a certification
Heuristic rules produce false positivesHeuristics are labelled review-required; the CLI default gate uses only confirmed findings
Host layouts changeAdapters are labelled by support level and documented with vendor links
Over-reliance on static analysisCoverage table lists browser, visual, screen-reader and performance checks as not run

Where to go next#