Skip to content

shade-solutions/deep-thinking-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Deep Thinking Skill

An Operating System for Reasoning

Stop hallucinating. Start thinking.


Visitor Counter

GitHub Stars GitHub Forks GitHub Issues PRs Welcome

MIT License Claude Code Version Skill Type

Twitter Follow


โ— The Problem

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.


โšก What Makes This Different

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

๐Ÿ“ฆ Installation

Claude Code (recommended)

# 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-thinking

npx Skills (community tool)

npx skills install shade-solutions/deep-thinking-skill

Manual

# Clone and link locally
git clone https://github.com/shade-solutions/deep-thinking-skill.git
cd deep-thinking-skill
npx skills link .

๐Ÿ” Usage

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

Example Prompts

"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."

What You Get Back

Instead of a quick (potentially wrong) answer, the agent will:

  1. โœ… Restate the problem to confirm understanding
  2. โœ… Decompose it into atomic sub-problems
  3. โœ… Reason through each step with hypothesis โ†’ simulate โ†’ verify
  4. โœ… Compare multiple solution paths with a trade-off matrix
  5. โœ… Detect failure modes before they happen
  6. โœ… Score its own confidence (and refuse to answer if too low)
  7. โœ… Present a structured, actionable final output

๐Ÿง  The 7 Phases

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

๐Ÿงฉ Built-in Reasoning Frameworks

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

๐Ÿ“‚ Examples

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

๐Ÿ“‚ Project Structure

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

๐Ÿค Contributing

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.


๐ŸŒŸ Vision

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.


๐Ÿ—บ๏ธ Roadmap

  • 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

โญ Star History

If this project makes your AI agents smarter, consider giving it a โญ

Star History Chart


Built with ๐Ÿง  by shade-solutions

Think deeper. Build better.

About

Deep Thinking Skill is a production-ready reasoning framework designed for AI agents.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors