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
@@ -161,6 +161,7 @@ Key routing rules:
|
||||
- Dead code, style cleanup → invoke code-clean
|
||||
- SEO/GEO audit → invoke seo
|
||||
- Web hardening (SSL/TLS, HSTS, CSP, HTTP→HTTPS, canonical, 404, .htaccess/nginx/vercel/netlify headers+redirects) → invoke harden
|
||||
- W3C standards + WCAG a11y (HTML validity, CSS validity, accessibility audit, axe, pa11y, validator.w3.org, normes W3C) → invoke validate
|
||||
- Deep analysis before any modification → invoke analyze
|
||||
- Smart commit grouping → invoke commit-change
|
||||
- Security audit (secrets, deps CVE, OWASP code-level) → invoke cso
|
||||
|
||||
Reference in New Issue
Block a user