Contributing¶
How to Contribute¶
- Fork the repository
- Create a feature branch (
git checkout -b feat/my-feature) - Make your changes following the conventions below
- Commit using conventional commits
- Open a pull request
Commit Conventions¶
Use conventional commits:
- feat: - New features (minor version bump)
- fix: - Bug fixes (patch version bump)
- docs: - Documentation changes (patch version bump)
- chore: - Maintenance tasks (patch version bump)
- refactor: - Code restructuring (patch version bump)
- feat!: or BREAKING CHANGE - Breaking changes (major version bump)
Adding a Skill¶
- Create
skills/<skill-name>/SKILL.mdwith YAML frontmatter (title, description, globs) - Add the path to
plugin.jsonunder "skills" - Update the skills count in README.md
- Write thorough, accurate content targeting Unity 6.x
Adding a Rule¶
- Create
rules/<rule-name>.mdcwith frontmatter (title, description, globs, alwaysApply) - Add the path to
plugin.jsonunder "rules" - Update the rules count in README.md
Adding a Snippet¶
- Add the file to
snippets/<language>/ - Include a header comment explaining what the snippet does and when to use it
- Update the snippets count in README.md
Adding a Template¶
- Create
templates/<template-name>/with scripts and a README.md - Follow existing template patterns for consistency
- Update the templates count in README.md
Content Rules¶
- No em dashes or en dashes - use hyphens or rewrite
- No hardcoded credentials, tokens, API keys, or passwords
- Target Unity 6.3 LTS as the baseline
- Use modern APIs: Awaitable, FindFirstObjectByType, HLSLPROGRAM, UI Toolkit
- Python code in mcp-server/ must pass py_compile
- All JSON files must be valid
Code Style¶
- C# snippets: follow the naming-conventions.mdc rules
- Shaders: HLSLPROGRAM for URP/HDRP, include SRP Batcher compatibility
- Python: standard formatting, type hints where helpful
Testing Changes¶
Run the validate workflow locally to check: - JSON validity - Plugin manifest completeness - File count consistency - Em dash detection - Credential scanning