code-review
Skill này làm gì
Skill này rà soát code về cấu trúc và chất lượng thiết kế. Skill dành cho lập trình viên muốn có một góc nhìn thứ hai, giàu kinh nghiệm, về các thay đổi của mình.
Khi nào nên dùng
- ✓Khi bạn muốn rà soát một tệp hoặc một thay đổi về vấn đề thiết kế và cấu trúc.
- ✓Khi code khó kiểm thử và bạn muốn biết lý do.
- ✓Khi bạn muốn kiểm tra một thay đổi theo chuẩn code trước khi gộp.
Liên kết skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/code-review/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 rà soát tệp hệ thống chiến đấu này để tìm vấn đề kiến trúc và vấn đề khả năng kiểm thử.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc code mục tiêu và kiểm tra theo chuẩn code cùng các nguyên tắc thiết kế như SOLID, khả năng kiểm thử và hiệu năng. Skill báo cáo các phát hiện kèm những phần cụ thể của code bị ảnh hưởng.
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
Code Review
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).
Insufficient input — check this before producing any report
If the inputs this skill needs do not exist, the answer is "could not run" — not a filled-in report. Check first, and stop if the check fails.
- List the inputs this skill reads (data files, prior reports, profiler output, test results, registries, source code).
- For each, record
FOUNDorABSENT— not "assumed present". - If any input required for a section is ABSENT, that section is
NOT ASSESSED — NO DATA. Do not estimate it, do not infer it from an adjacent artifact, and do not leave a mandated cell to be filled by whoever reads the template next. - If every required input is ABSENT, stop and report
NOT ASSESSED — NO DATAas the whole verdict, naming what was missing and which skill produces it.
A verdict of NOT ASSESSED is a success. It is the correct, useful answer to
"what does the data say?" when there is no data. The failure mode this prevents is
specific: a report whose verdict enum has no "could not run" state produces
false clean passes — an asset audit returning COMPLIANT on a project with no
assets and no standards, or a performance profile reporting ">99% headroom against
a 16.67ms budget" with zero profiler data and no budget ever set.
Absence of evidence is never evidence of absence. A scan that finds no matches because there are no files to scan has not verified anything. Say which of the two happened — a reader cannot tell from a green result.
Phase 1: Load Target Files
Read the target file(s) in full. Read CLAUDE.md for project coding standards.
Phase 2: Identify Engine Specialists
Read the specialists block from project.yaml; if it is absent, fall back to the ## Engine Specialists section of .claude/docs/technical-preferences.md. Note:
- The Primary specialist —
<engine>-specialistderived fromengine.name(Godot→godot-specialist, Unity→unity-specialist, Unreal→unreal-specialist); used for architecture and broad engine concerns - The Language/Code Specialist —
specialists.code— used when reviewing the project's primary language files - The Shader Specialist —
specialists.shader— used when reviewing shader files - The UI Specialist —
specialists.ui— used when reviewing UI code
A value of null means UNSET — treat that key as absent and skip its
specialist. Never spawn it as an agent name. The v1.0 migration writes null
for any specialist the legacy file did not name, and it writes the whole block
whenever one member is set — so a project that configured only its code
specialist carries shader: null and ui: null. The config reader returns the
four-character string "null" for these, which is not empty and therefore reads
as configured. null, empty, and missing are the same state here.
If no engine is configured (no engine.name in project.yaml, and technical-preferences.md reads [TO BE CONFIGURED] or is missing), skip engine specialist steps. Record Engine validation: NOT ASSESSED — no engine configured (`engine.name` unset in `project.yaml`) in this run's output. A skipped check that says nothing is indistinguishable from a check that passed; the reader cannot tell engine guidance was never sought.
Phase 3: ADR Compliance Check
Argument: /code-review [file(s)] may optionally include a story file path as the last argument (e.g., /code-review Assets/Scripts/Combat/Attack.cs production/epics/combat/story-001.md). If a story path is provided, read it to extract the governing ADR reference.
Search for ADR references in, in priority order:
- The story file (if provided as argument)
- Header comments at the top of the implementation files
- Commit messages referencing these files (
git log --oneline -- [file])
Look for patterns like ADR-NNNN or docs/architecture/adr- (either case).
If no ADR references found, note: "No ADR references found — ADR compliance check skipped. For full ADR compliance review, provide the story path: /code-review [files] [story-path]."
For each referenced ADR, load **only the sections this check needs — never an unbounded f
Câu hỏi thường gặp
Trọng tâm chính của skill là gì?
Chất lượng kiến trúc và thiết kế, như chuẩn code, nguyên tắc SOLID và khả năng kiểm thử.
Đây có phải là rà soát bảo mật không?
Không. Skill tập trung vào kiến trúc, chuẩn code và khả năng bảo trì.
Skill có sửa code không?
Skill chỉ báo cáo các phát hiện. Việc sửa là một bước riêng do bạn chọn.
Chi tiết
Mô tả gốc của tác giả
Architectural code review — coding standards, SOLID, testability, performance concerns.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8445
- 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ự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.