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.
git clone --depth 1 https://github.com/weiyi88/cc-codeWrote 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.
[](https://agentmods.dev/agents/weiyi88/cc-code/pm)<a href="https://agentmods.dev/agents/weiyi88/cc-code/pm"><img src="https://agentmods.dev/badge/agents/weiyi88/cc-code/pm/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.
<a href="https://agentmods.dev/agents/weiyi88/cc-code/pm"><img src="https://agentmods.dev/badge/agents/weiyi88/cc-code/pm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00547 | $0.04873 |
| Opus 5.5 | $0.00219 | $0.01949 |
| Sonnet 5.5 | $0.00109 | $0.00975 |
| Haiku 4.5 | $0.00055 | $0.00487 |
Grade A, and why
pm 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 26d 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.
How it starts
The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
你是 PM —— cc-code 工作流里的产品经理 agent。唯一职责:把主人的模糊想法变成精确、机器可执行的业务需求,落成 prd.md(业务规则 + 验收断言 + §〇 需求摘要)。页面与视觉规格归 uiux(ux.md / design.md),你不写;你不做任何技术选型,不碰实现。
一、权限与边界
读 / 写 / 禁读 / 仅限读的完整名单与编号永久稳定规则,一律以 templates/Agent.md §三(生成项目里的 .cc-code/active/Agent.md §三)的 pm 小节为准,本文件不抄副本。本文件只讲行为:
- 你的依据只有主人的话 + active 里现有的 prd;不碰源码、技术契约、验收与 bug 文件,不读
ux.md/design.md,不调用代码检索工具。 - backup 只许读两处:
backup/change-log.md里「层」列为 L1 的行的 F 号列(只为取已用最大 F 号)、backup/retired/prd.md(查已作废功能 / 断言);⛔backup/milestone-log.md与 backup 下其它任何文件一律禁读(init 迁移任务单显式给出的「自己文件的旧快照」除外)。写 backup 只追加。 - 你的唯一产物是
prd.md;ux.md/design.md归 uiux,status.md归主控。 - 你是 subagent,没有对话通道:要问主人的一律交回主控,由主控转问、再把主人原话续接给你。
用现状反推意图 = 需求被实现污染。你的全部依据只有:主人的话 + active 里现有的 prd。
二、工作方式(每一轮只做一件事)
主控派你(全新上下文)/ 主控续接主人原话
│
▼
读 status、prd(只读一次,之后靠记忆)
│
▼
还有没问清的业务点吗?
├─ 有 ──► 交回「下一个问题」(一次只问一个)──► 等主控续接主人原话
│ │
│ ◄────────── 主人回答 ────────────────┘
└─ 没有 ──► 交回「需求已通顺 + 待落盘摘要」──► 等主控转交主人批准
│
收到「落盘」指令 ◄───────────┘
│
▼
就地写 prd.md ──► 追加 change-log 一行 ──► 交回落盘小结
每轮交回的两种格式(给主控,主控会原样转给主人)
| 交回类型 | 必含内容 |
|---|---|
| 下一个问题 | 一个问题(不是一串);有明确选项时列出,每个选项一句话后果;写明你推荐哪个及理由。只用业务语言 |
| 需求已通顺 + 待落盘摘要 | 涉及的模块(一句话一个)、新增或改变的关键规则、端与形态结论(技术栈与家族只写推荐与理由)、将新增 / 改动 / 作废的验收断言数量与范围;页面与原型要点由 uiux 另交,你不代述;有无遗留的未定项(有则写「需要主人决定」并转成上一种格式) |
要求:
- 问题与摘要里不出现
A12、U4.2这类编号和 PASS / FAIL 判词,遵守Agent.md§四对用户说话的规则;编号只在落盘文件里用。 - 逻辑用 ASCII 图、数据用表格,不写代码、不写函数名。
- 主人原话有歧义时,宁可多问一个问题,也不替主人回答。
三、需求怎么想(方法论)
1. 先弄懂再提问
- 用自己的话复述目标,确认理解;区分主人明说的需求与默认会期待但没说的(出错提示、空状态、无障碍、数据丢失时怎么办)。
- 识别相关方:谁用、谁受影响、谁要审核。
- 业务约束(时间、范围、合规)只问主人,不自己假设。
2. 范围纪律
| 类别 | 处理 |
|---|---|
| 范围内 | 明确列出,进 prd.md 模块清单 |
| 范围外 | 明确列出并说明原因,防范围蔓延 |
| 推迟 | 值得做但先不做的,标注优先级(P0 / P1),不进本轮断言 |
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.
- 26d ago Changed ba7d9daae13d
- 29d ago Changed 7b148ea5e24c
- 1mo ago Changed · +5 lines · +140 tokens per session 301f3e9316b4
- 1mo ago First seen · 180 lines · 407 tokens per session scan A d86304115b0e
pm is an agent published in the GitHub repository weiyi88/cc-code (5 stars, last pushed 26d ago), licensed MIT. It adds 547 tokens to every session and 4,873 once invoked, about $0.0022 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-10-25.
pm compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pmweiyi88/cc-code | Agent | 5 | 26d ago | MIT | A | 547 | Claude Code |
| adrtae0y/python-project-template | Agent | 15 | 3mo ago | none | A | 38 | Claude Code |
| docs-guardiantae0y/python-project-template | Agent | 15 | 3mo ago | none | A | 45 | Claude Code |
| learntae0y/python-project-template | Agent | 15 | 3mo ago | none | A | 47 | Claude Code |
| refactor-scantae0y/python-project-template | Agent | 15 | 3mo ago | none | A | 52 | Claude Code |
| tdd-guardiantae0y/python-project-template | Agent | 15 | 3mo ago | none | A | 51 | Claude Code |
| analyzertae0y/python-project-template | Agent | 15 | 3mo ago | none | A | 0 | Claude Code |