/acces-accessibility:setup [client] (optional: claude-code | opencode | cursor | vscode | claude-desktop)from Acces Accessibility
This 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.
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.
Three tiers of dependency, not one install. Say which tier the user has reached; tier 0 is a useful degraded mode, not a failure.
| Tier | Requires | Tools that work |
|---|---|---|
| 0 | the rgaa-mcp binary | list_criteria, lint_static, source_map, remediate, get_audit_result |
| 1 | + obscura exactly 0.2.4 | analyze, igt, verify_fix |
| 2 | + a model, and a key or a local provider | audit_url |
Only three tools touch the browser. source_map and remediate are local
computation — rgaa-remediation has no rgaa-obscura dependency at all — so
the patch-proposing half of the loop works with the binary alone: lint the
source, map findings onto it, get templated patches. What tier 0 cannot do is
see the page, so it can neither find the findings in the first place nor
confirm a fix.
Tier 1 is what the remediation loop needs. Tier 2 is only for full 106-criteria audits, and it is the only tier that costs anything.
Tier 2 is not reached by supplying a key alone. Only MyIA and the legacy
holo3 route carry a default_model, so every other provider — local ones
included — also needs RGAA_LLM_MODEL, and custom additionally needs
RGAA_LLM_BASE_URL.
Prefer the repository's installer — but never run a script just because it is
named install.sh. An install.sh in whatever directory the user happens to
be in is untrusted input, not this project's installer, and running it executes
arbitrary code with the user's privileges.
Before running it, all three must hold:
rgaa-rs/crates/rgaa-mcp/ and this plugin — identified by an explicit path,
not by the current directory;If any of those fails, do not run it. Give the user the command and let them run it themselves, or fall back to installing by hand below.
With those satisfied it installs rgaa-mcp, rgaa-cli and the pinned
obscura, and version-checks obscura itself. Do not restate its steps in
your own words: a second description of the install drifts from the real one,
and the cost is an inexplicable "it won't start".
Note what it does not do: install.sh symlinks only the sibling
rgaa-accessibility plugin into ~/.claude/plugins/ (it hardcodes
rgaa-rs/plugins/rgaa-consultant). It does not install this plugin, which
comes from the marketplace:
/plugin install acces-accessibility --marketplace jamon8888/Holo-RGAA
In practice a user running this skill already has the plugin — that is how the
skill reached them. What install.sh gives them is the runtime: the server
and the browser binary.
./install.sh
Only when there is no install.sh — the plugin can be installed on its own,
without the repository — fall back to installing by hand:
cargo install --path rgaa-rs/crates/rgaa-mcp
and install obscura 0.2.4 from h4ckf0r0day/obscura, then either put it on
PATH or set RGAA_OBSCURA_BIN to its absolute path.
The version is not advisory. rgaa-obscura compares the binary's reported
version against a pinned constant and fails fast on mismatch, so a drifted
obscura reports itself instead of misbehaving quietly.
Run them in order. Each isolates one failure, so a failure names its own cause. Stop at the first one that fails and fix that, rather than reporting "it doesn't work".
Stage 0 — the advertised tool set. Before anything else, check what the
server advertises. It must offer nine tools: analyze, remediate, igt,
audit_url, get_audit_result, list_criteria, lint_static, source_map,
verify_fix.
A shorter list means a stale binary, and it is not a cosmetic problem. An
installed server predating source_map cannot run the remediation loop at all:
remediate rejects every issue whose source_locations is empty, and
source_map is the only thing that fills it. The individual calls in the stages
below all still succeed on such a server, which is exactly why this check comes
first — a stale binary passes every other test.
This happens, and a plain cargo install does not fix it. There are two
install mechanisms that disagree, and they write to different directories:
| Mechanism | Writes to | Source of the binary |
|---|---|---|
install.sh | ~/.local/bin | a prebuilt release tarball |
cargo install --path … | ~/.cargo/bin | the local source tree |
On a typical setup ~/.local/bin comes first on PATH, so if install.sh
has ever run, its release binary shadows anything cargo install builds. A
release that lags the source then stays in charge, and cargo install --force
appears to succeed while changing nothing.
So always check which binary answers:
command -v rgaa-mcp # the one PATH resolves
ls -l ~/.local/bin/rgaa-mcp ~/.cargo/bin/rgaa-mcp 2>/dev/null
To replace the one that actually wins, install into that prefix explicitly:
cargo install --path rgaa-rs/crates/rgaa-mcp --root "$HOME/.local" --force
Restart the MCP server before re-running stage 0. Replacing the file on disk does not change an already-running process: it keeps executing the old image, so stage 0 queries the stale server and still reports the short tool list. This is easy to mistake for a failed reinstall. In Claude Code that means reloading the plugin or restarting the session; for other clients, restarting the client.
Then re-run stage 0 rather than assuming it worked. Do not move or delete a binary on the user's machine without asking — tell them what shadows what and let them choose.
tests/e2e-local.sh in this plugin performs this check along with the rest of
the contract, and reports which binary it reached. Run it when a user says
something "worked yesterday", or when a reinstall seems to have had no effect.
Stage 1 — list_criteria. No arguments, no browser, no network, no LLM.
Proves the server starts and its catalogue loads. Expect 106 criteria.
A failure here is the binary: not installed, not on PATH, or not starting.
Stage 2 — analyze on a public URL the user can reach. Free: analyze
makes no LLM call. Proves the obscura binary is present and at the pinned
version.
Use a public URL deliberately. obscura blocks loopback and private ranges by
default, so http://localhost:… fails here even when obscura is installed
correctly — and the failure looks identical to a missing binary. If a local
URL is all that is available, read the error before blaming obscura: an
Access to private/internal IP address … is not allowed means the
private-network restriction, not the binary. See the environment variables
section below.
Otherwise a failure here is obscura: missing, not on PATH,
RGAA_OBSCURA_BIN pointing somewhere stale, or a version mismatch — the error
says which.
Without this stage, a missing obscura surfaces only at the first loop round,
far from its cause. Do not skip it because it looks redundant.
Stage 3 — audit_url. Opt-in, and priced. This is the only call that spends
tokens: 22 batched LLM calls per page. Tell the user the cost and get their
agreement before running it. Skip it entirely if they only want the remediation
loop, which never touches the LLM.
Do not ask the user to diagnose this, and do not treat a blank key as an error
by default. Read RGAA_LLM_PROVIDER and decide:
A local provider (ollama, lmstudio, vllm, custom) needs no key.
A blank key is the correct configuration. Local routes also default to
unlimited RPM and a 600-second per-request timeout, because CPU inference of a
7B–14B model takes minutes — a slow local run is not a failure.
But a keyless provider is not a complete tier-2 configuration. Only
MyIA and the legacy holo3 route carry a default_model; every other
provider, local ones included, requires RGAA_LLM_MODEL or
LlmSettings refuses with "RGAA_LLM_MODEL is not set (provider … has no
default model)". And custom additionally requires RGAA_LLM_BASE_URL.
Check both before telling the user tier 2 is ready.
A remote provider needs one, in RGAA_LLM_API_KEY or the provider's own
variable (MYIA_API_KEY, OPENAI_API_KEY, GROQ_API_KEY, …).
A blank plugin setting does not fall through to .env. It shadows it.
Two mechanisms get confused here, so be exact. rgaa-core reads an empty
variable as unset (provider.rs:298), and rgaa-obscura does the same for
RGAA_OBSCURA_BIN (lib.rs:243), so a blank value never produces a malformed
setting. But .env is loaded with dotenvy::dotenv(), which does not
override a variable already present — and a blank userConfig is passed
through .mcp.json as a variable that is present and empty. .env.example
states this itself: a variable already in the real environment always wins.
So the plugin setting and .env are alternatives, not layers. Tell the user
to use one or the other:
.env, orWhat is never safe is a value in .env plus a blank plugin setting: the blank
one wins and the .env entry is never read.
If the user only wants the remediation loop, they need no key at all: say so instead of walking them through credentials they will never use.
Neither is documented anywhere else, and the loop cannot run locally without them. Both were established by driving the real loop, not by reading code.
OBSCURA_ALLOW_PRIVATE_NETWORK=1 — obscura blocks loopback, RFC1918 and
link-local addresses by default, as a deliberate SSRF fix. Without it, analyze
on http://localhost:… returns completed: false and
cdp_transport: Access to private/internal IP address 127.0.0.1 is not allowed.
There is a trap on top of it. rgaa-obscura never passes
--allow-private-network itself — the flag only arrives through the inherited
environment of a server it spawns. So a server started earlier without the
variable keeps blocking localhost, and setting the variable now changes nothing
for it.
start_server no longer attaches to such a server silently: it pre-flights its
port (default 9222) and refuses an occupied one with a message naming the port,
rather than accepting any /json/version answer there as its own readiness. The
symptom is therefore a clear startup error, not an unexplained SSRF block — but
the fix is still to retire the stale server.
Diagnose it before concluding the variable is wrong:
ss -ltnp | grep 9222 # is a server already bound?
pgrep -ax obscura # started with which flags, by whom?
An idle pool with no established connections can be retired, and the next call
spawns a fresh server that inherits the variable. Never kill one that is in use,
and never match on obscura serve with pkill -f — the pattern matches your own
shell.
RGAA_SOURCE_MAP_ROOTS — source_map confines source_root to a list of
allowed roots, defaulting to the server's own current working directory
(source_map.rs:840-848). A project outside it is refused with
INVALID_INPUT: … resolves outside the allowed roots. For a plugin-launched
server, that cwd is wherever the client started it, which is often not the
project you want to map.
This plugin gates its own patches on human approval. Setup is held to the same standard, and the actions below are not reversible by the user without effort:
install.sh, say what it will install and where. It writes
binaries into ~/.local/bin.PATH or shell startup files.Reading to diagnose — command -v, listing the two known binary paths, printing
a config file — needs no permission. Writing does.
Inside Claude Code there is almost nothing to do: this plugin's own
.mcp.json wires the server when the plugin is installed. Verify with stage 1
and move on.
The skill's real work is the other clients. For each, the server is a stdio
process invoking rgaa-mcp with no arguments; what differs is the file and the
key names.
opencode.json, under mcp, {"type": "local", "command": ["rgaa-mcp"]}.cursor/mcp.json.vscode/mcp.json, under serversclaude_desktop_config.json for the user's platformRead the client's existing config before writing: these files usually already hold other servers, and replacing one is worse than failing to add one. Add a key, never rewrite the file.
A GUI-launched client inherits no shell environment. Claude Desktop, and
Cursor or VS Code started from a launcher rather than a terminal, do not see
anything exported in a shell profile. Every variable the server needs has to go
in that server's own env block:
RGAA_OBSCURA_BIN when obscura is not on PATH;OBSCURA_ALLOW_PRIVATE_NETWORK=1 to analyse a local project at all;RGAA_SOURCE_MAP_ROOTS pointing at the project, since source_map otherwise
only accepts paths under the server's own working directory.Omitting the last two is the common cause of "it works in my terminal but not in the app".
rgaa-accessibility declares its own rgaa-mcp, so with both plugins installed
two namespaced servers run (plugin_acces-accessibility_rgaa-mcp and
plugin_rgaa-accessibility_rgaa-mcp).
Report it; do not act on it. Disabling another plugin's server is not this skill's business, and the duplicate is harmless — the same binary, started lazily. Tell the user it is expected, and that the two plugins divide the work: this one drives the remediation loop, the sibling owns the 106-criteria audit and compliance reports.
Name the tier reached, and what it does and does not buy. If they stopped at tier 0 or 1, do not describe the installation as incomplete — say which tools work now and what the next tier would add.
Never imply that a working installation means the site is RGAA conformant. That claim needs all 106 criteria, and the loop reaches 66.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jamon8888/holo-rgaa --plugin acces-accessibility4 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./generate-instructionsThis 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./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.