Index of every page on this site: llms.txt
All skills
victory-hugo avatar

/systematic-debugging

@0b19307
Run it yourself

遇到任何 bug、测试失败或异常行为时使用,在提出修复方案之前执行

  • 11 files
  • 39.9 KB
  • Updated 5 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/victory-hugo/s2-agent-skill/systematic-debugging

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

CREATION-LOG.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Creation Log: Systematic Debugging Skill

Reference example of extracting, structuring, and bulletproofing a critical skill.

Source Material

Extracted debugging framework from /Users/jesse/.claude/CLAUDE.md:

  • 4-phase systematic process (Investigation → Pattern Analysis → Hypothesis → Implementation)
  • Core mandate: ALWAYS find root cause, NEVER fix symptoms
  • Rules designed to resist time pressure and rationalization

Extraction Decisions

What to include:

  • Complete 4-phase framework with all rules
  • Anti-shortcuts ("NEVER fix symptom", "STOP and re-analyze")
  • Pressure-resistant language ("even if faster", "even if I seem in a hurry")
  • Concrete steps for each phase

What to leave out:

  • Project-specific context
  • Repetitive variations of same rule
  • Narrative explanations (condensed to principles)

Structure Following skill-creation/SKILL.md

  1. Rich when_to_use - Included symptoms and anti-patterns
  2. Type: technique - Concrete process with steps
  3. Keywords - "root cause", "symptom", "workaround", "debugging", "investigation"
  4. Flowchart - Decision point for "fix failed" → re-analyze vs add more fixes
  5. Phase-by-phase breakdown - Scannable checklist format
  6. Anti-patterns section - What NOT to do (critical for this skill)

Bulletproofing Elements

Framework designed to resist rationalization under pressure:

Language Choices

  • "ALWAYS" / "NEVER" (not "should" / "try to")
  • "even if faster" / "even if I seem in a hurry"
  • "STOP and re-analyze" (explicit pause)
  • "Don't skip past" (catches the actual behavior)

Structural Defenses

  • Phase 1 required - Can't skip to implementation
  • Single hypothesis rule - Forces thinking, prevents shotgun fixes
  • Explicit failure mode - "IF your first fix doesn't work" with mandatory action
  • Anti-patterns section - Shows exactly what shortcuts look like

Redundancy

  • Root cause mandate in overview + when_to_use + Phase 1 + implementation rules
  • "NEVER fix symptom" appears 4 times in different contexts
  • Each phase has explicit "don't skip" guidance

Testing Approach

Created 4 validation tests following skills/meta/testing-skills-with-subagents:

Test 1: Academic Context (No Pressure)

  • Simple bug, no time pressure
  • Result: Perfect compliance, complete investigation

Test 2: Time Pressure + Obvious Quick Fix

  • User "in a hurry", symptom fix looks easy
  • Result: Resisted shortcut, followed full process, found real root cause

Test 3: Complex System + Uncertainty

  • Multi-layer failure, unclear if can find root cause
  • Result: Systematic investigation, traced through all layers, found source

Test 4: Failed First Fix

  • Hypothesis doesn't work, temptation to add more fixes
  • Result: Stopped, re-analyzed, formed new hypothesis (no shotgun)

All tests passed. No rationalizations found.

Iterations

Initial Version

  • Complete 4-phase framework
  • Anti-patterns section
  • Flowchart for "fix failed" decision

Enhancement 1: TDD Reference

  • Added link to skills/testing/test-driven-development
  • Note explaining TDD's "simplest code" ≠ debugging's "root cause"
  • Prevents confusion between methodologies

Final Outcome

Bulletproof skill that:

  • ✅ Clearly mandates root cause investigation
  • ✅ Resists time pressure rationalization
  • ✅ Provides concrete steps for each phase
  • ✅ Shows anti-patterns explicitly
  • ✅ Tested under multiple pressure scenarios
  • ✅ Clarifies relationship to TDD
  • ✅ Ready for use

Key Insight

Most important bulletproofing: Anti-patterns section showing exact shortcuts that feel justified in the moment. When Claude thinks "I'll just add this one quick fix", seeing that exact pattern listed as wrong creates cognitive friction.

Usage Example

When encountering a bug:

  1. Load skill: skills/debugging/systematic-debugging
  2. Read overview (10 sec) - reminded of mandate
  3. Follow Phase 1 checklist - forced investigation
  4. If tempted to skip - see anti-pattern, stop
  5. Complete all phases - root cause found

Time investment: 5-10 minutes Time saved: Hours of symptom-whack-a-mole


Created: 2025-10-03 Purpose: Reference example for skill extraction and bulletproofing

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 0b19307. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 5 months ago

README badge

README badge for victory-hugo/s2-agent-skill/systematic-debugging