uw-unity-feature-scaffold

Scaffold Unity feature modules with folders, Assembly Definitions, and test assemblies.

40|6|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/devdavv/unity-ai-workflow --skill uw-unity-feature-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uw-unity-feature-scaffold
Source: https://github.com/devdavv/unity-ai-workflow/tree/main/.claude/skills/uw-unity-feature-scaffold
Command: npx skills add https://github.com/devdavv/unity-ai-workflow --skill uw-unity-feature-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds a complete Unity feature module with folders, Assembly Definition (.asmdef), a test assembly, and a derived root namespace based on ProjectConfig.yaml.

Core Features & Use Cases

  • Create feature folders according to the configured folder strategy (feature-based or type-based) under Assets/_Project.
  • Generate an Assembly Definition named {RootNamespace}.{FeatureName}.asmdef and a corresponding tests assembly for isolated testing.
  • Create a starter Feature Manager class (e.g., {FeatureName}Manager.cs) within the feature namespace.
  • Derive the root namespace from the project name (PascalCase) and confirm with the user before generation.
  • Support optional architecture patterns (SO-first or DI-first) and trigger Unity refresh (if enabled) after scaffolding.

Quick Start

Prompt for the feature name and let the tool scaffold the complete module according to your ProjectConfig.yaml.

Frequently Asked Questions about uw-unity-feature-scaffold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new Unity feature module with Assembly Definitions?

To scaffold a Unity feature module, the tool generates feature folders, an Assembly Definition (.asmdef), and a test assembly under Assets/_Project based on your ProjectConfig.yaml settings. It also creates a starter Feature Manager class within the derived namespace.

How does namespace derivation work when creating a Unity feature?

Namespace derivation extracts the root namespace from your project name in PascalCase. The tool confirms this derived root namespace with you before generating the feature folders and Assembly Definition files.

Can I use a specific folder strategy when scaffolding Unity features?

Yes, the scaffolder respects your configured folder strategy from ProjectConfig.yaml, supporting both feature-based and type-based directory structures under Assets/_Project for organizing the new module.

Does the Unity scaffolder support architecture patterns like SO-first or DI-first?

Yes, the scaffolder supports optional architecture patterns including SO-first or DI-first configurations. It applies these patterns during the generation of your feature folders and Assembly Definition files.

How do I set up isolated tests for a new Unity module?

The scaffolder automatically generates a corresponding tests assembly alongside your main Assembly Definition file. This ensures your new Unity feature module is immediately configured for isolated testing.

Do I need Unity MCP to refresh the project after scaffolding?

No, but if mcp.unity_mcp is enabled in your configuration, the scaffolder optionally triggers a Unity refresh automatically after generating the feature folders and Assembly Definitions.