Skip to content
escalate logo

Escalate

escalate

Use when stuck in circles and want to hand off to another agent (Codex CLI) with full context

SKILL.md

Full skill instructions

Escalate

Generate a handoff prompt for another agent when you're stuck and need fresh perspective.

When to Use

  • You've tried multiple approaches and keep hitting the same walls
  • You're going in circles and want a fresh perspective
  • You need to context-switch but want to preserve progress for Codex CLI or another agent

Workflow

/​escalate → Choose detail level → Choose handoff mode → Analyze session → Generate prompt → pbcopy

Step 1: Ask Detail Level

Use AskUserQuestion to ask:

How much context for the handoff?

1. Concise (~200-400 words) - Problem, key blockers, clear ask
2. Detailed (~500-800 words) - Above plus files, errors, code snippets

Step 2: Ask Handoff Mode

Use AskUserQuestion to ask:

What should the next agent do?

1. Continue - Pick up where I left off and solve this
2. Fresh perspective - Ignore my approaches, try something new
3. Validate first - Confirm my understanding, then propose alternatives
4. Other - [let user specify custom instruction]

Step 3: Analyze the Session

Review the conversation to extract:

SectionWhat to Capture
ProblemThe core objective - what you're trying to accomplish
Approaches TriedEach attempt and why it didn't work
Current HypothesisWhat you think might be the root cause
Relevant FilesKey file paths that are central to the issue
Error MessagesSpecific errors encountered (exact text)
ConstraintsThings that must be preserved or avoided

For concise mode: Focus on Problem, Approaches Tried, and one key blocker.

For detailed mode: Include all sections with code snippets and full error messages.

Step 4: Generate the Prompt

Template

# Problem

[Clear statement of what you're trying to accomplish]

# Approaches Tried

- **Approach 1:** [what you tried]
  - Result: [what happened]
  - Why it failed: [analysis]

- **Approach 2:** [what you tried]
  - Result: [what happened]
  - Why it failed: [analysis]

[Continue for each significant approach]

# Current Hypothesis

[What you think might be the root cause or blocker]

# Relevant Context

**Files:**
- `path/​to/​file.ts` - [why it's relevant]
- `path/​to/​other.ts` - [why it's relevant]

**Errors:**

[Exact error messages]


**Constraints:**
- [Things that must be preserved]
- [Approaches to avoid and why]

# Your Task

[Based on handoff mode:]

- Continue: "Pick up where I left off. The context above shows what's been tried. Find a path forward and solve this."
- Fresh perspective: "Ignore the approaches above - they haven't worked. Look at this problem fresh and propose a different strategy."
- Validate first: "First, confirm whether my understanding of the problem is correct. Then propose an alternative approach."
- Other: [User's custom instruction]

Step 5: Copy to Clipboard

echo "[generated prompt]" | pbcopy

Use a heredoc for multi-line content:

pbcopy << 'EOF'
[generated prompt content]
EOF

Step 6: Confirm

Tell the user:

Handoff prompt copied to clipboard. Paste into Codex CLI to continue.

Quality Checklist

  • Problem statement is clear and self-contained
  • Approaches include WHY they failed, not just WHAT was tried
  • Hypothesis is specific, not vague
  • File paths are absolute or repo-relative
  • Error messages are exact, not paraphrased
  • Constraints call out landmines to avoid
  • Handoff instruction matches selected mode

Common Mistakes

MistakeFix
Vague problem statementBe specific about the goal and success criteria
Listing approaches without failure analysisAlways explain WHY each approach didn't work
Missing contextInclude enough that the next agent doesn't need to ask clarifying questions
Too much detail in concise modeRuthlessly cut to ~300 words for concise
Forgetting constraintsWarn about approaches that look promising but have been ruled out

Example Output (Concise)

# Problem

Trying to get Jest tests to run in a WordPress plugin. Tests pass locally but fail in CI with "Cannot find module '@wordpress/​scripts'" errors.

# Approaches Tried

- **Verified node_modules:** Confirmed package is installed, same versions local and CI
- **Cleared CI cache:** Rebuilt from scratch, same error
- **Checked path resolution:** Added moduleNameMapper in jest.config.js, no change

# Current Hypothesis

CI environment might have different NODE_PATH or module resolution behavior. The @wordpress/​scripts package uses a nested dependency structure.

# Your Task

Pick up where I left off. The context above shows what's been tried. Find a path forward and solve this.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View