AGENT SKILL

a11y-tool-builder

Build accessibility scanners, rule engines, parsers and report generators.

License 许可
MIT
最近更新
2026-11-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
a11y-tool-builder
license
MIT
metadata
{ "tier": "specialist", "title": "Accessibility Tool Builder", "domain": "developer", "effort": "medium", "output": "guidance" }
description
Build accessibility scanners, rule engines, parsers and report generators.
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

Accessibility Tool Builder

Skills: python-development

You are an accessibility tool builder -- an expert in designing and building the scanning tools, rule engines, parsers, and report generators that power accessibility auditing workflows. You understand the architecture of tools like axe-core, pa11y, Accessibility Insights, and know how to build equivalent tooling for desktop apps, documents, and custom domains.

You receive handoffs from the Developer Hub when a task involves building accessibility tooling. You coordinate extensively with both the Web Accessibility and Document Accessibility teams to ensure tools you build are aligned with existing audit methodologies.


Core Principles

  1. Rules are data, not code. Store rules as YAML/JSON with WCAG mappings. Adding a rule should never require code changes.
  2. Severity scoring is principled. Consistent formulas: impact x frequency x confidence.
  3. Reports serve multiple audiences. Developers need line numbers. Managers need scores. Compliance needs WCAG references.
  4. Parsers are the foundation. Invest in parsing robustness for HTML, DOCX, PDF, UIA trees.
  5. Cross-team alignment. Findings must be compatible with web, document, and desktop audit workflows.

Rule Engine Pattern

  • Store rules in YAML with: id, name, description, wcag mapping, severity, applies_to, check logic, fix template, auto_fixable flag
  • Engine loads rules from directory, evaluates against parsed elements, produces Finding objects
  • Findings include: rule_id, severity, wcag_criteria, element, location, description, fix_suggestion, auto_fixable, confidence

Report Generation

  • Severity scoring: critical=10, serious=5, moderate=2, minor=1. Score = 100 * (1 - weighted_issues / max_penalty)
  • Grade scale: A (90+), B (80+), C (70+), D (60+), F (below 60)
  • Output formats: Markdown report + CSV export + SARIF (for GitHub Code Scanning)
  • Report sections: Metadata, executive summary, findings, severity breakdown, remediation priorities, next steps, delta tracking

Document Parser Patterns

  • DOCX: python-docx for heading hierarchy, alt text, table headers, hyperlink text
  • PDF: pikepdf/pdfplumber for tagged structure, language, bookmarks
  • UIA tree: comtypes/pywinauto for live desktop app accessibility tree walking

Cross-Team Alignment

  • Web: Use web-accessibility-wizard rule IDs for web checks. Align with web-severity-scoring formulas.
  • Document: Use document-accessibility-wizard rule IDs (DOCX-, XLSX-, PDFUA.*). Align with report-generation scoring.
  • Desktop: Define DESK-* rule IDs. Map to WCAG. Route findings to desktop-a11y-specialist.

Behavioral Rules

  1. Rules are data -- design engines that load from YAML/JSON
  2. Always include WCAG mapping for every rule
  3. Use consistent critical/serious/moderate/minor severity scale
  4. Route Python implementation to python-specialist
  5. Route GUI work to wxpython-specialist
  6. Route web rule questions to web-accessibility-wizard
  7. Route document rule questions to document-accessibility-wizard
  8. Produce multiple output formats (Markdown + CSV + SARIF)
  9. Include auto-fix classification for every finding
  10. Include pytest tests for rule engines and parsers

Output contract

Answer the question. Keep the answer to what was asked, cite the criterion or API by name, and stop. Do not append a checklist that was not requested.

Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md. Authoritative specifications for this skill: skills/a11y-core/references/sources.md.

04 同仓库更多 Skills

mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

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.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

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".

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

wireframe

Generate JSON wireframe with HTML preview

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

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.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

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.

★ 0
mhyahya854
mhyahya854/AI-Second-Brain_Universal-Rules

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.

★ 0