This skill helps you release plainx packages by suggesting versions, generating changelogs, and tagging Git for PyPI distribution.
npx playbooks add skill dropseed/plain --skill plainx-release
Release a plainx package with version bumping, changelog generation, and git tagging.
/plainx-release [--major|--minor|--patch]
--major: auto-select major release--minor: auto-select minor release--patch: auto-select patch release| Script | Purpose |
| ------------------ | --------------------------------------------------- |
| get-package-info | Get package metadata and commits since last release |
git status --porcelain
If not clean, stop and ask user to commit or stash changes.
uv run ./.claude/skills/plainx-release/get-package-info
This outputs JSON with:
name: Package name from pyproject.tomlcurrent_version: Current versionchangelog_path: Path to CHANGELOG.mdlast_tag: Most recent git tag for this packagerepo_url: GitHub URL (extracted from pyproject.toml)commits: List of commits since last tag (excluding tests)If no commits since last release, inform the user and stop.
If current_version is 0.0.0, this is the first release:
uv version <version> to set it directly)--major, --minor, or --patch was passed, auto-select that typeFor first releases (from 0.0.0):
uv version <version>
Where <version> is the chosen version like 0.1.0 or 1.0.0.
For subsequent releases:
uv version --bump <type>
Where <type> is major, minor, or patch.
uv version --short
git diff <last_tag>..HEAD -- . ":(exclude)tests"
If no last_tag, use the initial commit or recent history.
<changelog_path> file.For first releases:
## [<new_version>](<repo_url>/releases/v<new_version>) (<today's date>)
Initial release.
- Brief summary of what the package provides
- Key features or capabilities
For subsequent releases:
## [<new_version>](<repo_url>/releases/v<new_version>) (<today's date>)
### What's changed
- Summarize user-facing changes based on the actual diff (not just commit messages)
- Include commit hash links: ([abc1234](<repo_url>/commit/abc1234))
- Skip test changes, internal refactors that don't affect public API
### Upgrade instructions
- Specific steps if any API changed
- If no changes required: "- No changes required."
Guide the user through these steps explicitly:
git add pyproject.toml <changelog_path> uv.lock
git diff --cached --stat
git commit -m "Release v<new_version>"
git tag -a v<new_version> -m "Release v<new_version>"
Check if .github/workflows/release.yml exists. If not, ask:
> "No release workflow found. Would you like to set up GitHub Actions to publish to PyPI when you push a tag?"
If yes, copy .claude/skills/plainx-release/release-workflow.yml to .github/workflows/release.yml, then amend the commit:
git add .github/workflows/release.yml
git commit --amend --no-edit
git tag -fa v<new_version> -m "Release v<new_version>"
Remind the user to configure PyPI trusted publishing after pushing:
git push && git push --tags
Ask user to confirm before each destructive step (commit, push).
After pushing, wait for the GitHub workflow to publish to PyPI. Once published, ask the user if they want to create a GitHub release:
gh release create v<new_version> --notes "<changelog entry summary>"
Or to use the full changelog entry from the file, extract and pass it manually.
Consider the current version when suggesting release types:
Most packages stay pre-1.0 for a long time. For these packages:
Once a package has reached 1.0, follow semver strictly:
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.