# Craft plugin release

> Craft plugin release is an open-source agent skill for developer tools. Guides cutting, verifying and fixing Craft CMS plugin releases across tags, Packagist. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/michtio/craftcms-claude-skills/tree/main/skills/craft-plugin-release
- **Repository:** https://github.com/michtio/craftcms-claude-skills
- **GitHub stars:** 91
- **License:** MIT
- **Skill name:** craft-plugin-release
- **Collection:** https://github.com/michtio/craftcms-claude-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a checklist and risk model for releasing Craft CMS plugins, covering the three systems that each describe a version: git tags, Packagist and GitHub release objects. It explains how a composer.json version key must match the tag, how to confirm what Packagist actually serves via its p2 metadata endpoint, and when moving or recreating a tag is safe versus when a new patch version is required.

The guidance also covers GitHub release pitfalls such as tag names being lost on certain API edits, blank release bodies from empty notes files, draft publishing taking its tag from the branch tip, and collisions with Craft Plugin Store automation. It includes a two-way origin comparison for promoting a development branch to a release branch, and it points to reference files for path repositories, shared-library release order and purging content from published history.

The skill runs a bundled shell script to report the Craft version in use, and it expects the agent to have shell access with git, gh and curl available for the verification steps.

## When your agent uses it

> Releasing Craft CMS plugins: tagging, Packagist propagation, GitHub releases, branch promotion, shared-library ordering, history rewrites. ALWAYS load when cutting, preparing, verifying, or debugging a plugin release: bumping a version, dating a changelog, creating or moving a git tag, or checking what Packagist serves.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-plugin-release)
- [Asks for: Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)](https://github.com/michtio/craftcms-claude-skills/blob/HEAD/skills/craft-plugin-release/SKILL.md)
- [No network calls found in its scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-plugin-release)
- [License: MIT](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-plugin-release)

## Features

- **Version key consistency:** Checks that composer.json version matches the tag blob so Packagist does not skip the release.
- **Packagist verification:** Confirms which versions the p2 metadata endpoint serves against the local tag list.
- **Tag risk assessment:** Explains when a tag can be safely recreated and when a new patch version is needed.
- **GitHub release hygiene:** Covers keeping tag names, draft flags and non-empty release notes intact.
- **Branch promotion checks:** Compares origin branches in both directions before promoting work to a release branch.
- **Shared library ordering:** Describes releasing dependencies first and migration handling for consumers.

## Good for

- Cut a new patch release of my Craft plugin and verify Packagist picks it up
- Find out why Packagist is not showing my latest plugin tag
- Fix a GitHub release that lost its tag or has a blank changelog body
- Promote the develop branch to main safely before a release
- Release a shared library before updating a plugin that depends on it
- Remove a leaked secret from a plugin's published git history

## Install

### Claude Code

This skill ships in the `craftcms-claude-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michtio/craftcms-claude-skills
/plugin install craftcms-claude-skills@craftcms-claude-skills
```

Or copy only this skill to `~/.claude/skills/craft-plugin-release`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/craft-plugin-release &&
cp -R "$tmp/skills/craft-plugin-release" ~/.claude/skills/craft-plugin-release &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/craft-plugin-release` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/craft-plugin-release` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/craft-plugin-release &&
cp -R "$tmp/skills/craft-plugin-release" ~/.agents/skills/craft-plugin-release &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/craft-plugin-release` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/craft-plugin-release` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/craft-plugin-release &&
cp -R "$tmp/skills/craft-plugin-release" ~/.cursor/skills/craft-plugin-release &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/craft-plugin-release` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michtio/craftcms-claude-skills.git --path skills/craft-plugin-release
```

Or copy the folder to `~/.gemini/skills/craft-plugin-release` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/craft-plugin-release`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/craft-plugin-release &&
cp -R "$tmp/skills/craft-plugin-release" ~/.copilot/skills/craft-plugin-release &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/craft-plugin-release` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git
```

Then copy `craftcms-claude-skills/skills/craft-plugin-release` into your agent's skills folder as `craft-plugin-release`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill check when I bump a plugin version?

It requires the composer.json version key to be bumped in the same commit as the changelog date, and to match the tag's own blob, because Packagist skips tags whose manifest version does not match.

### Which Packagist endpoint should I use to verify a release?

The p2 metadata endpoint at repo.packagist.org/p2/vendor/name.json, which is the one Composer resolves from, rather than the packagist.org packages JSON.

### Is Craft plugin release safe to delete and recreate a tag?

It is safe if Packagist has never served that version. If Packagist has served it, moving the tag breaks that version, so a new patch version should be shipped instead.

### Does the skill write changelog entries or CI workflow files?

No. Changelog writing, CI workflow YAML and plugin store listings are explicitly out of scope and handled by other skills.

### How do I install Craft plugin release in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/craft-plugin-release to use it in all your projects, or to .claude/skills/craft-plugin-release in one project. Or install the craftcms-claude-skills plugin, which includes it: /plugin marketplace add michtio/craftcms-claude-skills, then /plugin install craftcms-claude-skills@craftcms-claude-skills.

### Does Craft plugin release run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Craft plugin release?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Craft plugin release?

The closest alternatives to Craft plugin release are Obsidian plugin release, Craftcms, Release, Release AI plugins and Release installer.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Obsidian plugin release](https://ai-powered.com/skills/obsidian-plugin-release): Obsidian plugin release is an open-source agent skill for developer tools.
- [Craftcms](https://ai-powered.com/skills/craftcms): Craftcms is an open-source agent skill for developer tools.
- [Release](https://ai-powered.com/skills/release): Release is an open-source agent skill for developer tools.
- [Release AI plugins](https://ai-powered.com/skills/release-ai-plugins): Release AI plugins is an open-source agent skill for developer tools.
- [Release installer](https://ai-powered.com/skills/release-installer): Release installer is an open-source agent skill for developer tools.
- [Release](https://ai-powered.com/skills/release-marko-php): Release is an open-source agent skill for developer tools.
- [Harness release](https://ai-powered.com/skills/harness-release-chachamaru127): Harness release is an open-source agent skill for developer tools.
- [Craft php guidelines](https://ai-powered.com/skills/craft-php-guidelines): Craft php guidelines is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/craft-plugin-release
