Index of every page on this site: llms.txt
All skills
stacklok avatar

/toolhive-release

@740e467
by stacklokstacklok/toolhive2.4k stars
336
Run it yourself

Creates ToolHive release PRs by analyzing commits since the last release, categorizing changes, recommending semantic version bump type (major/minor/patch), and triggering the release workflow. Use when cutting a release, preparing a new version, checking what changed since last release, or when the user mentions "release", "version bump", or "cut a release".

Use this Skill: https://skilld.dev/gh/stacklok/toolhive/toolhive-release

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈95 tokens for metadata: the name and description. ≈1.2k when used: this file. ≈1.8k more on demand in 1 file.

Description uses 4.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈380 characters, or 4.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

ToolHive Release

Automates the ToolHive release process by analyzing changes and triggering the release PR workflow.

When to Use

  • When cutting a new ToolHive release
  • When checking what's changed since the last release
  • When deciding between patch, minor, or major version bump
  • When the user says "release", "cut a release", "new version", or "version bump"

Instructions

Step 1: Find the Last Release

git tag --sort=-v:refname | head -1

This returns the most recent version tag (e.g., v0.8.3).

Step 2: List Commits Since Last Release

git log <last-tag>..HEAD --oneline --no-merges

Count the commits:

git log <last-tag>..HEAD --oneline --no-merges | wc -l

Step 3: Categorize Changes

Analyze each commit and categorize into:

Category Description Version Impact
New Features New functionality, new commands, new APIs Minor bump
Bug Fixes Fixes to existing functionality Patch bump
Breaking Changes API changes, removed features, incompatible changes Major bump
Improvements Enhancements to existing features, refactoring Patch or Minor
Tests/CI Test additions, CI/CD changes No impact
Documentation Doc updates, README changes No impact
Dependencies Dependency updates (Renovate PRs) Patch bump

Step 4: Recommend Version Bump

Based on the categorization:

  • Major (X.0.0): Any breaking changes present
  • Minor (0.X.0): New features without breaking changes
  • Patch (0.0.X): Only bug fixes, dependency updates, improvements

Present the recommendation with justification to the user.

Step 5: Trigger the Release Workflow

IMPORTANT: Present the analysis and recommendation to the user and WAIT for explicit confirmation before proceeding.

After user confirms the bump type, use the GitHub MCP tool to trigger the workflow:

mcp__github__run_workflow(
  owner: "stacklok",
  repo: "toolhive",
  workflow_id: "create-release-pr.yml",
  ref: "main",
  inputs: { "bump_type": "<patch|minor|major>" }
)

Step 6: Monitor and Report

  1. Get the workflow run status:
mcp__github__list_workflow_runs(
  owner: "stacklok",
  repo: "toolhive",
  workflow_id: "create-release-pr.yml",
  per_page: 1
)
  1. Poll until completion (check the status field until it shows "completed"):
mcp__github__get_workflow_run(
  owner: "stacklok",
  repo: "toolhive",
  run_id: <run_id from step 1>
)
  1. Find the created PR:
mcp__github__list_pull_requests(
  owner: "stacklok",
  repo: "toolhive",
  state: "open",
  sort: "created",
  direction: "desc",
  per_page: 5
)

Look for the PR with title matching "Release v<new-version>".

Report the PR URL to the user. Tell them that once the PR is merged, the create-release-tag.yml run waits for a reviewer on the release environment, other than the person who merged, to approve it from the run page. No tag or GitHub Release is created until then.

Release Workflow Chain

For reference, here's what happens after the PR is merged:

  1. create-release-pr.yml (manual) → Creates PR with version bumps
  2. create-release-tag.yml (auto on VERSION change) → Waits for approval on the release environment, then creates git tag + GitHub Release
  3. releaser.yml (auto on release publish) → Builds binaries, images, Helm charts

See WORKFLOW-REFERENCE.md for detailed workflow documentation.

Example Output

## Commits since v0.8.3 (24 commits)

### New Features
- OAuth Authorization Server (#3531, #3513, #3520, #3488)
- ExcludeAll for VirtualMCPServer (#3499)
- Generic PrefixHandlers (#3524)

### Bug Fixes
- OAuth token refresh context cancellation (#3539)
- Custom YAML unmarshalers for registry metadata (#3545)

### Improvements
- Logging updates (#3546, #3547)

### Tests/CI/Docs
- E2E tests for secrets management (#3485)
- Dependency updates

**Recommendation: Minor release (0.9.0)**
New features (OAuth auth server, ExcludeAll) warrant a minor version bump.

Error Handling

  • No tags found: Repository may not have any releases yet. Check git tag output.
  • Workflow trigger fails: Ensure GitHub MCP server is configured and has proper permissions. The token needs actions:write scope.
  • PR not found: The workflow may still be running. Poll mcp__github__get_workflow_run until status is "completed", then search for the PR.
  • Workflow run failed: Use mcp__github__get_workflow_run to check the conclusion field. If "failure", use mcp__github__get_job_logs to investigate.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning6mo3 checks · Risk SAFE
  • Gen Agent Trust Hub6mo

    This skill automates software release workflows for the ToolHive repository by analyzing commit history and triggering GitHub Actions. It includes a mandatory human-confirmation step before performing any deployment actions.

  • Socket6mo

    No alerts

  • Snyk6mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 740e467. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 weeks ago

README badge

README badge for stacklok/toolhive/toolhive-release