apps/cli/src/resources/skills/debug-like-expert/SKILL.md
Deep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis.
npx skillsauth add gannonh/kata-cloud-agents debug-like-expertInstall 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.
The skill emphasizes treating code you wrote with MORE skepticism than unfamiliar code, as cognitive biases about "how it should work" can blind you to actual implementation errors. Use scientific method to systematically identify root causes rather than applying quick fixes. </objective>
<context> This skill activates when standard troubleshooting has failed. The issue requires methodical investigation, not quick fixes. You are entering the mindset of a senior engineer who debugs with scientific rigor.Important: If you wrote or modified any of the code being debugged, you have cognitive biases about how it works. Your mental model of "how it should work" may be wrong. Treat code you wrote with MORE skepticism than unfamiliar code - you're blind to your own assumptions. </context>
<core_principle> VERIFY, DON'T ASSUME. Every hypothesis must be tested. Every "fix" must be validated. No solutions without evidence.
ESPECIALLY: Code you designed or implemented is guilty until proven innocent. Your intent doesn't matter - only the code's actual behavior matters. Question your own design decisions as rigorously as you'd question anyone else's. </core_principle>
<analysis_only_rule> THIS SKILL IS READ-ONLY. DO NOT MODIFY CODE.
The entire purpose is deep analysis and diagnosis. Making changes during investigation:
You are a diagnostician, not a surgeon. Present findings, then let the user decide. </analysis_only_rule>
<quick_start>
<evidence_gathering>
Before proposing any solution:
A. Document Current State
B. Map the System
C. Gather External Knowledge (when needed)
See references/when-to-research.md for detailed guidance on research strategy.
</evidence_gathering>
<root_cause_analysis>
A. Form Hypotheses
Based on evidence, list possible causes:
B. Test Each Hypothesis
For each hypothesis:
See references/hypothesis-testing.md for scientific method application.
C. Eliminate or Confirm
Don't move forward until you can answer:
</root_cause_analysis>
<solution_proposal>
Only after confirming root cause:
A. Design Recommended Fix
B. Document, Don't Implement
DO NOT make any code changes. Present your recommendations only.
See references/verification-patterns.md for verification approaches to use after implementation.
</solution_proposal>
</quick_start>
<critical_rules>
</critical_rules>
<success_criteria>
Before completing:
If you can't answer "yes" to all of these, keep investigating.
CRITICAL: Present findings via decision gate. Do NOT implement changes.
</success_criteria>
<output_format>
## Issue: [Problem Description]
### Evidence
[What you observed - exact errors, behaviors, outputs]
### Investigation
[What you checked, what you found, what you ruled out]
### Root Cause
[The actual underlying problem with evidence]
### Recommended Fix
[What SHOULD be changed and WHY - specific files, lines, code]
### Verification Plan
[How to confirm the fix works after implementation]
### Risk Assessment
[Potential side effects, what could break, confidence level]
</output_format>
<advanced_topics>
For deeper topics, see reference files:
Debugging mindset: references/debugging-mindset.md
Investigation techniques: references/investigation-techniques.md
Hypothesis testing: references/hypothesis-testing.md
Verification patterns: references/verification-patterns.md
Research strategy: references/when-to-research.md
</advanced_topics>
<decision_gate>
After presenting findings, ALWAYS offer these options:
─────────────────────────────────────────
ANALYSIS COMPLETE
What would you like to do?
1. **Fix it now** - I'll implement the recommended changes
2. **Create findings document** - Save analysis to a markdown file
3. **Explore further** - Investigate additional hypotheses
4. **Get second opinion** - Review with different assumptions
5. **Other** - Tell me what you need
─────────────────────────────────────────
Wait for user response before taking any action.
This gate is MANDATORY. Never skip it. Never auto-implement.
</decision_gate>
tools
This skill should be used when a new project session starts and the user expresses what they want to build, asks to "start a project", "spec this out", "help me plan", or describes a feature/tool/system they want to create. Guides structured intent capture through goal, constraints, architecture, acceptance criteria, tasks, and non-goals.
tools
Push current branch changes to origin and create or update the corresponding pull request (with the correct base branch); use when asked to push, publish updates, or create pull request.
development
Pull latest origin/<base-branch> into the current local branch and resolve merge conflicts (aka update-branch). Use when Codex needs to sync a feature branch with origin, perform a merge-based update (not rebase), and guide conflict resolution best practices.
tools
Use Symphony's `linear_graphql` client tool for raw Linear GraphQL operations such as comment editing and upload flows.