deep-thinking

deep-thinking is a skill for Claude Code, Codex from abdullah1854/MCPGateway. It costs 51 tokens per session (617 once invoked), scanned A, original, MIT.

An extended-reasoning process for complex debugging, architecture, system design, code review, and trade-off decisions.

In plain words
What is it for?
Use it when a problem needs deeper analysis, such as choosing between designs, finding a root cause, or evaluating performance and security trade-offs.
Why use it?
It encourages breaking difficult problems into parts, comparing options, and checking edge cases and risks.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/abdullah1854/mcpgateway/deep-thinking
Any agent
npx skills add abdullah1854/MCPGateway --skill deep-thinking
Clone the repo
git clone --depth 1 https://github.com/abdullah1854/MCPGateway

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deep-thinking

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullah1854/mcpgateway/deep-thinking.svg)](https://agentmods.dev/skills/abdullah1854/mcpgateway/deep-thinking)
Your own site
<a href="https://agentmods.dev/skills/abdullah1854/mcpgateway/deep-thinking"><img src="https://agentmods.dev/badge/skills/abdullah1854/mcpgateway/deep-thinking.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.00617
Opus 5 $0.00026 $0.00309
Sonnet 5 $0.00010 $0.00123
Haiku 4.5 $0.00005 $0.00062

Measured 4d ago against content hash ccd2e01733d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deep-thinking scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/deep-thinking/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deep Thinking Protocol

When This Skill Activates

  • User says "think harder", "ultrathink", "think step by step", "think deeply"
  • Complex architecture or system design questions
  • Debugging that requires root cause analysis
  • Trade-off analysis between multiple approaches
  • Code review requiring security/performance deep dive
  • Any problem with multiple valid solutions

Extended Reasoning Process

Phase 1: Problem Decomposition

Before answering, break the problem into components:

  1. What is the core question being asked?
  2. What are the constraints (performance, security, maintainability)?
  3. What context do I need that I don't have?
  4. What assumptions am I making?

Phase 2: Multi-Path Analysis

For each viable approach:

  1. Describe the approach in 2-3 sentences
  2. Pros: What makes this approach good?
  3. Cons: What are the downsides or risks?
  4. When to use: Under what conditions is this best?

Phase 3: Edge Case Hunting

Actively look for:

  • What happens with empty/null inputs?
  • What happens at scale (1M+ records)?
  • What happens with concurrent access?
  • What happens when dependencies fail?
  • What are the security implications?

Phase 4: Recommendation

Provide a clear recommendation with:

  1. The chosen approach and why
  2. Key implementation steps
  3. What to watch out for
  4. How to validate it works

Self-Critique Loop

After initial analysis, critique your own thinking:

  • Did I consider all stakeholders?
  • Am I biased toward familiar solutions?
  • What would a senior engineer challenge here?
  • Is there a simpler solution I overlooked?

Output Format

## Analysis: [Problem Title]

### Understanding
[Restate the problem to confirm understanding]

### Approaches Considered
1. **[Approach A]**: [Brief description]
   - Pros: ...
   - Cons: ...

2. **[Approach B]**: [Brief description]
   - Pros: ...
   - Cons: ...

### Edge Cases & Risks
- [Edge case 1]: [How to handle]
- [Edge case 2]: [How to handle]

### Recommendation
[Clear recommendation with reasoning]

### Implementation Steps
1. [Step 1]
2. [Step 2]
...

### Validation
[How to verify the solution works]

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 89 lines · 51 tokens per session scan A ccd2e01733d8

Subscribe to this mod's changes

deep-thinking is a skill published in the GitHub repository abdullah1854/MCPGateway (15 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 617 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.