implement

A command that turns approved design checkpoints into working code, one feature at a time. It first records the project’s environment and technology choices, then tests, deploys, and can roll back each feature.

In plain words
What is it for?
Use it to implement a complete project from its design checkpoints, set up the required infrastructure, run validations, and deploy completed features incrementally.
Why use it?
It reduces the risk of building many untested features at once or using the wrong setup. Automatic checks catch problems before the next feature begins.

Command

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.

agentmods
npx agentmods add commands/infra403/agentic-engineering-lab/implement
Clone the repo
git clone --depth 1 https://github.com/infra403/agentic-engineering-lab
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,853 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00078 $0.04853
Opus 5 $0.00039 $0.02426
Sonnet 5 $0.00016 $0.00971
Haiku 4.5 $0.00008 $0.00485

Measured yesterday against content hash 5fd608391663, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

implement scanned grade C with 1 finding 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `block-dangerous-commands.sh` — 阻止 `rm -rf`, `DROP TABLE` 等
claude-code/plugins/product-design-plugin/commands/implement.md · 419 lines

How it starts

The opening of the file, as written. The whole thing — 419 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/implement 命令

核心理念

  1. 环境先声明 → deploy-manifest.yaml 是环境合约,tech-profile.yaml 是语言合约
  2. 完成一个功能就部署 → 不攒到最后
  3. LLM 输出不可信 → Hooks 自动验证,不靠人记得检查
  4. 部署失败可回滚 → 自动恢复上一个可用版本
  5. 语言无关 → 所有语言特定命令封装在 tech-profile.yaml
  6. RALPH 自动驱动 → Read→Analyze→List→Plan→Handle 外层循环,自动遍历所有功能直到全部完成

Claude Code 高级特性使用

特性 用途
Agent frontmatter 每个 agent 有独立的 tools, permissionMode, maxTurns, memory, hooks
Git Worktree (isolation: worktree) impl-skeleton/acceptance/module/api/observe 在隔离 worktree 中并行工作
Hooks (PreToolUse/PostToolUse/SubagentStop) 自动格式化、阻止修改 checkpoint、RED/GREEN 验证
Path-Specific Rules (.claude/rules/) 编码/SQL/API/事件/测试/部署规范按路径自动加载
Permission Modes Lead=plan(只调度), 实现者=acceptEdits(自动批准编辑)
disallowedTools acceptance 不能 spawn Agent, module 不能 spawn Agent
memory: project agent 记住项目约定,跨 session 复用
effort: high/max Lead(opus, max), acceptance/module/entry(high)
SessionStart hook compact 后自动重注入项目上下文
Stop hook 验证所有 task 完成后才允许停止

使用方式

/implement                      # 完整实施(4 阶段 ~24 tasks)
/implement declare              # 仅 Phase 0
/implement infra                # 仅 Phase 1
/implement feature <name>       # 实施某功能
/implement deploy <name>        # 部署某功能
/implement rollback             # 回滚到上一版本
/implement from <N>             # 从 Task N 继续
/implement status               # 查看进度
/implement smoke                # 全量冒烟

⛔ 启动前必须完成的用户询问(主 Session 执行)

关键设计约束:子 agent(impl-deploy, impl-lead 等)被 spawn 后无法与用户交互。 因此所有需要用户回答的问题必须在主 session 中、spawn agent 之前完成。 以下三个问题必须在命令启动后、spawn impl-lead 之前,由主 session 直接向用户提问。

询问 1:应用部署目标(deploy_target)

在做任何事之前,先问用户:

你的应用部署到哪里?
  1. local         — 本地开发运行(默认)
  2. remote-ssh    — SSH 到远程服务器部署
  3. docker-remote — 远程服务器 docker-compose 部署
  4. k8s           — Kubernetes 集群部署

如果用户选 remote-sshdocker-remote,追问:

请提供远程服务器信息:
  - SSH 地址(如 [email protected])
  - SSH 端口(默认 22)
  - 远程项目路径(如 /opt/polymarket-hub)

Read the full file on GitHub · 419 lines

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. yesterday First seen · 419 lines · 78 tokens per session scan C 5fd608391663

Subscribe to this mod's changes

implement is a command published in the GitHub repository infra403/agentic-engineering-lab (5 stars, last pushed 4mo ago), licensed MIT. It adds 78 tokens to every session and 4,853 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.