MCPInstall

phase-running

Execute individual plan phases as background sub-agents for context-efficient implementation.

Installs
277
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/desplega-ai/ai-toolbox --skill phase-running
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads phase-running automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Phase Running

You are executing a single phase of an implementation plan as an atomic background sub-agent. You work autonomously to completion and report results — you do NOT interact with the user.

Execution Model

This skill is designed to run inside a background Agent (sub-agent), NOT in the main session. The implementing skill (or user) spawns it via the Agent tool with run_in_background: true.

The phase agent receives:

  • Plan path: Full path to the plan file
  • Phase number: Which phase to execute
  • Relevant context: Any additional context from the caller

When to Use

This skill activates when:

  • The implementing skill spawns a phase agent (default execution mode)
  • User invokes /run-phase command for manual phase execution
  • Another skill references desplega:phase-running

Autonomy

Phase agents always run as Autopilot within the sub-agent. The calling context (implementing skill or user) controls the outer autonomy and handles human checkpoints.

CRITICAL: Phase agents do NOT use AskUserQuestion. If something is ambiguous, report blocked status with details. The caller handles all user interaction.

Process Steps

Step 1: Load Context

  1. Read the full plan file
  2. Extract the specific phase to execute (by phase number)
  3. Read all files mentioned in the phase's "Changes Required" section
  4. Understand the phase's success criteria

Step 2: Pre-flight Check

Verify before executing:

CheckAction if failed
Previous phases completedCheck that prior phases' automated verification items are checked. If not, report blocked
No merge conflictsCheck target files for conflict markers. If found, report blocked
Phase dependencies metVerify files/directories from previous phases exist. If missing, report blocked

Step 3: Execute Phase

Implement all changes described in the phase:

  1. Follow the plan's instructions precisely
  2. Create/edit files as specified in "Changes Required"
  3. Adapt to minor mismatches (file paths moved, code slightly different) without blocking
  4. For significant mismatches, report blocked with details

Step 4: Run Verification

The phase's Success Criteria has three subsections. Handle each:

  1. Automated Verification (runnable commands): run each command listed, record pass/fail. If a check fails, attempt to fix and re-run once. If it still fails, include it in the report.
  2. Automated QA (agent-driven scenarios — browser-use, screenshot diff, CLI walkthrough): for each item, interpret the scenario and execute it yourself (use browser-use or other agent tools as needed). Record pass/fail per item.
  3. Manual Verification: leave unchecked. The caller handles these with the user.
  4. QA Spec (linked doc): if the phase has a ### QA Spec (optional): section pointing to a QA doc path, report QA Doc: <path> so the caller can invoke desplega:qa against it. Do not execute scenarios inline — they live in the QA doc, not the plan. If no QA Spec section exists, report QA: n/a.

Step 5: Update Plan

  • Check off (- [x]) Automated Verification and Automated QA items that passed
  • Do NOT check off Manual Verification items — those require human confirmation
  • Update the plan's last_updated and last_updated_by frontmatter fields

Learning Capture

OPTIONAL SUB-SKILL: If significant learnings emerged during this phase, note them in the phase completion report for the parent session to capture via /learning capture.

Step 6: Report Results

The agent's return message MUST include:

If completed:

Status: completed
Phase: [N] - [Phase name]
Files changed: [list of files created/modified]
Automated Verification: [N/M passed]
- [x] [Check 1] — passed
- [x] [Check 2] — passed
Automated QA: [N/M passed]
- [x] [Scenario 1] — passed
- [x] [Scenario 2] — passed
QA Doc: <path> | n/a
Manual verification needed:
- [ ] [Manual check 1]
- [ ] [Manual check 2]

If blocked:

Status: blocked
Phase: [N] - [Phase name]
Reason: [Clear description of what's blocking]
Partial progress: [What was completed before blocking]
QA status: [status at time of block]
Suggested action: [How the caller/user can unblock]

If failed:

Status: failed
Phase: [N] - [Phase name]
Error: [Error details]
Partial progress: [What was completed before failure]
QA status: [status at time of failure]
Files modified: [List of files that were changed before failure]

Atomicity Contract

Phase agents are atomic — they run to completion or stop:

  • No interactive questions (no AskUserQuestion)
  • No partial states left unexplained
  • If blocked or failed, the report includes enough detail for the caller to decide next steps
  • All file changes are documented in the report

Context Handoff Pattern

DirectionData
Caller → Phase AgentPlan path + phase number + autonomy mode
Phase Agent readsPlan file + all source files referenced in the phase
Phase Agent → CallerStatus + changed files + verification results
Caller handlesManual verification, cross-phase coordination, human checkpoints

FAQ

What does the phase-running skill do?

Execute individual plan phases as background sub-agents for context-efficient implementation.

How do I install phase-running?

Run npx skills add https://github.com/desplega-ai/ai-toolbox --skill phase-running in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/phase-running/ (personal) or .claude/skills/phase-running/ (project).

Which AI agents can use phase-running?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is phase-running safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains phase-running?

It is published by desplega-ai in desplega-ai/ai-toolbox. It has 277 recorded installs.

More from desplega-ai/ai-toolbox

View all →

researching

desplega-ai/ai-toolbox

Open the skill to read its SKILL.md instructions.

323 installs

planning

desplega-ai/ai-toolbox

Open the skill to read its SKILL.md instructions.

tdd-planning

desplega-ai/ai-toolbox

Open the skill to read its SKILL.md instructions.

Testing & QA313 installs

implementing

desplega-ai/ai-toolbox

Open the skill to read its SKILL.md instructions.

308 installs

wts-expert

desplega-ai/ai-toolbox

Open the skill to read its SKILL.md instructions.

300 installs

ask-user

desplega-ai/ai-toolbox

Open the skill to read its SKILL.md instructions.

284 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.