work

A routing command for OpenSunstar's requirements workflow. It reads the project's current documents and points to the next stage, such as clarifying requirements, implementing changes, validating them, or reviewing the code.

In plain words
What is it for?
Use it to determine the next project command from the current state and receive a suggested prompt for that step.
Why use it?
It reduces the need to remember which command comes next in a multi-stage development process. It also stops when an earlier review or approval is incomplete.

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/alisunstar/opensunstar/work
Clone the repo
git clone --depth 1 https://github.com/alisunstar/OpenSunstar
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 503 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00503
Opus 5 $0.00000 $0.00251
Sonnet 5 $0.00000 $0.00101
Haiku 4.5 $0.00000 $0.00050

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

Security

Grade A, and why

work 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 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.

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.

rd-protocol/commands/work.md · 41 lines

What it actually says

/rd:work — 路由命令(唯一入口)

通用路由命令:根据用户输入与当前 .specs// 状态,自动推断意图并引导下一步。使用者事实上只需输入这一个命令。

先读规则

  1. STATE.md(active change)与 .specs/<change-id>/ 已有产物清单
  2. 读 knowledge/ROUTING.md(若存在)建立业务定位
  3. 对照 rd-loop 阶段链:0-verify-prd → 1-clarify-analyze → 2-decompose → 3-verify-requirement → 4-apply → 5-validate → 6-review-release → 7-backfill

执行

按以下顺序推断下一步并给出「命令 + 推荐提示词」:

当前状态 引导下一步
无 CHANGE.md /rd:verify-prd(输入质量门禁)
有 CHANGE.md,无 ANALYSIS.md /rd:clarify/rd:analyze
有 ANALYSIS.md,无 DECOMPOSITION.md /rd:decompose
有 DECOMPOSITION/REQUIREMENT,未确认 /rd:verify-requirement(人工确认)
契约已确认,未实现 /rd:apply
已实现,无 IMPLEMENTATION-CHECK.md /rd:validate(五状态对账)
对账已确认,无 REVIEW.md /rd:code-review
REVIEW 已确认 /rd:release-plan,随后 /rd:backfill 收尾

何时澄清

  • 用户输入无法唯一映射到阶段时,列出候选并暂停等选择。

何时停止

  • 任一上游门禁未通过(verify-prd / verify-requirement / validate 存在 blocked 或未确认 changed)→ 停止并指向对应门禁,不自动绕过。

产物

  • 无新增产物;本命令只产出「下一步引导」。

人工确认

(引导本身不改变状态;被引导到的命令按其自身矩阵确认)。

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 · 41 lines · 0 tokens per session scan A f34250907282

Subscribe to this mod's changes

work is a command published in the GitHub repository alisunstar/OpenSunstar (40 stars, last pushed 18d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 503 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.