inceptyon-labs/tenet-skills/tenet-accessibility

Claude Code and agent skill by inceptyon-labs/tenet-skills

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Audits web accessibility issues in HTML, JSX, TSX, Vue, and Svelte UI code.

Install

npx vskill@latest install inceptyon-labs/tenet-skills/tenet-accessibility

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-accessibility.

Tenet Accessibility — A11y Audit

Scans UI code for WCAG compliance issues: missing alt text, keyboard traps, unlabeled controls, heading hierarchy violations, and missing ARIA attributes.

Purpose

Accessibility failures exclude users and expose projects to legal risk. This skill audits the view layer of web applications for common a11y violations that automated tools can reliably detect. It combines deterministic toolchain output (axe-core, pa11y) with grep-based pattern matching on source files to catch issues at the template level before they reach the browser.

Calibration — read first

Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).

A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.

Applicability Check

This dimension applies when any of the following file types are present in the project:

  • .html, .htm
  • .jsx, .tsx
  • .vue
  • .svelte

Check via the language census or direct file search:

bash
git ls-files -- '*.html' '*.htm' '*.jsx' '*.tsx' '*.vue' '*.svelte' | head -1

If no matching files exist, write a non-applicable report:

json
{
"key": "accessibility",
"score": null,
"weight": 0.8,
"skill_version": "1.0.1",
"applicable": false,
"notes": "No HTML, JSX, TSX, Vue, or Svelte files found. Accessibility dimension skipped."
}

Language Support Matrix

