context-bridge
Context Bridge
Purpose
To maintain a synchronized "Basic and Critical" context between the World-Building (narrative/art) and Unity (gameplay/code) projects. This skill bridges the gap, allowing each project to know what has been realized in the other without full context loading.
Usage Workflow
1. Scan & Summarize
Before running the script, you MUST:
- Identify the current project: Are we in
World-BuildingorUnity? - Scan for key changes: Look for recent updates in:
- World-Building: New lore, character arcs, location descriptions, artistic direction.
- Unity: New mechanics, implemented systems, asset requirements, level design constraints.
- Draft a Summary: Create a concise bulleted list of "Basic and Critical" information that the other project needs to know.
- Example (from WB): "New faction 'Iron Seekers' defined. Key colors: Rust & Orange. Values: Scavenging technology."
- Example (from Unity): "Combat system now supports 'Overheat' mechanic. UI needs heat bar assets."
2. Update Shared Context
Run the update_context.py script to save this summary.
# internal usage
python .agent/skills/context-bridge/scripts/update_context.py --project "<ProjectName>" --content "<Summary String>"
Arguments:
--project: The project you are currently in. Valid values:World-Building,Unity.--content: The summarized text to save. Use\nfor newlines if passing via command line, or use the interactive mode (script might support raw input).
Note: The script will handle file creation and section management.
Shared File Structure
The shared context file (PROJECTS_SHARED_CONTEXT.md) will look like this:
# Shared Project Context
## World-Building Context
[Last Updated: <Date>]
- Summary point 1
- Summary point 2
## Unity Context
[Last Updated: <Date>]
- Summary point 1
- Summary point 2
Tips
- Be Concise: The other agent doesn't need every detail, just the "hooks" they need to respect or implement.
- Don't Overwrite: The script is designed to only replace YOUR project's section.
More from muharremtozan/unity-agent-skills
unity-so-prefab-manager
Manages the structured relationship between ScriptableObjects (Data) and Prefabs (Logic/Visuals) in Unity 6. Follows the 'SO-to-Mono' Bridge pattern to ensure instance independence (e.g., individual health for identical robots) while maintaining a clean, data-driven architecture. Use when: (1) Creating new unit/item types, (2) Wiring SO data to Prefab MonoBehaviours, (3) Resolving data-sharing bugs where changing one SO affects all instances.
16unity-fsm
Specialized skill for implementing a robust, extensible Finite State Machine in Unity using the State and Strategy patterns. Based on the pattern by Adam Myhre (3D Platformer). Use when creating complex AI, player controllers, or any system requiring structured state management.
11unity-code-reviewer
Professional Unity C# Code Reviewer. Detects anti-patterns, performance leaks, and enforces project-specific architecture.
10unity-assembly-management
Manage project boundaries using Assembly Definitions (.asmdef) for faster compile times and modular architecture. Based on the patterns by Adam Myhre. Enforces responsibility-based organization and handles Runtime/Editor/Tests splits.
9unity-event-bus
Advanced code-driven event bus with reflection-based bootstrapping. Provides zero-setup global messaging.
9unity-ui-data-binding
Implementation of MVVM-style Data Binding for Unity UI Toolkit using the [CreateProperty] attribute and BindableProperty wrappers.
9