pinkbin: Command for Claude Code

.claude/commands/scaffold-review.md

scaffold-review is a command for Claude Code from cccyd2003-qwq/pinkbin. It costs 23 tokens per session (684 once invoked), scanned A, original, MIT.

A review command that checks a scaffold definition against a 14-phase checklist and reports missing items. A scaffold definition is a TOML file describing how an app's data should be found safely.

In plain words
What is it for?
Use it to review a file such as scaffolds/$ARGUMENTS.toml, check its paths and safety rules, run the required lint and test commands, and produce a priority-ordered action list.
Why use it?
It helps find missing documentation, unsafe file patterns, incorrect settings, and absent tests before the scaffold is accepted. It only diagnoses problems unless the user explicitly asks for changes.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is cccyd2003-qwq/pinkbin's own configuration. It tells Claude Code how to work on pinkbin itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pinkbin configures →

About the project

Pinkbin is an open-source disk analyzer and cleaner that shows storage usage, lets AI explain unfamiliar folders, and supports controlled deletion through cleanup scripts. It is for Windows users who want to understand and reclaim disk space while keeping deletions scoped and sending them to the recycle bin by default. The catalogue commands, instruction, and setting support agent-assisted use of Pinkbin.

cccyd2003-qwq/pinkbin · 1,361 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to cccyd2003-qwq/pinkbin. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cccyd2003-qwq/pinkbin/main/.claude/commands/scaffold-review.md
Clone the repo
git clone --depth 1 https://github.com/cccyd2003-qwq/pinkbin

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 scaffold-review

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/cccyd2003-qwq/pinkbin/scaffold-review"><img src="https://agentmods.dev/badge/commands/cccyd2003-qwq/pinkbin/scaffold-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 684 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.00023 $0.00684
Opus 5 $0.00012 $0.00342
Sonnet 5 $0.00005 $0.00137
Haiku 4.5 $0.00002 $0.00068

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

Security

Grade A, and why

scaffold-review 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.

.claude/commands/scaffold-review.md · 59 lines

What it actually says

review scaffolds/$ARGUMENTS.toml,把它和 14-phase 工作流(见 .claude/commands/add-scaffold.md)逐项对照,输出漏项清单只做诊断、不动代码——除非用户明确说"修一下"。


诊断 checklist

对每一项给出 ✅ / ⚠️ / ❌ 三档:

Phase 1-2 类别需求

  • docs/scaffold-requirements/<category>.md 存在
  • 文档里有该 app 的明确归属(在范围内)
  • L1/L2/L3 分级覆盖到该 app 的所有桶

Phase 5-7 实测勘测

  • 文档里有该 app 的"实测路径映射"附录
  • 列出的目录树和当前 TOML 的 glob 一致
  • 跨版本(如 3.x vs 4.x)布局对齐

Phase 8 TOML 本身

  • id 唯一、kebab-case
  • risk 等级合理
  • disclaimer 明确列出红线
  • detect 含默认路径 + **/<datafolder> 通配
  • 多账号 glob 用 **/<account-pattern>/... 形态
  • prompt 类型与 L1/L2 默认行为约定一致
  • cargo run -p pinkbin-scaffold-lint 通过

Phase 10 Safety test

  • crates/scaffold/tests/<id>_safety.rs 存在
  • 含正向断言(每个 scope ≥1 条命中路径)
  • 含红线断言(DB / config / login / Favorite 等)
  • cargo test -p pinkbin-scaffold --test <id>_safety 通过

Phase 14 STATUS

  • docs/scaffold-requirements/STATUS.md 里该 id 标记为已完成

输出

按上面 checklist 给出诊断结果,然后给一个具体行动列表——按优先级排(红线漏洞 > 缺测试 > 缺文档 > 风格不一致),每项含命令或文件路径。

诊断 wechat-pc:
✅ Phase 1-2: messaging.md 存在并覆盖 WeChat
✅ Phase 5-7: messaging.md §7 实测附录完整(4.x 布局)
✅ Phase 8: 16 个 scope,lint 通过
✅ Phase 10: wechat_pc_safety.rs 含 20 正 + 28 红线断言
⚠️ Phase 14: STATUS.md 里该行还是 [ ]

行动:
1. 把 STATUS.md 里 wechat-pc 那行勾上、记录 commit hash
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 · 59 lines · 23 tokens per session scan A 718ce80940d8

Subscribe to this mod's changes

scaffold-review is a command published in the GitHub repository cccyd2003-qwq/pinkbin (1,361 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 684 once invoked, about $0.0001 per session on Opus 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-08-30.