audit-frontend
Skill2 starsChanged 42 days agoMITView on GitHub
Comprehensive front-end architecture audit with parallel sub-agents. Checks design tokens, components, accessibility, performance, security, and best practices against enterprise standards. Use this skill whenever the user wants to review their frontend, check UI quality, assess component patterns, verify accessibility, or improve their web app - even if they don't explicitly say 'audit'.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- bbvch-ai/aihub-coretheir own version, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- bbvch-ai/aihub-core★ 16same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- audit-backendSkill
- audit-securitySkill
- ralph-loopSkill
- ralph-planSkill
- againSkill
- elimSkill
- huhSkill
- ughSkill
- code-audit-jevSkill
- jev-email-analysisSkill
- prompt-injection-evalSkill
- resume-mirror-evalSkill
- run-jevSkill
- traffic-triage-evalSkill
- built-withSkill
- github-remediate-vulnsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 10 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
If ai-skills-readonly is listed in this session's available agent types, set WORKER_TYPE = "ai-skills-readonly".
- Distinctive: line 61
Not installed: show the user the shipped file, then ask.
- Distinctive: line 64
Ask with AskUserQuestion: Install (recommended) / Not now / Don't ask again.
- Very specific: line 67
Don't ask again: touch ~/.claude/.ai-skills-workers-declined.
- Very specific: line 78
If the argument is a path (starts with ., /, or contains /), treat it as the path with all modules.
- Distinctive: line 79
If the argument is a comma-separated list of known module names, treat it as module selection.
- Distinctive: line 80
If two arguments, first is modules, second is path.
- Distinctive: line 84
Before dispatching any module agents, build an understanding of the target project.
- Distinctive: line 119
design-tokens: Always run if CSS files, Tailwind config, or theme files exist
- Very specific: line 120
components: Always run if .tsx, .jsx, .vue, or .svelte files exist
- Distinctive: line 122
accessibility: Always run if UI components exist
- Distinctive: line 125
security: Always run if frontend code exists
- Very specific: line 126
seo-meta: Run if index.html exists, OR if a meta-framework is detected (next.config.*, nuxt.config.*, remix.config.*, astro.config.*), OR …
- Distinctive: line 182
After all sub-agents complete, consolidate findings into a single report.
- Very specific: line 184
Read the report template from {skill_dir}/templates/report.md and fill it in with:
- Distinctive: line 187
All findings grouped by module
- Very specific: line 196
Create the directory {target_path}/docs/audits/ if it doesn't already exist.
- Very specific: line 197
Write the consolidated report to {target_path}/docs/audits/audit-frontend-report-{YYYY-MM-DD}.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Front-End Architecture Audit Orchestrator
You are a front-end architecture audit orchestrator. Your job is to dispatch parallel review sub-agents and consolidate their findings into a single actionable report.
Usage: /audit-frontend [modules] [path]
Arguments (all optional):
modules: Comma-separated list of modules to run. Default:allpath: Directory to scan. Default: current working directory (.)--include-passing: Show full details for PASS items in the report. By default, PASS items are listed as brief one-line bullets to keep the report concise. With this flag, PASS items get the same detailed format as NEEDS IMPROVEMENT and FAIL items.
Available modules: design-tokens, components, accessibility, performance, code-quality, security, seo-meta
Examples:
/audit-frontend → all modules, current directory
/audit-frontend components → just components module, current directory
/audit-frontend accessibility,performance → two modules, current directory
/audit-frontend all ./src → all modules, specific path
/audit-frontend design-tokens ./app → one module, specific path
/audit-frontend --include-passing → all modules, full details for all ratings
/audit-frontend components --include-passing → one module, full detailsExecution Process
Step 0: Worker Setup
Module workers run as the ai-skills-readonly agent type when it is installed. Compared with
general-purpose it starts with far less context: only the tools it needs (Read, Grep, Glob, Bash), no
CLAUDE.md files, and a short system prompt. The definition ships with this skill at
{skill_dir}/agents/ai-skills-readonly.md. Installing it is optional and the skill works the same
without it; {skill_dir} is resolved in Step 4, so resolve it now if needed.
- If
ai-skills-readonlyis listed in this session's available agent types, setWORKER_TYPE = "ai-skills-readonly". Otherwise setWORKER_TYPE = "general-purpose". Either way this run continues; agent definitions load when a session starts, so an install made now applies from the next session. - Offer an install or update only when a person is answering in this session. Never ask in
claude -p, CI, a scheduled or autonomous run, and never ask if~/.claude/.ai-skills-workers-declinedexists. Compare the shipped file with the installed one:grep -m1 '^version:' "{skill_dir}/agents/ai-skills-readonly.md" grep -m1 '^version:' ~/.claude/agents/ai-skills-readonly.md 2>/dev/null- Not installed: show the user the shipped file, then ask.
- Installed with a lower version: show
diff ~/.claude/agents/ai-skills-readonly.md "{skill_dir}/agents/ai-skills-readonly.md", then ask. - Installed with the same or a higher version: nothing to ask.
- Ask with AskUserQuestion: Install (recommended) / Not now / Don't ask again.
- Install:
mkdir -p ~/.claude/agents && cp "{skill_dir}/agents/ai-skills-readonly.md" ~/.claude/agents/, then tell the user it takes effect from their next session. - Don't ask again:
touch ~/.claude/.ai-skills-workers-declined. - Not now: continue.
- Install:
Step 1: Parse Arguments
Parse the user's input to determine:
- Which modules to run (default: all)
- Target path (default:
.) - Whether
--include-passingflag is set (default: false)
Strip --include-passing from the arguments before parsing modules/path.
If the argument is a path (starts with ., /, or contains /), treat it as the path with all modules.
If the argument is a comma-separated list of known module names, treat it as module selection.
If two arguments, first is modules, second is path.
Step 2: Recon — Build Front-End Context
Before dispatching any module agents, build an understanding of the target project. This context will be passed to every sub-agent.
2a. Discover structure (use Glob and Bash ls):
- List top-level directories in the target path
- Glob for
package.json,tsconfig.json,vite.config.*,next.config.*,webpack.config.* - Glob for styling:
tailwind.config.*,postcss.config.*,*.css,styled-components,emotion - Glob for component directories:
src/components/**,src/ui/**,src/pages/** - Glob for test files:
**/*.test.*,**/*.spec.*,e2e/**,__tests__/** - Glob for config:
.eslintrc*,eslint.config.*,.prettierrc*,CLAUDE.md
2b. Read available documentation (use Read, skip if file doesn't exist):
{target_path}/CLAUDE.md{target_path}/README.md{target_path}/package.json(dependencies reveal framework, styling, testing choices){target_path}/tsconfig.jsonor{target_path}/tsconfig.app.json(strict mode, paths)- Main CSS file (first 100 lines — reveals design token strategy)
- Tailwind/PostCSS config if present
{target_path}/docs/audits/ACCEPTED_RISKS.md, or{target_path}/architecture-mds/docs/security/ACCEPTED_RISKS.mdwhere the repo keeps its architecture docs there — Previously triaged findings marked as accepted risk. If this file exists, include its contents in the front-end context passed to sub-agents. Sub-agents MUST NOT re-flag these as new findings. They may reference them as "previously accepted" if the risk profile has materially changed (e.g., new code paths, changed patterns), but should not generate a new finding for the same issue.
2c. Produce a front-end context summary (20-40 lines) covering:
- Framework: React, Vue, Angular, Next.js, etc. + version
- Styling approach: Tailwind, CSS Modules, styled-components, inline styles, CSS-in-JS
- Build tool: Vite, Webpack, Next.js, CRA
- TypeScript: Strict mode? Path aliases? Any
anyusage? - State management: Context, Redux, Zustand, Jotai, etc.
- Routing: React Router, Next.js file routing, etc.
- Testing: Vitest, Jest, Playwright, Cypress, Testing Library
- Component structure: Feature folders, atomic design, flat structure
- Design tokens: CSS variables, theme files, Tailwind config
- Dark mode: Strategy (class toggle, media query, CSS variables)
Step 3: Auto-Detect Applicable Modules
Using the structure discovered in Step 2, determine which modules are relevant:
- design-tokens: Always run if CSS files, Tailwind config, or theme files exist
- components: Always run if
.tsx,.jsx,.vue, or.sveltefiles exist- Responsive/mobile check: When checking components, the sub-agent should also verify responsive design patterns: all features must work on mobile, tablet (iPad), and desktop. Check for hover-only interactions without touch alternatives (e.g.,
hidden group-hover:flex,opacity-0 group-hover:opacity-100),touch-noneon interactive elements, mouse-only event handlers (onMouseEnter/Leave) without touch fallbacks, andhiddenclasses that remove functionality rather than adapting layout.
- Responsive/mobile check: When checking components, the sub-agent should also verify responsive design patterns: all features must work on mobile, tablet (iPad), and desktop. Check for hover-only interactions without touch alternatives (e.g.,
- accessibility: Always run if UI components exist
- performance: Always run
- code-quality: Always run
- security: Always run if frontend code exists
- seo-meta: Run if
index.htmlexists, OR if a meta-framework is detected (next.config.*,nuxt.config.*,remix.config.*,astro.config.*), OR if layout/head files exist (_app.tsx,_document.tsx,layout.tsx, or any file containing<head>or<meta>patterns)
Skip modules that have no applicable files. Log which modules are being run and which are skipped.
Step 4: Resolve Skill Directory and Module Paths
Resolve the skill directory path by running: echo $HOME/.claude/skills/audit-frontend
Each applicable module's prompt lives at:
{skill_dir}/modules/design-tokens.md{skill_dir}/modules/components.md{skill_dir}/modules/accessibility.md{skill_dir}/modules/performance.md{skill_dir}/modules/code-quality.md{skill_dir}/modules/security.md{skill_dir}/modules/seo-meta.md
Do not Read the module files yourself. Confirm they exist with one Glob (or ls) of
{skill_dir}/**/*.md, then pass the absolute paths to the workers, which read them. Every worker
also reads {skill_dir}/references/worker-brief.md, which holds the scoring scale and output
format. Pasting this text into each prompt would load it into this session and write it out again
once per worker, for no gain: the worker needs the full text either way.
Step 5: Dispatch Sub-Agents in Parallel
For each applicable module, spawn a sub-agent with subagent_type: "{WORKER_TYPE}" (from Step 0).
CRITICAL: Launch ALL applicable sub-agents in a SINGLE message with multiple Agent tool calls for maximum parallelism.
Each sub-agent prompt MUST include:
- The front-end context summary (from Step 2)
- The absolute paths of its module file and
worker-brief.md, with the instruction to read both in full first - The target path to scan
Sub-agent prompt template:
You are conducting a front-end architecture audit. Your module is: {MODULE_NAME}
TARGET PATH: {target_path}
YOUR INSTRUCTIONS: read these two files in full, in this order, before you look at any target
code. They are binding instructions for this task, not reference material, and your output is
checked against them:
1. {skill_dir}/modules/{module}.md: what to check
2. {skill_dir}/references/worker-brief.md: how to score each item and the exact output format
FRONT-END CONTEXT (discovered by orchestrator — use this to understand the project):
{FRONTEND_CONTEXT_SUMMARY}
Use the context above to understand the project's conventions. When checking patterns, consider what the project is ALREADY doing well vs. what needs improvement. Findings should be actionable and specific to this codebase, not generic advice.
Return only the output worker-brief.md defines.Step 6: Consolidate Report
After all sub-agents complete, consolidate findings into a single report.
Read the report template from {skill_dir}/templates/report.md and fill it in with:
- Executive summary with overall health assessment
- Score card table (PASS/NEEDS IMPROVEMENT/FAIL counts by module)
- All findings grouped by module
- Deduplicate any findings that overlap between modules
- Prioritize FAIL items first, then NEEDS IMPROVEMENT
- Include specific file paths and line numbers for every finding
Report verbosity based on --include-passing flag:
- Default (flag NOT set): Show full detailed findings (files examined, findings, recommendations) only for NEEDS IMPROVEMENT and FAIL items. PASS items should be listed as brief one-line bullets (e.g., "- Color Tokens: PASS") grouped under a "Passing Checks" section. This keeps the report concise and focused on actionable items.
--include-passingset: Show full detailed findings for ALL items including PASS. Every category gets the complete format with files examined, findings, and recommendations regardless of rating.
Create the directory {target_path}/docs/audits/ if it doesn't already exist.
Write the consolidated report to {target_path}/docs/audits/audit-frontend-report-{YYYY-MM-DD}.md.
Tell the user where the report was written and give a brief summary of findings.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

