agentleFS
jamestorrevillasjamestorrevillas/dev-skills/.github/skills/problem-solving/SKILL.md

problem-solving

Skill4 starsChanged 9 months agoMITView on GitHub

Use this skill when approaching complex or ambiguous problems, breaking down large challenges, applying first principles thinking, or structuring your approach to a new problem. Trigger on keywords: how do I approach, I don't know where to start, complex problem, break this down, first principles, problem decomposition, stuck on, overwhelmed by.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use plan.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 4

    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:

    Instead of reasoning by analogy ("how do others do this?"), break the problem down to fundamental truths:

    line 32
  2. Distinctive:

    Use when: existing solutions feel wrong, you're stuck in conventional thinking, or you need a breakthrough.

    line 41
  3. Distinctive:

    Start with the goal, break into sub-goals:

    line 48
  4. Distinctive:

    Ensure sub-problems don't overlap and together cover the whole problem.

    line 66

“Common” is measured: kept by at least 6 in 10 of the 16 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 Solving

Core Mindset

Don't solve the problem you think you have. Solve the problem you actually have.

Most wasted effort in software comes from solving the wrong problem confidently. The first step is always to verify the problem definition.


The Problem-Solving Framework

1. DEFINE    — What is the actual problem? (not the symptom)
2. CONSTRAIN — What are the boundaries? (must-haves, non-negotiables)
3. DECOMPOSE — Break into smaller sub-problems
4. EXPLORE   — Generate multiple approaches before committing
5. DECIDE    — Choose based on explicit criteria
6. EXECUTE   — Implement the chosen approach
7. REVIEW    — Did it solve the right problem?

First Principles Thinking

Instead of reasoning by analogy ("how do others do this?"), break the problem down to fundamental truths:

1. What do we know for certain is true about this problem?
2. What assumptions am I making that might be wrong?
3. If I had to rebuild this from scratch knowing only those truths, 
   what would I build?

Use when: existing solutions feel wrong, you're stuck in conventional thinking, or you need a breakthrough.


Decomposition Techniques

Top-Down

Start with the goal, break into sub-goals:

Goal: Build a user auth system
└── Registration flow
    ├── Form validation
    ├── Password hashing
    └── Email verification
└── Login flow
    ├── Credential verification
    ├── Session/token creation
    └── Remember me
└── Security hardening
    ├── Rate limiting
    ├── Brute force protection
    └── Audit logging

MECE (Mutually Exclusive, Collectively Exhaustive)

Ensure sub-problems don't overlap and together cover the whole problem.


When You're Stuck

  1. Restate the problem in different words
  2. Ask "what would need to be true" for each possible solution to work
  3. Invert — what would make this definitely fail? Design away from that.
  4. Simplify — solve a simpler version first, then generalize
  5. Time-box exploration — 30 min max before asking for help

Trade-Off Analysis

For every major decision, document:

Option A: [description]
  Pros: [benefits]
  Cons: [costs/risks]
  Best when: [conditions]

Option B: [description]
  Pros: [benefits]
  Cons: [costs/risks]
  Best when: [conditions]

Decision: [chosen option]
Reason: [why this fits the current constraints]
Revisit if: [conditions that would change the decision]

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.