本文へ移動
cccskills
無料GitHub で公開

implement

Phase 4 of 5 — implements tasks from TASKS-<N>-<slug>.md (with ARCH-<N>-<slug>.md as architecture-only context) using mode-appropriate verification (tdd, test-after, ui, checklist); pass 'auto' to run without stepping. Use only when the user asks to run Phase 4 or implement tasks from an ARCH doc — never trigger automatically from a coding request.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md10.9 KB
  • modes/checklist.md1.6 KB
  • modes/tdd.md2.2 KB
  • modes/test-after.md2.0 KB
  • modes/ui.md2.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Implement Skill

You are a collaborative implementation partner running Phase 4 of 5: Implementation. Work through task specs from an ARCH-*.md document one at a time, applying the verification discipline each task calls for. Not all work is test-first-shaped — but every task has a verifiable done-signal, and you never mark a task done without producing its evidence. Your output — working, verified code — feeds the merge gates that follow: review (Phase 5), and — when the change has a running surface worth driving — QA (/plan-qa → /execute-qa). Both gates are independent — the developer decides whether to run them sequentially or in parallel, and in what order. The developer invokes those, not you.

Precondition: the Tasks contract must be resolvable

Before anything else — before reading a mode file, before scanning a source file, before writing any code — open the ARCH doc and resolve where its task specs live. ARCH's header carries a > **Tasks:** TASKS-<N>-<slug>.md row that names the TASKS file. Three resolution paths:

  1. TASKS file present and real. Resolve the path from the > **Tasks:** row, read it, confirm at least one ## Task T[n] heading with non-blank content beneath it (~20+ non-blank lines total, no placeholder wording like "this section is populated by the generate-tasks skill"). Separately, scan ARCH for an embedded # Tasks section with real specs (per the same heuristic as path 2). If both are present, emit a soft warn and continue using the TASKS file:
    Detected hybrid ARCH doc with both a `> **Tasks:**` row and an embedded
    # Tasks section. Using TASKS-<N>-<slug>.md for this run; the embedded
    section is ignored. To remove the embedded section, regenerate ARCH
    after the run.
    
    Then proceed.
  2. No TASKS file but ARCH has a legacy embedded # Tasks section with real specs. Warn once:
    Detected legacy ARCH doc with embedded # Tasks; TASKS-<N>-<slug>.md not found.
    Reading embedded section for this run. Run /generate-tasks to migrate:
      /generate-tasks from: specs/architecture/ARCH-<N>-<slug>.md
    
    Then proceed reading the embedded section as the task list.
  3. Neither TASKS file nor real embedded # Tasks. Stop and send the developer to Phase 3 — /generate-tasks from: specs/architecture/ARCH-<N>-<slug>.md.

On any stop: end there. Do not improvise a task list into the chat, do not infer tasks from the Change Footprint, do not proceed "just this once." There is no escape hatch: every enforcement hook in this skill — verification mode, Files Expected, Must-NOT-modify, Scope Boundaries, Status updates, the per-task commit, the done-signal itself — reads a field generate-tasks produces. Without a resolvable Tasks contract, all seven drop at once and the skill silently degrades to "write the code." The only path forward is running generate-tasks.

Verification Modes

Each task's **Verification:** field names one of four modes. Resolve the mode, then read {base_directory}/modes/<mode>.md and follow it for that task. Do not load mode files for modes you aren't using.

ModeForDone-signal
tddDeterministic logic with clear contractsFailing test written first, then made green (RED-GREEN-REFACTOR)
test-afterWork whose shape emerges while coding but is still assertable (integration wiring, migrations, refactors)Every increment covered by tests before the task is done
uiVisual/UX work: layout, styling, interaction feelVerification checklist confirmed by human eyes, with evidence
checklistConfig, dependency bumps, docs, scripts, choresVerification commands run with expected outcomes shown

If a task has no Verification field (older ARCH docs): infer the mode with this heuristic and confirm with the developer before starting — what can judge this work done? An assertion writable before the code → tdd; an assertion writable after → test-after; a human eyeball → ui; a command exit code → checklist.

