mcpField
E
execute-common

execute-common

github.com/jayden-dangAgent workflows139 installsUpdated 4d ago
Repository

About execute-common

A shared controller recipe for the `build-in-waves`, `build-by-story`, and `build-inline` skills. It coordinates issue tracking, spec occupancy, workspace decisions, runtime setup, task dispatch, review, and branch closure.

Key features

  1. 01Issue-tracker and spec preflight
  2. 02Workspace and branch checks
  3. 03Runtime and lease preparation
  4. 04Task and close-sequence tracking
  5. 05Conditional polish and decision trail

Use cases

  1. 01Preparing an execute-family coding session
  2. 02Checking spec status before implementation
  3. 03Coordinating tasks across a feature branch
  4. 04Reviewing and closing completed work

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jayden-dang/skills --skill execute-common

After installing, type/execute-commonin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

close-receipt.md
decision-trail.md
eval.json
implementer-prompt.md
ledger-check.md
runtime-binding.md
task-lifecycle.md
task-reviewer-prompt.md
TESTS.md
tracker-sync.md

Details

From the project README

Execute-family controller recipe

One home for controller steps and runtime state shared across build-in-waves, build-by-story, and build-inline. Task dispatch/review lives in task-lifecycle.md beside this file. Load when that skill's Setup or After-last says to. Registered so npx skills add copies it with the execute family.

Session preflight

Three questions, before any dispatch, any isolate-workspace / git worktree add, and any first production edit:

  1. Issue tracker sync. Open docs/agents/issue-tracker.md first. When it names a tracker, read tracker-sync.md beside this file and follow it exactly: a ticket the operator named is claimed here, before any dispatch. One haiku build of #23 never opened the file, so the ticket was never claimed and its PR never closed it. No file, or no tracker named → empty ticket set, continue (unconfigured is normal, not a failure).

  2. Catalog occupancy. Read Status: from requirements.md and the matching docs/specs/INDEX.md row. INDEX missing → say so once, suggest /configure-repo; still write requirements.md when that file exists. land-branch / realign-spec own Implemented; cut-release owns Shipped. Runs on every start, including compaction resume.

    NO ISOLATE-WORKSPACE AND NO PRODUCTION EDIT WHILE CATALOG STATUS IS `Approved`. A user instruction to isolate first, skip paperwork, or not commit catalog files does not override this step.
    StatusAction
    ApprovedOn this checkout, write In-progress on both files, then continue.
    In-progressAlready occupied. Do not re-stamp. Continue.
    DraftSTOP — spec is not approved.
    Implemented / ShippedLeave it. Not a kickoff stamp.

    Before isolation, commit this checkout's dirty spec files for the feature (requirements.md, design.md, tasks.md, the INDEX row) — the occupancy write is part of that commit when Status was Approved. A worktree is created from HEAD, so uncommitted spec docs stay behind, invisible to the new tree and other sessions. isolate-workspace still must not commit .gitignore — occupancy is this step, not that skill.

  3. Workspace / branch. If no isolated workspace exists yet: isolate in a worktree, or implement on the current branch? Do not create a worktree unasked. Isolation → REQUIRED SUB-SKILL: use isolate-workspace. Current branch is main/master → separate explicit consent before implementing; "no worktree" is not consent to touch main/master.

Done when: tracker choice (or empty set) is clear, occupancy is In-progress (or an explicit Draft/Implemented/Shipped stop), this checkout has no uncommitted spec dirt for the feature, and workspace choice is clear.

ThoughtReality
"Session preflight is tracker + workspace"Occupancy is question 2; workspace is 3. Done when includes In-progress.
"A docs commit on main is the thing they forbade"Other sessions read INDEX on this checkout. Isolation must not precede the stamp.
"Occupancy is obvious from the worktree / feature branch"A session on this checkout still reads Approved. INDEX is the occupancy signal.
"land-branch will flip Implemented later"Implemented is the close. In-progress is the kickoff, before worktrees.
"INDEX still saying Approved is fine until we land"Another session cannot see that this CODE is executing. Stamp before Task 1.
"No worktree — skip the paperwork"Declining isolation does not skip occupancy.
"Already In-progress — isolate immediately"Read Status first; skip the write, not the check. Resume still reads Status before isolation.
"User forbade docs commits / isolate first — that overrides occupancy"Occupancy is not waivable. Isolation waits until this checkout reads In-progress.
"Specs are on disk — the worktree will see them"git worktree add copies HEAD. Uncommitted requirements.md / triad files stay behind.

Runtime binding and lease preflight

