Contributing to Unity Cursor Toolkit
May 9, 2026 · View on GitHub
Thank you for your interest in contributing. Please follow these guidelines.
Dev Setup
git clone <repo-url>
cd unity-cursor-toolkit
cd unity-cursor-toolkit
npm ci
npm run validate
The first cd unity-cursor-toolkit enters the repository root. The second enters the VS Code/Cursor extension package.
Branch Naming
feature/<name>— New featuresfix/<name>— Bug fixeschore/<name>— Maintenance, docs, tooling
PR Process
- Fork the repository
- Create a branch from
Version-*ormain - Implement your changes
- Test locally (see Testing below)
- Open a PR against the appropriate base branch
Testing
npm run validatemust pass before opening a PRnpm run validateruns compile, strict unused-code checks, runtime tests, and npm auditsnpx vsce package --no-dependenciesshould pass for extension packaging changes- Test against a Unity project with the extension installed
- Verify hot reload, console panel, and connection behavior as relevant
Unity Scripts
Changes to unity-assets/ C# files must:
- Compile in Unity 2019+
- Wrap editor-only code in
#if UNITY_EDITOR/#endif
Code Style
- TypeScript strict mode
- Tabs for indentation
- Prefer typed boundaries for webview, MCP, and Unity payloads
- Validate filesystem paths before reading or writing user/workspace-provided paths
- Keep extension package artifacts lean; do not ship tests, backups, lockfiles, source maps, or generated bundles in the VSIX