atlas-ledger
它能做什么
这个工具可以制定规则,防止同一个项目中的错误再次发生。它会把检测到的错误转化为一条清晰的指令(即“条款”),之后可以在其他项目中使用,避免同样的错误再次出现。
适用场景
- ✓项目审查时自动检测到严重错误时。
- ✓用户指出项目结果不正确或不完整之后。
- ✓用户明确要求记录某个错误,防止它再次发生时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/atlas-ledger/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请记录这个错误,避免以后再次发生:系统本应提示库存不足,但只显示了一条通用信息。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会分析发生的错误,并将其描述为客观事实。然后,它会按照“WHEN 出现某种情况,DON'T 做某件事,INSTEAD 改做另一件事”的格式制定规则。这条规则会被保存下来,供以后的项目使用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Atlas Ledger v2.2
Give the Atlas series a memory.
Contents
- Output Language
- When To Run
- Distillation (the core) — Steps 1–6
- Atlas.md format
- Clause maintenance
- Integration with atlas-contract
- Final Principle
Quick reference
caught drift (auto handoff from Final Audit / Post Review / Phase Check / user request)
→ Step 1 state facts, not motive
→ Step 2 draft WHEN / DON'T / INSTEAD
→ Step 3 four gates: Actionability → Replay → Generalization → Over-reach
→ Step 4 first occurrence = Observation [O#]; repeat or high-severity = Clause [L#]
→ Step 5 propose, ATLAS_STOP, write only after user confirms
→ Step 6 merge-first into Atlas.md; confirmed clauses ≤ 15
atlas-contract defends the goal within one conversation, but it starts from zero every time — it does not know where this project drifted before. atlas-ledger closes that gap: when a drift is caught, it distills the lesson into a permanent, project-local contract clause and (after the user confirms) writes it to Atlas.md. Next time atlas-contract builds a Goal Contract, it loads the relevant clauses, so the defense line thickens with each catch. That is the compounding effect.
It is a low-frequency, lightweight companion. It runs only after a drift is caught, and it stays small on purpose. Do not turn it into a second heavy governance skill — its only hard job is distillation quality.
Core idea
The job is not to keep a diary. A record of "what went wrong" is a memory; it changes nothing. The job is a translation:
turn this caught drift → into a clause that can enter a future contract and trigger a stop.
A diary says "I hid the feature." A ledger clause says "WHEN a backend requirement is blocked, DON'T hide the feature, INSTEAD stop and disclose." Only the second one catches it next time. The entire value of this skill is the quality of that translation — and since it is run by the same model that drifted, the mechanisms below exist to keep it honest rather than trusting it to be careful.
1. Output Language
Write Atlas.md and all user-facing output in the language of the user's current instruction.
Machine keys stay in English; clause content is localized. Never translate the keys WHEN / DON'T / INSTEAD, the IDs (L1, O1), seen, severity, Source, RETIRED, or section headers Confirmed Clauses / Provisional Observations — atlas-contract parses these, and translating them makes the read-back unstable. The text after each key is written in the user's language. (E.g. WHEN: 硬性 Must-Do 的后端部分受阻 — key English, content Chinese. Do not write 当: ....)
Every process label this skill emits to the user must also be localized (these are not machine keys — they are headings shown to the user, like the four gate names or the candidate-clause header). Only the fixed machine keys above stay English.
Chinese label mapping (process labels — localize these):
Atlas Event→Atlas 事件;Event ID→事件编号;Type→类型;Trigger Source→触发来源;Phase→阶段;Stop Status→停止状态Candidate Clause/Suggested Clause→候选条款;Proposal→提案;awaiting confirmation→等待确认Four acceptance gates→四道闸自检;Actionability→可执行性;Replay→回放;Generalization→泛化;Over-reach→误伤;Pass→通过;Fail→失败confirmed on first occurrence→首次出现即确认;merged→已合并;retired→已退休;review: stale→待复核:可能失效
Pre-output localization self-check: Before sending any user-facing output, scan for untranslated English process labels (e.g. "Suggested Clause", "Actionability"). If any are found, translate them before sending. Do not translate the fixed machine keys (WHEN/DON'T/INSTEAD/IDs/severity/Source/seen/Confirmed Clauses/Provisional Observations) — those stay English even in a Chinese response.
When to Use
2. When To Run
Run distillation only when a drift has been caught. Triggers, in order of how they usually arrive:
…
常见问题
什么是“条款”(clause)?
它是一条简短、清晰的指令,类似规则,说明在特定情况下该做什么或不该做什么,以避免出错。例如:“WHEN 库存不足,DON'T 隐藏提示,INSTEAD 显示清晰的警告”。
这些规则保存在哪里?
确认后的规则会保存在名为 Atlas.md 的文件中,它相当于项目的记忆。这样,从错误中吸取的教训就能应用到之后的工作中。
这个工具能记录所有类型的问题吗?
不能。它只记录已检测到的“偏差”或错误,不用于记录个人观点、风格偏好或一般性的心得。它的重点是能够转化为清晰规则的问题。
详情
作者的原始描述
Companion to atlas-contract. Auto-invoked by its Final Audit on caught drift; also use after Post Reviews or user requests to record a mistake. Distills drift into WHEN/DON'T/INSTEAD clauses, writes to Atlas.md after confirmation.
热度
- GitHub 星标
- 48k
- 排名
- #6254
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。