ilink-approve

ilink-approve is a command for Claude Code from zhoubengao/iLink. It costs 0 tokens per session (1,521 once invoked), scanned A, original, Apache-2.0.

A command for approving an iLink document at a human review checkpoint and moving the Story to its next stage when allowed.

In plain words
What is it for?
Use it to approve staged requirements or designs, write the review feedback, and route the Story to design or coding. A review document with upstream blockers is not advanced automatically.
Why use it?
It checks for the right document and status, runs a coaching review, and prevents work from advancing when an upstream problem needs discussion.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

Good fit Use it to approve staged requirements or designs, write the review feedback, and route the Story to design or coding. A review document with upstream blockers is not advanced automatically.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zhoubengao/ilink/ilink-approve
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/zhoubengao/iLink

Made for: Claude Code.

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 ilink-approve

README.md
[![agentmods](https://agentmods.dev/badge/commands/zhoubengao/ilink/ilink-approve/github.svg)](https://agentmods.dev/commands/zhoubengao/ilink/ilink-approve)
Your own site
<a href="https://agentmods.dev/commands/zhoubengao/ilink/ilink-approve"><img src="https://agentmods.dev/badge/commands/zhoubengao/ilink/ilink-approve/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 ilink-approve

Your own site · 80×15
<a href="https://agentmods.dev/commands/zhoubengao/ilink/ilink-approve"><img src="https://agentmods.dev/badge/commands/zhoubengao/ilink/ilink-approve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,521 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.00000 $0.01521
Opus 5 $0.00000 $0.00760
Sonnet 5 $0.00000 $0.00304
Haiku 4.5 $0.00000 $0.00152

Measured 10d ago against content hash f89bdbd6950e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ilink-approve 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 10d 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.

src/.claude/commands/ilink-approve.md · 131 lines

How it starts

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

你现在执行 iLink 的 审核通过(Human-Gate 推进 + Coach 协作复盘) 操作。

本命令自 v1.6.0 起为 Slash Command(不再是 shell 脚本),内部串行执行:校验前置 → 调用 Coach 子流程 → 写入 feedback.md → 推进 Status。Coach 子流程详见 iLink/iLink-root-spec.md §4.7 与 iLink/souls/coach.soul.md

执行任务

在 Story $ARGUMENTS 中找到处于 STAGING 状态的文档,先执行 Coach 子流程,再将其推进到下一阶段。


步骤 1:确认 Story 存在

检查 iLink-doc/$ARGUMENTS/ 目录是否存在,不存在则提示用户先执行 /ilink-init $ARGUMENTS,结束。

步骤 2:按优先级查找 STAGING 文档

依次读取以下文件末尾的 Metadata Status,确定本次 approve 的目标文档:

优先级 文档 STAGING 时的目标状态 后续命令
1 $ARGUMENTS-review.master.md 不能自动推进(上游根因) 告知用户查看 [UPSTREAM_BLOCKERS],与 Designer 讨论修改设计或修改需求定义后结束
2 $ARGUMENTS-design.master.md PENDING_CODER /ilink-coder $ARGUMENTS
3 $ARGUMENTS-pm.master.md PENDING_DESIGNER /ilink-design $ARGUMENTS

如果没有找到 STAGING 文档,告知用户当前没有需要审核的文档,建议执行 /ilink-status $ARGUMENTS 查看详细状态后结束。

注意:QA review 文档处于 STAGING(上游根因)时 SHALL NOT 推进 Status,但 Coach 子流程仍 MUST 执行(评估的是这一轮人类与 AI 的协作,与 Status 是否推进无关)。


步骤 3:调用 Coach 子流程

读取 iLink/souls/coach.soul.md(Coach 角色规范)。

3.1 摘录对话 bracket

按以下规则在当前 Host CLI 主对话中识别 bracket:

  • 外层窗口起点:本 Story 的 /ilink-pm $ARGUMENTS 命令完成之后的第一个人类 turn
  • 外层窗口终点:本次 /ilink-approve $ARGUMENTS 调用之前的最后一个人类 turn
  • 内部分界:外层内的 /ilink-design $ARGUMENTS slash 调用 turn

逐 turn 摘录原文,标注格式:

[turn-1] (user)
<原文>

[turn-2] (assistant)
<原文>

...

[--- /ilink-design 分界 ---]

[turn-N] (user)
...

SHALL NOT 改写、概括或选择性剔除任何 turn 的内容。

3.2 计算直接编辑 diff
  • 列出 iLink-doc/$ARGUMENTS/.snapshots/ 目录下所有 design.master.*.md 文件
  • 选择最新的快照(按文件名时间戳降序取第一个)
  • 使用 diff -u <最新快照> iLink-doc/$ARGUMENTS/$ARGUMENTS-design.master.md 生成 unified diff
  • .snapshots/ 目录不存在或为空,记录"无法判定直接编辑(缺少 design 快照)"

若本次目标是 PM 文档(步骤 2 命中优先级 3),跳过 3.2,直接编辑段记为"本段无直接编辑(PM 文档不做编辑检测)"。

3.3 调用 subagent

通过 Agent 工具(general-purpose 类型)调用 subagent,传入以下 bundle(SHALL NOT 传入 master doc、requirement.md、源码):

Read the full file on GitHub · 131 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. 10d ago First seen · 131 lines · 0 tokens per session scan A f89bdbd6950e

Subscribe to this mod's changes

ilink-approve is a command published in the GitHub repository zhoubengao/iLink (22 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,521 tokens. 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-08-30.