This is a single Cursor IDE plugin following the standard plugin specification. All components live at the repository root.
.cursor-plugin/plugin.json <- Plugin manifest (name, version, skills, rules)
mcp.json <- MCP server registration (uses ${CURSOR_PLUGIN_ROOT})
skills/ <- AI context files (SKILL.md with YAML frontmatter)
rules/ <- Convention enforcement (.mdc with frontmatter)
snippets/ <- Production-ready code patterns
templates/ <- Starter project scaffolds
mcp-server/ <- Python MCP server with tools and data
docs/ <- Documentation
Skills provide domain knowledge to the AI. Each SKILL.md has:
- YAML frontmatter: title, description, globs (file patterns that activate it)
- Markdown body: comprehensive reference material
Skills do not enforce rules - they inform the AI about best practices, APIs, and patterns so it can generate better code.
Rules enforce coding standards. Each .mdc file has:
- Frontmatter: title, description, globs, alwaysApply
- Body: specific do/don't rules
All rules use alwaysApply: false and are attached when a file in context matches their globs. Cursor ignores globs on alwaysApply: true rules and applies them everywhere, so CI rejects that combination.
Ready-to-use code patterns organized by language:
csharp/- Unity C# patternsshaders/- HLSL and ShaderLab templatesvisual-scripting/- Graph pattern documentation
Complete starter project scaffolds. Each template is a self-contained directory with scripts and a README explaining setup.
A Python FastMCP server implementing the Model Context Protocol. Provides 5 tools:
scaffold_script- Generate scripts from templateslookup_api- Search Unity API reference datashader_helper- Get shader effect patternsplatform_info- Get platform-specific informationanalyze_project- Read a Unity project's version, render pipeline, packages, and settings from disk
Data files in mcp-server/data/ provide the reference databases:
unity_api_common.json- Common Unity API entriesshader_properties.json- Shader effect patternsplatform_defines.json- Platform scripting defineslifecycle_order.json- MonoBehaviour execution orderdeprecated_patterns.json- Legacy-to-modern API mapping
The version in .cursor-plugin/plugin.json is the source of truth. The release workflow auto-bumps it based on conventional commit prefixes.
- URP-first: All rendering content defaults to URP as the standard pipeline
- Modern patterns: Awaitable over coroutines, UI Toolkit over IMGUI, HLSLPROGRAM over CGPROGRAM
- Deprecated awareness: All tools and skills warn about deprecated APIs and suggest modern replacements
- Platform-aware: Content adapts to the target platform's capabilities and limitations
- Zero credentials: No API keys, tokens, or secrets anywhere in the codebase