yaml
support:
native: [html, typescript, javascript]
heuristic: [vue, svelte]
skip: [python, go, rust, java, kotlin, ruby, php, swift, csharp, cpp, c, yaml, json, css, sql, shell, dockerfile, markdown, terraform]
  • Native (HTML): Direct pattern matching on standard HTML elements and attributes.
  • Native (TSX/JSX): Pattern matching on JSX syntax, accounting for className vs class, htmlFor vs for, and expression attributes alt={...}.
  • Heuristic (Vue): Scans <template> blocks. Accounts for v-bind:alt and :alt shorthand. May miss computed attribute values.
  • Heuristic (Svelte): Scans markup sections. Accounts for {alt} shorthand syntax. May miss conditional attributes in {#if} blocks.

Toolchain Inputs

FileSource ToolUsage
.healthcheck/toolchain/axe.jsonaxe-core CLIBrowser-level accessibility violations from rendered pages
.healthcheck/toolchain/pa11y.jsonpa11yWCAG 2.1 AA violations from rendered pages
.healthcheck/toolchain/language-census.jsonlanguage censusFile lists and language breakdown

All toolchain inputs are optional. If axe.json and pa11y.json are absent, the skill relies entirely on source-level grep-based scanning.

Procedure

Step 0: Read Configuration and Toolchain
bash
# Read config overrides
cat .healthcheck.toml 2>/dev/null
# Read toolchain outputs
cat .healthcheck/toolchain/axe.json 2>/dev/null
cat .healthcheck/toolchain/pa11y.json 2>/dev/null
cat .healthcheck/toolchain/language-census.json 2>/dev/null

If .healthcheck.toml contains an [accessibility] section, apply overrides:

  • wcag_level — target WCAG level: "A", "AA" (default), or "AAA"
  • skip_patterns — glob patterns for files to exclude (e.g., ["src/legacy/**"])
  • ignore_rules — list of rule IDs to suppress (e.g., ["A11Y-H006"])
Step 1: Consume Toolchain Output

1a. Parse axe-core results:

If .healthcheck/toolchain/axe.json exists, iterate its findings array. Map axe impact levels to Tenet severities:

axe impactTenet severity
criticalcritical
seriousmajor
moderateminor
minorinfo

For each axe finding, create a Tenet finding with:

  • confidence: "deterministic" (axe runs against rendered DOM)
  • file and line from the axe selector mapped back to source if possible
  • fix_prompt generated from the axe help and helpUrl fields

1b. Parse pa11y results:

If .healthcheck/toolchain/pa11y.json exists, iterate its results. Map pa11y types:

pa11y typeTenet severity
errormajor
warningminor
noticeinfo

Deduplicate against axe findings — if both tools flag the same element (matched by selector or file+line), keep the higher-confidence one (axe preferred) and discard the duplicate.

Step 2: Source-Level Scanning

Regardless of whether toolchain output exists, perform source-level scans. These catch issues at the template/component level that browser-based tools miss (e.g., in components that are conditionally rendered or in library code).

2a. Build file list:

bash
git ls-files -- '*.html' '*.htm' '*.jsx' '*.tsx' '*.vue' '*.svelte'

Exclude files matching skip_patterns from config.

2b. Missing alt text on images (A11Y-I001):

Scan for <img tags without alt attributes:

bash
# HTML/JSX pattern
grep -n '<img\b' <file> | grep -v 'alt='

Also accept as valid (no finding): alt="" or role="presentation" (decorative), alt={...} (dynamic), Vue :alt/v-bind:alt, Svelte alt={variable}.

Emit major for each <img> without any form of alt attribute.

2c. Interactive elements without keyboard handlers (A11Y-K001):

Scan for elements with onClick/@click/on:click but no keyboard equivalent:

bash
# JSX: onClick without onKeyDown/onKeyUp/onKeyPress
grep -n 'onClick=' <file> | grep -v 'onKey'

For non-interactive elements with click handlers (e.g., <div onClick=...>), also check for:

  • role="button" or other interactive role
  • tabIndex attribute

Non-interactive elements (<div>, <span>, <li>, <td>) with click handlers: major if missing keyboard handler AND role AND tabIndex. <a> without href used as click handler: minor. Native interactive elements (<button>, <a href>, <input>) are exempt. For Vue check @click vs @keydown; for Svelte check on:click vs on:keydown.

2d. Missing ARIA labels on icon buttons (A11Y-A001):

Scan for buttons containing only non-text content:

bash
# Button with SVG or icon but no text or aria-label
grep -n '<button' <file>

A button needs an accessible name if it contains:

  • Only an SVG (<svg) with no sibling text
  • Only an icon component (<Icon, <FontAwesome, <Lucide, etc.)
  • Only an <img> (which should have its own alt, but button still needs a label)

Acceptable accessible names: aria-label, aria-labelledby, visible text content, <span className="sr-only">, or title attribute. Emit major for icon buttons without any accessible name.

2e. Form inputs without labels (A11Y-F001):

Scan for <input>, <select>, <textarea> elements:

bash
grep -n '<input\b\|<select\b\|<textarea\b' <file>

An input is considered labeled if it has: a matching <label for>/<label htmlFor>, a wrapping <label>, aria-label, or aria-labelledby. Exempt: type="hidden", type="submit", type="button". Emit major for visible inputs without any label association.

2f. Heading hierarchy skips (A11Y-H001):

Track heading levels (<h1> through <h6>, or JSX <Heading level={n}>) in each file:

bash
grep -n '<h[1-6]\b' <file>

Rules:

  • The first heading in a page/component should be <h1> (unless it is a sub-component)
  • Headings must not skip levels: <h1> → <h3> without <h2> is a violation
  • Multiple <h1> tags in a single file is a minor finding

Emit minor for each heading hierarchy skip.

Note: In component architectures, sub-components may start at <h2> or lower. Only flag skips within a single file (e.g., <h2> then <h4>). Page/Layout/App files should have <h1>.

2g. Missing lang attribute (A11Y-L001):

Scan for <html tags without a lang attribute:

bash
grep -rn '<html\b' <file> | grep -v 'lang='

This applies to:

  • index.html, _document.tsx, _document.jsx, app.html (SvelteKit), app.vue (Nuxt), or any file containing <html
  • Layout/shell files in framework-specific locations

Emit major for <html> without lang. This is a WCAG 2.1 Level A requirement.

2h. Color contrast issues (A11Y-C001):

Source-level contrast detection is limited. Scan for inline styles setting both color and background-color, and attempt basic contrast ratio estimation. Most contrast issues are caught by axe/pa11y in the toolchain — source-level findings are info only with confidence: "heuristic".

Step 3: Deduplicate Findings

Merge toolchain findings (Step 1) with source-level findings (Step 2):

  1. If a toolchain finding and source finding reference the same file and similar line range (within 5 lines), keep the toolchain finding (higher confidence) and discard the source-level duplicate.
  2. If only source-level findings exist for a file, keep them with their heuristic confidence tag.
  3. If only toolchain findings exist for a file, keep them.
Step 4: Score Calculation

Apply the standard scoring formula:

score = 100 - (5 * critical_count) - (2 * major_count) - (0.5 * minor_count)
score = max(0, min(100, int(score + 0.5))) # Arithmetic rounding, not banker's rounding

Info findings do NOT affect the score.

Step 5: Write Report

Write the dimension report to .healthcheck/reports/accessibility.json:

json
{
"key": "accessibility",
"score": 65,
"weight": 0.8,
"skill_version": "1.0.1",
"applicable": true,
"notes": "Found 12 accessibility issues across 8 files. 3 images missing alt text, 2 icon buttons without ARIA labels, 4 heading hierarchy skips, 2 form inputs without labels, 1 missing lang attribute on <html>. axe-core provided 5 deterministic findings; 7 from source-level scan.",
"metrics": {
"files_scanned": 42,
"total_findings": 12,
"toolchain_findings": 5,
"source_findings": 7,
"wcag_level": "AA",
"images_without_alt": 3,
"buttons_without_label": 2,
"inputs_without_label": 2,
"heading_skips": 4,
"missing_lang": 1,
"keyboard_issues": 0,
"contrast_issues": 0,
"axe_available": true,
"pa11y_available": false
}
}

Output

  • .healthcheck/reports/accessibility.json — dimension report using the dimension fields and finding schema in shared/schema.json

Constraints

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/inceptyon-labs/tenet-skills/tenet-accessibility/badge)](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-accessibility)

Something wrong with this skill or its page? Tell us.