Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật33k · #8435

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/architecture-decision/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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.
  • small and studio: 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:

  1. Read the ## Required ADRs section of docs/architecture/architecture.md (by section) and list docs/architecture/adr-*.md: a required ADR with no file is still unwritten. Without architecture.md, look for ADRs flagged in technical-preferences.md or systems-index.md as prerequisites
  2. Check if all prerequisite ADRs are now written. If yes, include a "Start writing GDDs" option.
  3. 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.

repo: Donchitos/Claude-Code-Game-Studios

Độ 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự