agentleFS
sogudsogud/skills/lock-decisions/SKILL.md

lock-decisions

Skill1 starsChanged 3 months agoMITView on GitHub

用户明确作出、确认、修改或撤回重要决策时必须使用,将当前有效约束写入项目根目录 DECISIONS.md;也支持手动调用。只记最新重要决定,不记讨论过程。

The file

Files
SKILL.md

锁定决策

用户明确确认重要决策时自动执行,也接受手动调用。提问、举例、AI 建议、代码现状和含糊回应不算确认。

  1. 确定目标项目,读取根目录 DECISIONS.md;归属不清才问,首次有重要决定再创建。
  2. 只保留会影响后续工作的有效约束。同义合并、原位更新;用户明确替代或撤回后移除失效内容,不追加历史。冲突尚未解决时只问冲突点,不擅自选边。
  3. 严格使用下表格式:一行一项,决定写成一句具体约束,范围明确,依据只留短原话或确认来源。不得加入原型树、候选列表、讨论记录、实施状态、测试日志或长篇解释;不另建历史文件。
  4. 检查内容是否重复、失效或只是实现事实。只回复更新摘要与文件链接,不重复询问已确认决定,不代用户确认实现验收。
# 当前重要决策

| 编号 | 决定 | 适用范围 | 确认日期 | 简短依据 |
| --- | --- | --- | --- | --- |
| D-001 | 具体且可执行的当前约束。 | 页面或业务范围 | YYYY-MM-DD | 用户短原话或确认来源 |

编号稳定,不因删行重排;更新决定时更新确认日期。只更新决策文件,不修改产品或其他规则,不自动提交。用户可明确改变决定;文件存在不保证未读取它的 Agent 自动遵守。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.