consistency-check
Skill này làm gì
Skill này tìm xung đột giữa các tài liệu thiết kế. Skill dành cho nhà thiết kế muốn có một bộ tên và con số nhất quán cho toàn bộ game.
Khi nào nên dùng
- ✓Khi bạn vừa viết xong một tài liệu thiết kế mới và muốn đối chiếu với các tài liệu còn lại.
- ✓Khi hai tài liệu có thể mô tả cùng một vật phẩm hoặc chỉ số theo cách khác nhau.
- ✓Khi bạn muốn bắt xung đột trước khi công việc kiến trúc bắt đầu.
Liên kết skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/consistency-check/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 tra toàn bộ tài liệu thiết kế của chúng tôi với sổ đăng ký thực thể và cho tôi xem các chỉ số bị mâu thuẫn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc sổ đăng ký chung một lần, rồi chỉ tìm trong các phần tài liệu có nhắc đến tên đã đăng ký. Skill báo cáo xung đột và có thể gợi ý sửa sổ đăng ký.
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 automation,workflow,system_overrides
Consistency Check
Detects cross-document inconsistencies by comparing all GDDs against the
entity registry (design/registry/entities.yaml). Uses a grep-first approach:
reads the registry once, then targets only the GDD sections that mention
registered names — no full document reads unless a conflict needs investigation.
This skill is the write-time safety net. It catches what /design-system's
per-section checks may have missed and what /review-all-gdds's holistic review
catches too late.
When to run:
- After writing each new GDD (before moving to the next system)
- Before
/review-all-gdds(so that skill starts with a clean baseline) - Before
/create-architecture(inconsistencies poison downstream ADRs) - On demand:
/consistency-check entity:[name]to check one entity specifically
Output: Conflict report + optional registry corrections
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).
workflow (see .claude/docs/workflow-modes.md), applied per GDD at its
effective tier — the system_overrides row for that GDD's system (its
filename stem) when the block lists one, else the project value:
full— full entity-registry cross-check against all GDD sections.standard— cross-check against the required sections only. The report's Scope line says so, and each value stated for a registered name outside those sections is listed as not checked at this tier (Phase 3 applies this).minimal— not meaningful (no GDDs to check).
Phase 1: Parse Arguments and Load Registry
Modes:
- No argument /
full— check all registered entries against all GDDs since-last-review— check only GDDs modified since the last review reportentity:<name>— check one specific entity across all GDDsitem:<name>— check one specific item across all GDDs
Load the registry:
Read path="design/registry/entities.yaml"
If the file does not exist or has no entries:
"Entity registry is empty. Run
/design-systemto write GDDs — the registry is populated automatically after each GDD is completed. Nothing to check yet."
Verdict: NOT ASSESSED — entity registry empty. Stop: nothing was compared, so there is no PASS to give and nothing to write.
Build four lookup tables from the registry:
- entity_map:
{ name → { source, attributes, referenced_by } } - item_map:
{ name → { source, value_gold, weight, ... } } - formula_map:
{ name → { source, variables, output_range } } - constant_map:
{ name → { source, value, unit } }
Count total registered entries. Report:
Registry loaded: [N] entities, [N] items, [N] formulas, [N] constants
Scope: [full | since-last-review | entity:name]
For entity:<name> or item:<name>, if the registry has no entry by that name
the verdict is NOT ASSESSED — <name> is not in the registry: list the
closest registered names and stop. Checking an unregistered name compares
nothing, and that is not a PASS.
Phase 2: Locate In-Scope GDDs
Glob pattern="design/gdd/*.md"
Exclude the docs that live in design/gdd/ but are not system GDDs:
game-concept.md, systems-index.md, game-pillars.md, gameplay-tags.md,
entity-registry.md, fixture-swap-ledger.md, sound-bible.md and any
gdd-cross-review-*.md (the report /review-all-gdds writes here).
For since-last-review mode:
git log --name-only --pretty=format: -- design/gdd/ | grep "\.md$" | sort -u
Limit to GDDs modified since the most recent design/gdd/gdd-cross-review-*.md
file's creation date.
Report the in-scope GDD list before scanning. If the list is empty — no system
GDDs exist, or since-last-review found none changed — the verdict is
NOT ASSESSED — no GDDs in scope: say which filter produced zero, and stop.
A scan of nothing finds no conflicts, and that is not a PASS.
Phase 3: Grep-First Conflict Scan
For each registered entry, grep every in-scope GDD for the entry's name. Do NOT do full reads — extract only the matching lines and their immediate context (-C 3 lines).
This is the core optimization: instead of reading 10 GDDs × 400 lines each (4,000 lines), you grep 50 entity names × 10 GDDs (50 targeted searches, each
Câu hỏi thường gặp
Skill có đọc đầy đủ mọi tài liệu không?
Không. Skill tìm kiếm trước, và chỉ đọc đầy đủ các phần khi cần kiểm tra một xung đột.
Tôi có thể chỉ kiểm tra một mục không?
Có. Bạn có thể kiểm tra một thực thể theo tên.
Khi nào nên chạy skill?
Sau mỗi tài liệu thiết kế mới, và trước khi rà soát toàn bộ hoặc bắt đầu công việc kiến trúc.
Chi tiết
Mô tả gốc của tác giả
Scan GDDs against the entity registry for cross-document conflicts. Grep-first approach targets conflicting sections, different stats.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8446
- 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-decision
33kViết một bản ghi quyết định kiến trúc cho một lựa chọn kỹ thuật, gồm bối cảnh, các phương án thay thế và hệ quả, với xem xét từ các vai trò kỹ thuật phù hợp.
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.
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.