agentleFS
I-OnlabsI-Onlabs/claude-code-skills/problem-solver/SKILL.md

problem-solver

Skill4 starsChanged 26 days agoMITView on GitHub

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 15 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When did it start? What changed recently?

    line 25
  2. Distinctive:

    Read all relevant logs and configs

    line 44
  3. Distinctive:

    Search codebase for related patterns

    line 45
  4. Distinctive:

    Check documentation and changelogs

    line 46
  5. Distinctive:

    Look for similar issues (GitHub, forums)

    line 47
  6. Distinctive:

    Test hypotheses one at a time

    line 58
  7. Distinctive:

    Start with most likely cause

    line 59
  8. Distinctive:

    Document each attempt and result

    line 61
  9. Distinctive:

    Verify hypothesis with concrete test

    line 64
  10. Distinctive:

    Ensure no side effects

    line 72
  11. Distinctive:

    Update relevant configs/code

    line 77
  12. Distinctive:

    Add safeguards if appropriate

    line 78
  13. Distinctive:

    Don't trust single source.

    line 139
  14. Distinctive:

    Before asking for help:

    line 161
  15. Distinctive:

    Single hypothesis: Not considering alternatives

    line 175

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Problem Solver Skill

Description

Sophisticated methodology for diagnosing, researching, and solving any problem through systematic investigation, hypothesis testing, and iterative refinement.

Activation

Auto-activates when:

  • Something "not working", "broken", "failing", "unexpected"
  • Error messages or stack traces appear
  • User asks "why", "how to fix", "what's wrong"
  • Debugging or troubleshooting needed

Core Philosophy

Don't guess. Investigate. Prove. Verify.


Methodology: DIQRS-ITVF

Phase 1: DISCOVER

D - Diagnose

  • What exactly is the problem? (verbatim errors)
  • What's expected vs actual behavior?
  • When did it start? What changed recently?
  • Is it reproducible? Under what conditions?

I - Intersect

  • Cross-reference multiple data sources
  • Compare logs, configs, code, and behavior
  • Find where symptoms converge
  • Identify common threads

Q - Question

Formulate precise questions:

  • "Why does X happen when Y?"
  • "What controls Z behavior?"
  • "Where is this value coming from?"
  • Challenge assumptions with questions

Phase 2: RESEARCH

R - Research

  • Read all relevant logs and configs
  • Search codebase for related patterns
  • Check documentation and changelogs
  • Look for similar issues (GitHub, forums)

S - Synthesize

  • Combine findings into coherent picture
  • Identify root cause vs symptoms
  • Map the causal chain
  • Formulate hypotheses ranked by likelihood

Phase 3: ITERATE

I - Iterate

  • Test hypotheses one at a time
  • Start with most likely cause
  • Make minimal changes
  • Document each attempt and result

T - Test

  • Verify hypothesis with concrete test
  • Reproduce the problem first
  • Apply fix and test again
  • Check for regressions

V - Verify

  • Confirm fix addresses root cause
  • Test edge cases
  • Ensure no side effects
  • Get user confirmation

F - Finalize

  • Document the solution
  • Update relevant configs/code
  • Add safeguards if appropriate
  • Share learnings (update CLAUDE.md, create hooks)

Diagnostic Toolkit

Log Analysis

# Claude Code decision audit
tail -100 ~/.claude/logs/decision-audit.jsonl | jq -s 'group_by(.decision) | map({decision: .[0].decision, count: length})'

# Recent errors
grep -i "error\|fail\|denied" ~/.claude/logs/*.json | tail -20

# Session context
cat ~/.claude/logs/session_start.json | jq '.context'

Config Validation

# Validate JSON syntax
cat ~/.claude/settings.local.json | jq . > /dev/null && echo "Valid" || echo "Invalid JSON"

# Check effective settings
cat ~/.claude/settings.local.json | jq '.permissions'

# Find all settings files
find ~/.claude -name "settings*.json" -o -name "*.local.json" 2>/dev/null

System State

# Environment
env | grep -i claude
which claude && claude --version

# Processes
ps aux | grep -E "claude|node|python" | grep -v grep

# Network
lsof -i -P | grep LISTEN | head -10

Problem Pattern Library

PatternSymptomsRoot CauseFix
Permission loop"auto-denied in dontAsk mode"Pattern not matching allow listAdd tool to allow list without parens
Hook failureOperation blocked unexpectedlyHook returning denyCheck hook script, run manually
MCP timeoutTool hangs or failsServer not respondingRestart MCP server
Context overflowSlow, truncated, or confusedToo much context/compact or /clear
Config not appliedChanges don't take effectCached or wrong fileRestart Claude Code

Sophisticated Techniques

Multi-Source Triangulation

Don't trust single source. Verify with:

  1. Logs (what happened)
  2. Config (what should happen)
  3. Code (what's implemented)
  4. Behavior (what actually happens)

Hypothesis Ranking

Score each hypothesis:

  • Evidence strength: How much supports it?
  • Explanatory power: Does it explain all symptoms?
  • Falsifiability: Can we disprove it easily?
  • Simplicity: Occam's razor

Bisection Debugging

When cause unclear:

  1. Identify working state and broken state
  2. Find midpoint (time, commit, config change)
  3. Test midpoint
  4. Narrow range by half
  5. Repeat until root cause found

Rubber Duck Protocol

Before asking for help:

  1. State the problem out loud
  2. Explain what you've tried
  3. Describe expected vs actual
  4. Often solution becomes obvious

Anti-Patterns

  • Shotgun debugging: Changing random things hoping something works
  • Symptom fixing: Treating symptoms, not root cause
  • Assumption blindness: "It can't be X" without checking
  • Documentation trust: Assuming docs match reality
  • Single hypothesis: Not considering alternatives
  • Skipping verification: Assuming fix worked without testing

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.