context-architecture
Skill này làm gì
Skill này giúp AI của bạn kiểm toán một kho code để tài liệu và quy tắc luôn chính xác. Nó dành cho các nhóm muốn cả người lẫn agent AI hiểu dự án một cách đáng tin cậy.
Khi nào nên dùng
- ✓Khi bạn muốn kho code dễ làm việc hơn với các agent AI.
- ✓Khi tài liệu và hướng dẫn của dự án đã lệch khỏi những gì code thực sự làm.
- ✓Khi bạn muốn thêm kiểm thử hoặc linter để thực thi các quy tắc mà tài liệu mô tả.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/context-architecture/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
“Hãy kiểm toán repo của tôi và đảm bảo các quy tắc trong tài liệu được thực thi bằng kiểm thử hoặc linter.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra từng khẳng định mà kho code đưa ra về chính nó và gắn nó với một cơ chế, như trình biên dịch, linter hoặc bài kiểm thử tự động, sẽ báo lỗi khi khẳng định không còn đúng. Nó làm việc theo từng bước thay vì viết lại toàn bộ.
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.
Context Architecture: bind a repository's claims to mechanisms
This skill applies Context Architecture to a repository: it makes the repo's intent and behavior equally legible to people and AI agents, and binds every claim the repo makes about itself to a mechanism that fails when that claim stops being true. It works from the first commit (a repo can be born legible) and on a repo that grew without design (restructured in steps, never all at once). The job is to take the repo as it is and make it legible and self-verifying, without a big-bang rewrite.
Context Architecture treats the repository itself (its file tree, boundaries, conventions, and embedded context) as a designed artifact, not an accident of growth. Introduced by Sergio Azócar in October 2025. Canonical specification: https://context-architecture.dev
The one assumption
Design for a reader who retains nothing between sessions and knows only what the repository says out loud. An AI agent meets this exactly; a new human contributor approximates it. Agents keep memory now, but it is local, unverified, and unshared, so it is not the repository's truth; design as if it were absent.
The rule (the test you run, claim by claim)
Every claim a repository makes about itself must be bound to a mechanism that fails when that claim stops being true.
That is the whole architecture. Everything else is how you apply it.
A claim is anything the repository holds about itself, not just the shape of its folders. "Prices are computed in this module and nowhere else" is a claim. "This operation responds within a certain time" is a claim. "This data format does not break for the people already using it" is a claim. For each one, ask: is there a compiler, a linter rule, an automated test, or a review step (by a person or an agent) that breaks when that stops being true? If not, it is prose, and prose goes stale without anything noticing. A claim with no mechanism behind it is the violation.
The mechanism has to actually fail, not just exist. A performance test that never exercises the slow path does not satisfy the rule, it violates it. That a test can fail is a claim too: mutation testing checks it, a surviving mutant is a test that cannot fail. The rule applies to itself: the set of tests and rules that verify the repository is itself a set of claims, so it too is bound to a mechanism that fails if it is weakened.
The loop (write a claim, verify it, repeat on every change)
Working with an agent is a continuous flow of code changes, and the rule lives inside it. When a change introduces a claim (a source of truth, an invariant, a convention), bind it to a mechanism in the same change; a change that touches existing code meets the mechanisms already there, so a violation goes red before it reaches production. It is not a one-time setup but a property maintained change by change, which is why the context grows with the system instead of falling behind. A claim left loose is caught in review, by a person or an agent, and bound before the change is accepted.
Works with or without a person in the loop
Context Architecture serves the whole autonomy spectrum. What changes across it is who consumes
the verification, not the verification. The same AGENTS.md and the same mechanisms work at every
level: inline (a person, or a classifier, approves each edit), async (a person reviews before
integrating), autonomous (a person sets the rules and does not watch each change), and orchestrated
(nobody in the middle). As of 2026 all four exist as products, and with several agents in parallel
the merge queue is where the mechanisms arbitrate. When there is a person, the mechanisms absorb the
routine checks; when there is no person, they are the reviewer.
The kinds of mechanism (not tools)
Binding a claim is connecting it to something that fails when it stops being true. Context
Architecture names the kinds of mechanism; the repository picks the product (oxlint or eslint,
it makes no difference), and the infrastructure runs it on each change.
- The compiler catches what can be expressed in types: reintroducing a forbidden import breaks the build.
- The linter catches problems of structure and convention: a file in the wrong folder fails the lint and cites the rule it breaks.
- Automated tests catch documentation that lies and behavior that strays: an
AGENTS.mdthat mentions a deleted file turns the tests red. - **R
Câu hỏi thường gặp
Quy tắc cốt lõi là gì?
Mọi khẳng định mà kho code đưa ra về chính nó nên được hỗ trợ bởi một cơ chế sẽ báo lỗi nếu khẳng định trở nên sai.
Có cần viết lại lớn không?
Không. Skill được thiết kế để tái cấu trúc kho code theo từng bước.
Skill dành cho ai?
Dành cho các nhóm và agent cần một kho code tự giải thích rõ ràng và chính xác.
Chi tiết
Mô tả gốc của tác giả
Audit a codebase and bind every claim it makes about itself to a mechanism that fails when the claim stops being true, so it is legible to people and AI agents. Applies Context Architecture's nine principles: make structure say what the system does, place AGENTS.md at boundaries, codify conventions, and bind every claim the repo makes about itself to a mechanism (compiler, linter, automated tests, review) that fails when the claim stops being true. Works greenfield (a repo born legible) and brownfield (a repo restructured in steps). Use when an agent reimplements code that already exists, inve
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8744
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
technical-documentation
394kGiúp agent của bạn viết và rà soát tài liệu kỹ thuật cùng file hướng dẫn cho agent, rõ ràng để mọi người và công cụ AI đều dễ làm theo.
architecture-decision-records
280kGiúp agent của bạn ghi lại các quyết định quan trọng về cấu trúc dự án, giúp hiểu lý do đằng sau các lựa chọn và giữ lịch sử thay đổi rõ ràng.
code-tour
280kGiúp agent của bạn tạo các hướng dẫn đọc code từng bước, có tham chiếu chính xác đến file và dòng, hữu ích cho phần giới thiệu, giải thích và rà soát.