From forge-dev
Four-phase debugging methodology — root cause before fixes. USE WHEN encountering any bug, test failure, unexpected behavior, or build failure.
npx claudepluginhub n4m3z/forge-devThis skill uses the workspace's default tool permissions.
Find the root cause before attempting fixes. Random fixes waste time and create new bugs.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Share bugs, ideas, or general feedback.
Find the root cause before attempting fixes. Random fixes waste time and create new bugs.
Complete each phase before proceeding to the next.
Before attempting any fix:
In multi-component systems, add diagnostic instrumentation at each component boundary before proposing fixes. Run once to gather evidence showing WHERE it breaks, then investigate that specific component.
If three or more fix attempts have failed, stop fixing. This is an architectural problem, not a bug:
Discuss with the user before attempting more fixes. Question whether the pattern is fundamentally sound.
| Thought | Reality |
|---|---|
| "Quick fix for now, investigate later" | Later never comes. Root cause first. |
| "Just try changing X and see if it works" | That's guessing, not debugging. Form a hypothesis first. |
| "I don't fully understand but this might work" | Partial understanding guarantees partial fixes. |
| "It's probably X, let me fix that" | "Probably" is not root cause. Verify before fixing. |
| "I'll skip the test, I'll manually verify" | Manual verification doesn't prevent regressions. |
| "One more fix attempt" | After 2+ failures, question the architecture instead. |
| "Pattern says X but I'll adapt it differently" | Read the reference completely. Adaptation without understanding creates bugs. |
| "Here are the problems:" (lists fixes without investigation) | Listing fixes before investigating is guessing with confidence. |
@ConditionBasedWaiting.md @RootCauseTracing.md @DefenseInDepth.md @TestAcademic.md @TestPressure1.md @TestPressure2.md @TestPressure3.md