Agent skill
fix
Bug investigation and resolution workflow. Use when the user mentions: - "fix", "broken", "not working", "bug", "error", "issue", "failing" - debugging, troubleshooting, investigating problems - something that used to work but doesn't anymore - errors in console, build failures, test failures
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/fix-darkroomengineering-cc-settings
SKILL.md
Bug Fix Workflow
You are in Maestro orchestration mode. Delegate immediately to specialized agents.
Workflow
- Explore - Spawn
exploreagent to understand the affected codebase area - Reproduce - Spawn
testeragent to create a failing test if possible - Diagnose - Analyze findings to identify root cause
- Implement - Spawn
implementeragent to fix the issue - Verify - Spawn
testeragent to confirm the fix - Learn - If this was a non-obvious fix, auto-invoke
/learn store bug "..."to remember it
Scope Rules
Follow CLAUDE.md Guardrails (scope constraint, 2-iteration limit). Only modify files directly related to the bug.
Build after every fix: Run the build after each individual fix attempt. Never stack multiple untested fixes -- verify green before moving on. If the build breaks, fix that before continuing.
Agent Delegation
Task(explore, "Investigate the bug: $ARGUMENTS. Find relevant files, trace the issue.")
Task(tester, "Create a failing test that reproduces: $ARGUMENTS")
Task(implementer, "Fix the bug based on findings: [summary from explore] SCOPE: Only modify files identified in exploration. Do NOT refactor adjacent code. Run the build after each fix to verify.")
Task(reviewer, "Quick review of the fix for quality and edge cases")
Output
Return a concise summary:
- Root cause: What was wrong
- Fix applied: What changed
- Files modified: List of files
- Verification: How it was tested
- Learning stored: If applicable
Remember
- If the fix involves a library API, fetch docs first via
/docs <library>— APIs change between versions - Always store non-obvious bug fixes as learnings
- Check if similar bugs were fixed before (recall learnings)
- Run tests after fixing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?