skills/unity-investigate/SKILL.md
Investigate Unity codebases — from quick Q&A to comprehensive system analysis reports. Auto-triages request complexity: simple questions (how does X work, what calls Y, trace this flow) get direct inline answers; complex requests (system analysis, pre-refactor audit, architecture investigation, team documentation) produce a structured markdown report with Mermaid diagrams, cited evidence, and risk tables. Use whenever the user asks "how does X work," "what calls this method," "trace the flow," "explain this system," "investigate this architecture," "do a deep investigation," "I need an investigation report," "full analysis of this system," or any question about codebase structure and relationships. Also use when the user wants to understand an unfamiliar subsystem before modifying it.
npx skillsauth add cuozg/oh-my-skills unity-investigateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Investigate Unity codebases. Auto-triage into Quick (inline answer) or Deep (report with diagrams).
Classify the request before starting work:
| Signal | Mode | |--------|------| | Single symbol, method, or class question | Quick | | "How does X work?" / "What calls Y?" | Quick | | Tracing one call chain or data flow | Quick | | User says "quick" / "briefly" / "explain" | Quick | | User says "investigate" / "analyze" / "report" / "audit" | Deep | | System spans 3+ classes or multiple assemblies | Deep | | Pre-refactor audit or onboarding documentation needed | Deep | | User wants a saved document or team-facing output | Deep |
When ambiguous, start Quick — escalate to Deep if the answer requires 3+ files or cross-system tracing.
Answer the question in the fewest tool calls possible.
lsp_goto_definition on the target symbol to locate its declaration.lsp_find_references or grep to follow call chains one level deep.Produce a comprehensive investigation report. Follow this workflow:
Define boundaries and map the system systematically:
glob(pattern="**/{SystemName}*.cs")
grep(pattern="ClassName|InterfaceName", include="*.cs")
lsp_goto_definition -> follow type hierarchy
Follow execution paths and side effects:
lsp_find_references from entry points 2-3 levels deep.grep(pattern="\\.On[A-Z]|event\s+|Action<|UnityEvent", include="*.cs")
grep(pattern="AddListener|RemoveListener", include="*.cs")
using directives (compile-time) and GetComponent (runtime).Check for coverage and data implications:
glob(pattern="**/*Tests.cs") to match source to test files.Create Mermaid diagrams and write the report:
flowchart TD) and Structure (classDiagram).read_skill_file("unity-standards", "references/plan/investigation-template.md").Documents/Investigations/{SystemName}_{YYYY-MM-DD}.md.file:line citation.Load unity-standards for convention context:
code-standards/lifecycle-async-errors.md — Order of execution rules.code-standards/architecture-systems.md — Architecture patterns.plan/investigation-template.md — The mandatory report template.other/unity-mcp-routing-matrix.md — MCP tool routing for scene/asset inspection.tools
Generate Unity raster image assets through Unity MCP: game sprites, item art, backgrounds, UI icons, portraits, concept images, transparent cutouts, image edits, upscales, background removal, and Unity scene or Game View screenshots. Use when a Unity project needs image files imported under Assets or screenshots captured from the editor. Do not use for meshes, audio, animation, materials, gameplay code, UI Toolkit layout, or generic non-Unity image generation.
tools
Create Unity technical solution documents from user requirements, feature ideas, bug goals, specs, or codebase problems. Use when the user asks for a technical approach, architecture, implementation strategy, solution options, feasibility analysis, system design, or "how should we build/fix this" for Unity runtime, Editor, tools, assets, data, UI, WebGL, SDKs, or production pipelines.
tools
Orchestrate Unity Editor via MCP (Model Context Protocol) tools and resources. Use when working with Unity projects through MCP for Unity - creating/modifying GameObjects, editing scripts, managing scenes, running tests, or any Unity Editor automation. Provides best practices, tool schemas, and workflow patterns for effective Unity-MCP integration.
development
Convert a spec document into an implementation TODO list in the same spec folder. U se when the user says goal-todo, todo from spec, generate tasks from spec, turn this spec into todos, create implementation checklist, extract tasks, or asks to read a Docs/Specs design doc and produce what must be implemented. Includes UI/UX review and codebase investigation before writing the checklist. Do not use for implementing the tasks, creating new goal files, writing test cases, or verifying completed work.