pinkbin: Command for Claude Code

.claude/commands/add-scaffold.md

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

A command for creating or rewriting a TOML scaffold for an app through a required 14-phase workflow. TOML is a configuration-file format; a scaffold describes how an app should be handled by the project’s cleanup system.

In plain words
What is it for?
Use it to gather category requirements, inspect installation and data paths across platforms, define retention and deletion behavior, support multiple accounts, write the scaffold, and connect it to the desktop interface.
Why use it?
It makes the requirements, file locations, safety checks, and desktop-interface support explicit before the scaffold is written. This helps prevent a configuration that exists but cannot be displayed or safely used.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

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/add-scaffold.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 add-scaffold

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/cccyd2003-qwq/pinkbin/add-scaffold"><img src="https://agentmods.dev/badge/commands/cccyd2003-qwq/pinkbin/add-scaffold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,054 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.00038 $0.02054
Opus 5 $0.00019 $0.01027
Sonnet 5 $0.00008 $0.00411
Haiku 4.5 $0.00004 $0.00205

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

Security

Grade A, and why

add-scaffold 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 9d 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/add-scaffold.md · 171 lines

How it starts

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

为 app $ARGUMENTS 编写或重写一份 scaffold TOML。严格按以下 phase 顺序执行,每个 phase 完成后向用户报告进展并在必要时确认。绝不跳步——每一步都是上一次踩坑的产物(详见 CLAUDE.md)。


Phase 0 — Schema + UI 边界审查

读完这三个文件再开始任何实质工作:

  1. crates/scaffold/src/lib.rs —— Scaffold / Scope / Mode / Prompt 定义、detect_for 匹配逻辑、expand_env 路径展开
  2. apps/desktop/src/components/Studio.tsx —— 当前 UI 如何渲染 scope(重点看 expanded card 部分调用了 sc.scopes 的什么字段)
  3. apps/desktop/src/types.ts —— TS 镜像类型

报告:当前 UI 是否已经能渲染你计划的 scope 形态?如果差距大,先去对齐 UI(或者明确告诉用户"TOML 写完了 UI 看不到"),再回来。


Phase 1-2 — 类别需求采集 → 落盘文档

$ARGUMENTS 属于哪个类别(messaging / browser / dev-tool / game / media / system / ai)?

  • 如果 docs/scaffold-requirements/<category>.md 已存在 → 读它,确认本应用是否已在范围内、L1/L2/L3 分级是否覆盖
  • 如果不存在 → 复制 docs/scaffold-requirements/_TEMPLATE.md,用 AskUserQuestion 驱动结构化访谈,把答案落进去

访谈必问项:

  • 类别下要覆盖哪些应用、优先级
  • L1 缓存(可重生)默认行为:勾选/不勾选、保留 N 天 / 全量
  • L2 历史(用户内容)默认保留期、是否暴露 Backup
  • 多账号场景如何处理
  • mode 默认值(recycle / quarantine / delete)
  • 红线:除通用红线外还有哪些必须豁免

Phase 3 — 列出典型路径候选

$ARGUMENTS 给出所有合理候选

  • 安装路径(多版本、32/64 bit、用户自定义盘)
  • 数据存储路径(默认 + 自定义盘)
  • 缓存 / state 路径(%APPDATA% / %LOCALAPPDATA% / ~/.config / ~/Library 等)
  • 多平台差异(Windows / macOS / Linux 如适用)

报告:把候选清单贴给用户,告诉他下一步要在自己机器上确认。


Phase 4 — 用户确认实际路径

AskUserQuestion 让用户从候选里选 + 提供绝对路径。不要假设默认就够——很多人会改盘符。


Phase 5 — 实测勘测(Glob/ls 仅列文件夹名)

逐层下钻用户给的实际路径。严禁 Read 任何文件内容(隐私 + 不必要)。重点关注:

  • 顶层布局
  • 多账号目录命名(wxid_* / <手机号> / accounts/<id> 等)
  • 大头桶名称(image / video / file / cache / temp / msg / Backup / log / crashinfo / ...)
  • "看起来是 DB 但其实不是" / "看起来不是 DB 但其实是" 的目录(msg/ 在 WeChat 4.x 是用户文件,不是 DB)

把目录树贴给用户确认你的推断,再继续。


Phase 6 — 文件夹作用推断 + L1/L2/L3 映射

把 Phase 5 实测的每个目录映射到 L1(可重生缓存)/ L2(用户历史,可选清)/ L3(不可碰红线)。保守优先——拿不准的进 L3。


Phase 7 — 回环:修订需求文档

把 Phase 5-6 的发现追加到 docs/scaffold-requirements/<category>.md 的 "实测附录" 节。这一步在写 TOML 之前完成,不是之后。

如果实测推翻了 Phase 1-2 的假设(例:某个被列为红线的目录其实是用户内容),显式标注修订,并更新主 §2 红线节。


Phase 8 — 写 TOML

Read the full file on GitHub · 171 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. 9d ago First seen · 171 lines · 38 tokens per session scan A 4d9e35419f7e

Subscribe to this mod's changes

add-scaffold is a command published in the GitHub repository cccyd2003-qwq/pinkbin (1,361 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 2,054 once invoked, about $0.0002 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.