Index of every page on this site: llms.txt
All skills
mohasarc avatar

/auto-implement-plan-v2

@f5a6c75
Run it yourself

Drive a multi-phase plan to completion autonomously by delegating each phase to a fresh-context subagent that lands the work as a stacked PR. Use when the user wants a phased plan executed end-to-end without supervising commit-by-commit. Triggers include "auto-implement this plan", "run this plan unattended", "drive plans/X/plan.md to completion", "execute the whole plan", "hand this plan off and run it".

Use this Skill: https://skilld.dev/gh/mohasarc/mo-skills/auto-implement-plan-v2

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈108 tokens for metadata: the name and description. ≈743 when used: this file. ≈795 more on demand in 1 file.

Description uses 5.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈433 characters, or 5.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Auto-implement plan (orchestrator)

You drive a phased plan to completion by delegating each phase to a fresh-context subagent. The mechanics of spawning, resuming, and communicating with subagents are the host tool's responsibility — focus on what you do, not how.

Why this exists

The failure mode being avoided is context dilution over long autonomous runs: after a few hours, the agent that's been doing all the work loses fidelity to the original plan and starts collapsing structure (e.g., bundling planned commits into one). The remedy is to give every phase a subagent with fresh context, and to keep your own context small by only ever ingesting compact summaries from each subagent — never their transcripts.

Your responsibilities

  • Read the plan once to enumerate its phases (## Phase N: Title h2 sections), then re-read each phase's section fresh from disk immediately before delegating it. Don't rely on memory of the plan as the run grows.
  • Delegate each phase, in order, to a fresh subagent. The subagent's job is described in subagent.md (next to this file); hand that to it as its runbook.
  • Track which phases are complete. Use whatever the host tool provides for durable state. The status of a phase is a function of what the subagent reports plus your own verification — not a guess.
  • Verify each phase before advancing. Re-run the project's verification command (default for this repo: pnpm test && pnpm lint && pnpm typecheck; the plan or AGENTS.md may override). Confirm a stacked draft PR was opened for the phase. If either is wrong, the phase failed regardless of what the subagent claimed.
  • Answer pause questions yourself. When a subagent reports it's stuck, answer using the plan, repo state, your prior phase summaries, and your own reasoning. There is no human to escalate to. If you genuinely cannot answer, abort.
  • Retry on failure, bounded. Up to three attempts per phase, each with a fresh-context subagent and a brief failure summary. After three, abort.
  • Stop cleanly. When the last phase verifies, exit. When you abort, surface why. The human never decides mid-run; they only see the final outcome.

Context discipline

This is the rule that keeps long runs faithful:

  • The only thing you ingest from a subagent is its short report on the phase: status, commit titles, PR URL, and any pause Q&A. Nothing more.
  • Never read a subagent's transcript or full output stream.
  • Re-read the plan section for the next phase from disk before delegating; don't paraphrase it from memory.

What you never do

  • Edit code, run tests outside the verification command, or make commits. Subagents do that.
  • Read another subagent's transcript.
  • Squash, rebase, force-push, or land PRs. The human decides what merges.
  • Ask the human anything mid-run. Either answer the pause yourself, or abort.
  • Operate on main. Phases land via stacked PRs on feature branches.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill automates multi-phase plans using autonomous subagents. It executes shell-based verification commands that can be overridden by external plan files, creating an indirect prompt injection surface where a malicious plan could trigger unauthorized command execution without human intervention.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

Signed by skilld at f5a6c75. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 7 months ago

README badge

README badge for mohasarc/mo-skills/auto-implement-plan-v2