/codestable:cs-keep [要沉淀的内容]from codestable
Persists project facts, lessons, and canonical knowledge with evidence tracking, lifecycle management (observed/validated/retired), and automated routing to attention.md, ADRs, project docs, or lessons files.
Ships in codestable. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
把这次学到的东西沉淀成下次能被检索到的项目记忆。落点由你判断,不追问用户分类。
.codestable/attention.md 就先读;写前检索 .codestable/lessons/ 与 v1 只读
.codestable/compound/,核实证据、scope、重复项与已有 canonical owner。按单一 owner 和以下顺序路由:
attention.md:全文保持 ≤25 条,保留存量分节;超限先合并再新增。.codestable/lessons/YYYY-MM-DD-{slug}.md,作为可纠偏、可删除的 staging。.codestable/、attention.md 或 lessons/ 不存在时可按需创建,不要求先跑 cs-onboard。临时状态、
本周计划或 git 已完整表达的事实不沉淀。codestable-eval 只标记未来上游候选;本轮不导出、不上传、
不改 skill,也不恢复 cs-feedback。
一条一文件,slug 用小写连字符、≤30 字符:
---
status: observed
scope: 模块 / 命令 / 场景关键词
date: YYYY-MM-DD
---
规则:未来可执行的结论。
适用 / 不适用:边界与停止应用信号。
证据:最多三个代表性路径、测试、diff 或任务指针。
候选归宿:test | checker | attention | project-doc | adr | codestable-eval
| status | 判据 |
|---|---|
observed | 单次任务已有证据,尚未在独立后续任务验证 |
validated | 非创建该 lesson 的任务和 agent invocation 中有效命中,真实改善行为并验证成功;具体表现为改变计划或验证,或明确排除一个具体且合理的错误路径 |
retired | 被仓库事实反证、scope 完全失效或已有更强 canonical owner;不得应用且不再复活原结论 |
observed 开始;不能把创建该 lesson 的同一任务自证为 validated,也不因命中
次数或模型自评晋级。status 按 observed 读取,不批量迁移;只在真实状态变化或本来就要更新时补字段。observed -> validated 只在独立后续任务确实采用并验证成功时发生,并只补一次代表性证据;必须记录 lesson 实际改变的计划或验证,或明确排除的具体且合理错误路径,以及本次通过的验收证据。observed|validated -> retired 只写反证/替代原因与指针。retired 条目上的新结论必须另建 observed
lesson,不继承旧条目的 validated 身份。.codestable/compound/ 是只读历史知识源:命中且结论完整时只引用来源、不新建;有增量时只合并进现有 lesson 或新建 lesson,并引用旧 compound 来源,绝不更新 compound。cs-keep 整理。日后找回:grep -ri "关键词" .codestable/lessons/ .codestable/compound/。应用前以当前代码、测试或
canonical 文档核实;retired 不应用,compound/ 命中仍按只读规则处理。
报告写入、更新或删除的文件路径与一句话摘要即可,不设写后确认。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub codestable/codestable --plugin codestable9 skills in this plugin
/cs-feat实现新功能或功能改造。不用于纯 bug 修复(cs-issue)、行为等价重构(cs-refactor)、大需求拆解(cs-epic)。Other plugins' skills for the same job