AI agents are fast, but not careful. They race to an answer without checking their own logic. The result?
| Failure Mode | What Happens |
|---|---|
| Hallucination | Confidently states incorrect facts as truth |
| Surface-level answers | Fixes the symptom, not the root cause |
| Missing edge cases | Works in the demo, breaks in production |
| No self-doubt | Never says "I'm not sure" even when it should |
| Single-path thinking | Presents one option without exploring alternatives |
Deep Thinking Skill solves this by embedding a 7-phase structured reasoning protocol directly into the agent's behavior.
This is not a prompt. This is an operating system for thinking.
| Feature | Description |
|---|---|
| ๐ Problem Intelligence | Forces the agent to restate the problem, map constraints, and surface hidden assumptions before solving |
| ๐ง Atomic Decomposition | Breaks complex problems into independently solvable, testable sub-problems |
| ๐งฎ Adversarial Verification | Built-in "steel-man the opposite view" step to catch logical fallacies |
| ๐ Multi-Path Analysis | Always generates 2+ alternatives with a trade-off matrix |
| ๐ก๏ธ Failure Mode Detection | Pre-mortem analysis, blast radius assessment, and mitigation plans |
| ๐ Confidence Scoring | Self-assessed 0-100 score with hard rules (below 50% = refuse to answer confidently) |
| ๐งฉ 12 Reasoning Frameworks | Built-in library: 5 Whys, FMEA, Porter's Five Forces, First Principles, RICE, and more |
| ๐ Meta-Cognition | The agent checks whether it actually followed the protocol at the end |
# Install as a project skill
git clone https://github.com/shade-solutions/deep-thinking-skill.git .claude/skills/deep-thinking
# Or install as a personal skill (available across all projects)
git clone https://github.com/shade-solutions/deep-thinking-skill.git ~/.claude/skills/deep-thinkingnpx skills install shade-solutions/deep-thinking-skill# Clone and link locally
git clone https://github.com/shade-solutions/deep-thinking-skill.git
cd deep-thinking-skill
npx skills link .Once installed, the skill activates automatically when you use trigger words:
analyze โข solve โข optimize โข strategy โข why โข debug โข design
trade-off โข evaluate โข investigate โข plan โข root cause
"Analyze the scalability bottleneck in our microservices architecture."
"Why does our payment worker throw duplicate key errors 1 in 1000 times?"
"Design a real-time chat system that handles 10M concurrent users."
"Should we pivot from CRM to Lead Gen? We have 3 months of runway."
"Optimize our dashboard API โ it takes 12 seconds to respond."
Instead of a quick (potentially wrong) answer, the agent will:
- โ Restate the problem to confirm understanding
- โ Decompose it into atomic sub-problems
- โ Reason through each step with hypothesis โ simulate โ verify
- โ Compare multiple solution paths with a trade-off matrix
- โ Detect failure modes before they happen
- โ Score its own confidence (and refuse to answer if too low)
- โ Present a structured, actionable final output
Phase 0 โก ACTIVATION CHECK โโโ Is this problem worth deep thinking?
Phase 1 ๐ PROBLEM INTELLIGENCE โโโ Restate, define objective, map constraints
Phase 2 ๐ง DECOMPOSITION โโโ Break into atomic sub-problems
Phase 3 ๐งฎ SYSTEMATIC REASONING โโโ Hypothesize โ Simulate โ Verify โ Refine
Phase 4 ๐ MULTI-PATH ANALYSIS โโโ Generate alternatives, trade-off matrix
Phase 5 ๐ก๏ธ FAILURE MODE DETECTION โโโ Pre-mortem, blast radius, mitigations
Phase 6 ๐ CONFIDENCE SCORING โโโ Self-assess 0-100, hard thresholds
Phase 7 ๐ STRUCTURED OUTPUT โโโ Executive summary, steps, caveats
| Problem Type | Framework | When to Use |
|---|---|---|
| Root Cause | 5 Whys + Fishbone | Debugging, incident response |
| Architecture | C4 Model + ATAM | System design, tech debt |
| Decisions | Eisenhower Matrix + RICE | Prioritization, resource allocation |
| Optimization | Theory of Constraints | Bottleneck identification |
| Strategy | Porter's Five Forces + SWOT | Business/competitive analysis |
| Risk | FMEA | Safety-critical systems |
| Innovation | First Principles | Novel problem spaces |
| Trade-offs | Pareto Analysis (80/20) | Cost-benefit, feature scoping |
Real-world demonstrations of the Deep Thinking protocol in action:
| Example | Domain | Difficulty | Key Technique |
|---|---|---|---|
| ๐ง Debugging Race Conditions | Distributed Systems | Hard | TOCTOU analysis, timing simulation |
| ๐ Strategic Pivot Decision | Startup Strategy | Hard | Porter's Five Forces, RICE scoring |
| ๐ฒ Monty Hall Probability | Mathematics | Moderate | Bayesian proof, Monte Carlo simulation |
| ๐๏ธ Real-Time Chat at Scale | System Architecture | Hard | C4 Model, FMEA, back-of-envelope math |
| โก 12-Second API Fix | Performance Engineering | Hard | Theory of Constraints, Pareto analysis |
deep-thinking-skill/
โโโ SKILL.md # ๐ง The brain โ 7-phase reasoning protocol
โโโ metadata.json # โ๏ธ Machine-readable skill metadata
โโโ README.md # ๐ You are here
โโโ CONTRIBUTING.md # ๐ค Community contribution guide
โโโ CODE_OF_CONDUCT.md # ๐ Community standards
โโโ LICENSE # โ๏ธ MIT License
โโโ examples/
โโโ debugging.md # ๐ง Race condition root cause analysis
โโโ decision-making.md # ๐ Startup pivot strategy
โโโ problem-solving.md # ๐ฒ Monty Hall Bayesian proof
โโโ system-design.md # ๐๏ธ 10M-user chat architecture
โโโ optimization.md # โก 12-second API performance fix
This is a community-first project. We welcome:
- ๐งฉ New reasoning frameworks (Socratic Method, Inversion, etc.)
- ๐ New real-world examples
- ๐ง Improvements to the SKILL.md protocol
- ๐ Bug reports for logical gaps in examples
See CONTRIBUTING.md for details.
We believe the next generation of AI agents won't just be faster โ they'll be disciplined thinkers.
Today's agents are like brilliant interns: fast, eager, but they skip steps and don't check their own work. Deep Thinking Skill is the senior engineer mindset โ embedded directly into the agent's reasoning loop.
The goal: Every AI agent in the world should think before it speaks.
- 7-phase reasoning protocol (v2.0)
- Confidence scoring system
- Failure mode detection
- 12 built-in reasoning frameworks
- 5 real-world examples
- Integration with memory/retrieval skills
- Chain-of-thought visualization tool
- Community-contributed framework packs
- Automated reasoning quality benchmarks
If this project makes your AI agents smarter, consider giving it a โญ
Built with ๐ง by shade-solutions
Think deeper. Build better.