Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Feature Orchestrate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/langerrr-feature-orchestrate)
---
name: feature-orchestrate
description: Execute an existing zforge feature plan autonomously with phase subagents and evidence-based acceptance.
---
# Autonomous Feature Execution
Run a feature plan to completion without blocking on the user. Phases execute as background subagents; decisions are recorded for asynchronous review; the planner accepts each phase by re-running its evidence.
Load `$zforge:feature-execution`. It owns phase state, the spawn contract, recovery, scheduling, and acceptance. This skill supplies the autonomous intent only.
## Arguments
- `$1`: Feature name (snake_case, or will be converted)
## Pre-flight
1. Convert the feature name to snake_case and resolve `docs/{feature_name}/`. Where that is absent, search `docs/**/{feature_name}/` for a directory of exactly that name: a unique match is the feature, and the run reports the resolved path and uses it from here on; two matches is an error naming both. If nothing matches, report it and suggest `$zforge:plan`.
2. Read `05_progress_overview.md`, `01_context.md`, `02_plan.md`, and the Doc Map in `01_context.md` for anything else binding.
3. Read `decision_review.md`. If it does not exist, create it from `../../../templates/decision_review.md`, resolved relative to this `SKILL.md`.
4. Read `session_log.md`, creating it from `../../../templates/session_log.md`, resolved relative to this `SKILL.md`, if absent, and append a row for this session.
5. Note any open standing flags in the overview. A flag opened by an earlier session is inherited by this one.
6. Read `07_harness_conventions.md` if the feature has one. It says how this project is run and observed, and it is what keeps the run from re-learning a fact an earlier phase already paid for.
7. **Ask which models to spawn**, as the skill's Models section states: one question, two answers.
8. **Read the plan's harness instruction references as this host's.** Where a phase's `## Required Context` names `CLAUDE.md` as the harness instruction file, read `AGENTS.md` at the same path. Where it names a product artifact that happens to be called `CLAUDE.md`, read that file as written. Rename neither.
## Codex goal bridge
When Codex exposes goal tools, make an existing `/goal` the outer run contract without copying its state into zforge's files:
1. After the document pre-flight, call `get_goal`. Record whether this run adopted the active goal and retain the identity and objective fields the tool returns for later comparisons. If no goal is active on this initial check, continue normally and do not create one — invoking this skill is not permission to start or replace a goal.
2. When the run adopted a goal, treat its objective as the outer stopping condition and zforge's feature state as the implementation truth. Re-check the same active goal at each classification boundary before acceptance or delegation, and again immediately before spawning a worker. Apply the goal-budget overlay below.
3. Once a run has adopted a goal, a later check that finds it paused, cleared or replaced, or a goal runtime that reports no remaining capacity or refuses further work, schedules no new phase and launches no worker. Preserve any report already delivered using the normal REPORTED checkpoint, then yield and let the goal runtime control continuation. Only a run that never adopted a goal uses normal no-goal scheduling.
4. Low remaining budget is a scheduling signal, never evidence that the feature or the goal is complete or blocked.
The bridge owns no second progress ledger: `/goal` answers whether Codex should keep working; the overview, phase files and session log answer what work is accepted, recoverable or open.
**If the feature predates v3** — phase files with no `## Evidence Required` table — say so once, treat every phase's evidence as E0, and offer to backfill the Verification Matrix in `02_plan.md` before executing. Executing without it is allowed; it just means acceptance can only check that commands run, not that they were the right class.
**If any phase is REPORTED** — an earlier session took its report and died before verifying it — acceptance is the first work of this session.
## Goal-budget overlay
Apply this overlay only when Codex is running `$zforge:feature-orchestrate` under an active goal and `get_goal` exposes both the goal budget and its remainder. Re-check immediately before each scheduling wave and calculate the remaining percentage from the tool's values; when either value is absent, use the ordinary scheduling rules rather than inventing an estimate.
| Remaining | Scheduling response |
|---|---|
| Above 60% | Apply the ordinary dependency, collision and budget gates. Parallelism is eligible, not required. |
| `>30%` through `60%` | Run phases serially. Delegate a costly evidence re-run when doing so protects the planner's cumulative context. |
| 15–30% | Accept REPORTED work first, then recover one INTERRUPTED phase through its next report and acceptance — resume its thread when reachable, otherwise use the disk-first fallback — then schedule at most one READY phase per wave. Delegate the evidence re-run when the acceptance role can verify it from the phase file without reconstructing planner context. Prefer the bounded action that leaves the strongest durable checkpoint. |
| Below 15% | Do no speculative or parallel work. Accept an existing report, finish or checkpoint the held phase, or take one bounded action that materially advances the nearest acceptance condition. Do not idle solely because the budget is low. |
After any usage-limit interruption in the current run, do not parallelize again during that run. Delegated acceptance reduces planner-context pressure but still consumes goal tokens; use it to preserve the scarce planner context, not as a claim that total usage must fall.
The overlay changes ordering and concurrency only. It never changes phase state, lowers an evidence class, skips independent acceptance, or turns budget exhaustion into `COMPLETED`, `PAUSED` or `FAILED`.
## Run loop
1. Classify every phase. If this run adopted a goal, call `get_goal` now before acceptance or delegation. If the same goal is no longer active, or the runtime reports no remaining capacity, checkpoint any delivered report and yield without starting more work.
2. Accept REPORTED phases before scheduling implementation per the skill's acceptance procedure. Below 15% goal budget, if a REPORTED phase exists, accept exactly one, skip implementation for this wave and return to classification to re-check the goal; if none exists, continue to the skill's single bounded action for this wave. Outside that band, accept every REPORTED phase. Delegate the verification where the skill says to.
3. Pick what to run using the skill's scheduling rules — sequential unless dependencies, collision surfaces and token budget all permit otherwise. If this run adopted a goal, immediately before spawning, re-check that the same goal is active and that the runtime has not reported exhausted capacity; otherwise yield at the durable checkpoint. Then spawn READY phases per the skill's contract.
4. Handle each report by its status. Completion arrives natively; do not poll.
5. Return to classification. Exit to Completion when every phase is COMPLETED and no standing flag is open. If all phases are COMPLETED but a standing flag remains, stop and surface it. If incomplete phases remain but none can run, stop and surface their WAITING, PAUSED or INTERRUPTED conditions. Otherwise begin the next wave. A scheduling wave is one pass from this classification boundary through the bounded acceptance or implementation work selected there.
## Autonomy boundary
Run without stopping while the outer runtime permits work; the goal bridge states when the run yields. A goal event does not invent a phase state. Within an active run, two phase conditions stop the loop:
- **A pause trigger fires** — the agent hit one of the five forks in its contract and stopped. Answer it from the plan if the plan resolves it; ask the user only if it does not. A `USAGE_LIMIT_95` pause is not a fork: the skill's failure table has its response.
- **A phase FAILS** — stop and surface it. Do not attempt a third variation of a failing approach autonomously.
Everything else is recorded and the run continues. The decisions that reach beyond this feature's implementation land in `decision_review.md` as 🟡 for the user to review whenever they choose; the rest stay in their phase files. Neither blocks a later phase.
## Completion
Follow the skill's completion bookkeeping through its closing commit.
When this run adopted an active Codex goal, call `get_goal` again before changing its status. Proceed only when the result confirms that the same adopted goal is still active; if it is paused, cleared, replaced or cannot be matched to the adopted contract, preserve zforge state and yield without any `update_goal` call:
- Call `update_goal` with `complete` only when every phase is COMPLETED, no standing flag is open, and the goal's full stopping condition is satisfied. Zforge completion is necessary but not sufficient when the goal also owns review, shipping or another tail. Include the final usage returned by the goal update in the completion report.
- A phase `FAILED`, an unresolved pause trigger, a permission denial or an unavailable dependency stops the inner zforge loop but does not immediately make the goal blocked. When the same condition has prevented meaningful progress for three consecutive goal turns and no safe in-scope alternative remains, call `update_goal` with `blocked` rather than leaving it active. If a blocked goal is later resumed, start a fresh three-turn blocked audit for the resumed run.
- Do not pause, resume, clear or replace a goal on the user's behalf.