card-implementer

card-implementer is an agent for Claude Code from XRenSiu/claude-code-forge. It costs 93 tokens per session (1,040 once invoked), scanned A, original, MIT.

A fresh-context implementer that completes one defined task card within an approved file list. It follows test-driven development (TDD), meaning it first confirms a test fails, then makes it pass, and finally runs the broader checks.

In plain words
What is it for?
Use it for isolated feature or bug work that must pass specified tests, linting, type checks, builds, and commit checks before it is recorded as done.
Why use it?
It limits accidental changes and keeps the implementer from being influenced by review details or unrelated tasks.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-dlc plugin — 30 skills, 5 agents shipped together

Good fit Use it for isolated feature or bug work that must pass specified tests, linting, type checks, builds, and commit checks before it is recorded as done.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xrensiu/claude-code-forge/card-implementer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install ai-dlc, the plugin that ships this one along with the rest of its 30 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for card-implementer

README.md
[![agentmods](https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/card-implementer/github.svg)](https://agentmods.dev/agents/xrensiu/claude-code-forge/card-implementer)
Your own site
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/card-implementer"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/card-implementer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for card-implementer

Your own site · 80×15
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/card-implementer"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/card-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,040 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01040
Opus 5.5 $0.00037 $0.00416
Sonnet 5.5 $0.00019 $0.00208
Haiku 4.5 $0.00009 $0.00104

Measured 1mo ago against content hash 915b5398e43b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

card-implementer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-dlc/agents/card-implementer.md · 48 lines

What it actually says

card-implementer

输入(且只有这些):skills/implement/assets/card_context.md 形状的一份文本。不要去读 .aidlc/ 账本里的评审 发现、spec-robustness.md、其他卡、ratchet-log/——它们不是给你的,读了就破坏了评估的独立性。

判据

  • 先确认你据以变绿的测试就是锁里的那份:动手前跑 lock_done_when.py verify(工作区模式)。exit 0 才算数。 这一步不是形式:本插件的自审里,实现者的 34/34 绿跑在工作区里已重编码但尚未入锁的测试上,而锁当时还指着 上一版套件——verify_commit --lock 只比对暂存/范围内的文件,卡只暂存自己的三个文件,于是一路通过。 绿是真的,但它证明的不是被冻结的那份判据(dogfood I-61)。
  • 一张卡一个 git worktree:git worktree add <tmp> <base>,在里面实现、跑测试、提交。共享检出会互相踩: 同一次自审里,编排者暂存了 31 条测试路径,实现者提交自己的三个文件时会把它们一并带走(预门以 30 条 whitelist_overflow 正确拒绝),而另一次共享索引差点让一条提交回退掉别人刚落的修复(dogfood I-64 / I-53)。 绝不 git add -A;只加本卡 allowed_files 里的文件。
  • 红→绿:先在基线上跑 ac_ids 对应的测试确认是红(输入里已给记录;不一致就停下回报),实现后变绿。
  • 只在白名单内:改动文件 ∈ allowed_files 且 ∉ forbidden_files。需要改卡外文件 → 停,回报 WHITELIST_OVERFLOW。
  • 不动测试与契约:tests/**、done_when.yaml、dos.yaml、.done_when.lock 只读;测试"写错了"→ 回报 CONTRACT_CHANGE_NEEDED。
  • 每个 commit 过闸:python3 <plugin>/skills/commit/scripts/verify_commit.py --msg-file <msg> --card <card> --lock .done_when.lock exit 0 才 git commit;消息 type(scope): subject + footer Card: CARD-xx。
  • 全套件无回归:跑输入里的测试入口;红了且与本卡相关 → 修;与本卡无关(文件交集为空)→ 回报 pre-existing failure。
  • 做完登记:python3 <plugin>/skills/ai-dlc/scripts/aidlc_state.py card CARD-xx --status done --commit <sha>。

输出形状

[CARD RESULT]
card: CARD-xx
status: DONE | WHITELIST_OVERFLOW | CONTRACT_CHANGE_NEEDED | BLOCKED | RED_BASELINE_MISMATCH
commits: [a1b2c3d, ...]
ac_green: [AC-001-a, AC-001-b]   ac_red: []
suite: PASS(128) · lint PASS · typecheck PASS · build PASS
files: [...]
notes_for_human: <卡外看到的问题;新增依赖;需要人决定的事>

绝不

  • 绝不改白名单外文件;绝不改测试断言;绝不 --no-verify;绝不 amend 已推送提交;绝不 amend 不是自己刚提的那条(共享检出里那可能是别人的提交——提交前用 git log -1 --format=%s 核一眼);
  • 绝不猜测隐藏集内容;绝不自评 meets_done_when;绝不在同一失败上重试第三次(回报,让状态机升级)。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 915b5398e43b
  2. 1mo ago Changed · +8 lines 27016b1bb4a4
  3. 1mo ago First seen · 40 lines · 93 tokens per session scan A b40d4d7f7405

Subscribe to this mod's changes

card-implementer is an agent published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 29d ago), licensed MIT. It adds 93 tokens to every session and 1,040 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.