forked from bchanot/claude
feat(validate): add W3C HTML/CSS validity + WCAG a11y audit skill
New /validate skill runs a narrow-scope web standards audit covering W3C HTML validity (validator.nu API in FULL, html-validate / vnu.jar in LOCAL), W3C CSS validity (jigsaw.w3.org/css-validator in FULL, stylelint / css-tree in LOCAL), and WCAG 2.1 accessibility (pa11y, @axe-core/cli, WAVE API, or static checklist fallback). Dedicated validator-analyzer agent with a strict IN/OUT scope filter so the report stays focused on conformance — no meta/OG/JSON-LD/ sitemap/CSP/cookie/CWV noise. Those remain owned by /seo, /geo, and /harden respectively. LOCAL mode degrades gracefully: tries local npm tools first, falls back to static analysis if none present (same 12-point a11y checklist as /onboard a11y dispatch). Never fails hard. Framework awareness: validates built output (dist/, _site/, build/, out/) for SPA/JS frameworks, not JSX/TSX source. Warns if no build dir found. Fix mode (--fix) produces a conservative auto-fix bundle: missing lang attr, alt="" on decorative images, unclosed void tags, duplicate IDs, unambiguous heading level skips. Content decisions (form labels, color contrast, landmark restructure, alt text on content images) always go to User actions, never auto-applied. Flags: --local, --full, --fix, --no-external. Routing updated in CLAUDE.md. /harden and /seo cross-refs narrowed to redirect W3C / WCAG concerns to /validate (was previously routed to /onboard a11y dispatch, which only runs at setup). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
97415e9aea
commit
feed3dbae9
@@ -17,6 +17,8 @@ description: |
|
||||
"AI search", "GEO", "llms.txt", "ChatGPT visibility", "Perplexity",
|
||||
"Google AI Overview".
|
||||
For GEO-only audit → use /geo.
|
||||
For W3C HTML/CSS validity + WCAG a11y → use /validate (syntactic conformance,
|
||||
not ranking signals).
|
||||
For code-only bugs → use /bugfix. For feature work → use /feat.
|
||||
argument-hint: optional keywords/scope, e.g. "local SEO plombier 91 94 77" or "SaaS B2B content strategy"
|
||||
allowed-tools:
|
||||
|
||||
Reference in New Issue
Block a user