gggodlin/gggodlin-cc-harness/implement

Claude Code and agent skill by gggodlin/gggodlin-cc-harness

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when a spec or ticket set is ready to build and the user says implement / 開工 / 照 ticket 做 / start building, or the local pipeline reaches its implementation stage. Do not use for exploratory prototyping without a spec or debugging existing failures (debugging skill).

Install

npx vskill@latest install gggodlin/gggodlin-cc-harness/implement

SKILL.md

The same SKILL.md was published earlier as gggodlin/gggodlin-cc-harness/implement.

Implement

Implement the work described by the user in the spec or tickets. If they are referenced by path, read them fully first. 進入本流程時先把適用標準階段(1. Preflight → 2. Work the frontier → 3. Close out)建進待辦清單;如果某步驟因本批條件不適用或已有核准豁免而跳過,保留該項並標註 skip: <原因>(指回原流程決定),不得將待辦清單的 skip 當成新的測試或審查豁免來源。

1. Preflight, then ask everything at once

Someone handing you a ticket set usually intends to walk away. Every question asked after they do costs them a context switch and costs you the run, so front-load all of it: probe first, then put every open question in a single round.

先分清每票的測試義務與本批的測試模式。 核准票上的 Tests: required|waived 決定是否需要測試;舊 TDD: 欄位仍可讀,但不能拿票上的 required 當成新一批已選 TDD。先從 context、同批仍有效的 started manifest 或 Verification Log 找本批已批准的模式;續接沿用、不逐票重問,已結束的另一批選擇不沿用。如果本批有 required 票而尚未選模式,就先繼續下方預檢,再在同一輪問;答案前不建立 started manifest、不載入 TDD 正文、不實作或派工。未開工的退出仍用既有 not-started --reason <preflight-only|prerequisite-blocked|user-deferred>。

Probe what the tickets say they need. Each ticket's Needs: field names the environment, credentials, or human action its acceptance items depend on — probe each one cheaply (nc -z the port, gcloud auth list, one throwaway API call, ls the config file) instead of assuming, and add whatever the repo's own test commands imply.

When Needs: names nREPL or another shared daemon, a listening port is discovery only. Before reusing or starting it, verify the owner PID, process cwd, build identity, and a real runtime probe that proves the daemon loaded the intended worktree's code. A mismatch means the prerequisite is not ready; do not start a second copy and let the next eval attach to whichever runtime wins.

When a ticket's acceptance explicitly requires browser E2E, the implementation owner makes that checkpoint reproducible before browser handoff: establish the required test data, account state, feature flags, permissions, integrations, and service state instead of leaving the browser runner to improvise prerequisites through unrelated UI flows. Prefer existing setup facilities. If a new test-only setup capability is necessary, keep it inaccessible in production, explicitly gated to approved test environments, authenticated where appropriate, narrowly scoped, and safe to call repeatedly. It must not create a production backdoor, weaken production authorization, or encode the behavior under test. Tickets without browser E2E acceptance skip this branch. 如果本批任務是「換底層技術/重構但要求畫面或終端輸出維持一模一樣」,就在動手改碼前讀 ~/.claude/references/verification-recipes-and-probes.md 的「視覺零漂移基準鎖定」先鎖定改前基準。如果本票驗收需要實機操作(CLI、TUI、背景服務或 UI),就只檢查本票驗收實際會用到的既有配方與前置環境(不巡檢與本票無關的其他配方);當目標 repo 已有可啟動程式、且尚無涵蓋本票實機路徑的可重用驗收配方(排除僅供 commit 前檢查的輕量 verify skill)時,才在下方唯一一輪提問順便詢問是否初始化第一套最小配方(同意即呼叫 Skill(create-verify) 走最小版,並於記錄 feature_base_sha 前單獨 commit;綠地新專案延到第一個可執行票收尾再提)。如果本批規格或票具有具體交錯順序風險與待證不變量(多步狀態機、跨 session 搶鎖、超時與重試交錯)且 Testing Decisions 尚未記錄層級選擇,就在寫這一題前讀 ~/.claude/references/verification-recipes-and-probes.md 的「狀態與併發三版核驗」,再在下方唯一一輪提問順便詢問要跑「第一版(巡檢)」「第二版(掃描+巡檢)」「第三版(掃描+模型窮舉)」或「不適用」,每個選項照該段寫明範圍與成本。

Report as:

✅ <prereq> — probe passed
⚠️ <prereq> — YOUR ACTION: <exact command or click>
why I can't: <sudo / GUI / interactive auth / secret entry>

If the session's usage window is already heavily used, list it as a warning prereq with the number, so they can decide whether to start now.

