Source profileQuality 96/100Review permissions

Jamie-BitFlight/claude_skills/plugins/development-harness/skills/implement-feature/SKILL.md

implement-feature

Executes the SAM implementation loop when a task plan exists — dispatches ready tasks to specialist agents in parallel, manages bookend tasks (T0 baseline capture and TN verification), tracks concerns and contract violations per task, and relies on hooks to update task status. Use when the plan_ref returned by add-new-feature is provided. Manages task batches via sam_plan and sam_task MCP tools.

Source repository stars
64
Declared platforms
0
Static risk flags
1
Last source update
2026-08-28
Source checked
2026-08-28

Decision brief

What it does: where it fits

This workflow continues from add-new-feature. It executes tasks from the selected provider until complete or blocked.

Best for

  • Use when the plan_ref returned by add-new-feature is provided.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/Jamie-BitFlight/claude_skills --skill "plugins/development-harness/skills/implement-feature"
Safe inspection promptEditorial

Inspect the Agent Skill "implement-feature" from https://github.com/Jamie-BitFlight/claude_skills/blob/a00194f25fec502d3d659b7d610369614967251e/plugins/development-harness/skills/implement-feature/SKILL.md at commit a00194f25fec502d3d659b7d610369614967251e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Resolve Plan

    Treat the value from the planref key as the opaque reference returned by samplan create. Pass it unchanged to every SAM operation and delegation prompt.

    Treat the value from the planref key as the opaque reference returned by samplan create. Pass it unchanged to every SAM operation and delegation prompt.Confirm the plan exists:
  2. 02

    Progress Loop

    After receiving the status response, extract and store the autonomy mode:

    Query status:If tasks remain, query ready tasks once and store the result as the current batch. In a Beads workspace, use bd ready --parent --json for native dependency readiness; use the SAM/DH adapter only for richer structured pl…Dispatch based on autonomymode:
  3. 03

    Agent Health Check (While Waiting)

    After dispatching a batch, the orchestrator waits for completion messages. Trigger a health check when any of these occur:

    No message received from any dispatched agent after 10 minutes of silenceUser asks about agent statusgit log shows no new commits when implementation work should be in progress
  4. 04

    Bookend Task Ordering

    When the plan contains acceptance-criteria-structured entries, swarm-task-planner generates T0 and TN bookend tasks. No special handling is needed in this loop — existing readiness logic dispatches them in the correct order automatically:

    T0 has priority: 1 and dependencies: [], so it is the first ready task and dispatches before any implementation task.TN has dependencies: [all non-bookend task IDs], so it becomes ready only after all implementation tasks complete and dispatches last.When the plan contains acceptance-criteria-structured entries, swarm-task-planner generates T0 and TN bookend tasks. No special handling is needed in this loop — existing readiness logic dispatches them in the correct o…
  5. 05

    Bookend Artifact Registration

    When the parent story issue number is known (str | int — GitHub integer ID or beads string ID), include artifactregister instructions in each bookend task's delegation prompt so the bookend artifacts are registered in the issue's artifact manifest:

    When the parent story issue number is known (str | int — GitHub integer ID or beads string ID), include artifactregister instructions in each bookend task's delegation prompt so the bookend artifacts are registered in t…T0 delegation prompt addition:TN delegation prompt addition:

Permission review

Static risk signals and limitations

Runs scripts

medium · line 19

The documentation asks the agent to run terminal commands or scripts.

uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}"

Runs scripts

medium · line 29

The documentation asks the agent to run terminal commands or scripts.

uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}"

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score96/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars64SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
Jamie-BitFlight/claude_skills
Skill path
plugins/development-harness/skills/implement-feature/SKILL.md
Commit
a00194f25fec502d3d659b7d610369614967251e
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Implement Feature (SAM Workflow Execution)

This workflow continues from add-new-feature. It executes tasks from the selected provider until complete or blocked.

<plan_ref>$ARGUMENTS</plan_ref>


MCP server availability: This skill uses both mcp__plugin_dh_backlog__* and mcp__plugin_dh_sam__* tools. Both servers initialize in ~1–2 seconds after a session restart. Claude Code handles connection waiting automatically. If a tool is unavailable, see mcp-connection-check.md for troubleshooting.

Resolve Plan

Treat the value from the plan_ref key as the opaque reference returned by sam_plan create. Pass it unchanged to every SAM operation and delegation prompt.

Confirm the plan exists:

uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}"

Progress Loop

  1. Query status:
uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}"

After receiving the status response, extract and store the autonomy mode:

autonomy_mode = status["autonomy"]

This value governs gate behavior throughout the remainder of the Progress Loop for this plan. Pre-existing plans that omit the autonomy field return "full_auto" (the Pydantic default).

  1. If tasks remain, query ready tasks once and store the result as the current batch. In a Beads workspace, use bd ready --parent <bead-id> --json for native dependency readiness; use the SAM/DH adapter only for richer structured plan rules:

