Automatically troubleshoot unexpected results OR command/script errors without user request. Triggers when: (1) unexpected behavior - command succeeded but expected effect didn't happen, missing expected errors, wrong output, silent failures; (2) explicit failures - stderr, exceptions, non-zero exit, SDK/API errors. Applies systematic diagnosis using error templates, hypothesis testing, and web research for any Stack Overflow-worthy issue.
Automatically troubleshoots unexpected behavior and command errors using systematic diagnosis and research.
/plugin marketplace add iciakky/cc-general-skills/plugin install cc-general-skills@cc-general-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/debug-notes-template.mdreferences/common-error-patterns.mdreferences/environment-info-guide.mdreferences/error-template-patterns.mdreferences/problem-solving-mindset.mdreferences/systematic-debugging-methodology.mdreferences/troubleshooting-sop.mdrepackage.pyThis skill enables systematic troubleshooting of unexpected behavior and technical failures - whether explicit errors or silent anomalies where commands succeed but don't produce expected results. Proactively investigate any mismatch between expected and actual outcomes using a structured approach that balances quick fixes with thorough analysis.
Trigger this skill automatically when encountering either:
Key principle: If there's any mismatch between expected and actual behavior - whether explicit error or silent anomaly - this skill applies.
When unexpected behavior or an error occurs, immediately assess the situation:
Unexpected Behavior or Error Detected
↓
What type of issue is this?
│
├─ UNEXPECTED BEHAVIOR (command succeeded but wrong result)
│ ↓
│ Document the mismatch:
│ - What was expected?
│ - What actually happened?
│ - Any error messages? (none expected for unexpected behavior)
│ ↓
│ Is the cause obvious? (e.g., wrong variable, typo, wrong file)
│ ├─ YES → Apply quick fix
│ │ ↓
│ │ Did expected behavior occur?
│ │ ├─ YES → Done ✓
│ │ └─ NO → Revert, proceed to Rigorous Investigation
│ │
│ └─ NO → Proceed directly to Rigorous Investigation
│
└─ EXPLICIT ERROR (stderr, exception, non-zero exit)
↓
Is the fix obvious from the error message itself?
├─ YES → Apply quick fix (Happy Case Path)
│ ↓
│ Did it work?
│ ├─ YES → Done ✓
│ └─ NO → Revert changes, proceed to Rigorous Investigation
│
└─ NO → Is this a common trivial error?
├─ YES → Apply known fix based on experience
│ ↓
│ Did it work?
│ ├─ YES → Done ✓
│ └─ NO → Revert changes, proceed to Rigorous Investigation
│
└─ NO → Proceed directly to Rigorous Investigation
For issues with obvious causes and fixes:
Unexpected Behavior Quick Fixes:
Explicit Error Quick Fixes:
Action: Apply the fix immediately and verify the result.
Failure criteria for unexpected behavior: If expected behavior still doesn't occur, revert and switch to rigorous investigation.
Failure criteria for explicit errors: If the error message is unchanged OR the problem clearly worsened, revert immediately and switch to rigorous investigation.
When quick fixes fail or the problem is non-trivial, follow this systematic approach:
For Explicit Errors: SDK/API errors often follow fixed templates. Extract the template by:
Example:
Original: FileNotFoundError: [Errno 2] No such file or directory: '/home/user/data.csv'
Template: FileNotFoundError No such file or directory
See {baseDir}/references/error-template-patterns.md for detailed guidance.
For Unexpected Behavior: Document the behavior pattern:
Formulate a search query focusing on the behavior:
Collect relevant environment details when:
IMPORTANT: Avoid collecting sensitive information. If sensitive data is necessary, explicitly request user authorization first.
See {baseDir}/references/environment-info-guide.md for collection guidelines and privacy protection.
Use efficient research strategies:
Token Efficiency: For complex investigations, delegate research to subagents to avoid context exhaustion.
For difficult problems, create a debug notes file to:
Use the template in {baseDir}/assets/debug-notes-template.md to structure notes.
Based on research:
For unexpected behavior: Focus theories on "why the expected effect didn't occur" rather than "why an error happened".
Once the correct theory is identified:
For complex investigations:
{baseDir}/references/problem-solving-mindset.md)This skill includes:
problem-solving-mindset.md - Scientific approach to problem-solving: bold hypotheses, careful verification, and disciplined reasoningsystematic-debugging-methodology.md - Practical debugging framework: Occam's Razor, diagnostic scripts, evidence hierarchy, and real-world examplestroubleshooting-sop.md - Detailed standard operating procedures for systematic troubleshootingerror-template-patterns.md - Guide to identifying and extracting error message templatesenvironment-info-guide.md - Environment information collection guidelines with privacy protectioncommon-error-patterns.md - Database of frequently encountered trivial errors and quick fixesdebug-notes-template.md - Template for structured debugging documentationThese resources are loaded as needed during the troubleshooting process.
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.