Then one question round. 停點回報順序(中途與收尾同用):沿用 context 的呈現規則,先重建已批准的功能目標,再說已做/未做與卡點,最後列選項;每個選項說清驗證能證明什麼、仍未驗證什麼,以及是否新增行為或維護責任,不把文字契約檢查當成真實派工證據。尚未執行的驗證明列為未驗證,不以預計的 trial 或新增程式填成已證實。 Ask for the base execution mode — Inline or Subagent-Driven (a fresh worker per frontier ticket, parallel where blocking edges allow; the default for 3+ tickets). In the same question round, also ask about any ticket the plan marked best-of-N(若批次內含「解空間寬、改動核心狀態機或演算法、或難回滾」的高風險票,且上下文尚未決定該票執行方式,也在這唯一一輪順便詢問是否對該票走 best-of-n-implement 平行產生候選並由測試與裁判選優;單一詢問點,使用者拒絕後不重問)and any acceptance criterion whose wording you would otherwise guess at. Ask them together, not one at a time as you reach them. 同一輪再問本批尚未取得答案的測試模式:a. 原 TDD(tdd)/b. 回歸收尾(regression-closeout);不預設、不從 required 代選、不在核票或每票再問。若真人已明確選了本批模式或這是同批續接,就沿用該選擇、不重問;同批舊 started manifest 缺模式欄時相容為原 TDD,不當成新一批的預設。若 context 已載入完整 TDD 正文,就在這一輪說清回歸收尾不能復用該 context 作 Inline 執行:用只接收所選路線的 fresh worker 或新 session;不宣稱能卸載舊指令,也不把選模式當成另起 Herdr 的授權。全部票都已批准 waived 時沒有測試路線要執行,省略此題、沿舊 CLI 相容值,不宣稱真人選過 TDD。

State the degradation policy before they leave, so their silence later isn't ambiguous: name which failures you will route around and record (a tool disconnects, an optional check can't run, one verification path breaks while another reaches the same fact) and which will genuinely stop you (a required credential expires, a gate ticket's answer contradicts the spec's premise). Unattended means route-around-and-record is the default and stalling is the exception — an agent that halts on the first broken tool has spent their absence doing nothing.

取得同一輪的答案後,依序接以下選路步驟,再開始 frontier:

  1. 將本批已批准模式、覆蓋票號與真人選擇原話追加既有 Verification Log(OpenSpec 用 tasks.md;scratch 用本批首票),讓續接有來源;同批有效紀錄不重寫。全 waived 的批次記「沒有測試路線適用」,不偽造模式選擇。
  2. Create the decision manifest after the approved breakdown and testing choice are in context and before dispatch. Use the session and run IDs injected by the TDD gate, then run node ~/.claude/skills/implement/scripts/tdd-policy.mjs init --session <session> --run <run> --tickets <approved-ticket-set> --testing-mode <tdd|regression-closeout>. Scratch 用完整 .scratch/<feature>/issues/ 目錄,不能只傳單票;OpenSpec 用 openspec/changes/<change>/tasks.md。每票仍須有 required 與非空 seam,或 waived 與已批准封閉理由;錯誤豁免回既有核票,不在 implement 自補。若本 run 已有 started manifest,就 validate 並沿用,不再次 init 或默默改模式;新 run 的續接用真正的新身分、沿用同批真人選擇,不冒用舊 session/run。全 waived 批次可省略模式旗標使用舊相容值。
  3. 只有 testing_mode=tdd 且有 required 票時,才在本次 arming 後、Inline/dispatch 前真正 invoke Skill(tdd) 一次並確認 matching result 成功。若選 regression-closeout 且有 required 票,就在 Inline/dispatch 前讀 回歸收尾配方,不 invoke 完整 TDD skill、不讀它的 SKILL.md。全部票 waived 時不載入任何測試配方。配方只按已選路線載入,不把兩套詳細步驟一起交給 worker。

For a Git-backed implementation, record feature_base_sha 在第一筆 feature commit 前(必須先單獨執行 git rev-parse HEAD 讀回真實 40 碼 SHA 後,下一輪才可呼叫 work_state_write 等狀態寫入工具,禁止同回合平行呼叫並憑前 7 碼拼湊 40 碼 SHA)。 Keep it stable for the whole run; post-implement architecture comparison uses this base rather than guessing from the final diff.

Done when: every ⚠️ is resolved or explicitly waived, every question in the round is answered, 本批模式有真人來源或全票已批准 waived、decision manifest validates、只載入所選路線且需要的真實 Skill(tdd) 呼叫已成功,feature_base_sha is recorded when Git applies, every shared daemon matches the intended worktree by PID/cwd/build identity plus a real runtime probe before dispatch, and every ticket with browser E2E acceptance has reproducible state established before browser handoff. Do not re-ask per ticket; run to the end.

2. Work the frontier

A ticket is on the frontier when all its "Blocked by" tickets are done. Repeat until no tickets remain.

如果要首次形成實作要求、改派/重派/換方案,或接受會增加範圍的 review 建議,就在自己修改或派工前讀 ~/.claude/rules/common/dispatch-and-verify.md 的「Main scope 差額檢查」並套用;完成後再走下方共同 recipe。Inline 與 Subagent-Driven 都適用,不以 main 自寫的 ticket 或驗收條件替新增範圍授權。

