plugins/development-harness/skills/code-review-web/SKILL.md
Use when reviewing web frontend code — HTML, CSS, JSX, or browser-targeted JavaScript. Enforces accessibility (WCAG AA, aria labels, focus management), XSS prevention (innerHTML, dangerouslySetInnerHTML), performance (layout thrash, CLS, lazy loading), CSS design tokens, form labeling, and event listener cleanup. Loaded by dh:code-reviewer on *.html, *.css, *.jsx detection.
npx skillsauth add jamie-bitflight/claude_skills code-review-webInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Stack-specific rules loaded by dh:code-reviewer when *.html, *.css, or *.jsx (browser-targeted) files are detected.
aria-label, or aria-labelledbyaria-label or a visually-hidden text spanfor/id pairing or aria-labelledby — proximity alone is not sufficientalt text; decorative images use alt=""element.innerHTML = userValue is a blocking finding — use textContent for plain textdangerouslySetInnerHTML (React) or equivalent without sanitization is a blocking findingeval(), Function(), or setTimeout(string) are a blocking findinghref, src, or action attributes must be validated against an allowlist of schemes (block javascript:, data:)offsetWidth, getBoundingClientRect) inside a loop that also writes styles — is a blocking findingwidth and height attributes to prevent layout shift (CLS)loading="lazy" — eager loading of off-screen images delays critical rendering<head> without defer or async are a blocking findingrender, Vue template expressions) without memoization are a blocking finding!important without an explanatory comment is a blocking finding--color-primary) — hardcoded hex values and px values are non-blocking but flaggedz-index values without a documented z-index scale are a blocking finding — use named tokens (z-index: var(--z-modal))position: fixed or position: sticky without overflow and scroll container awareness is flagged* selectors in component styles that may bleed into child components are a blocking finding<input>, <select>, and <textarea> must have an associated <label> (either wrapping or via for/id)autocomplete attributes must be set on inputs that collect personal data (name, email, address, payment) — required for WCAG 1.3.5aria-describedby — color alone is not sufficient to communicate errorsdocument.addEventListener without a corresponding removeEventListener in the cleanup lifecycle is a blocking findingAbortController is preferred for fetch-and-cleanup patterns — pass the signal and abort on cleanup<!-- WRONG: no label, no accessible name -->
<input type="text" placeholder="Search..." />
<!-- RIGHT: associated label -->
<label for="search">Search</label>
<input type="text" id="search" autocomplete="off" />
<!-- WRONG: XSS vector -->
<div id="output"></div>
<script>
document.getElementById("output").innerHTML = userInput;
</script>
<!-- RIGHT: safe text insertion -->
<script>
document.getElementById("output").textContent = userInput;
</script>
/* WRONG: magic z-index */
.modal { z-index: 9999; }
/* RIGHT: design token */
.modal { z-index: var(--z-modal); }
/* WRONG: unexplained !important */
.button { color: red !important; }
/* RIGHT: explained override */
/* Overrides third-party widget styles that cannot be targeted more specifically */
.widget-container .button { color: red !important; }
development
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.