unity-scene-contracts

Define Unity scene wiring contracts for root objects, components, and bootstrap logic.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-scene-contracts-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-scene-contracts
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/scene-contracts
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-scene-contracts-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scene composition contract advisor for Unity. Use when users want to define required scene objects, component dependencies, bootstrap logic, or reference wiring rules. Triggers: scene contract, bootstrap, required references, scene wiring, scene dependencies, what must be in the scene, 场景契约, 场景装配, 场景依赖, 场景里必须有什么, 引用怎么连.

Core Features & Use Cases

  • Required root objects
  • Required components on each root
  • Which references are assigned in Inspector
  • Which objects act as bootstrap/installers
  • Which objects are runtime-spawned
  • Which assumptions should be validated early

Output Format

  • Scene object contract
  • Bootstrap sequence
  • Inspector wiring rules
  • Validation rules
  • Hidden dependency risks

Quick Start

Define your scene contract by listing required root objects, components, and bootstrap references.

Frequently Asked Questions about unity-scene-contracts

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

FAQPage Schema
How do I define required root objects and references for Unity scene wiring?

Scene wiring contracts enforce deterministic Unity scene setup by listing required root objects, components, and bootstrap references. This approach replaces implicit dependencies with explicit validation rules for early assumption checking.

What is a scene contract in Unity and when do I need bootstrap sequencing?

A Unity scene contract is an explicit definition of required scene objects and bootstrap logic. You need bootstrap sequencing when your project requires deterministic setup and validation of functional dependencies before runtime execution.

How to set up Unity bootstrap logic and validate scene dependencies?

Set up Unity bootstrap logic by listing required root objects, components, and bootstrap installers in a scene contract. This defines the bootstrap sequence and generates validation rules to check Inspector wiring and hidden dependency risks.

Can I specify which Unity objects are runtime-spawned versus bootstrap installers?

Yes, a scene contract distinguishes between objects that act as bootstrap installers and those that are runtime-spawned. This separation governs Unity scene composition and clarifies dependency wiring rules.

Does Unity scene contract validation work without external dependencies?

Yes, the scene contract approach operates with no external dependencies. It applies validation rules directly to Unity scene composition by defining required components and checking reference wiring natively.

What are the limitations of using explicit scene contracts for Unity scene composition?

Scene contracts require manually listing all required root objects, components, and references to validate dependencies. Any unlisted implicit wiring or runtime-spawned objects may bypass the bootstrap sequencing and validation rules.