architecture-decision
Skill này làm gì
Skill này ghi lại một quyết định kỹ thuật để nhóm nhớ vì sao nó được đưa ra. Skill dành cho nhóm game và phần mềm muốn có bản ghi rõ ràng, lâu dài về các lựa chọn quan trọng.
Khi nào nên dùng
- ✓Khi nhóm của bạn đã đưa ra hoặc đang cân nhắc một lựa chọn kỹ thuật quan trọng.
- ✓Khi bạn muốn các phương án thay thế và sự đánh đổi được ghi lại để tham khảo sau.
- ✓Khi một quyết định cần giám đốc kỹ thuật hoặc chuyên gia động cơ xem xét trước khi được chấp nhận.
Liên kết skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/architecture-decision/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
“Viết bản ghi quyết định cho việc chọn thư viện máy trạng thái thay vì logic viết tay.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill ghi lại bối cảnh, các phương án đã cân nhắc, cách tiếp cận được chọn và hệ quả. Độ sâu của từng phần theo cài đặt mật độ tài liệu của bạn, và bản ghi được đưa qua xem xét.
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.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys review_mode,automation,workflow,docs.density,team.size
Resolved above — use as-is; --review overrides review_mode. No block →
defaults in .claude/docs/config-resolution.md.
Architecture Decision
When this skill is invoked:
0. Parse Arguments — Detect Retrofit / Acceptance Mode
See .claude/docs/director-gates.md for the full check pattern. Individual gate definitions live in .claude/docs/director-gates/[gate-id].md — the spawned agent reads its own gate file; do not read it in the parent session.
Every AskUserQuestion call follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
team.size: which agents validate this ADR (orthogonal to review_mode/workflow).
individual(default):technical-director(TD-ADR) + the engine-specialist.smallandstudio: the same two. This skill spawns no engine sub-specialist and no adversarial reviewer at any size.
docs.density — it controls the depth of the ADR's prose sections, not
which sections the skeleton emits (that is fixed). modes.rigor sets it
alongside workflow; set docs.density explicitly to vary ADR verbosity alone:
terse (the default, via rigor: minimal) = decision + alternatives as bullets, one line of rationale each;
balanced = paragraph per section with light rationale (rigor: standard); thorough =
full prose with trade-offs and worked rationale in Decision, Alternatives, and
Consequences. Apply it to the prose sections; the Engine Compatibility, ADR
Dependencies, and GDD Requirements tables are structural and stay whole at every
density.
workflow (see .claude/docs/workflow-modes.md):
full— all ADRs on the required ADR list must be completed.standard— critical ADRs only (Foundation-layer systems).minimal— not required. Can still be run voluntarily.
If the argument starts with retrofit followed by a file path
Read references/0-retrofit.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
If the argument starts with accept followed by an ADR id
Read references/0-accept.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
If NOT in retrofit or acceptance mode, proceed to Step 1 below (normal ADR authoring).
No-argument guard: If no argument was provided (title is empty), ask before running Phase 0:
"What technical decision are you documenting? Please provide a short title (e.g.,
event-system-architecture,physics-engine-choice)."
Use the user's response as the title, then proceed to Step 1.
1. Load Engine Context (ALWAYS FIRST)
Read references/1-engine-context.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
2. Determine the next ADR number
Scan docs/architecture/ for existing ADRs to find the next number.
3. Gather context
Read references/3-gather-context.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
4. Guide the decision collaboratively
Read references/4-decide.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
5. Generate the ADR
Read references/5-generate.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.
6. Closing Next Steps
After the ADR is written (and registry optionally updated), close with AskUserQuestion.
Before generating the widget:
- Read the
## Required ADRssection ofdocs/architecture/architecture.md(by section) and listdocs/architecture/adr-*.md: a required ADR with no file is still unwritten. Withoutarchitecture.md, look for ADRs flagged in technical-preferences.md or systems-index.md as prerequisites - Check if all prerequisite ADRs are now written. If yes, include a "Start writing GDDs" option.
- List ALL remaining priority ADRs as individual options — not ju
Câu hỏi thường gặp
Một bản ghi quyết định tốt có những gì?
Nó giải thích bối cảnh, liệt kê các phương án đã cân nhắc và nêu hệ quả của lựa chọn.
Ai xem xét nó?
Giám đốc kỹ thuật và chuyên gia động cơ liên quan xem xét nó.
Nó dài bao nhiêu?
Độ dài tùy theo cài đặt mật độ tài liệu của bạn, từ gạch đầu dòng ngắn đến lập luận đầy đủ.
Chi tiết
Mô tả gốc của tác giả
Create an ADR documenting a technical decision: context, alternatives considered, consequences.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8435
- Giấy phép
- MIT
- Cập nhật
- 18/10/2026
Bình luận
- …
Thêm skill từ kho mã này
adopt
33kKiểm tra xem tài liệu của một dự án game hiện có có tuân theo định dạng của mẫu studio hay không, rồi viết một kế hoạch di chuyển có đánh số để sửa các khoảng trống.
architecture-review
33kKiểm tra các quyết định kỹ thuật của bạn có bao phủ mọi yêu cầu thiết kế, không mâu thuẫn và phù hợp với phiên bản động cơ, với kết luận đạt hoặc có mối lo ngại rõ ràng.
art-bible
33kViết một art bible xác định bản sắc thị giác của game, để việc sản xuất tài nguyên tuân theo một bộ quy tắc phong cách rõ ràng.
asset-audit
33kKiểm tra tài nguyên game theo quy tắc đặt tên, ngân sách dung lượng file và tiêu chuẩn định dạng, đồng thời tìm các tham chiếu tài nguyên không dùng hoặc bị hỏ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.
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.