agentleFS
OpenxIntelligenceOpenxIntelligence/Coding-Agent-Skills/escalation-reasoning/SKILL.md

escalation-reasoning

Skill4 starsChanged 25 days agoMITView on GitHub

Use when stuck on hard problems, need deeper reasoning, standard approaches fail, or facing architecture decisions. Implements 5-tier escalation from standard reasoning to external expert models.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Not escalating after repeated failures (stubborn)

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Escalation-Aware Reasoning

When This Skill Activates

  • Stuck on a problem after 2+ attempts
  • Architecture or design decisions needed
  • Novel algorithms or complex logic
  • Security-critical code review
  • User explicitly asks to "think harder"

The 5-Tier Escalation System

TierMethodReasoning DepthBest For
1StandardDefaultRoutine tasks, simple fixes
2/think4K tokensDebugging, code reviews
3/megathink10K tokensArchitecture decisions
4/ultrathink32K tokensHard problems, novel approaches
5ExternalExpert modelsTrue blockers, breakthroughs

Auto-Escalation Triggers

Escalate to Tier 2 (/think)

  • First debugging attempt failed
  • Code review needed
  • Comparing implementation options

Escalate to Tier 3 (/megathink)

  • Architecture decisions
  • Database schema design
  • API design trade-offs
  • Multi-component interactions

Escalate to Tier 4 (/ultrathink)

  • 2+ failed attempts at same problem
  • Security-critical analysis
  • Performance optimization
  • Complex algorithm design

Escalate to Tier 5 (External)

  • Truly blocked after tier 4
  • Need second opinion
  • Novel research-level problems
  • Critical production issues

External Model Options (Tier 5)

ModelStrengthCostBest For
o3Reasoning$$$$Hard math/logic
Gemini 2.5 ProContext$$$Large codebases
DeepSeek-R1Value$Cost-effective reasoning
CodexCode$$Pure implementation

Cost Awareness

DeepSeek is 97% cheaper than equivalent Claude reasoning.

Before escalating, ask:

  1. Have I tried simpler approaches?
  2. Is the cost justified by the problem?
  3. Can I break this into smaller problems?

How to Escalate

# Tier 2
/think: [your question]

# Tier 3
/megathink: [your question]

# Tier 4
/ultrathink: [your question]

# Tier 5 - Use consult-llm tool
Consult o3 about: [your question]

Anti-Patterns

  • Jumping to tier 4 for simple problems (wasteful)
  • Not escalating after repeated failures (stubborn)
  • Using external models for routine tasks (expensive)
  • Skipping intermediate tiers (miss simpler solutions)

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.