skills/site-audit/SKILL.md
Run a comprehensive website/webapp audit. Finds every issue across frontend, backend, design, and functionality — then fixes the critical ones.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers site-auditInstall 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.
Run a comprehensive website/webapp audit. Finds every issue across frontend, backend, design, and functionality — then fixes the critical ones.
Sequential pipeline with pre-built skill agents. Complete each phase fully before starting the next.
| Phase | Skills to Load |
|-------|---------------|
| Phase 0 | website-guardian (Rule Zero, baseline) |
| Phase 2 | frontend-design, react-best-practices, senior-frontend |
| Phase 3 | senior-backend, code-reviewer, senior-architect |
| Phase 4 | screenshot-dissector, data-consistency-check |
| Phase 5 | error-memory (log all bugs found) |
| Phase 6 | qa-gate (final verification) |
$ARGUMENTS = project directory path (default: current directory)--phase N = skip to Phase N (assumes earlier phases complete)--quick = Phases 0-2 only (recon + frontend scan, no agents, ~5 min)Do this yourself — do NOT spawn an agent:
PROJECT_NAME=$(basename "$(pwd)")
echo "=== Project: $PROJECT_NAME ==="
# Tech stack
[ -f package.json ] && node -e "const p=require('./package.json'); console.log('Stack:', Object.keys(p.dependencies||{}).filter(d=>/react|next|vue|svelte|express|fastify/.test(d)).join(', '))"
[ -f requirements.txt ] && echo "Python project"
[ -f wrangler.toml ] && echo "Cloudflare Workers"
# Size
find src -name "*.tsx" -o -name "*.ts" -o -name "*.jsx" -o -name "*.js" 2>/dev/null | wc -l | xargs echo "Source files:"
find src -name "*.tsx" -o -name "*.jsx" 2>/dev/null | wc -l | xargs echo "Components:"
# Git state
git log --oneline -3 2>/dev/null
git status --short 2>/dev/null
# Running servers
ps aux | grep -E "(next|vite|express|flask|uvicorn|wrangler)" | grep -v grep 2>/dev/null || echo "No dev servers running"
Read anti-patterns and project memory yourself:
~/.claude/anti-patterns.mdCRITICAL: Load site-specific domain knowledge. Match the current project to its update command and READ IT:
| Project directory contains | Read this command for domain knowledge |
|---------------------------|---------------------------------------|
| ufc-predict or mmalogic | ~/.claude/commands/mmalogic.md + ~/.claude/memory/topics/ufc_website_maintenance_rules.md |
| diamond-predictions or diamondpredictions | ~/.claude/commands/update-diamond.md |
| courtside-ai | ~/.claude/commands/update-courtside.md |
| Strain-Finder or mystrainai | ~/.claude/commands/update-mystrainai.md |
| enhanced-health or enhancedhealthai | ~/.claude/commands/update-enhancedhealth.md |
| aria-research or researcharia | ~/.claude/commands/update-researcharia.md |
| dad-financial or nestwisehq | ~/.claude/commands/update-nestwisehq.md |
The update command contains: canonical paths, integration registry, domain rules, known anti-patterns, and the exact output format for that site. Use this as your audit checklist — it defines what "correct" looks like for this specific site.
If none match, fall back to generic audit.
Write: _audit/phase0_context.md with project summary + which site-specific command was loaded.
Do this yourself — read the codebase directly:
package.json (dependencies, scripts)Write: _audit/phase1_recon.md — file counts, routes, tech stack, architecture notes.
Spawn ONE general-purpose agent:
"FRONTEND AUDIT AGENT
Context: Read _audit/phase0_context.md and _audit/phase1_recon.md first.
Read and follow these protocols:
1. ~/.claude/skills/frontend-design/SKILL.md — anti-slop checklist
2. ~/.claude/skills/react-best-practices/SKILL.md — performance rules
Your task:
- Read every page/component file listed in phase1_recon.md
- For EACH file, check: accessibility (ARIA, contrast, touch targets), performance (unnecessary re-renders, missing memo, barrel imports), design quality (generic fonts? boring layouts?), responsive design, missing states (empty/loading/error)
- Read the site-specific update command identified in Phase 0 and check EVERY item in its integration registry and domain rules
- For UFC: read ~/.claude/memory/topics/ufc_website_maintenance_rules.md and check ALL 15 items
- For Diamond: verify both NHL and MLB tabs work, all GitHub Actions buttons trigger correctly
- For Courtside: verify admin page is intact (ALL tabs, ALL buttons — this was destroyed before)
- For ResearchAria: verify D1 database, paper search, login flow, auto-fetch pipeline
- For ALL sites: test every action button (Generate Picks, Refresh Data, etc.) — don't just check they render, click them and verify the response
Output format — write to _audit/phase2_frontend.md:
## P0 — Critical (crashes, security, data wrong)
- [file:line] [issue] [fix suggestion]
## P1 — High (broken features, bad UX)
- [file:line] [issue] [fix suggestion]
## P2 — Medium (design issues, performance)
- [file:line] [issue] [fix suggestion]
## P3 — Low (polish, minor improvements)
- [file:line] [issue] [fix suggestion]
## Stats
- Files scanned: N
- Issues found: P0: N, P1: N, P2: N, P3: N
"
If --quick was specified, STOP HERE and present Phase 2 findings.
Spawn ONE general-purpose agent:
"BACKEND AUDIT AGENT
Context: Read _audit/phase0_context.md and _audit/phase1_recon.md first.
Read and follow these protocols:
1. ~/.claude/skills/senior-backend/SKILL.md — audit checklist
2. ~/.claude/skills/audit/SKILL.md — secrets scanning
Your task:
- Read ALL API routes, middleware, auth logic, database queries
- Check for: hardcoded secrets/API keys, unauthenticated routes, SQL/command injection, missing CORS, N+1 queries, missing indexes, no error handling, god files
- Scan for secrets: grep for patterns matching API keys, tokens, passwords in source
Output format — write to _audit/phase3_backend.md:
[Same P0-P3 format as Phase 2]
"
Skills: screenshot-dissector + data-consistency-check
Do this yourself using Claude Preview or Claude in Chrome:
~/.claude/skills/screenshot-dissector/SKILL.md — follow the pixel-level examination protocol~/.claude/skills/data-consistency-check/SKILL.md — validate all numbers/stats before presentingscreenshot-dissector protocol: examine every element, every value, every statedata-consistency-check: profit>0 requires wins>0, W+L=total, etc.Write: _audit/phase4_visual.md — visual issues with screenshots/descriptions.
Do this yourself — do NOT spawn an agent for fixes:
_audit/phase2_frontend.md and _audit/phase3_backend.md and _audit/phase4_visual.mdCommit after all fixes:
git add -A && git commit -m "site-audit: fix P0/P1 issues
[list each fix on its own line]"
npm run build (or equivalent) — must passWrite: _audit/phase6_final.md — pass/fail for each verification item.
SITE AUDIT COMPLETE
===================
Project: [name] | Stack: [framework] | Files: [N]
| Category | P0 | P1 | P2 | P3 | Fixed |
|----------|----|----|----|----|-------|
| Frontend | N | N | N | N | N |
| Backend | N | N | N | N | N |
| Visual | N | N | N | N | N |
| TOTAL | N | N | N | N | N |
Fixed this session:
- [file]: [what was fixed]
Needs manual attention:
- [file:line]: [issue] — [why it needs human decision]
Audit files: _audit/ (6 phase reports)
_audit/ directory. Each phase reads prior phases' files.tools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.