Common per-ticket recipe (Inline and Subagent-Driven): preserve the approved required|waived test obligation;controller 與 worker 都不能把 required 改成 waived 或自行改本批模式。required 票只用開工時選定的配方與已批准 seam;waived 票保留封閉理由,不新增測試或宣稱做過測試。TDD 與回歸收尾的詳細指令不放在這份共用正文,也不由 worker 重選。Stop 仍是提示型、從不攔回合:它只提醒需要 TDD 呼叫的批次缺真實 Skill(tdd),不證明 required 測試已補齊、測試品質或任何執行順序。Run typechecking regularly and single test files regularly. Tick the ticket's acceptance checkboxes as they pass (always use Edit on the ticket/tasks file for checkboxes, Verification Log, and Status — never overwrite or append via Bash python3 or printf/echo >>). Anything noticed-but-not-blocking goes to the Verification Log (openspec: the change's tasks.md; scratch: the ticket file) as a Minor finding — do not chase it mid-ticket.

When a criterion turns out to be wrong — the behaviour it demands can't happen, already happens elsewhere, or would break something — record the verdict plus its evidence in the Verification Log, correct the spec's wording, and tick the item as resolved-by-correction. Leave the code alone: code bent to satisfy a wrong criterion passes the ticket and ships the defect, and the next reader inherits a spec that still asserts the wrong thing. 如果這個修正需要使用者拍板,就在提出選項前套用 Step 1 的「停點回報順序」,不先改掉需核准的驗收或範圍。

條件式「獨立監工盲驗與單輪反例修正」(Inline 與 Subagent-Driven 共用,實作者通過自家測試後、標記該票完成前):避免實作者拿自家實作邏輯反推測試期望值而綠燈藏錯,僅對 Tests: required 且受測行為屬四類之一(核心領域邏輯、多步狀態機、演算法求解/取樣、資料轉換與序列化)的票自動觸發;Tests: waived、純文案、設定搬移與簡單接線票跳過,並於 Verification Log 註記不適用原因。觸發時派發一位獨立監工(固定範圍角色),僅提供核准規格/票面契約、公開測試接縫與已公開介面簽名,禁止閱讀實作內部程式碼與實作者自寫的測試;監工在 session 隔離暫存位置撰寫可重播契約探針(純運算/最佳化優先加入小輸入窮舉參考對照)針對實際工作樹產物執行。零發現時於交回前刪除本輪建立的臨時探針(不留探針殘檔,不以工作樹其他合法變更誤擋流程)。探針回報失敗時,主流程先核對斷言是否忠於核准規格前提——屬探針誤解規格則校正探針重跑一次、不誤殺合格實作;屬規格自身歧義則停下交使用者釐清;確認為實作真反例後,將最小可重播輸入、契約預期與失敗輸出退回原實作者最多修 1 輪並將反例補成正式回歸測試、重跑既有測試,修完後由監工重跑探針仍失敗即停下交使用者裁決(禁止多輪互打)。若獨立監工逾時或執行失敗,於 Verification Log 明記「獨立監工未完成(原因)」,不得冒充通過盲驗。Done when: 該票已完成盲驗(零發現並刪探針,或真反例經單輪修正通過並補回歸測試,或重驗仍失敗已交人裁決),或已記錄不適用/「獨立監工未完成(原因)」於 Verification Log。

Inline mode: apply the recipe to the next frontier ticket yourself, ticket by ticket. For each ticket:

  1. Before touching it, record ticket_base_sha with git rev-parse HEAD. If it was not recorded, use the parent of this ticket's first commit.
  2. When the ticket set uses .scratch/<feature>/issues/NN-*.md files, after its code, tests, and commit, and before editing its **Status:** or starting the next ticket, run the ticket-level YAGNI review once: python3 ~/.claude/hooks/ticket-yagni-runner.py --manual --session "$CLAUDE_CODE_SESSION_ID" --ticket NN --ticket-file <absolute ticket path> --worktree <repo root> --base <ticket_base_sha>. Inline has no worker, so nothing reviews the ticket automatically, and the Status gate denies until this verdict exists. The runner diffs ticket_base_sha against the current working tree, so running it after the next ticket starts pulls that ticket's changes into this one; if the next ticket has already started, pass a temporary detached worktree at this ticket's last commit as --worktree instead of the shared tree, and remove it afterwards.
  3. When the verdict lists kill/demote items, apply the cuts yourself, run only the tests that existed at ticket_base_sha plus this ticket's acceptance checks, and commit the cuts before the next ticket so its base starts clean; a test you wrote for a removed item goes with it. One verdict per ticket: the trimmed result is not reviewed again. A runner error or an empty-diff skip is recorded in the Verification Log and not retried with different arguments; the gate lets the Status edit through in both cases.
  4. Change the ticket's **Status:** through Edit on the ticket file.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
71
Repository forks
5
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gggodlin/gggodlin-cc-harness/implement/badge)](https://verified-skill.com/skills/gggodlin/gggodlin-cc-harness/implement)

Something wrong with this skill or its page? Tell us.