Not loaded · from flightwake
Registers surprising root causes (weird errors, vendor quirks, encoding traps) into a TRAPS registry so the same trap is never stepped in twice across sessions and agents.
Claude Code won't load this skill
It ships in flightwake at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
目的:同一个坑,每个专案只踩一次(含未来 session 与其他 agent)。
registry 最贵的失效不是漏记,是把误诊写成定案——读的人分不出「受控实验坐实的」和 「当下最像的解释」,照着错的根因走比没有 registry 更远。所以根因必须标把握度:
| confidence | 意思 | 佐证要求 |
|---|---|---|
confirmed | 受控实验:改变因 → 症状跟着出现/消失,至少两次。非因果类的事实(某功能存不存在、清单有哪些、版本行为)改用「直接穷尽查证 + 指得出一手来源(源码行号/官方文档/后台逐项确认)」 | 佐证栏必须指得出那个实验或那份来源 |
probable | 多次观察一致,但没做对照组 | 写出观察次数与时间范围 |
suspected | 单次观察,或「当下最像的解释」 | 注明还没排除掉什么 |
三条规则:
confirmed 的条目,「解法」一律写成「绕法」,且不得当行为准则probable 就够(错了只是多做防护);
论证「这样是安全的」→ 必须 confirmed(错了直接打到 prod 和用户)把握度升级(suspected → confirmed)是就地改同一条,不是 supersede; supersede 保留给「根因本身换了」的情况。写入前查重(第 1 步)遇到候选时,也照这条判断。
npx flightwake traps similar --name='<slug>' --tags='<a,b>' --paths='src/db/**,*.sql' --commands='npm run migrate,psql' <<'EOF'
<症状(原样贴上错误信息)+ 一句话根因>
EOF
正文一律走加引号的 heredoc(<<'EOF' … EOF,结尾的 EOF 单独一行、顶格),其他值一律用单引号——绝不用双引号:
双引号里,shell 会执行贴上的错误信息中的反引号与 $(…)。条目没有 paths / commands 就省略 --paths / --commands。
列出候选时三选一,不要直接再加一条:
status: superseded、正文指向新的 [[名称]].flightwake/TRAPS.md,有相近条目一样三选一.flightwake/TRAPS.md 顶部示范的条目格式(OKF 式 frontmatter:name/type/status/confidence/tags/discovered)
写在 .flightwake/TRAPS.md 的最上面
选填 paths / commands——坑绑在特定文件或命令上时才填,让 Claude Code mod 的绊线在有人碰到时把这条提示出来:
paths: ["src/db/**", "*.sql"](repo 相对路径的 glob;不含 / 的样式匹配任何深度的同名文件)、
commands: ["npm run migrate", "psql"](命令前缀,逐词比对)。不支持 regex。拿不准、或坑是观念而不是某个位置?留空即可——
不填的条目照常运作[[名称]] 互连confidence: suspected 并写下还没排除什么,不要空着等想清楚,也不要把猜测写成定论。
之后坐实了回头升级status 改成 superseded,内文指向 [[新条目]] —— 永不删行,
这样「旧 md vs 新 md」冲突时永远有明确方向What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (kaiwutech-tw/flightwake) — no native marketplace selected
npx claudepluginhub p/kaiwutech-tw-flightwake16 skills in this plugin
/fw-coldstartflightwake cold start — restore state before touching a repo. Use when starting work in a repo that has .flightwake/, when the user says take over / continue / coldstart, or at the start of any session touching a flightwake-managed repo./fw-handoffflightwake cross-session handoff — write CONTEXT for work that is unfinished and will continue later. Use when stopping mid-build on multi-session work, when the user says handoff / continue next time, or before context runs out on a large task./fw-recordflightwake wrap-up record — write the flight record and update STATE. Use when wrapping up: 3+ commits since the last record, the session is ending, or (in code repos) work that touched schema/prod; also when the user says wrap up / record this.Other plugins' skills for the same job