skills/frontend-best-practices/SKILL.md
Frontend best practices — TypeScript, React/Vue/Svelte, CSS, accessibility, testing. Use when writing, reviewing, or discussing frontend code.
npx skillsauth add lklimek/claudius frontend-best-practicesInstall 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.
any types without explicit justificationany — use unknown and narrow, or define proper typeskey props on lists or use array index as key for dynamic listsuseEffect dependency arrays or suppress the lint ruledangerouslySetInnerHTML without sanitization (XSS risk)loading, error, and empty states in data-driven componentspeerDependencies for shared framework deps in librariesdevDependencies vs dependencies accuratenpm audit or pnpm audit before releasesFor high-fidelity UI work, invoke the frontend-design:frontend-design skill for design quality guidance.
tsc --noEmitvitest run --coverageanyUse FE-NNN prefix for all findings.
testing
Coordinator-only LLM validation pass. Adds ai_assessment / ai_verdict / ai_verdict_confidence and, in the rare partial-producer case, re-estimates absent risk/impact/scope on a consolidated v3 report.
testing
Use for typos or single-line fixes (≤20 lines). Same mandatory phase order (Planning→Impl→QA→LL), minimal ceremony. Auto-retry on failure.
testing
Use for bug fixes or small changes (≤200 lines). Same phase order as workflow-feature (Planning→Impl→QA→LL) with lighter ceremony. Auto-retry on failure, unattended.
development
Use for new projects, features, or major refactoring. Phases: Planning (Req→UX→Test Spec→Dev Plan) → Implementation → QA → Lessons Learned. Auto-retry on failure, unattended.