Agent skill
ce-release-finalize
Execute the PyPI release checklist for calibrated-explanations: version bumps, changelog, build, validation, tagging, RTD publication, and PyPI upload.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ce-release-finalize
SKILL.md
CE Release Finalize
You are finalizing a release of calibrated-explanations for publication on PyPI. This skill follows the canonical release guide step by step.
Load references/pypi_release_guide.md for the full release procedure.
Use this skill when
- All release tasks for the target version are closed.
- The user asks to "release", "publish", or "ship" a version.
- Preparing the final version bump, changelog, and build artifacts.
Pre-flight checks
Before starting the release process:
- Confirm all tasks in
docs/improvement/vX.Y.Z_plan.mdare completed. - Confirm CI is green on
main:make ci-local-new. - Confirm the user has PyPI credentials configured.
Release workflow
Step 1: Version files update
Update version strings in all required files. The version format rules:
- PEP 440 version (no
vprefix):pyproject.toml,docs/conf.pyrelease,METADATA.json - Display version (with
vprefix):__init__.py,CITATION.cff,docs/citing.md - Short version:
docs/conf.pyversion field (e.g.,"0.11")
Files to update:
pyproject.toml->[project].version = "X.Y.Z"src/calibrated_explanations/__init__.py->__version__ = "vX.Y.Z"CITATION.cff->version: vX.Y.Zanddate-released: 'YYYY-MM-DD'docs/conf.py->release = "X.Y.Z"andversion = "X.Y"docs/citing.md-> BibTeXversion = {vX.Y.Z}and month/yearMETADATA.json->"version": "X.Y.Z"
Step 2: Changelog
Update CHANGELOG.md:
- Create new version section under
[Unreleased] - Move relevant bullets from
[Unreleased]into the new section - Update compare links
Step 3: Version consistency check
Verify all version strings are aligned across all files listed above.
Step 4: Build and validate
rm -rf dist/ build/ *.egg-info/
python -m build
python -m twine check dist/*
Step 5: Smoke test (recommended)
Test the wheel locally in a clean venv before publishing.
Step 6: Commit and tag
git add .
git commit -m 'calibrated-explanations vX.Y.Z'
git tag vX.Y.Z
git push
git push --tags
Step 7: RTD publication
- Confirm tag is on remote
- Trigger RTD build for the tag
- Activate the tag version and set as stable
- Spot-check rendered docs
Step 8: PyPI upload
python -m twine upload --repository pypi dist/*
Step 9: Post-release verification
- Check PyPI project page renders correctly
- Test installation in a clean venv
Step 10: Post-release dev bump (required finalization)
Immediately after publishing X.Y.Z, bump to next development version:
pyproject.toml->[project].version = "X.Y.(Z+1)-dev"src/calibrated_explanations/__init__.py->__version__ = "vX.Y.(Z+1)-dev"
Commit this as a separate post-release commit (recommended message:
start vX.Y.(Z+1)-dev) so main never remains on the released version.
Constraints
- Never upload to PyPI without user confirmation (immutable action).
- Never push tags without user confirmation.
- Always run
twine checkbefore upload. - Follow the canonical release guide in
references/pypi_release_guide.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?