본문으로 건너뛰기
cccskills
무료GitHub에 공개

uw-code-review

Pre-commit code quality review for Unity C# code. Checks against Rules, CODING_STANDARDS.md, NAMING_CONVENTIONS.md, and GDD Gherkin test coverage. Use when code has been written and tests are passing but before committing. Runs automatically at Step 8.5 of /uw-cmd-implement-feature. Triggers on "review this code", "check my implementation", "pre-commit review", "code review", "check before commit", "is this ready to commit", "review my changes", or any request to validate code quality before committing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Code Review

Pre-commit quality gate. Read the target files, then run this checklist. Output one structured report per review. Fix all issues before committing.

Before You Start

  1. Read docs/CODING_STANDARDS.md for formatting, class structure, serialization, null safety, and async rules.
  2. Read docs/NAMING_CONVENTIONS.md for naming rules (private fields, properties, files, asmdefs).
  3. Read docs/GDD.md for Gherkin scenarios — every scenario should have a corresponding test.
  4. Read the files being reviewed in full before assessing.

Checklist

1. Rules Compliance

  • All Inspector fields use [SerializeField] private — no public fields on MonoBehaviours
  • All component references cached in Awake() or Start() — never in Update/FixedUpdate/LateUpdate
  • GameDebug used instead of Debug.Log / Debug.LogError / Debug.LogWarning
  • New Input System only — no Input.GetKey* / Input.GetAxis*
  • TryGetComponent<T>() preferred over GetComponent<T>() where component may be absent
  • No Unity API calls from background threads
  • No .meta file modifications

2. Naming Conventions

  • Private fields: _camelCase
  • Public properties & methods: PascalCase
  • Parameters & local variables: camelCase
  • Booleans: is/has/can/should prefix (e.g. _isGrounded, CanJump)
  • Events: On prefix (e.g. OnDeath)
  • Static fields: s_camelCase
  • Class name matches file name

3. Code Quality

  • No magic numbers or hardcoded strings — use constants, ScriptableObjects, or serialized fields
  • No FindObjectOfType<T>() or GameObject.Find() (except in editor-only code)
  • No cross-assembly references that violate the TDD's asmdef dependency graph
  • K&R braces (opening brace on same line)
  • 4-space indentation (no tabs)

4. Performance

  • No new allocations inside Update/FixedUpdate/LateUpdate (no GC pressure in hot paths)
  • Particles are pooled or have Stop Action set to Destroy with pool backing
  • DOTween/PrimeTween tweens are killed in OnDestroy or OnDisable
  • No string concatenation in hot paths — use GameDebug with conditional compilation

5. Test Coverage

  • Every GDD Gherkin Given/When/Then scenario for this feature has a corresponding NUnit test
  • EditMode tests for pure logic; PlayMode tests for MonoBehaviour lifecycle
  • All tests currently passing

6. Game Feel

  • If "later" was chosen in /uw-cmd-implement-feature Step 3: // TODO(gamefeel): [feature] — pending comment exists in the main script
  • If "later" was chosen: a pending row exists in docs/GFD.md Feedback Matrix
  • If "now" was chosen: Rule of Three satisfied (visual + audio + kinesthetic minimum)

Output Format

## Code Review — {FeatureName}

### Rules          [Pass | Issues]
### Naming         [Pass | Issues]
### Code Quality   [Pass | Issues]
### Performance    [Pass | Issues]
### Test Coverage  [X/Y scenarios | Missing]
### Game Feel      [Integrated | TODO filed | Missing]

Issues to fix before commit:
- [list each issue with file and line, or "None"]

Do not commit until Issues to fix is "None".

After Review

  • Fix issues: Address all flagged items, then re-run this review.
  • Debug failures: Use uw-unity-debugging for systematic diagnosis of any issues found.
  • Missing tests: Use uw-unity-test-runner to generate tests for uncovered Gherkin scenarios.
  • Missing game feel: Use uw-game-feel-integrator if Rule of Three is not satisfied and "now" was chosen.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adopt

무료

Brownfield onboarding — audits existing project artifacts for template format compliance (not just existence), classifies gaps by impact, and produces a numbered migration plan. Run this when joining an in-progress project or upgrading from an older template version. Distinct from /project-stage-detect (which checks what exists) — this checks whether what exists will actually work with the template's skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

IdoCohen560/claude-unity-game-studio222026년 7월 8일 업데이트

Creates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

IdoCohen560/claude-unity-game-studio222026년 7월 8일 업데이트

Validates completeness and consistency of the project architecture against all GDDs. Builds a traceability matrix mapping every GDD technical requirement to ADRs, identifies coverage gaps, detects cross-ADR conflicts, verifies engine compatibility consistency across all decisions, and produces a PASS/CONCERNS/FAIL verdict. The architecture equivalent of /design-review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

IdoCohen560/claude-unity-game-studio222026년 7월 8일 업데이트

art-bible

무료

Guided, section-by-section Art Bible authoring. Creates the visual identity specification that gates all asset production. Run after /brainstorm is approved and before /map-systems or any GDD authoring begins.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

IdoCohen560/claude-unity-game-studio222026년 7월 8일 업데이트

Audits game assets for compliance with naming conventions, file size budgets, format standards, and pipeline requirements. Identifies orphaned assets, missing references, and standard violations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

IdoCohen560/claude-unity-game-studio222026년 7월 8일 업데이트

Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

IdoCohen560/claude-unity-game-studio222026년 7월 8일 업데이트

IdoCohen560의 스킬 모두 보기

이 스킬의 문제 신고