atlas-ledger
Skill này làm gì
Công cụ này tạo ra các quy tắc để ngăn lỗi lặp lại trong dự án. Nó biến một lỗi được phát hiện thành một hướng dẫn rõ ràng (một “clause”) có thể dùng trong các dự án sau để tránh cùng một sai lầm.
Khi nào nên dùng
- ✓Khi phát hiện tự động một lỗi nghiêm trọng trong quá trình rà soát dự án.
- ✓Sau khi người dùng chỉ ra kết quả của dự án là không đúng hoặc chưa đầy đủ.
- ✓Khi người dùng yêu cầu rõ ràng ghi lại một lỗi để ngăn nó tái diễn.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/atlas-ledger/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Ghi lại sai lầm này để nó không xảy ra nữa: hệ thống lẽ ra phải cảnh báo về tồn kho thấp, nhưng nó chỉ hiện một thông báo chung chung.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ phân tích lỗi đã xảy ra và mô tả nó như một sự thật khách quan. Sau đó, nó tạo một quy tắc theo định dạng “KHI việc này xảy ra, KHÔNG làm điều đó, THAY VÀO ĐÓ hãy làm việc khác”. Quy tắc này được lưu để dùng trong các dự án sau.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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:
…
Câu hỏi thường gặp
“Clause” là gì?
Đó là một hướng dẫn ngắn gọn, rõ ràng, giống như một quy tắc, nói rõ nên làm hoặc không nên làm gì trong một tình huống cụ thể để tránh lỗi. Ví dụ: “KHI tồn kho thấp, KHÔNG ẩn thông báo, THAY VÀO ĐÓ hiển thị cảnh báo rõ ràng”.
Các quy tắc này được lưu ở đâu?
Các quy tắc đã được xác nhận được lưu trong file tên Atlas.md, đóng vai trò là bộ nhớ của dự án. Điều này đảm bảo bài học rút ra từ sai lầm được áp dụng cho công việc sau này.
Công cụ có ghi lại mọi loại vấn đề không?
Không, nó chỉ ghi lại các “drift” hoặc lỗi đã được phát hiện. Nó không dùng để ghi lại ý kiến, sở thích về phong cách hoặc những bài học chung chung. Trọng tâm là các vấn đề có thể chuyển thành quy tắc rõ ràng.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6254
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.