Skip to content

feat: add release automation skills#107

Open
muzahidul-opti wants to merge 1 commit intomasterfrom
muzahidul-opti/add-release-automation-skills
Open

feat: add release automation skills#107
muzahidul-opti wants to merge 1 commit intomasterfrom
muzahidul-opti/add-release-automation-skills

Conversation

@muzahidul-opti
Copy link
Copy Markdown
Contributor

Summary

Add two Claude Code skills to automate the release workflow:

/prepare-release Skill

Creates a prep branch, updates all version files, auto-generates CHANGELOG entries, and creates a PR ready for review.

Features:

  • ✅ Semantic versioning support (major/minor/patch or explicit version)
  • ✅ Updates 4 files: pubspec.yaml, package_info.dart, README.md, CHANGELOG.md
  • ✅ Auto-fetches PR titles from GitHub to generate CHANGELOG entries
  • ✅ Supports Jira tickets (e.g., FSSDK-12345) and PR references (e.g., #103)
  • ✅ Pre-flight checks (master branch, clean working tree, flutter analyze)
  • ✅ Auto-detects section type (Bug Fixes, New Features, Enhancements)
  • ✅ Creates branch with format: {username}/prep-{version}

Usage:

/prepare-release patch FSSDK-12345
/prepare-release 3.5.0 FSSDK-12345 FSSDK-12346
/prepare-release minor #103 #105

/release Skill

Publishes to pub.dev and creates a GitHub draft release after the prep PR is merged.

Features:

  • ✅ Dry-run validation before publishing
  • ✅ Auto-extracts CHANGELOG content for the release
  • ✅ Creates GitHub draft release with proper formatting
  • ✅ Error handling for publish failures
  • ✅ Supports ticket references in release title

Usage:

/release 3.5.0
/release 3.5.0 FSSDK-12345

Benefits

  • Consistency: Eliminates manual errors in version updates across 4 files
  • Speed: Reduces release prep time from ~15 minutes to ~2 minutes
  • Documentation: CHANGELOG auto-generated from actual PR titles
  • Safety: Pre-flight checks ensure clean state before starting

Test Plan

Tested both skills end-to-end:

  • /prepare-release patch #103 #105 created PR prep for release 3.4.3 #106 successfully
  • ✅ Version files synchronized correctly
  • ✅ CHANGELOG auto-generated from PR titles
  • ✅ Branch naming follows pattern
  • ✅ All pre-flight checks working

🤖 Generated with Claude Code

Add /prepare-release and /release skills to automate the release workflow:

- /prepare-release: Creates prep branch, updates version files (pubspec.yaml,
  package_info.dart, README.md, CHANGELOG.md), auto-generates CHANGELOG entries
  from PR titles, and creates PR for review
- /release: Publishes to pub.dev and creates GitHub draft release with
  auto-extracted CHANGELOG content

Both skills support Jira tickets and GitHub PR references, with proper error
handling and validation.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant