# Release

> Detect changes in skills/agents, ask about version bumps, update frontmatter versions, and deploy individual repos to GitHub.

- Skill: `guillempuche/release` (Agent Skill)
- Install (CLI): `npx skillmds@latest add guillempuche/release`
- Raw SKILL.md: https://api.skillmd.com/api/skills/guillempuche/release/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: guillempuche (https://skillmd.com/u/guillempuche)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/guillempuche/release

---


# Release Workflow

Detect changes, bump versions, and deploy individual plugin repos.

## Step 1: Identify changed repos

Map user arguments to repo names. The user may pass source paths (`agents/readability-improver.md`, `skills/tamagui`) or repo names (`ai-agent-readability-improver`). Convert source paths to repo names:

- `agents/<name>.md` → `ai-agent-<name>`
- `skills/<name>` → `ai-skill-<name>`

Generate the targeted dist-repos:

```bash
./scripts/generate-individual-repos.sh <repo-names...>
```

Then compare each against cache:

```bash
for repo_name in <repo-names...>; do
  cache_dir=".repo-cache/$repo_name"
  repo_dir="dist-repos/$repo_name"
  if [ -d "$cache_dir" ]; then
    changes=$(diff -rq --exclude='.git' "$cache_dir" "$repo_dir" 2>/dev/null)
    if [ -n "$changes" ]; then
      echo "CHANGED: $repo_name"
      echo "$changes"
    fi
  else
    echo "NEW: $repo_name"
  fi
done
```

If no repos have changes, tell the user "Nothing to release" and stop.

## Step 2: Show change summary

For each changed repo, show a brief summary of what changed (files added/modified/removed).

## Step 3: Ask about version bumps

For each changed repo, use AskUserQuestion to ask the user what kind of version bump to apply:

- **patch** (1.0.0 -> 1.0.1): Bug fixes, minor content updates
- **minor** (1.0.0 -> 1.1.0): New content, features, or significant updates
- **major** (1.0.0 -> 2.0.0): Breaking changes or complete rewrites

## Step 4: Update source frontmatter

For each repo that needs a bump, update the version in the source file.
The two component types keep it in different places:

- Skills (`skills/<name>/SKILL.md`): under `metadata:` — `  version: 1.0.0`, always three-part semver so YAML keeps it a string.
  The Agent Skills spec allows no top-level `version` key, and adding one breaks claude.ai upload and `package_skill.py` packaging.
- Agents (`agents/<name>.md`): top-level `version: 1.0.0`, since agent frontmatter follows the Claude Code subagent reference and never passes through that validator.

Use the Edit tool to change the `version:` line in the YAML frontmatter.

Compute the new version by parsing the current `X.Y.Z` and incrementing the appropriate part:

- patch: increment Z
- minor: increment Y, reset Z to 0
- major: increment X, reset Y and Z to 0

## Step 5: Bump main plugin.json

Ask the user if they want to bump the main `.claude-plugin/plugin.json` version too (patch/minor/major/skip). Update the `"version"` field if they choose to bump.

## Step 6: Regenerate dist-repos

Run the generate script again with only the changed repos so dist-repos picks up the new versions:

```bash
./scripts/generate-individual-repos.sh <changed-repo-names...>
```

## Step 7: Commit version bumps

Stage and commit all version changes in the main repo:

```bash
git add skills/ agents/ .claude-plugin/plugin.json
git commit -m "Bump versions for release

Co-Authored-By: Claude <noreply@anthropic.com>"
```

## Step 8: Deploy

Run the deploy script with only the changed repos:

```bash
./scripts/deploy-individual-repos.sh <changed-repo-names...>
```

## Step 9: Push main repo

```bash
git push origin main
```

Show the user a summary of what was released with the new version numbers.

