skills/besty0728/unity-skills/unity-architecture

unity-architecture

SKILL.md

Unity Architecture Advisor

Use this before generating lots of gameplay scripts or when the user asks for a cleaner architecture.

Workflow

  1. Identify scope: prototype, small game, or long-lived project.
  2. Define the core loop and the minimum runtime systems needed.
  3. Recommend the smallest architecture that fits the scope.
  4. Separate:
    • scene/bootstrap layer
    • gameplay/domain logic
    • data/config assets
    • view/presentation layer
  5. Call out what should stay simple now vs what is worth abstracting.

Output Format

When using this skill, structure the advice as:

  • Project tier: prototype / small-game / long-lived
  • Recommended modules: 3-7 modules with one-line responsibilities
  • Scene/bootstrap plan: where composition and initialization happen
  • Data ownership: what belongs in scene objects, ScriptableObjects, or pure C# classes
  • Communication rules: direct refs, interfaces, events, or commands
  • Performance risks: only the hot paths that matter
  • Do now / skip now: avoid over-engineering

Default Guidance

  • Prefer thin MonoBehaviour scripts as composition bridges.
  • Put reusable gameplay rules in plain C# classes when possible.
  • Use ScriptableObject for authored config and shared static data, not as a default dump for runtime state.
  • Keep dependencies explicit. Avoid hidden global state unless the project size clearly justifies a small service layer.
  • Favor simple module boundaries over framework-heavy architecture.

Guardrails

  • Do not start from a giant reusable framework unless the project truly needs it.
  • Do not add layers just to satisfy textbook SOLID wording.
  • Prefer a small architecture that can grow, not an impressive one that slows iteration.

Load Related Advisory Modules When Needed

Weekly Installs
3
GitHub Stars
435
First Seen
3 days ago
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2