.claude/skills/debug/SKILL.md
Systematically diagnose and fix errors, test failures, and unexpected behavior.
npx skillsauth add carrot-foundation/methodology-rules 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.
Gather all relevant information before making changes:
git diff, git log --oneline -5)Determine the error category:
pnpm nx ts <project> to reproducepnpm nx lint <project> to reproducepnpm nx test <project> to reproduce, then narrow to a single test file with pnpm nx test <project> -- --testPathPattern=<file>pnpm nx build <project> to reproduceNarrow down to the smallest reproducible scope: a single nx run <project>:<target> command or a single test file.
Run all quality checks to confirm the fix and ensure no regressions:
pnpm lint:affected
pnpm ts:affected
pnpm test:affected
All three must pass before the fix is considered complete.
databases
Create and modify Zod schemas for runtime validation with proper type inference.
testing
Write Vitest unit tests following project conventions with proper stubs and assertions.
tools
Autonomously implement a task following project conventions with iterative verification.
testing
Analyze a pull request diff and provide structured feedback on correctness, conventions, and quality.