Counting one project twice同一个项目算两次
Reproduction lines are keyed by platform/project. Ten runs on one project is still one line — otherwise the write-back becomes a back door around the gate.复现记录按平台/项目做唯一键。同一个项目跑十次还是一行,否则「回写证据」就成了绕过升级条件的后门。
Whetstone turns what a session taught you into a skill package for your own library, and the next time you do that kind of work your agent picks it up. Every entry says where it came from; what it can't prove stays out. Whetstone 把一次会话里学到的东西提炼成 skill 包,放进你自己的库;下次做同类的事,agent 会自己用上。每一条都写明出处,证不出来的进不了库。
Claude Code · Codex · Cursor · any skills-compatible runtime任何支持 skills 的 runtime
verifyverify 里的机械检查Three steps, three different owners, on purpose. The model reads; a command and a person decide what gets in; your runtime does the rest.三步,各由不同的一方来做,这是有意分开的:模型负责读,命令和人决定什么能进库,剩下的交给你的运行时。
The agent reads the transcript and the git diff and follows SKILL.md: what changed, what broke, what was decided, which values turned up. Every entry cites a commit or a session.agent 读会话记录和 git diff,照 SKILL.md 的步骤摘出:改了什么、踩了什么坑、为什么这么定、发现了哪些具体值。每一条都写明来自哪个提交或哪次会话。
A model fills gaps and grades itself generously, so it is not trusted here. whetstone verify checks the evidence with no model involved; then a person reviews twice: is the mining right, does it go in.模型会补没有的东西,也会给自己打高分,所以这一步不信它。whetstone verify 查证据,过程中不用模型;然后人审两次:挖得对不对,进不进库。
The package sits in your own skill library. Your runtime shows the model each package's name and description; when the topic matches, the model reads SKILL.md, and params/<platform>.md when it reaches that step.包放在你自己的 skill 库里。运行时把每个包的 name 和 description 放进菜单给模型看;话题对上了,模型才读 SKILL.md 正文,做到那一步再读 params/<平台>.md。
Whetstone triggers nothing in step 3. It keeps the menu entry good (lint) and the library reachable once the menu is too long to show in full (find). The packages never live in this repository: they carry real platform values.第 3 步不是 whetstone 触发的。它只管两件事:菜单上那两行写得好不好(lint),菜单太长显示不全时还能搜到(find)。提炼出来的包也不放进本仓库:里面有真实的平台值。
Steps 1 and 2, phase by phase第 1、2 步展开:逐个阶段
examples/good-skill/ is a complete package for a made-up domain: storage you can write only once. whetstone verify finds nothing wrong with it.examples/good-skill/ 是一个完整的包,领域是编的:只能写一次的存储。whetstone verify 在它身上挑不出毛病。
examples/good-skill/
├── SKILL.md how it gets picked (name + description),
│ then principle · method · never-do · pointers
├── pitfalls.md what went wrong: symptom · cause · fix · values
└── params/soc-x.md values true on soc-x only; one file per platform
examples/good-skill/
├── SKILL.md 靠什么被选中(name + description),
│ 然后是原理 · 做法 · 禁止 · 指向另两个文件
├── pitfalls.md 踩过的坑:症状 · 真因 · 修法 · 涉及的值
└── params/soc-x.md 只在 soc-x 成立的值;一个平台一个文件
SKILL.md: until the topic matches, the runtime shows the model only these two lines. The description says what the package is for and the words that should bring it up.SKILL.md:话题对上之前,运行时只把这两行给模型看。description 写清楚这个包管什么,以及哪些说法该让它出来。
name: good-skill
description: "一次性写入的存储(写坏就回不去)怎么写、怎么核对:写前先存原始内容,写后直接读回底层比对。触发词:一次性写入 / 写入前备份 / 读回比对 / write-once storage。"
pitfalls.md: one pitfall. “Reading the low-level state off a higher layer gets it wrong”: symptom, root cause, fix, and which values it involves. Its evidence block follows, with the same fields as the table below.pitfalls.md:一条坑。症状、真因、修法,以及涉及哪些值。后面跟着它的证据,字段和下面那张表一样。
## 从上层状态反推底层状态会看错
- 症状:上层字段显示未生效,底层其实已经生效。
- 真因:中间层缓存了一份过期副本。
- 修法:直接读底层,不看中间层。
- 涉及事实:见 `params/soc-x.md`
params/soc-x.md: the values, each with its evidence.params/soc-x.md:具体值,每个值都带证据。
| 参数 | 值 | 来源 · 日期 | 验证方式 · 实测 | 复现记录 | 置信度 |
|---|---|---|---|---|---|
| 存储起始位置 | `SLOT_A` | commit 1a2b3c4d · 2026-08-01 | 读回比对 · 实测:通过 2026-09-01 | 2026-08-01 · commit 1a2b3c4d; 2026-09-01 · commit 5e6f7a8b | high |
| 读回起始地址 | `0x1A40` | commit 1a2b3c4d · 2026-08-01 | 读回比对 · 实测:通过 2026-09-01 | 2026-08-01 · commit 1a2b3c4d | med |
| Column列 | What it holds写什么 | First row第一行写的 |
|---|---|---|
| 参数 · parameter | what the value is这个值叫什么 | storage start存储起始位置 |
| 值 · value | the value, true on this platform only具体是多少,只在这个平台成立 | SLOT_A |
| 来源 · 日期 · source, date | the commit it came from, and the day从哪个提交得来、哪天 | commit 1a2b3c4d · 2026-08-01 |
| 验证方式 · 实测 · check, tested | how to re-check it, and whether that was actually run怎么复查,真跑过没有 | read back and compare · passed 2026-09-01读回比对 · 2026-09-01 实测通过 |
| 复现记录 · reproductions | every later confirmation, one line each之后每核实一次记一行 | 2 lines2 行 |
| 置信度 · confidence | computed from the two columns before it, never typed by feel由前两列按规则算出来,不能凭感觉填 | high |
The two rows differ for a reason. The first was tested and confirmed twice, so it may say high. The second was tested once, which is enough for med on a value. A method seen on one platform stays low however well it tested: once does not make it general.两行的置信度不一样是有原因的。第一行实测通过、又核实过两次,所以可以写 high。第二行只实测过一次,对一个值来说够得上 med。如果是一条做法,只在一个平台上见过,测得再好也只能是 low:见过一次说明不了它到处都成立。
$ whetstone verify examples/good-skill --brief
whetstone verify — examples/good-skill
INFO (2)
i pitfalls.md:5 [V18] [从上层状态反推底层状态会看错] reproduced on 2 distinct platforms/projects — eligible to move into the SKILL.md L2 body
i good-skill [V08d] 2 commit hash(es) cited in 来源 / 复现记录, none checked against git
summary: 0 error(s), 0 warning(s), 2 info
No errors, no warnings. The pitfall has been seen on two projects, so it may move up into the SKILL.md body (V18). The commit hashes are made up for the example, so none was looked up in git (V08d; pass --repo to check them). Next: the same package with six things broken.没有错误,也没有警告。那条坑已经在两个项目上见过,可以升进 SKILL.md 正文(V18)。示例里的提交号是编的,所以没去 git 里查(V08d;加上 --repo 就会查)。下一节:同一个包故意改坏 6 处。
A skill library doesn't fail loudly. It fills up with plausible, once-true advice that still wears a confident label. So every rule a machine can decide became a check with an exit code. Below is a real run on examples/demo-skill: the package from 02 with six things broken on purpose.skill 库不会大声地坏掉,它会慢慢塞满听着有理、只在当时成立、却还顶着高置信标签的条目。所以凡是机器能判的规则,都做成了带退出码的检查。下面是对 examples/demo-skill 的一次真实运行:它就是 02 节那个包,故意改坏了 6 处。
Each of the 40 codes is tested in both directions — it fires on a bad package and stays quiet on a good one — and a mutation test deletes checks one at a time to prove the suite notices: 22 of 22 caught.40 个检查码每一个都正反两个方向测过:坏包上必须报、好包上必须不报。另有变异测试逐条删掉检查,确认测试套件会发现:22 条全部抓到。
Try it. This is the exact rule verify enforces (extraction-framework §7). A reviewer may always lower a level; nobody may raise it past the conditions.自己试试。这就是 verify 执行的那条规则(extraction-framework §7)。人审永远可以往下调,但谁都不能越过条件往上调。
Reproduction lines are keyed by platform/project. Ten runs on one project is still one line — otherwise the write-back becomes a back door around the gate.复现记录按平台/项目做唯一键。同一个项目跑十次还是一行,否则「回写证据」就成了绕过升级条件的后门。
A changed value is appended and marked superseded; the old one stays readable. Being quietly wrong is the expensive kind of wrong, most of all for irreversible values.变了的值只能追加并标注替代,旧值仍然可读。错得没人发现是代价最大的错法,不可逆的值尤其如此。
Review runs in a separate context. Self-review bias is something this design assumes will happen, not something it hopes to avoid.质检在独立的上下文里跑。自评偏差是这套设计预设一定会发生的事,不是指望能躲开的事。
Whether an L1 truly has no counter-example stays with the reviewer, and --explain prints that boundary in full. A mechanised non-mechanical judgement only makes false positives.一条 L1 是不是真的举不出反例,留给人审,--explain 把这条边界原样打印出来。硬把不机械的判断做成机械的,只会制造误报。
What happened when I ran it on my own library: 拿它跑我自己的库,结果是:61 entries marked “high confidence”. Not one could name a test. →61 条标着「高置信度」的经验,没有一条说得出验证方式 →
And after an entry is in the library, it is checked again each time it is used: 入库之后,每次用到一条经验还会再核一次:check the note when you use it, not when you file it →经验对不对,用的时候才判得准 →
The design and pitfalls live in the skill body. Addresses, key lengths, tool names live in one params/<platform>.md. A new chip is a new table, nothing else.设计和坑留在 skill 正文;地址、密钥长度、工具名放进一张 params/<platform>.md。换芯片就新加一张表,别的不动。
The output is a plain-markdown folder with no runtime binding. Hand it to someone on Cursor or Codex; they drop it in and have your know-how.产物是一个纯 markdown 目录,不绑定任何 runtime。递给用 Cursor 或 Codex 的同事,放进去就能用。
Each new session is reconciled against the library: duplicates merge, changed facts are superseded, evidence for old entries accumulates. The library grows instead of resetting.每次新蒸馏都和已有库比对:重复的合并,变了的事实标注替代,旧条目的证据继续累加。库在长,而不是每次归零。
verify 全绿,不等于 skill 好用。Every check asks whether the knowledge is true and traceable. None asks whether installing it makes its user better — and the two don't predict each other. That is why the human gates stay. Source: SkillLens (Microsoft).每条检查问的都是「这条知识真不真、能不能追溯」,没有一条问「装上它,使用者是不是变强了」,而这两件事互相预测不了。所以人审关一直保留。数据来源:SkillLens(Microsoft)。
of extractor/consumer pairings in the SkillLens corpus transferred negatively — the skill made things worse.SkillLens 语料里,25% 的「抽取方 × 使用方」组合出现负迁移 —— 装上 skill 反而变差。
is how often an unguided model judge picks the better of two skills. A coin does 50%.无引导的模型评委在两个 skill 里挑对更好那个的比例。掷硬币是 50%。
Think of it as strata. The deeper a piece of knowledge sits, the more platforms it survives — and the closer it lives to the reusable skill body. Click a layer.把它想成岩层:越往下的知识,换越多平台仍然成立,也越靠近可复用的 skill 正文。点任意一层看看。
Runtime-specific code is fenced into one thin capture adapter. What you share is plain markdown. Everything below the dashed line is optional — installed, it helps; absent, nothing breaks.跟 runtime 绑定的代码只放在薄薄一层采集适配器里。对外分享的是纯 markdown。虚线以下全是可选:装了能增强,不装也不影响使用。
Keys, OTP, the signing chain — and a buffer overrun you only found by dumping bytes.密钥、OTP、签名链,还有一个靠 dump 字节才揪出来的缓冲区越界。
It separates the transferable design and pitfall (L1/L2) from this chip's addresses and key length (L3). You approve at two gates.它把可迁移的设计和坑(L1/L2)跟这颗芯片的地址、密钥长度(L3)分开。你在两道关点头。
verified-boot/产出 verified-boot/Plain markdown, self-contained, and verify is clean.纯 markdown,自包含,verify 通过。
They now have the design, the method, and the byte-dump pitfall. No onboarding call.设计、做法、那个 dump 字节的坑,他马上就有了。不用专门开会讲。
params/soc-b.md. The design and pitfalls carry over untouched.params/soc-b.md。设计和坑原样复用。
A runtime keeps every skill's name + description in context to choose between them. Bodies load only after a pick. So the noise lives in the menu — and that's where lint looks.runtime 把每个 skill 的 name + description 常驻在上下文里用来挑选,正文要等被选中才加载。所以乱就乱在菜单上,lint 查的也正是这里。
Finds missing triggers, overlapping trigger sets and near-identical names — tells deliberate companions (-audit) from real clashes — and checks whether the whole menu still fits.找出缺触发词、触发词重叠、名字几乎一样的 skill,能分清故意成对的(-audit)和真撞车,还会查整张菜单是不是还放得下。
Groups skills into families and writes a browsable INDEX.md.按族归组,生成一份能浏览的 INDEX.md。
Capability line, concrete triggers, and a boundary that pushes siblings apart — baked into the template.能力一句话 + 具体触发词 + 跟同族划清边界,写进模板,新 skill 一生成就符合。
And once the library outgrows what one menu can hold, the right entry still has to be found: 库长到一张菜单装不下时,还得让对的那条经验被找到:a growing library needs a finder, not a longer menu →经验越攒越多,靠的是会找,不是菜单更长 →
Whetstone ships as an Agent Skill plus plain scripts. No package manager, no service, no dependencies.Whetstone 就是一个 Agent Skill 加几个普通脚本。不用包管理器,不起服务,零依赖。
git clone https://github.com/TbusOS/whetstone.git~/.claude/skills/whetstone/The tool is public. Your distilled library — with real platform values — lives in a private repo. Keeping them apart means the public one never carries your internal data.工具是公开的;你蒸出来、带真实平台值的 skill 库放在私有仓。两者分开,公开仓就永远不会带出你的内部数据。
whetstone (the public tool) and your private library.whetstone(公开工具)和你的私有库。deploy.sh --link <library>Symlinks every skill into the skills folder — one source, no drift.把每个 skill 软链进 skills 目录,只有一份源,不会两边不一致。deploy.sh --gen-claudemd <library>Regenerates your always-on rules; --add-import wires them per project.重新生成常驻规则;每个项目再用 --add-import 接上。Capture the reusable part once. Prove it. Carry it to every platform and every teammate.把能复用的那部分捕获一次、证明一次,带到每个平台、每个同事那里。