JSPM

code-review-unity

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q44976F
  • License MIT

Claude Code skill for reviewing Unity C# code based on Unity's official style guide

Package Exports

  • code-review-unity
  • code-review-unity/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (code-review-unity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

code-review-unity

Claude Code skill for reviewing Unity C# code against Unity's Official C# Style Guide (Unity 6 Edition).

npm version License: MIT

Install

npx code-review-unity

Or manually copy .claude/skills/code-review-unity/ to ~/.claude/skills/

Usage

/code-review-unity Assets/Scripts/PlayerController.cs

Or review git changes:

/code-review-unity

What It Checks

Category Rules
Naming PascalCase (classes/methods), camelCase (private fields)
SRP One responsibility per MonoBehaviour
DRY No duplicate logic
KISS Simple over clever
Comments Explain why, not what
Unity-specific GetComponent caching, Update patterns, ScriptableObject usage

Example Output

## Code Review: PlayerController.cs

### Critical Issues

1. **SRP Violation - God Class** (lines 15-89)
   - Handles input, movement, audio, and inventory
   - Split into: PlayerInput, PlayerMovement, PlayerAudio, PlayerInventory

### Style Violations

2. **Poor Variable Naming** (line 23)
   - `int d` should be `int elapsedTimeInDays` - be specific about units

Resources

License

MIT