If parent story identifier is known and structured SAM readiness is required (str | int — GitHub integer ID such as 42 or beads string ID such as "bd-a3f8"), use the adapter tool:

uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan sam-ready-tasks --parent-issue-number N

Output shape: {"feature": "...", "ready_tasks": [...], "count": N}. The selected provider owns availability handling and any private cache it requires.

If parent issue number is unknown, use the SAM CLI:

uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan ready --plan-address "{plan_ref}"

Call mcp__plugin_dh_sam__sam_plan(config={"action": "ready"}, plan="{plan_ref}") (or backlog_get_ready_sam_tasks) ONCE per batch. Store the returned task list. Loop over the stored list without fetching ready tasks again. After all tasks in the current batch are dispatched and completed, use uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}" to check whether more tasks remain. Fetch the next ready batch only after the previous batch is fully dispatched.

  1. Dispatch based on autonomy_mode:

If autonomy_mode == "per_task":

Process tasks from the ready list one at a time:

  • Dispatch task N via a single Agent call (not TeamCreate).
  • Complete steps 4, 4a, 4b for task N.
  • Present the per-task gate (after step 4b, described below) before dispatching task N+1.

Else (autonomy_mode is "full_auto" or "checkpoint"):

When multiple tasks are simultaneously ready (non-zero count with 2+ tasks in the ready list), dispatch them in parallel using TeamCreate:

TeamCreate(team_name: "impl-{slug}")

The team name follows the pattern impl-{slug} where {slug} is derived from the status response's feature value. This team name is reused by complete-implementation for QG agent dispatch and is shut down in the Final Step of that skill.

Spawn one teammate per ready task. When only one task is ready, a single Agent call is acceptable. TeamCreate is the standard parallel dispatch mechanism — use it whenever 2+ tasks are ready at the same time.

For each task being dispatched:

  • Choose the subagent_type with the decision in dh:dispatch-contract. Pass only the task reference (plan_ref + task ID) — the task definition's agent field is read after dispatch, not by the orchestrator.
  • Launch the chosen agent with the task reference as its entire prompt:
{plan_ref}/{task_id}
  • The dispatch carries a task reference and the receiver resolves what to load from it. dh:task-worker reads the task record, loads the profile named in its agent field, and the task-execution skill it delegates to loads the task's own skills list; a specialist dispatched directly already carries its own behavior. Task-level skills stay additive to whatever the agent profile declares.

Agent Health Check (While Waiting)

After dispatching a batch, the orchestrator waits for completion messages. Trigger a health check when any of these occur:

  • No message received from any dispatched agent after ~10 minutes of silence
  • User asks about agent status
  • git log shows no new commits when implementation work should be in progress

Never read JSONL session files directly in the orchestrator context. Session files can exceed 40K tokens. Always delegate to agentskill-kaizen:transcript-analyst with an empty context window.

