analyze-fix
Skill0 starsChanged 3 months agoMITView on GitHub
Analyze and fix a problem with deep exploration, confidence check, solution variants, and autonomous implementation.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- loonylabs-dev/claude-setupword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- loonylabs-dev/claude-setup★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-fix-cheapSkill
- changelog-summarySkill
- claude-md-hygieneSkill
- codebase-designSkill
- create-stories-from-docsSkill
- domain-modelingSkill
- grillingSkill
- grill-meSkill
- handoverSkill
- implement-storiesSkill
- improve-codebase-architectureSkill
- setup-matt-pocock-skillsSkill
- step-by-stepSkill
- to-ticketsSkill
- update-claude-mdSkill
- wakeSkill
- work-with-meSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 21 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
If the user writes in German, respond in German.
- Distinctive: line 35
If on master or main: Create a branch automatically
- Distinctive: line 48
QUALITY GATE: Do not proceed on master/main until branch is created.
- Distinctive: line 66
If unclear: Ask all clarifying questions NOW, not later.
- Distinctive: line 74
Use Task tool with specialized agents for thorough analysis:
- Distinctive: line 84
Check recent git commits: git log --oneline -20
- Very specific: line 85
Check recent diffs: git diff HEAD~5..HEAD -- <relevant-paths>
- Distinctive: line 86
Check recent branches that were merged
- Distinctive: line 98
Before presenting to user, reflect:
- Distinctive: line 99
Do I fully understand the problem?
- Distinctive: line 128
QUALITY GATE: Wait for explicit user confirmation ("GO", "weiter", "ja", etc.) Do NOT proceed without clear signal from user.
- Distinctive: line 129
Do NOT proceed without clear signal from user.
- Distinctive: line 177
No over-engineering, but no shortcuts either
- Distinctive: line 178
If a more complex solution is clearly better, prefer it
- Distinctive: line 186
If user disagrees or wants changes, adjust before proceeding.
- Distinctive: line 196
Follow existing code patterns and conventions
- Distinctive: line 197
Use agents for complex implementations if needed
- Distinctive: line 198
No questions during implementation: - all clarifications should be done
- Distinctive: line 222
Do NOT skip this step
- Distinctive: line 315
Use background agents for long-running analysis
- Distinctive: line 319
Follow existing patterns in codebase
- Distinctive: line 320
No shortcuts that compromise maintainability
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyze & Fix Workflow
Goal: Deep problem analysis with exploration agents, user confirmation at confidence gate, solution variants, and autonomous implementation with tests and documentation.
LANGUAGE RULE
Always respond in the same language the user used in their request. If the user writes in German, respond in German. If in English, respond in English. This applies to all outputs, reports, and conversation.
Trigger: User describes a problem, error, or bug to analyze and fix.
Scope: Take /analyze-fix-cheap when the fault site and the symptom are clear and the work is essentially the fix itself. This skill earns its cost when the cause is unknown, several suspects are in play, or a regression is suspected — it buys exploration and solution variants with tokens.
PHASE 0: BRANCH CHECK
0.1 Verify Branch
Before anything else, check the current git branch.
git branch --show-current- If on
masterormain: Create a branch automatically - Branch naming:
fix/{{problem-slug}}- derive slug from problem description (lowercase, kebab-case, max 40 chars)
Action: Automatically create the branch without asking:
git checkout -b fix/{{problem-slug}}Then inform the user:
"Branch created: fix/{{problem-slug}}"QUALITY GATE: Do not proceed on master/main until branch is created.
PHASE 1: CLARIFICATION (if needed)
1.1 Check Problem Description
Review the user's problem description for clarity:
| Check | Question if unclear |
| Error location unclear | "Where exactly does the error occur?" |
| Expected behavior missing | "What should happen instead?" |
| Reproduction unclear | "How can I reproduce it?" |
| Multiple issues mixed | "Let's tackle the problems one at a time. Which one first?" |
If description is clear: Proceed directly to Phase 2. If unclear: Ask all clarifying questions NOW, not later.
PHASE 2: DEEP EXPLORATION & ANALYSIS
2.1 Launch Exploration Agents
Use Task tool with specialized agents for thorough analysis:
Parallel agent tasks:
1. Explore agent: Find all files related to the problem area
2. Explore agent: Trace the code path / data flow
3. Explore agent: Find similar patterns in codebaseFor regressions, also:
- Check recent git commits:
git log --oneline -20 - Check recent diffs:
git diff HEAD~5..HEAD -- <relevant-paths> - Check recent branches that were merged
2.2 Root Cause Analysis
Document findings:
- Affected files (with line numbers)
- Code flow causing the issue
- Root cause (the actual "why")
- Regression check (was this working before? what changed?)
2.3 Self-Reflection
Before presenting to user, reflect:
- Do I fully understand the problem?
- Are there edge cases I might miss?
- Is my analysis complete or are there gaps?
- What is my confidence level and why?
PHASE 3: CONFIDENCE GATE
3.1 Present Understanding
Present a structured summary (max 10 sentences):
**PROBLEM ANALYSIS**
**CURRENT (Current):** [What is happening]
**SHOULD BE (Expected):** [What should happen]
**Root Cause:** [Why it happens]
**Affected Files:** [List with paths]
**Regression:** [Yes/No - if yes, what commit/change caused it]
**Confidence: XX%**
[Brief explanation why this confidence level]
---
Wait for your GO to continue.QUALITY GATE: Wait for explicit user confirmation ("GO", "weiter", "ja", etc.) Do NOT proceed without clear signal from user.
PHASE 4: SOLUTION VARIANTS
4.1 Generate Three Solutions
Present exactly 3 solution variants with Pro/Contra:
**SOLUTION VARIANTS**
### Variant A: [Name]
[Description of approach]
| Pro | Contra |
|-----|--------|
| ... | ... |
### Variant B: [Name]
[Description of approach]
| Pro | Contra |
|-----|--------|
| ... | ... |
### Variant C: [Name]
[Description of approach]
| Pro | Contra |
|-----|--------|
| ... | ... |4.2 Recommend Best Solution
**RECOMMENDATION: Variant [X]**
Reason:
- [Why this is the best fit for the codebase]
- [Long-term maintainability consideration]
- [Pattern consistency with existing code]
Effort: [Simple/Medium/Complex]Evaluation criteria:
- Fits existing codebase patterns
- Long-term maintainability
- No over-engineering, but no shortcuts either
- If a more complex solution is clearly better, prefer it
4.3 Confirm Selection
"I recommend Variant [X]. Should I proceed with this solution?"If user disagrees or wants changes, adjust before proceeding.
PHASE 5: IMPLEMENTATION
5.1 Execute Solution
Implement the selected solution autonomously:
- Make all necessary code changes
- Follow existing code patterns and conventions
- Use agents for complex implementations if needed
- No questions during implementation - all clarifications should be done
5.2 Adapt/Create Tests
Check existing tests:
# Find related tests
find tests -name "*.test.ts" | xargs grep -l "<relevant-terms>"Actions:
- Update existing tests if behavior changed
- Add new tests for the fix
- Ensure edge cases are covered
5.3 Run Tests
npm testIf tests fail:
- Fix the failing tests
- Re-run until all pass
- Do NOT skip this step
5.4 Check Documentation
Review if any docs need updates:
| Doc Location | Update if... |
CLAUDE.md | Core patterns changed |
docs/ | API or architecture changed |
| Inline comments | Complex logic added |
Only update docs that are directly affected.
PHASE 6: COMPLETION REPORT
6.1 Generate Report
**FIX COMPLETE**
**Problem:** [One-line summary]
**Solution:** [Variante X - brief description]
**Changes:**
| File | Change |
|------|--------|
| `path/to/file.ts` | [What was changed] |
**Tests:**
- [x] Existing tests pass
- [x] New tests added: [test file names]
**Docs Updated:**
- [List or "None required"]
**Verification:**
1. [Step to verify the fix]
2. [Step to verify no regression]
**Ready for Review:** YesQUICK REFERENCE
PHASE 0: BRANCH CHECK
└── [GATE] Not on master/main?
PHASE 1: CLARIFICATION
└── Ask all unclear questions upfront (if any)
PHASE 2: DEEP EXPLORATION
├── Launch exploration agents
├── Root cause analysis
├── Check git history for regressions
└── Self-reflection
PHASE 3: CONFIDENCE GATE
├── Present structured understanding (max 10 sentences)
├── State confidence %
└── [GATE] Wait for user GO
PHASE 4: SOLUTION VARIANTS
├── Generate 3 variants with Pro/Contra
├── Recommend best solution
└── Confirm selection with user
PHASE 5: IMPLEMENTATION
├── Execute autonomously
├── Adapt/create tests
├── Run tests (must pass)
└── Update docs if needed
PHASE 6: COMPLETION
└── Generate final reportAGENT USAGE GUIDELINES
When to use agents:
- Exploration: Always use the Explore agent for codebase understanding
- Complex analysis: launch several Explore agents with disjoint questions rather than one broad one
- Low confidence (<80%): Consult additional agents before proceeding
Parallel execution:
- Launch multiple exploration agents in parallel when possible
- Use background agents for long-running analysis
Quality over speed:
- High code quality is priority
- Follow existing patterns in codebase
- No shortcuts that compromise maintainability
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