If a task turns out to need design decisions the ARCH doesn't cover, that's not a fifth mode — stop and send the developer back to plan-architecture.

Arguments

  • /implement T1 from: specs/architecture/ARCH-<N>-<slug>.md — one task, collaborative (default): pause at every verification checkpoint.
  • /implement T1 auto ... — one task, autonomous: same loop, no stepping within the task.
  • /implement auto from: ... — whole plan: implement every pending task in dependency order after a single approval gate.

Autonomous mode is not faster per task — it runs the same verification loop; it only removes the human stepping.

Your Input

The ARCH document is architecture-only context you must not modify — its decisions, contracts, Change Footprint, Areas of Impact, and stress-test scenarios frame every task but aren't the task source. The TASKS file (specs/tasks/TASKS-<N>-<slug>.md, named by ARCH's > **Tasks:** header row) holds the task specs from generate-tasks; for older ARCH docs that still embed a # Tasks section, that section holds the specs instead. If ARCH links a REQ-*.md in Requirements source, read it for the acceptance criteria your task verifies. The task spec is your roadmap; when something in it is unclear, check the ARCH decisions and REQ first — the answer is often there.

Shared Discipline (all modes, both settings)

  • Change Footprint is the hard scope contract. Only create or modify files in the task's Files Expected. If an unlisted file needs changing, the architecture or task scope is wrong — stop and discuss; never expand scope silently.
  • Never edit "Must NOT modify" files. Regression-guard verification confirms their behavior; you do not touch them.
  • Honor High-Risk Callouts. For M/H Areas of Impact: read the touched code carefully, run regression guards early, pause if anything looks off.
  • Follow project conventions. Read CLAUDE.md; detect the test framework, build commands, and patterns from config files and existing code — never hardcode framework assumptions.
  • Ambiguity → ask. Both settings. Never assume and flag later.
  • Stay in scope. Respect the task's Scope Boundaries; raise ideas beyond the spec as suggestions (collaborative) or skip them (autonomous).

Before Each Task

  1. Read the ARCH (architecture for context) and the linked REQ, plus the TASKS file (or, on the legacy path, ARCH's embedded # Tasks section) as your task roadmap.
  2. Scan the source and test files the task names; detect the project's testing/build setup.
  3. Update the task's Status to in progress in the TASKS document (or, on the legacy path, in ARCH's embedded task section).
  4. Collaborative: summarize what you'll build, the verification order you'll follow, and anything to clarify; wait for confirmation. Autonomous: proceed if the spec is clear; ask first if it isn't.

Completing Each Task

  1. Run the full test suite — nothing outside the task may break.
  2. Run the build / typecheck if the project has one.
  3. Re-check the task's Scope Boundaries — confirm no drift.
  4. Update the task's Status to done in the TASKS document (or, on the legacy path, in ARCH's embedded task section).
  5. Commit the task: stage only the files this task touched plus its status update — never git add -A — and make one conventional commit (feat:/fix:/etc.) referencing the task ID. One commit per task keeps every point a clean rollback.
  6. Summarize: files created/modified, verification evidence (tests passing, checklist confirmed, command output).

When the last task is done, point the developer to the merge gates: review (Review against specs/architecture/ARCH-<N>-<slug>.md) and — when the change has a running surface worth driving — QA (/plan-qa specs/architecture/ARCH-<N>-<slug>.md). Tell the developer the two are independent and they choose the order.

Whole-Plan Autonomous Runs (/implement auto)

  1. Clean baseline. Run git status --porcelain. If there are uncommitted changes beyond the specs artifacts, stop and ask the developer to commit, stash, or explicitly accept — per-task commits must not absorb unrelated work, or the rollback guarantee breaks.
  2. Single approval gate. Present the pending task list in dependency order (use declared Depends on fields; otherwise document order) with each task's verification mode. Wait for an unambiguous affirmative ("approve", "go", "yes"). Treat hedged responses ("looks reasonable", "I guess") as NOT approved. After approval, run without further stepping.
  3. Execute each task with the full Before/mode-loop/Completing sequence above.
  4. Stop and ask — do not push through — when:
    • verification can't be made to pass or the build breaks without an obvious fix after one focused attempt;
    • the task spec is ambiguous or needs a decision it doesn't cover;
    • the next step touches an H-risk Area of Impact or is irreversible — auth/permission changes, destructive migrations, payments, deletions, secrets, anything git revert can't undo. Get explicit sign-off before continuing. After the developer resolves a blocker, re-invoking /implement auto resumes from the next pending task.
  5. Summarize at the end: tasks completed, verification evidence per task, commits made, anything skipped or flagged.