Session JSONL files are at ~/.claude/projects/{project-slug}/*.jsonl, filterable by agentId field. The {project-slug} is the absolute project path with / replaced by - (e.g. /home/user/repos/myproject-home-user-repos-myproject).

flowchart TD
    Trigger([Health check triggered]) --> Spawn
    Spawn["Task is session health summary<br>subagent_type='agentskill-kaizen:transcript-analyst'<br>Context: agent name or teammate ID to check,<br>JSONL dir ~/.claude/projects/{project-slug}/*.jsonl<br>Report: last turn timestamp, last tool call,<br>verdict of crashed / idle / active"]
    Spawn --> Verdict{Analyst verdict}
    Verdict -->|"Crashed — session ended abruptly<br>after sam_task(action=claim) with no further turns"| Confirm
    Confirm["Confirm task state via sam_task read<br>using plan_ref + task_id<br>Verify task is still CLAIMED"] --> Respawn
    Respawn["Re-spawn agent with the same plan_ref and task ID<br>SubagentStop hook updates status on completion"]
    Verdict -->|"Idle — no tool calls for 5+ min<br>agent appears stuck mid-task"| Activity["Read the task via sam_task read<br>Note its last-activity timestamp<br>Wait 2 minutes and read it again"]
    Activity --> ActCheck{last-activity advanced?}
    ActCheck -->|"Yes — the agent is still writing task state"| Waiting
    ActCheck -->|"No — task state is frozen"| Respawn
    Verdict -->|"Active — tool calls within last 2–3 min"| Waiting
    Waiting[Continue waiting] --> Later["Re-check after 5–10 min<br>if completion message still absent"]
  1. After each agent returns, check its output for a <concerns> block. If present, append each concern to the backlog item as a checklist entry:
mcp__plugin_dh_backlog__backlog_groom(
    selector="#{issue}",  # {issue} is str | int — GitHub integer ID or beads string ID
    section="Concerns",
    content="- [ ] {concern text} (reported by {agent_name} on {task_id})",
    append=True
)

Use the MCP tool for this call.

Concerns accumulate across all task agents. They feed into the validation stage in /complete-implementation — each verified concern becomes a new backlog item.

4a. If a parent issue number is known (str | int — GitHub integer ID or beads string ID), attempt contract verification against the architect spec:

uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" artifact read --item-id N --artifact-type architect

If artifact_read returns content (architect spec exists), resolve the files modified by the just-completed task:

git diff --name-only HEAD~1..HEAD

Then spawn the contract-verification agent:

Agent(
    subagent_type="dh:contract-verification",
    prompt="""
Verify the just-completed task against the architect spec.

Task ID: {task_id}
Plan: {plan_ref}
Architect spec: {architect_spec_content_or_path}
Modified files:
{modified_files_list}

Read the architect spec's Component Design and Type System Design sections.
For each modified file, grep for function/class definitions and extract actual signatures.
Compare against the contracts defined in the spec.
Report mismatches in a <concerns> block with severity CONTRACT VIOLATION (signature mismatch)
or CONTRACT GAP (spec defines contract but implementation is silent).
If no mismatches are found, output `No contract concerns — all contracts in scope are satisfied.` with no <concerns> block.
"""
)

If the contract-verification agent returns a <concerns> block, append each concern to the backlog item with a CONTRACT: prefix:

mcp__plugin_dh_backlog__backlog_groom(
    selector="#{issue}",
    section="Concerns",
    content="- [ ] CONTRACT: {concern text} (reported by contract-verification on {task_id})",
    append=True
)

Use the MCP tool for this call.

If artifact_read fails or returns no content (no architect spec for this issue), skip step 4a entirely. Proportional quality gate items without an architect spec automatically skip this step.

4b. Release the team

Releasing the team happens once per team, and it happens after the batch commit in step 5 — never here, and never before the work it releases has been committed.

Two preconditions must hold before the release is attempted:

  1. Every task the team owns is terminal. Read that through sam_plan(config={"action": "status"}), never by assuming a silent teammate has finished.
  2. Every teammate has been shut down. TeamDelete is a release step, not a shutdown mechanism — it fails while any teammate is still active, and a teammate that finished its task stays alive and idle until something shuts it down. Shut each teammate down through the harness's teammate-shutdown mechanism first.
TeamDelete(team_name="{team_name}")

Treat a failed release as a release that did not happen, not as a failed run. It reports that a teammate is still active; wait for that teammate and retry. Never let it end the run, and never place it ahead of the commit for the work it releases: in full_auto and checkpoint modes the batch is not committed until after step 5, so a release that throws here ends the run with every completed task in the batch uncommitted.

Skip when: the agents were dispatched via single Agent calls (not TeamCreate) — subagents terminate automatically when their prompt completes.

Commit Ownership

Commit responsibility depends on which execution mode is active.

Same-worktree mode (default — no isolation flag): The orchestrator owns all commits. Commit timing depends on autonomy_mode:

  • per_task mode: The Per-task Confirmation Gate (below) ensures only one task runs at a time. Commit after step 4b, before dispatching the next task — no concurrent agents are writing:

    git add -A
    git commit -m "<type>(task): {task_id} — {task_title}"
    
  • full_auto and checkpoint modes: Multiple tasks in a batch execute concurrently. Do NOT commit after each individual step 4b — other batch agents may still be writing to the worktree. Commit once after step 5 confirms all tasks in the current batch are complete:

    git add -A
    git commit -m "<type>(task-batch): {plan_ref} — {task_ids}"
    

    Release the team only after this commit succeeds, per step 4b.

In both cases, choose <type> to match the dominant change in the committed work (feat, fix, docs, refactor, etc.). Do NOT include Fixes #N, Closes #N, or Resolves #N trailers — see start-task/SKILL.md step 6. Issue closure is handled exclusively by /complete-implementation.

Isolated-worktree mode (via /dh:work-milestone): Each agent owns its own commits. The agent commits in its isolated worktree after completing its task. The orchestrator merges each worktree back when the completion message arrives. The orchestrator does NOT issue commit calls in this mode.

Per-task Confirmation Gate (active when autonomy_mode == "per_task" only):

After task N completes (steps 4 through 4b finished), before dispatching task N+1:

  1. Display a compact task result summary:

    • Task ID and title
    • Completion status (complete / error)
    • Any concerns raised (from the concerns block check in step 4)
  2. Present a confirmation prompt to the user. The exact wording is implementation-defined; examples include "Ready to dispatch the next task? (yes/no)" or a numbered menu of options. The prompt must make clear which task will be dispatched next (task ID and title).

  3. Await explicit user confirmation before proceeding.

    • If confirmed: dispatch the next task from the stored batch (or query the next batch if the batch is exhausted).
    • If declined or cancelled: stop the Progress Loop. Report the current plan state via uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}" and exit.

Skip this gate when autonomy_mode is "full_auto" or "checkpoint".

  1. After all tasks in the current batch complete, call uv run "${CLAUDE_PLUGIN_ROOT}/sam_schema/cli.py" plan status --plan-address "{plan_ref}" to check plan progress. If tasks remain, return to step 2 to fetch the next batch of ready tasks. Do not fetch another ready batch until the previous batch is fully dispatched.

5a. Wave-Completion Confirmation Gate (active when autonomy_mode == "checkpoint" only):

After all tasks in the current batch complete and the status response from step 5 confirms that tasks remain:

  1. Display a compact wave-completion summary:

    • Number of tasks completed in this wave
    • Current plan completion percentage (from status["completion_pct"])
    • Number of tasks remaining
    • Next ready tasks (from status["ready_tasks"] list — task IDs only)
  2. Present a confirmation prompt to the user. The exact wording is implementation-defined; examples include "Wave complete. Proceed with the next wave? (yes/no)".

  3. Await explicit user confirmation before fetching another ready batch.

    • If confirmed: proceed to step 2 to fetch the next batch.
    • If declined or cancelled: stop the Progress Loop. Report the current plan state and exit. The plan remains in its current state and can be resumed later.

Skip this gate when autonomy_mode is "full_auto" or "per_task".

Note: under "per_task", per-task gates already fire for each task; no additional wave gate is needed.

Hook behavior on SubagentStop: When a sub-agent finishes, task_status_hook.py marks the task complete via the SAM MCP server (backend-agnostic). After updating the SAM state, the hook syncs completion to the external tracker (if parent_issue_number is set in the active-task context). External tracker sync failure does not affect the hook exit code. parent_issue_number accepts str | int — GitHub integer IDs and beads string IDs are both supported.


Bookend Task Ordering

When the plan contains acceptance-criteria-structured entries, swarm-task-planner generates T0 and TN bookend tasks. No special handling is needed in this loop — existing readiness logic dispatches them in the correct order automatically:

  • T0 has priority: 1 and dependencies: [], so it is the first ready task and dispatches before any implementation task.
  • TN has dependencies: [all non-bookend task IDs], so it becomes ready only after all implementation tasks complete and dispatches last.

T0 runs agent t0-baseline-capture. TN runs agent tn-verification-gate. Both agents register their results as artifacts via artifact_register (types T0-baseline and TN-verification). These artifacts are read by /complete-implementation in its pre-Phase 1 check via artifact_read.

Bookend Artifact Registration

When the parent story issue number is known (str | int — GitHub integer ID or beads string ID), include artifact_register instructions in each bookend task's delegation prompt so the bookend artifacts are registered in the issue's artifact manifest:

T0 delegation prompt addition:

Register the baseline content directly via MCP (no file write):
  mcp__plugin_dh_backlog__artifact_register(item_id=N, artifact_type="T0-baseline", artifact_id="T0-baseline-{slug}", content=<baseline yaml string>, agent="t0-baseline-capture")

TN delegation prompt addition:

Register the verification content directly via MCP (no file write):
  mcp__plugin_dh_backlog__artifact_register(item_id=N, artifact_type="TN-verification", artifact_id="TN-verification-{slug}", content=<verification yaml string>, agent="tn-verification-gate")

If the issue number is not known, skip registration.


Variant: Worktree Isolation

Worktree isolation variant: For milestone-scoped execution where each item gets its own worktree, use /work-milestone instead. See work-milestone SKILL.md.


Completion Gate

When all tasks show COMPLETE, load the dh:complete-implementation skill with {plan_ref} as its argument, in this workflow's own context.

Frequently asked questions

What to verify before installation and use

What does the implement-feature source document cover?

This workflow continues from add-new-feature. It executes tasks from the selected provider until complete or blocked.

How do I install implement-feature?

The source record exposes this install command: npx skills add https://github.com/Jamie-BitFlight/claude_skills --skill "plugins/development-harness/skills/implement-feature". Inspect the command and pinned source before running it.

Which permission-related actions were detected?

Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 946

mgiovani/cc-arsenal

implement-feature

Implements a new feature end-to-end as a senior staff engineer would, discovers project conventions, researches current best practices, drafts a plan for approval, then builds it (with parallel subagents where available) reusing existing code, skipping speculative abstractions, and verifying with tests before completion. Use when the user wants to implement, build, add, or ship new functionality (a feature, endpoint, component, module, or integration). Not for fixing an existing bug (use fix-bug

Computed 10029,236

garrytan/gbrain

bulk-ingestion

End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

Computed 10025,136

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 10015,385

wanshuiyin/Auto-claude-code-research-in-sleep

citation-audit

Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.