versioning-policy
Skill by CommunityToolkit
Sets semver versioning rules for the Squad SDK and CLI npm packages. Written for agents and maintainers who handle releases, it aims to stop prerelease versions from leaking into dev or main.
Install versioning-policy
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CommunityToolkit/Aspire /tmp/Aspire && mkdir -p ~/.claude/skills && cp -r /tmp/Aspire/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.squad/templates/skills/versioning-policy ~/.claude/skills/versioning-policyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CommunityToolkit/Aspire /tmp/Aspire && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Aspire/examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.squad/templates/skills/versioning-policy ~/.gemini/antigravity-cli/skills/versioning-policyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill sets the versioning rules for Squad, a monorepo with two npm packages, @bradygaster/squad-sdk and @bradygaster/squad-cli. It requires strict MAJOR.MINOR.PATCH versions, keeps the SDK, CLI and root package.json at the same version, and bars prerelease suffixes such as -build.N from dev and main. It explains why a bare >=0.9.0 workspace range does not match prerelease versions, which led to the PR #640 incident.
Only Surgeon, the release manager, may change version fields. Other agents may only revert a prerelease leak. The skill describes the version bump lifecycle from development through release and notes that the prerelease-version-guard CI gate blocks pull requests that contain prerelease versions. It is intended for agents and contributors working on Squad releases.
Written from the project's SKILL.md and checked against it.
What it can do
- Strict semver formatRequires all packages to use MAJOR.MINOR.PATCH with no prerelease suffix on dev or main.
- Prerelease banTreats -build.N versions as local-only and rejects any PR that commits them.
- SDK and CLI version syncRequires the SDK, CLI and root package.json to share the same version.
- Workspace semver footgunExplains why a >=0.9.0 workspace range skips prerelease versions and falls back to the registry.
- Version ownershipAssigns version bumps to Surgeon, with an escape hatch for reverting prerelease leaks.
- Version bump lifecycleDescribes versions across development, pre-release testing, release and post-release stages.
- prerelease-version-guard gateDescribes a CI gate that blocks PRs to dev or main containing prerelease versions in package.json.
What you need
- npm workspaces
Try asking
- Check this PR for any -build.N versions in package.json files
- Confirm the SDK, CLI and root package.json versions match
- Explain why a >=0.9.0 workspace range skips 0.9.1-build.4
Good to know
- Written for the Squad monorepo and its two npm packages.
- The skip-version-check label bypasses the CI gate and needs Surgeon's approval.
- The source marks its own confidence as medium.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: examples/squad/CommunityToolkit.Aspire.Hosting.Squad.AppHost/dev-squad/.squad/templates/skills/versioning-policy/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to versioning-policy
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
versioning-policy: common questions
Why does a >=0.9.0 range not match 0.9.1-build.4?
Per the semver specification, a bare >=0.9.0 range skips prerelease versions. npm then silently installs a stale published SDK from the registry instead of the local workspace copy.
Who is allowed to change package versions?
Surgeon, the Release Manager, owns all version bumps. Other agents may change a version only to revert a prerelease leak to the clean release version.
Can prerelease versions be committed to dev or main?
No. The source says -build.N versions are created locally by bump-build.mjs, are never committed to dev or main, and should be rejected in PR diffs.
How do I install versioning-policy?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is versioning-policy free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is versioning-policy safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to versioning-policy?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