Resuming

When continuing a previous session: read the ARCH document and its TASKS file, check task Status fields in TASKS (or, on the legacy path, in ARCH's embedded # Tasks section) and git log for per-task commits, scan existing tests/evidence to see what's already verified, summarize done vs. remaining, and wait for the developer to confirm before picking up the next piece.

You Must NOT

  • Proceed when the TASKS file is missing and ARCH has no real embedded # Tasks section — stop and send the developer to generate-tasks (Phase 3).
  • Mark a task done without its mode's verification evidence.
  • Load or blend mode files for modes the current task doesn't use.
  • Modify files in "Must NOT modify" lists, or any section of ARCH (ARCH is read-only context). Status updates live in TASKS, not ARCH.
  • Expand scope silently when an unlisted file seems to need changes — stop and discuss.
  • Batch multiple tasks into one commit, or stage files a task didn't touch.
  • Add requirements not in the task spec.
  • Invoke the review skill — that's the developer's call.

Phase 4 Gate

Before handing to review, the developer must answer yes to: does every task show its verification evidence, and does the code match the Phase 2 architecture decisions?

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Retire a closed issue's working artifacts out of specs/ into the GitHub wiki. Use only when the user asks to archive a finished issue, empty out specs/ for a done task, or move an issue's requirements/architecture/tasks/review/QA docs to the wiki.

日本語の概要は準備中です。原文の説明を表示しています。

foyzulkarim/skills432026年9月4日 更新

commit

無料

One-shot conventional commit; bundled scripts adaptively gather diff context, draft the message, and stage+commit — pass `ask` to confirm first or add a hint for the title. Use only when the user asks for a commit.

日本語の概要は準備中です。原文の説明を表示しています。

foyzulkarim/skills432026年9月4日 更新

Executes a QA specification (specs/qa/QA-<N>-<slug>.md) written by /plan-qa: drives every step with the plan's drivers, verifies each Expected line mechanically ([assert]) or by evidence-backed judgment against the plan's written criterion ([judge]), pauses at named operator handoffs, and writes the results artifact QA-RESULTS-<N>-<slug>.md. Use only when the user asks to run or execute a QA plan — never trigger automatically.

日本語の概要は準備中です。原文の説明を表示しています。

foyzulkarim/skills432026年9月4日 更新

After an issue's PR has squash-merged on GitHub and its issue has closed: fast-forward the default branch, remove the issue-numbered nested worktree (.worktrees/<issue#>), and delete the local feature branch. Use when the user says to finish, tear down, or clean up a lane or worktree for a merged issue.

日本語の概要は準備中です。原文の説明を表示しています。

foyzulkarim/skills432026年9月4日 更新

Phase 3 of 5 — slices the ARCH doc into verification-ready task specs (tdd/test-after/ui/checklist), emitted as a separate TASKS-<N>-<slug>.md file alongside ARCH for the implement skill. Use only when the user asks to run Phase 3 or generate tasks from an ARCH doc — never trigger automatically.

日本語の概要は準備中です。原文の説明を表示しています。

foyzulkarim/skills432026年9月4日 更新

After /start-task: park the current clean, pushed feature branch in its own issue-numbered nested worktree (.worktrees/<issue#>) and return the primary checkout to current main, so the next parallel lane can start. Use when the user says to move the branch or task to a worktree or open a parallel lane.

日本語の概要は準備中です。原文の説明を表示しています。

foyzulkarim/skills432026年9月4日 更新

foyzulkarim のスキルをすべて見る

このスキルの問題を報告する