/acces-accessibility:generate-instructions [targets] (optional: claude | copilot | cursor | agents | all)from Acces Accessibility
This skill should be used when the user asks to "generate accessibility instructions", "add RGAA instructions to my repo", "bake accessibility into my coding agent", "write copilot-instructions for accessibility", "set up CLAUDE.md for RGAA", "add Cursor rules for a11y", or runs /acces-accessibility:generate-instructions. It writes or updates a repository's own agent-instruction files (CLAUDE.md, .github/copilot-instructions.md, Cursor rules, AGENTS.md) with the rgaa-mcp trap rules that an agent gets wrong unaided.
Ships in Acces Accessibility. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write only what an agent gets wrong unaided: the trap rules below.
Do not restate the loop's steps. An instruction file spends context budget in someone's repository, in every session, indefinitely. The loop's steps are discoverable from the tool descriptions; the traps are not — which is exactly what makes them dangerous. Writing down what is already discoverable charges permanent rent for redundancy.
If the user asks for the full workflow anyway, say what it costs them and let them decide.
These files are text, not a mechanism. A generated instruction saying "ask before applying a patch" is worth exactly as much as the reading agent's compliance, and no more.
Do not add a hook to enforce it, and do not imply the file enforces anything:
PreToolUse hook on Edit|Write gates every edit in the repository,
not just RGAA remediation.rgaa-consultant's
check-runtime.sh carries a header documenting a bug where the hook never
ran at all. A gate that silently no-ops is worse than an absent one, because
it is believed.What to write instead: require that remediate's approval_token be shown
before a patch is applied. The token re-derives from the proposal's identity, so
a patch altered after approval is detectable and a skipped approval is
visible. That is weaker than a gate. State it as such in the generated text —
a reader who takes it for enforcement has been misled.
Keep these tight. Each one is a rule an agent breaks by default, and each fails silently — no error, a plausible-looking wrong answer.
remediate's element_html needs framework source, not rendered DOM.
Passing analyze's html fails every time. Plain HTML and PHP templates
cannot be remediated at all — fix those by hand.source_map is mandatory between analyze and remediate.
source_locations defaults to [], and [] fails the issue.analyze's response shape switches on config.igt_tools.
With it set, findings move from top-level findings to data.axe. Reading
findings then yields nothing, with no error.rule + target + criterion_id, copied
verbatim. Never on id — it is positional per scan. Never on the fingerprint
— it carries a per-scan DOM hash, so it moves on any page change. All three
parts are needed: one axe violation often maps to two RGAA criteria, so
rule + target alone merges two findings silently.:nth-child, carousels and build-generated class
names move between scans with no edit at all.bundle.findings only. Findings in
pages[].findings are dropped from the diff; the call still succeeds and
reports nothing.status: "pass" findings in a reference bundle. Omitting them
keeps the "new" category meaning only genuinely-new.audit_url only), 8 need a
person. Report that residue; never imply a conformance verdict.audit_url spends tokens. The whole remediation loop is free, so
iterate it freely — and announce the cost before any audit_url.remediate's approval_token and get human agreement before
applying a patch. The token re-derives from the proposal's identity, so a
patch altered after approval is detectable and a skipped approval is
visible. Never apply a patch that has not been shown and accepted.remediate can propose the same
alt="" for criteria 1.1 and 1.2, which are opposite requirements, and
confidence is a hardcoded "high" that signals nothing. Judge the patch
against the criteria on its own outcome.Rule 10 is not optional dressing: it is the whole of what replaces the hook this skill deliberately does not write. Omit it and the generated file claims an approval step it never asks for.
| Argument | File |
|---|---|
claude | CLAUDE.md |
copilot | .github/copilot-instructions.md |
cursor | .cursor/rules/rgaa-accessibility.mdc |
agents | AGENTS.md (the generic target; opencode and others read it) |
With no argument, detect which of these already exist and offer those, plus
AGENTS.md as the portable default. Do not create all four unasked — an
unread instruction file is pure context cost.
Assume the file exists and is hand-maintained. Most are.
Use a delimited section, and make it idempotent:
<!-- BEGIN acces-accessibility -->
... generated rules ...
<!-- END acces-accessibility -->
If the markers are present, replace what is between them. Never append a second copy.
If they are absent, append the section at the end of the file.
Creating a Cursor .mdc that does not yet exist needs Cursor's rule front
matter above the section, or Cursor never loads it and the file is silently
inert:
---
description: RGAA accessibility rules for rgaa-mcp
alwaysApply: true
---
Never rewrite or reorder the rest of the file. The surrounding content is someone's hand-written work and is none of your business.
Show a diff and get approval before writing. This plugin gates its own patches on human approval; writing into a repository's instruction files without the same courtesy would be inconsistent. Refusing to write and printing a diff for the user to apply themselves is not the safer option — it moves the work without making anything safer.
State, in one line each:
rgaa-mcp must be installed for any of it to apply — point at
/acces-accessibility:setup if it is notWhat SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/audit-loopThis skill should be used when the user asks to "audit and fix accessibility", "fix all a11y issues on this page", "run the accessibility loop", "remediate accessibility until clean", "scan and fix localhost", "make this page accessible", or runs /acces-accessibility:audit-loop. It drives the rgaa-mcp analyze -> source_map -> remediate -> approve -> apply -> verify loop on a URL, pausing for human approval of every patch each round, until no findings remain, the findings stop changing, or a round cap is reached./setupThis skill should be used when the user asks to "set up rgaa-mcp", "install the RGAA accessibility tooling", "configure the RGAA MCP server", "connect rgaa-mcp", "why is analyze failing", "obscura not found", or runs /acces-accessibility:setup. It installs the rgaa-mcp server and the pinned obscura browser binary, wires them into the user's MCP client (Claude Code, opencode, Cursor, VS Code, Claude Desktop), and verifies the installation in four stages that each isolate one failure./usageThis skill should be used whenever the rgaa-mcp tools (analyze, remediate, source_map, verify_fix, igt, lint_static, audit_url, get_audit_result, list_criteria) are about to be called and the task involves accessibility, RGAA, a11y, WCAG conformance, keyboard navigation, accessible names and roles, or fixing accessibility issues in web UI. It teaches the tool chain, the field mappings between the tools, the trap fields that fail silently, and which calls cost tokens. Trigger phrases include "check accessibility", "scan for a11y issues", "fix accessibility violations", "make this accessible", "RGAA audit", "test keyboard accessibility", "lint this template for a11y". It does NOT answer what an RGAA criterion requires — that is the rgaa-accessibility plugin's criteria skill.Other plugins' skills for the same job
npx claudepluginhub jamon8888/holo-rgaa --plugin acces-accessibility