Run semantic-release with preflight checks. TRIGGERS - npm run release, version bump, changelog, release automation.
Executes semantic-release with preflight checks, syncs repository, and manages versioning workflow.
/plugin marketplace add terrylica/cc-skills/plugin install itp@cc-skills[--dry] [--skip-preflight]FIRST ACTION: Read the semantic-release skill to load the complete workflow knowledge:
Read: ${CLAUDE_PLUGIN_ROOT}/skills/semantic-release/SKILL.md
Read: ${CLAUDE_PLUGIN_ROOT}/skills/semantic-release/references/local-release-workflow.md
This command wraps the semantic-release skill with automatic preflight validation.
| Flag | Short | Description |
|---|---|---|
--dry | -d | Dry-run mode (preview changes, no modifications) |
--skip-preflight | -s | Skip preflight checks (use with caution) |
/itp:release # Full release with preflight
/itp:release --dry # Preview what would be released
/itp:release -d # Same as --dry
Before executing ANY release steps, you MUST read these files to load the semantic-release skill:
# Environment-agnostic paths
SKILL_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/cache/cc-skills/itp/*/skills/semantic-release}"
After reading the skill files, follow the Local Release Workflow (4 phases).
Release Workflow Pipeline
----------- +------+ +---------+ ------------
| PREFLIGHT | --> | SYNC | --> | RELEASE | --> | POSTFLIGHT |
----------- +------+ +---------+ ------------
From skill: Section 1.1-1.5
Git Cache Refresh (MANDATORY first step)
git update-index --refresh -q || true
Tooling Check — gh CLI, semantic-release, git repo, main branch, clean directory
Authentication Check — Verify correct GitHub account via gh api user --jq '.login'
Releasable Commits Validation — Must have feat:, fix:, or BREAKING CHANGE: since last tag
MAJOR Version Confirmation — If breaking changes detected, spawn 3 Task subagents + AskUserQuestion
git pull --rebase origin main
git push origin main
If --dry flag:
npm run release:dry
Production:
npm run release
git status --porcelaingh release list --limit 1git fetch origin main:refs/remotes/origin/main --no-tags| Scenario | Command | Result |
|---|---|---|
| Standard release | /itp:release | Load skill → 4-phase workflow |
| Preview changes | /itp:release --dry | Load skill → Dry-run only |
| Force release (dangerous) | /itp:release -s | Skip preflight → Release |
| Error | Resolution |
|---|---|
| Working directory not clean | git stash or git commit |
| Not on main branch | git checkout main |
| Wrong GitHub account | gh auth switch --user <correct-account> |
| No releasable commits | Create a feat: or fix: commit first |
| MAJOR version detected | Follow skill's multi-perspective analysis |
| Release failed | Check Troubleshooting |
/releasePrepare a new release by updating changelog, version, and documentation