with one click
executing-plans
// Use when you have an engineering-approved FeatureForge implementation plan and need to execute it in a separate session
// Use when you have an engineering-approved FeatureForge implementation plan and need to execute it in a separate session
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | executing-plans |
| description | Use when you have an engineering-approved FeatureForge implementation plan and need to execute it in a separate session |
_REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
_BRANCH_RAW=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo current)
[ -n "$_BRANCH_RAW" ] && [ "$_BRANCH_RAW" != "HEAD" ] || _BRANCH_RAW="current"
_BRANCH="$_BRANCH_RAW"
_FEATUREFORGE_INSTALL_ROOT="$HOME/.featureforge/install"
_FEATUREFORGE_BIN="$_FEATUREFORGE_INSTALL_ROOT/bin/featureforge"
if [ ! -x "$_FEATUREFORGE_BIN" ] && [ -f "$_FEATUREFORGE_INSTALL_ROOT/bin/featureforge.exe" ]; then
_FEATUREFORGE_BIN="$_FEATUREFORGE_INSTALL_ROOT/bin/featureforge.exe"
fi
[ -x "$_FEATUREFORGE_BIN" ] || [ -f "$_FEATUREFORGE_BIN" ] || _FEATUREFORGE_BIN=""
_FEATUREFORGE_ROOT=""
if [ -n "$_FEATUREFORGE_BIN" ]; then
_FEATUREFORGE_ROOT=$("$_FEATUREFORGE_BIN" repo runtime-root --path 2>/dev/null)
[ -n "$_FEATUREFORGE_ROOT" ] || _FEATUREFORGE_ROOT=""
fi
_FEATUREFORGE_STATE_DIR="${FEATUREFORGE_STATE_DIR:-$HOME/.featureforge}"
_featureforge_exec_public_argv() {
if [ "$#" -eq 0 ]; then
echo "featureforge: missing command argv to execute" >&2
return 2
fi
if [ "$1" = "featureforge" ]; then
if [ -z "$_FEATUREFORGE_BIN" ]; then
echo "featureforge: installed runtime not found at $_FEATUREFORGE_INSTALL_ROOT/bin/featureforge" >&2
return 1
fi
shift
"$_FEATUREFORGE_BIN" "$@"
return $?
fi
"$@"
}
Live FeatureForge workflow routing is install-owned:
$_FEATUREFORGE_BIN for live workflow control-plane commands./bin/featureforgetarget/debug/featureforgecargo runWhen a helper returns recommended_public_command_argv, treat it as exact argv. If recommended_public_command_argv[0] == "featureforge", execute through the installed runtime by replacing argv[0] with $_FEATUREFORGE_BIN (for example via _featureforge_exec_public_argv ...).
Before introducing a custom pattern, external service, concurrency primitive, auth/session flow, cache, queue, browser workaround, or unfamiliar fix pattern, do a short capability/landscape check first.
Use three lenses, then decide from local repo truth:
External search results are inputs, not answers. Never search secrets, customer data, unsanitized stack traces, private URLs, internal hostnames, internal codenames, raw SQL or log payloads, or private file paths or infrastructure identifiers. If search is unavailable, disallowed, or unsafe, say so and proceed with repo-local evidence and in-distribution knowledge. If safe sanitization is not possible, skip external search.
See $_FEATUREFORGE_ROOT/references/search-before-building.md.
For every interactive user question, use this structure:
RECOMMENDATION: Choose [X] because [one-line reason]A) ... B) ... C) ...Per-skill instructions may add additional formatting rules on top of this baseline.
Load the approved plan, follow the runtime-selected topology, execute all tasks, run featureforge:document-release, request final review, then report when complete. When the runtime-selected topology is worktree-backed parallel, create isolated worktrees first and dispatch the parallel lanes; when it is conservative fallback, stay serial. Extended execution and review examples live in $_FEATUREFORGE_ROOT/references/execution-review-qa-examples.md.
Use this skill when the runtime-selected topology calls for a separate-session coordinator or conservative fallback. Prefer featureforge:subagent-driven-development when the runtime-selected topology keeps execution in one session and the worktree-first orchestration model is already in place.
featureforge:plan-eng-review.**Workflow State:** Engineering Approved, **Source Spec:** <path>, and **Source Spec Revision:** <integer>.CEO Approved, and that the latest approved spec still matches that exact source-spec path and revision.featureforge:plan-eng-review if the plan is draft or malformed, or to featureforge:writing-plans if the source spec path or revision is stale.$_FEATUREFORGE_BIN workflow operator --plan <approved-plan-path> before starting execution.phase executing, stop and follow the reported phase, phase_detail, next_action, and recommended_public_command_argv instead of reopening execution through compatibility helpers. Treat recommended_command as display-only compatibility text.phase executing, review the plan critically for execution concerns and treat workflow/operator plus plan execution status as the live execution surface. Tracked checklist/evidence markdown is an optional materialized export; the event log remains authoritative for routing and gates.begin for the active step. The first begin is the mandatory execution-tracking boundary; preflight acceptance alone is not permission to start implementation. If the workspace becomes dirty before the first begin, expect later execution-start checks to fail closed (for example tracked_worktree_dirty) until reconciled or isolated. Retroactive execution tracking is recovery-only and must never be the normal path. Five-step recovery runbook for dirty-before-begin failures:
$_FEATUREFORGE_BIN workflow operator --plan <approved-plan-path> and confirm the current route is still executing for the current approved plan revisionbegin$_FEATUREFORGE_BIN workflow operator --plan ... during preflightstatus --plan ... only for additional diagnostics when operator output alone is insufficientbegin before starting work on a plan stepcomplete after each completed steprecord-contract, record-evaluation, record-handoff, begin, removed note, complete, reopen, and transfer are authoritative helper mutation boundaries.begin for a revision whose plan still says **Execution Mode:** none, initialize execution with --execution-mode featureforge:executing-plansdocs/featureforge/projections/ are optional human-readable exports; do not create or maintain a separate ad hoc task tracker outside workflow/operator and status.$_FEATUREFORGE_BIN plan execution materialize-projections --plan <approved-plan-path> for state-dir-only diagnostic projection refreshes. If the user explicitly needs repo-local human-readable projection exports, add --repo-export --confirm-repo-export; approved plan and evidence files are not modified, and materialization is never required for normal progress. Add --scope execution|late-stage|all only when a non-default export scope is needed.executing) while strategy checkpoints change; remediation stays represented by checkpoint state and operator routing.initial_dispatch before repo-writing implementation starts; cycle_break when the same task hits three review-dispatch/reopen cycles in one run; and review_remediation: required after actionable independent-review findings and before remediation starts. Runtime records it automatically when reviewable dispatch lineage enters remediation and when remediation reopens execution work.cycle_break strategy automatically (no human replanning loopback).$_FEATUREFORGE_BIN plan execution status --plan ...: strategy_state, strategy_checkpoint_kind, last_strategy_checkpoint_fingerprint, and strategy_reset_required.execution_started is yes), runtime-selected implementation and review subagent dispatch by workflow-owned execution skills is authorized and does not require per-dispatch user-consent prompts.Before starting any plan step that mutates repo state, run the shared repo-safety preflight for that exact task slice:
$_FEATUREFORGE_BIN repo-safety check --intent write --stage featureforge:executing-plans --task-id <current-task-slice> --path <repo-relative-path> --write-target execution-task-slice
allowed, continue; if blocked, name the branch, the stage, and the blocking failure_class, then route to a feature branch / featureforge:using-git-worktrees or explicit user approval for this exact task slice.$_FEATUREFORGE_BIN repo-safety approve --stage featureforge:executing-plans --task-id <current-task-slice> --reason "<explicit user approval>" --path <repo-relative-path> --write-target execution-task-slice [--write-target git-commit] [--write-target git-merge] [--write-target git-push], then re-check. Before follow-on git commit, git merge, or git push, re-run the gate with the same task id, paths, and approved write-target set; if scope changes, approve and re-check the new full scope.main, master, dev, or develop as safe by itself; the branch must be non-protected or explicitly approved.For each task:
"$_FEATUREFORGE_BIN" plan contract build-task-packet \
--plan <approved-plan-path> \
--task <task-number> \
--format markdown \
--persist yes
Goal, Context, indexed CONSTRAINT_N obligations, indexed DONE_WHEN_N obligations, covered requirements, and file scope are authoritative; CONSTRAINT_N obligations must be checked by task reviewers; objectively reviewable Done when obligations remain mandatory even when verified by diff inspection or targeted evidence rather than one command; Separate-session handoffs must paste the helper-built packet verbatim; if packet content conflicts with review/plan-task-contract.md, stop and route back to plan review.plan execution status as the live step-progress surface for the task's steps; tracked checklist/evidence markdown is optional materialized output and is not routing authority.none when no workspace runtime was used)Finding ID, Severity, Task, Violated Field or Obligation, Evidence, Required Fix, and Hard Fail.verification-before-completion and collect the verification result inputs needed by close-current-taskN+1 may begin only after Task N has a current positive task-closure recordclose-current-task; they are not separate begin-time authority once Task N has a current positive closure$_FEATUREFORGE_BIN workflow operator --plan <approved-plan-path> --external-review-result-ready and follow its route; when recommended_public_command_argv is absent, treat the closure command shape as an input contract and provide concrete review/verification values through required_inputs before rerunning workflow/operatortask_closure_recording_ready / close-current-task, not task_review_dispatch_required; if a task-review dispatch phase appears, treat it as a runtime diagnostic bug instead of manual low-level command choreography*_dispatch_required lane after an external review result is ready, keep rerouting through workflow/operator and the intent-level commands; do not expand the normal path into low-level dispatch-lineage managementN+1 begincomplete as soon as a step is truly satisfied so the authoritative event log records the completed step. Do not manually flip tracked plan checkboxes during normal execution.For the reviewed-closure mental model, read docs/featureforge/reference/2026-04-01-review-state-reference.md before acting on late-stage routing. A current reviewed closure matches the current reviewed state. A superseded closure was valid for earlier reviewed work but is no longer authoritative after later reviewed work lands. A stale-unreviewed state means unreviewed edits exist, so the runtime MUST repair review state before recording another closure or late-stage milestone.
$_FEATUREFORGE_BIN workflow operator --plan <approved-plan-path> is the only normal-path routing authority for reviewed-closure and late-stage progression.
Treat $_FEATUREFORGE_BIN workflow operator --plan <approved-plan-path> as authoritative for phase, phase_detail, review_state_status, next_action, recommended_public_command_argv, and required_inputs. Treat recommended_command as display-only compatibility text.
Treat $_FEATUREFORGE_BIN plan execution status --plan <approved-plan-path> as optional diagnostic detail.
When executing recommended_public_command_argv, if argv[0] is featureforge, run it through $_FEATUREFORGE_BIN (or _featureforge_exec_public_argv) instead of PATH or workspace-runtime resolution.
When an external task-review or final-review result is already in hand, use $_FEATUREFORGE_BIN workflow operator --plan <approved-plan-path> --external-review-result-ready to expose recording-ready routes. Do not use that hint for release-readiness, document-release, or QA routing.
Do not reconstruct closure routing from memory or duplicate route tables in this skill. Follow operator-reported phase, phase_detail, review_state_status, next_action, recommended_public_command_argv, required_inputs, and recording_context directly, with these guardrails:
task_closure_recording_ready requires recording_context.task_number.release_readiness_recording_ready and release_blocker_resolution_required require recording_context.branch_closure_id.final_review_recording_ready requires recording_context.branch_closure_id.resume_task and resume_step in diagnostic status output as advisory-only fields; if they disagree with workflow/operator recommended_public_command_argv, follow the argv from workflow/operator.phase_detail=task_closure_recording_ready, replay is already complete enough for closure refresh; run close-current-task and do not reopen the same step again.review_state_status as stale or missing closure context, do not invent a repair command. If recommended_public_command_argv is present, invoke it exactly. If argv is absent and next_action is runtime diagnostic required, stop on the diagnostic. Otherwise satisfy required_inputs or run $_FEATUREFORGE_BIN plan execution repair-review-state --plan <approved-plan-path> only when the non-diagnostic route owns that repair lane.repair-review-state, MUST follow that command's returned recommended_public_command_argv when present before any additional recording commands. If argv is absent and next_action is runtime diagnostic required, stop on the diagnostic; otherwise satisfy typed required_inputs or the prerequisite named by next_action, then rerun the route owner. Do not shell-parse or whitespace-split recommended_command.recommended_public_command_argv is authoritative for the immediate reroute only when present; recommended_command is only the human-readable rendering of the same route.$_FEATUREFORGE_BIN plan execution status --plan <approved-plan-path> only when additional diagnostics are required.*_dispatch_required lanes, request the review and keep rerouting through workflow/operator; do not expand the normal path into low-level dispatch-lineage management.**Execution Note:** lines to recover runtime state.close-current-task for task closure.Late-stage aggregate command coverage:
$_FEATUREFORGE_BIN plan execution advance-late-stage --plan <approved-plan-path>$_FEATUREFORGE_BIN plan execution advance-late-stage --plan <approved-plan-path> --result ready|blocked --summary-file <release-summary> is an input shape after substituting concrete values$_FEATUREFORGE_BIN plan execution advance-late-stage --plan <approved-plan-path> --reviewer-source <source> --reviewer-id <id> --result pass|fail --summary-file <final-review-summary> is an input shape after substituting concrete values$_FEATUREFORGE_BIN plan execution advance-late-stage --plan <approved-plan-path> --result pass|fail --summary-file <qa-report> is an input shape after substituting concrete valuesAfter all tasks complete and verified:
featureforge:document-release first, then route to featureforge:requesting-code-review for the terminal final review pass.featureforge:requesting-code-reviewAfter the final review is resolved:
Announce: "I'm using the finishing-a-development-branch skill to complete this work."
REQUIRED SUB-SKILL: Use featureforge:finishing-a-development-branch
Follow that skill to verify tests, route QA when warranted, present options, and execute the chosen completion path
featureforge:writing-plans - Creates the plan this skill executes
featureforge:plan-eng-review - Provides the approved plan and the execution preflight handoff
featureforge:requesting-code-review - REQUIRED: Final review gate after execution completes
featureforge:finishing-a-development-branch - Complete development after all tasks