context-and-decisions
Skill này làm gì
Công cụ này giúp tổ chức và giải thích ý nghĩa của các thuật ngữ quan trọng trong dự án. Nó cũng chuyển các quyết định phức tạp sang một hệ thống ghi nhật ký quyết định có sẵn.
Khi nào nên dùng
- ✓Khi các thuật ngữ kỹ thuật cần được giải thích lặp đi lặp lại.
- ✓Khi một từ có nhiều nghĩa trong dự án.
- ✓Khi cần ghi lại các quyết định quan trọng, khó đảo ngược.
Liên kết skill
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/context-and-decisions/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
“Giải thích “active customer” nghĩa là gì trong dự án này và ghi lại quyết định về cách xử lý thanh toán trễ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trước hết nó tìm các giải thích thuật ngữ trong tài liệu hiện có. Nếu không có, nó tạo một file để ghi lại ý nghĩa. Các quyết định quan trọng được chuyển sang hệ thống ghi nhật ký khác.
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.
Domain Context and Decision Handoff
Govern “what these business terms mean” separately from “why this option was chosen.” Do not create an empty shell when no stable content exists.
Domain Context Artifact: Domain Language Only
When terms require repeated explanation, one term has multiple meanings, or unclear language causes module-boundary errors, first reuse the repository's existing glossary/domain-model document or the context role in .governance/docs-map.json. Only when no equivalent exists should you lazily create the default CONTEXT.md from templates/context.example.md.
Record only:
- domain terms and precise definitions;
- relationships among core concepts;
- confirmed ambiguities and the chosen interpretation;
- ambiguities still awaiting confirmation from a domain owner.
Do not include implementation details, current state, task schedules, full requirements, decision rationale, or history. Keep those in code/MAP, STATUS/Issue Tracker, Spec, ADR, and LOG respectively. Terms must be traceable to code, contracts, or business evidence. Mark unconfirmed items as needs confirmation; do not guess.
ADR Handoff: Reuse the Existing Capability
This skill does not define a second ADR directory, numbering scheme, lifecycle, or template. When a decision is hard to reverse, would confuse a future reader without context, and involves a real tradeoff:
- Read and execute
architecture-decision-records, preserving the repository's existing ADR location and format. - If no convention exists, let that skill choose the minimum viable location; do not create a separate system here.
- Link to the ADR from
CONTEXT.md, the project map, or the relevant Spec/Issue instead of copying the decision body. - When a decision is accepted, superseded, or deprecated, append an event to project history according to the living-document rules.
Routine implementation details, easily reversible changes, and short-lived experiments do not need ADRs.
When to Activate
- Domain terms are repeatedly re-explained or ambiguous language causes implementation drift.
- The project needs a stable domain-language entry point but has no equivalent document.
- Context work uncovers a durable decision that should be handed to
architecture-decision-records.
When to Use
Use this skill when stable domain language needs one evidence-backed home, or when context work reveals a hard-to-reverse decision that belongs in the repository's existing ADR system.
How It Works
- Reuse the mapped context or glossary artifact when one exists; create
CONTEXT.mdonly when no equivalent source of truth is available. - Record precise domain definitions, relationships, confirmed interpretations, and explicitly unconfirmed ambiguities without mixing in implementation or task state.
- Route durable tradeoffs to
architecture-decision-recordsand link the resulting ADR instead of copying its rationale into context documents. - Keep schedules, blockers, and execution status in the existing issue tracker.
Examples
- Define an overloaded business term once and link it to the code or contract that proves its meaning.
- Mark a domain interpretation as
needs confirmationuntil a domain owner resolves it. - Hand off a durable storage or boundary decision to the existing ADR workflow and link it from the context artifact.
Anti-Patterns
- Copying current tasks, schedules, full requirements, or implementation details into
CONTEXT.md. - Creating empty context files or a second ADR system for completeness.
- Treating unconfirmed domain interpretations as facts, or copying ADR bodies into maps and logs.
Related Skills
architecture-decision-records: the sole ADR methodology for hard-to-reverse decisions.living-docs-governance: lifecycle maintenance for the project map, status, and history.docs-governance: cross-capability routing and closeout order.
Scheduling and Task Boundary
Keep tasks, status, blockers, and schedules in the project's existing tracker, such as GitHub Issues or Linear, as the single source of truth. Use local .scratch/ only when no external tracker exists and the project explicitly adopts it. Do not put schedules in CONTEXT.md, ADRs, PROJECT_STATUS, or the history index database.
Câu hỏi thường gặp
Tôi không nên đưa gì vào tài liệu này?
Không đưa chi tiết triển khai, lịch trình công việc, yêu cầu đầy đủ hoặc lịch sử quyết định vào đây. Hãy giữ các thông tin này ở nơi khác, như code, công cụ theo dõi công việc hoặc bản ghi quyết định.
ADR là gì?
ADR là viết tắt của “Architecture Decision Record” (Bản ghi quyết định kiến trúc). Đó là tài liệu giải thích một quyết định quan trọng, khó đảo ngược về cách xây dựng hoặc quyết định một thứ trong dự án.
Khi nào nên tạo file ngữ cảnh mới?
Chỉ tạo file ngữ cảnh mới khi dự án chưa có tài liệu bảng thuật ngữ (glossary) hoặc mô hình nghiệp vụ (domain model) nào để giải thích các thuật ngữ.
Chi tiết
Mô tả gốc của tác giả
Govern stable domain context with a narrowly scoped CONTEXT.md when needed, and route hard-to-reverse decisions to ECC's existing architecture-decision-records skill. Use when domain terms require repeated explanation, one term has multiple meanings, unclear language causes module-boundary mistakes, or domain semantics must remain separate from architecture decisions.
repo: affaan-m/ECC
Độ phổ biến
- Sao GitHub
- 280k
- Vị trí xếp hạng
- #154
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
accessibility
280kGiúp agent của bạn tạo giao diện mà ai cũng dùng được, đảm bảo website và app hoạt động tốt với người khuyết tật như người mù hoặc khó vận động.
agent-architecture-audit
280kGiúp agent của bạn kiểm tra xem mọi thứ có hoạt động đúng không, đồng thời tìm và sửa các lỗi trong hệ thống AI để chúng chạy như mong đợi.
agent-eval
280kGiúp agent của bạn so sánh các công cụ lập trình AI khác nhau, đo xem công cụ nào nhanh hơn, rẻ hơn và đáng tin cậy hơn cho từng tác vụ.
agent-harness-construction
280kGiúp agent của bạn hiểu rõ hơn cách thực hiện tác vụ, tối ưu các công cụ và chỉ dẫn mà agent dùng để tăng khả năng thành công.
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.
archify
260kCài đặt Archify, công cụ biến một đặc tả JSON nhỏ thành sơ đồ HTML tương tác đã được kiểm tra, có thể xuất thành ảnh hoặc video.
concept-diagrams
260kTạo sơ đồ giáo dục phẳng, gọn trong một tệp HTML với đồ họa SVG, bao phủ vật lý, sinh học, giải phẫu, mặt bằng và quy trình.