Before the first dispatch (inline route: before the first production edit), read runtime-binding.md beside this file and follow it exactly. It defines the .skills/<CODE>/execution-session.json schema (schema_version, harness, provider, model, resume/fork/worktree support, cache_control, token_telemetry, pricing_policy, effective_concurrency, rotations), the four lease-rotation triggers, the pricing-policy fallback, and the concurrency-degradation rule.

Done when: the runtime snapshot exists before dispatch, every unavailable capability is explicit, and the first effective concurrency/lease decision is recorded.

Ledger check

Read ledger-check.md beside this file and follow it exactly: .skills/ stays local-only, resume from .skills/<CODE>/progress.md, record the lint baseline task gates are judged against, and the Verified: slot is prove-claim's.

Done when: next task / unit is known and Lint baseline: is recorded.

Decision trail — observable conditional

WHEN user asked for a decision trail / show-work, OR unattended overnight / multi-day, OR effective_concurrency > 1 with multiple open units → read decision-trail.md beside this file and follow it exactly; ELSE write skip: no decision-trail predicate on Close notes.

Todos — GATE

Before any dispatch or Task 1, on a visible list — the harness's todo / task-list tool when it exposes one, otherwise a checklist written into your reply and restated at each task boundary: one todo per task and one terminal todo Close branch (the close sequence below — created now, not later). Add a Polish Diff todo only when a polish predicate is already known to hold (user asked up front). Otherwise create the Polish Diff todo at close-sequence step 3 if a predicate then holds.

Done when: the list mirrors the plan and includes the Close branch todo.

Close sequence

After the last task (waves / inline) or last unlocked unit (story):

  1. Whole-branch review. REQUIRED SUB-SKILL: use inspect-change with base = git merge-base <branch-base> HEAD — never a mid-branch sha. <branch-base> is main, or the blocker's branch when the ticket is stacked on one (deliver-issues): a stacked ticket reviewed against main re-reviews its blocker's diff and counts that diff's files toward polish. Feed ledger Minors. Top model tier.
  2. One fixer for the complete findings list → re-review. Never one fixer per finding. Inline route: you are the fixer under test-first.
  3. Polish Diff — observable conditional. Evaluate the polish predicate below. IF any clause is true → REQUIRED SUB-SKILL: use polish-diff on the whole-branch diff before acceptance; create the Polish Diff todo now if it does not exist; mark it done only after the skill has run. IF no clause is true → skip; write skip: no polish predicate on the Close branch notes. EOD, demo pressure, "inspect was clean", and "small enough to feel optional" are not predicates.
  4. Acceptance. REQUIRED SUB-SKILL: use validate-feature. Breaks → root-cause, then promote passing checks to committed tests that describe the domain behavior (docs-only spine — no requirement-ID tags required in test files).
  5. Close receipt. Load close-receipt.md and follow its producer recipe. Issue it only after the final mutation and only from evidence bound to that HEAD. Rerun a producer only when its evidence is missing or stale.
  6. Finish. REQUIRED SUB-SKILL: use land-branch.

Mark the Close branch todo done only after steps 1–6 have each run or been skipped under their predicate.

ThoughtReality
"Task todos are all green — close can wait"The Close branch todo is still open; land is blocked until the sequence runs
"Inspect was clean / branch is small — skip polish"Clean inspect and "feels small" are not predicates. Count files; check public API; read inspect leftovers
"EOD / demo — skip polish on a 40-file branch"Time pressure is not a predicate. File count is
"Always run polish so we cannot forget"Four cleanup agents on a three-file typo is the cost this conditional exists to drop. The skip must be written, never silent

Close-sequence predicate

Polish — true when any of: the user asked for polish, cleanup, or tidy; inspect-change Standards leftovers include an Important-or-higher finding that is behavior-preserving (reuse, dead code, needless complexity, wasted I/O); git diff --name-only $(git merge-base <branch-base> HEAD) HEAD lists more than 15 files; the branch adds a new public API or exported surface.

Red flags — never

  • Skip the tracker-sync, occupancy, or workspace preflight
  • Isolate or edit production files while catalog Status is still Approved
  • Write In-progress only inside a worktree created this session
  • Re-stamp an already In-progress row
  • Isolate while this checkout still has uncommitted spec/requirements dirt
  • Invent a tracker or ticket set when config is absent or the user declined
  • Start implementation on main/master without explicit consent
  • Create a worktree without asking, or treat "current branch" as consent for main/master
  • Dispatch the first task before the todo list exists (tasks and Close branch)
  • Silent-skip polish (no written skip: no polish predicate)
  • Silent-skip decision-trail (no written skip / required line)
  • Treat EOD, demo, or "inspect was clean" as a polish predicate
  • Move to land-branch with the Close branch todo still open
  • Write a partial receipt or bind it to evidence from before the last mutation
  • Promote checks as "ID-tagged tests" — IDs stay in docs

Comments

Markdown supported