skills/site-debug/SKILL.md
Debug a website/webapp systematically. Find the bug, fix it, verify the fix, log it permanently.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers site-debugInstall 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.
Debug a website/webapp systematically. Find the bug, fix it, verify the fix, log it permanently.
Sequential pipeline with pre-built skill agents. Do NOT skip phases.
| Phase | Skills to Load |
|-------|---------------|
| Phase 0 | pre-debug-check (check anti-patterns FIRST), website-guardian (baseline) |
| Phase 1 | screenshot-dissector (if visual bug) |
| Phase 2 | isolate-before-iterate, systematic-debugging |
| Phase 3 | systematic-debugging (hypothesis → test → fix) |
| Phase 4 | frontend-design or senior-backend (based on bug location), data-consistency-check |
| Phase 5 | qa-gate (verify fix didn't break anything) |
| Phase 6 | error-memory (MANDATORY — log the bug permanently) |
$ARGUMENTS = bug description, URL, screenshot, or project directory--phase N = skip to Phase NBefore asking the user anything:
git diff --stat HEAD~3 — what changed recently?grep -l "$(date +%Y-%m-%d)" ~/.claude/anti-patterns.md — any bugs logged today?ps aux | grep -E "(next|vite|express)" | grep -v grepcurl -s localhost:3000 | head -20~/.claude/recurring-bugs.md for known issues in this projectPROJECT_NAME=$(basename "$(pwd)")
[ -f package.json ] && node -e "const p=require('./package.json'); console.log('Stack:', Object.keys(p.dependencies||{}).filter(d=>/react|next|vue|svelte|express/.test(d)).join(', '))"
git log --oneline -5 2>/dev/null
git status --short 2>/dev/null
Read these yourself (no agent):
~/.claude/anti-patterns.md — has this bug been seen before? If YES: announce it, show the prior fix, use an ESCALATED approach (the prior fix was insufficient).~/.claude/recurring-bugs.md — repeat offender?CRITICAL: Load site-specific domain knowledge. Match current project to its update command and READ IT:
ufc-predict / mmalogic → ~/.claude/commands/mmalogic.md + ~/.claude/memory/topics/ufc_website_maintenance_rules.mddiamond-predictions → ~/.claude/commands/update-diamond.mdcourtside-ai → ~/.claude/commands/update-courtside.mdStrain-Finder / mystrainai → ~/.claude/commands/update-mystrainai.mdenhanced-health → ~/.claude/commands/update-enhancedhealth.mdaria-research → ~/.claude/commands/update-researcharia.mddad-financial → ~/.claude/commands/update-nestwisehq.mdThe update command defines what "working correctly" looks like for this site — integration registry, domain rules, known anti-patterns. Use it to understand the bug in context.
Write: _debug/phase0_context.md
Do this yourself:
Write: _debug/phase1_baseline.md — working items + exact bug symptoms.
Do this yourself:
If the bug can't be isolated: log WHY (external dependency, race condition, state-dependent) in _debug/phase2_isolation.md and proceed with extra caution.
Write: _debug/phase2_isolation.md — reproduction steps, data flow trace, hypothesis.
For small bugs (1-2 files): do this yourself. For complex bugs (5+ files, unclear cause): spawn ONE general-purpose agent:
"DIAGNOSIS AGENT
Context: Read _debug/phase0_context.md, _debug/phase1_baseline.md, _debug/phase2_isolation.md.
Also read: ~/.claude/anti-patterns.md and ~/.claude/skills/systematic-debugging/SKILL.md.
Your task: The bug is [description]. The hypothesis is [from phase 2].
- Test the hypothesis with ONE targeted check (read a specific file, check a specific value)
- If wrong, form a new hypothesis (max 3 attempts)
- Do NOT change code — diagnosis only
- Output: Root cause with evidence, written to _debug/phase3_diagnosis.md"
Write: _debug/phase3_diagnosis.md — root cause, evidence, affected files.
Do this yourself — do NOT delegate fixes to agents:
_debug/phase3_diagnosis.md for root cause~/.claude/skills/frontend-design/SKILL.md patterns~/.claude/skills/senior-backend/SKILL.md patterns~/.claude/skills/site-update-protocol/SKILL.md rulesDo this yourself:
npm run build or equivalent — must passIf the fix broke something else: fix THAT before proceeding. Do not declare done with regressions.
git add -A && git commit -m "fix: [short description of what was broken and why]
Root cause: [one line]
Fix: [one line]"
### [BUG_TITLE] — [DATE]
- **Context**: [project/file/component]
- **Bug**: [what was broken]
- **Root cause**: [why it was broken — the real reason, not the symptom]
- **Flawed assumption**: [what the AI believed that was false]
- **Fix**: [what actually fixed it]
- **Prevention**: [one-line rule for future agents]
- **Applies when**: [when to check this before acting]
~/.claude/recurring-bugs.md with escalated analysis.SITE DEBUG COMPLETE
===================
Bug: [description]
Root cause: [what was actually wrong]
Fix: [what was changed] — [files]
Verified: baseline ✓ | data-check ✓ | visual ✓ | build ✓
Logged: anti-patterns.md ✓ | recurring-bugs.md [✓/n/a]
Prevention rule: [one-line rule for future agents]
Debug files: _debug/ (phase reports)
_debug/ files. Each phase reads prior phases.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.