a11y-core
Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched on its own.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- a11y-core
- license
- MIT
- metadata
- { "tier": "reference", "title": "Accessibility Agents Core", "domain": "cross-cutting", "effort": "low", "output": "none" }
- description
- Shared contract for the Accessibility Agents skills - dispatch, findings schema, report rules. Read by skills, never dispatched on its own.
- user-invocable
- false
- disable-model-invocation
- true
02 资源文件 8
- 参考文档agents/openai.yaml506 B
- 参考文档references/sources.md24.8 KB
- 参考文档schemas/findings.schema.json3.2 KB
- 参考文档schemas/wcag22-criteria.json6.1 KB
- 脚本scripts/measure-context.mjs23.4 KB
- 脚本scripts/merge-findings.mjs13.8 KB
- 脚本scripts/render-report.mjs16.8 KB
- 脚本scripts/test-findings-contract.mjs11.4 KB
03 SKILL.md 正文
Shared rules for every skill in the Accessibility Agents package. Skills point here instead of repeating this text. Read the section you need.
Tiers
Every skill sits in one of four tiers. The tier decides who can start it and what it is allowed to cost.
| Tier | What it is | Who invokes it |
|---|---|---|
| router | The six entry points: accessibility-lead, web-accessibility-wizard, document-accessibility-wizard, markdown-a11y-assistant, developer-hub, github-hub | The model or the user |
| specialist | One accessibility domain, one checklist, one findings payload | A router, by pointer |
| helper | Mechanical work: inventory, scanning one file, CSV export, scan config | A router, by pointer |
| reference | Rule tables, URL registries, scoring formulas. kb- prefix |
Cited by a skill that needs the data |
Only routers are model-invocable. Specialists and helpers stay out of every client's skill catalog so they cost nothing until a router names one.
Dispatch contract
A router dispatches a specialist with the client's own subagent primitive. Keep the prompt at this shape and this size. Never read a specialist's instructions into the router's own context, and never paste a specialist body into a prompt.
Activate the skill "aria-specialist". If skill activation is unavailable,
read skills/aria-specialist/SKILL.md and follow it.
Task: <one paragraph, what to check and why>
Scope: <file list or glob>
Rules: semantic HTML before ARIA; report, do not edit.
Return ONLY JSON matching skills/a11y-core/schemas/findings.schema.json.
Per client: Claude Code uses the Agent tool, Codex spawns a worker subagent, Copilot uses a subagent or handoff, Gemini and Antigravity use the generalist agent. The prompt is the same in all four.
The specialist reads its own instructions inside its own context. The router receives JSON. Nothing else crosses the boundary.
Output contract
Skills declare metadata.output, and it decides what they return.
- findings - only JSON matching
schemas/findings.schema.json. No prose, no preamble, no restated instructions. - report - collect findings JSON from each dispatched skill, write them to
.a11y-history/<timestamp>/, then render withnode skills/a11y-core/scripts/render-report.mjs. Never type a report by hand. - artifact - produce the file or script asked for; report the paths written and what each changes.
- guidance - answer the question, cite the criterion or API by name, stop.
Severity is one of critical, serious, moderate, minor. Confidence is
high, medium or low. A finding without a location and a fix is not a
finding.
Non-negotiable standards
These hold for every web skill in the package and do not need restating in a dispatch prompt.
- Semantic HTML before ARIA. A
buttonelement beatsdiv role="button". - One H1 per page. Never skip heading levels.
- Every interactive element reachable and operable by keyboard.
- Text contrast 4.5:1. UI component and graphical object contrast 3:1.
- No information carried by color alone.
- Focus managed on route change, dynamic content and deletion.
- Dialogs trap focus and return it on close.
- Dynamic content updates are announced.
Report requirements
Any audit report this package produces carries all of these, or it is a triage result and must say so in its opening line.
- Metadata: date, tool versions, scope, scan configuration used
- Executive summary: score out of 100, A-F grade, counts by severity, verdict
- Findings: rule ID, WCAG criterion, severity, location, description, fix
- Severity breakdown by critical, serious, moderate, minor
- Remediation priorities, ordered by impact against effort
- Next steps and a re-scan timeline
- Delta against the previous report when one exists: fixed, new, persistent, regressed
The renderer emits all seven from findings JSON and embeds the merged JSON in a fenced block at the end of the report, which is what makes the next delta cheap.
Files here
schemas/findings.schema.json- the one findings shapereferences/sources.md- every specification the skills cite, grouped by skillscripts/measure-context.mjs- context cost accounting and budget check
Scan configuration
If the workspace root holds .a11y-office-config.json, .a11y-pdf-config.json,
.a11y-epub-config.json or .a11y-web-config.json, read it and honour it. Do
not fall back to defaults when a config file exists. Profiles for strict,
moderate and minimal live in templates/.
04 同仓库更多 Skills
frontend-slides
Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.
design-dna
Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides images, screenshots, or URLs of reference designs and wants them analyzed into a structured JSON profile covering all three dimensions, (3) a user has a Design DNA JSON and content and wants a design generated from it, or (4) any combination of these phases. Triggers on "design DNA", "extract design style", "analyze design", "design tokens from reference", "generate design from JSON", "design system from screenshot", "design profile", "style guide JSON", "visual effects analysis", "design with effects", "3d design analysis".
wireframe
Generate JSON wireframe with HTML preview
social-publishing
Schedule and publish social media posts across 13 platforms (X, LinkedIn, Instagram, Facebook Pages, TikTok, Discord, Telegram, YouTube, Reddit, WordPress, Pinterest) via the SocialClaw API. Use when the user wants to publish, schedule, or manage social media content programmatically. Requires SOCIALCLAW_API_KEY.
hermes-tweet
Install and operate Hermes Tweet, a Hermes Agent plugin for X/Twitter research, timeline reading, tweet analysis, and approval-gated private or state-changing operations. Use this skill when installing Hermes Tweet, researching X/Twitter accounts, monitoring launch signals, investigating mentions, auditing giveaways, or preparing gated X operations. Use proactively when a Hermes Agent workflow needs current X/Twitter context. Requires XQUIK_API_KEY for read and action tools.
refactoring-ui
Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent design tokens, creating dark mode themes, improving data-visualization clarity, or polishing UI details before launch. Covers grayscale-first workflow, constrained design scales, shadows, and component styling. For typeface selection, see web-typography. For usability audits, see ux-heuristics.