TE

template-version-release

Automates PowerShell template versioning and releases. Handles SemVer, changelogs, and GitHub release tagging.

Install

mkdir -p .claude/skills/template-version-release && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18286" && unzip -o skill.zip -d .claude/skills/template-version-release && rm skill.zip

Installs to .claude/skills/template-version-release

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when asked to prepare, validate, finalize, tag, publish, or clean up a powershell-dev-template release version, including SemVer bump decisions, VERSION, CHANGELOG.md, README template badge, Test-TemplateVersion.ps1, vX.Y.Z tags, GitHub Releases, post-merge release tagging, or merged branch cleanup.
304 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Update `VERSION` to the chosen `X.Y.Z` value
  • Update the README template badge
  • Add a `CHANGELOG.md` heading
  • Run `Test-TemplateVersion.ps1` for version check
  • Run `Invoke-RepoChecks.ps1` for full repo check
  • Create a lightweight git tag `vX.Y.Z`

How it works

The skill updates version files, runs validation scripts, creates git tags, and publishes GitHub Releases based on SemVer rules for the `powershell-dev-template` repository.

Inputs & outputs

You give it
A request to prepare, validate, or finalize a `powershell-dev-template` release
You get back
Updated version metadata, a git tag, and a GitHub Release for the template

When to use template-version-release

  • Preparing a new release
  • Updating version numbers
  • Generating changelogs

About this skill

Template Version Release

Overview

Use this skill to manage template release versioning for powershell-dev-template. The version describes the reusable template baseline, not downstream repositories created from it.

Use scripts/Test-TemplateVersion.ps1 as the deterministic validator for version metadata.

Reference Docs

Use these repository docs for release policy context:

  • docs/template-evolution.md for SemVer policy, release metadata expectations, post-merge tag guidance, and GitHub Release guidance
  • README.md for the public Template Versioning summary and badge expectations

Required Context

Before acting, identify:

  • the current version from VERSION
  • the intended next version and whether it is major, minor, or patch
  • the release date for the CHANGELOG.md heading
  • whether the user wants pre-merge release prep, post-merge release finalization, or GitHub Release publishing

If the next version or bump level is unclear, inspect the change impact and ask before editing release metadata.

Pre-Merge Release Prep

When preparing a release PR:

  1. Update VERSION to the chosen X.Y.Z value.

  2. Update the README template badge to template-X.Y.Z.

  3. Add a CHANGELOG.md heading in this format:

    ## X.Y.Z - YYYY-MM-DD
    
  4. Keep historical changelog version references unchanged.

  5. Run the version check:

    powershell.exe -NoProfile -File ./scripts/Test-TemplateVersion.ps1
    
  6. Run the full repo check before opening or updating the PR:

    powershell.exe -NoProfile -File ./scripts/Invoke-RepoChecks.ps1 -IncludeTemplates
    

Use a conventional commit such as feat(skills): add template version release skill, docs(version): prepare 0.9.0 release, or another message that matches the actual change.

Post-Merge Release Finalization

After the release PR is merged:

  1. Fetch and prune remotes.

  2. Switch to main.

  3. Fast-forward main from origin/main.

  4. Confirm VERSION, README badge, and CHANGELOG.md match the release version.

  5. Create a lightweight tag:

    git tag vX.Y.Z
    
  6. Push the tag:

    git push origin vX.Y.Z
    
  7. Optionally validate tag placement:

    powershell.exe -NoProfile -File ./scripts/Test-TemplateVersion.ps1 -CheckTag
    
  8. Publish a GitHub Release from the tag:

    • tag: vX.Y.Z
    • title: vX.Y.Z
    • body: the matching CHANGELOG.md section
    • draft: no
    • prerelease: no, unless explicitly requested
  9. Delete the merged local branch only after the remote branch is deleted or the merge is confirmed.

Success Criteria

The workflow is complete when:

  • VERSION, the README template badge, and CHANGELOG.md agree on the release version
  • scripts/Test-TemplateVersion.ps1 passes before the release PR is opened or updated
  • after merge, main is fast-forwarded and the lightweight vX.Y.Z tag is pushed
  • scripts/Test-TemplateVersion.ps1 -CheckTag passes after tagging
  • a GitHub Release exists for vX.Y.Z with notes derived from the matching CHANGELOG.md section`n- GitHub shows the pushed tag as verified and associated with the intended merged release commit
  • the merged local branch has been cleaned up after the remote branch deletion or merge is confirmed

Stop Conditions

Stop and report instead of improvising when:

  • VERSION, README badge, and CHANGELOG.md disagree
  • the requested version is not a SemVer X.Y.Z value
  • the changelog entry for the release is missing
  • vX.Y.Z already exists on a different commit
  • a GitHub Release already exists for vX.Y.Z with conflicting notes
  • main is not fast-forwardable after merge
  • the working tree is dirty before tagging or branch cleanup

Agent Role

Treat the validator, Git state, and published GitHub Release state as the source of truth. The agent role is to coordinate release metadata updates, inspect diffs, run validation, prepare PR text, tag the merged release, publish the GitHub Release, and clean up local branches.

When not to use it

  • When the requested version is not a SemVer `X.Y.Z` value
  • When `VERSION`, README badge, and `CHANGELOG.md` disagree
  • When `vX.Y.Z` already exists on a different commit

Limitations

  • Specific to `powershell-dev-template` repository
  • Requires SemVer `X.Y.Z` values for versions
  • Stops if `VERSION`, README badge, and `CHANGELOG.md` disagree

How it compares

This workflow automates the versioning and release process for a specific template repository, ensuring consistency and adherence to SemVer, unlike manual version updates and release creation.

Compared to similar skills

template-version-release side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
template-version-release (this skill)017dNo flagsIntermediate
machine-learning-ops-ml-pipeline43moNo flagsAdvanced
uv34moReviewBeginner
vastai-core-workflow-b110dReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry