/claude-workflow-skills:promotefrom claude-workflow-skills
Runs the full release workflow: commits changes, pushes, creates/merges PR, determines next semver from conventional commits, tags and creates GitHub release, cleans up branches, and returns to clean main.
Ships in claude-workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs the full release workflow from current working state to a tagged GitHub release on main.
Current branch: !git branch --show-current 2>/dev/null || echo "unknown"
Git status: !git status --short 2>/dev/null || echo "not a git repo"
Last tag: !git describe --tags --abbrev=0 2>/dev/null || echo "none"
Recent commits since last tag:
!`git log $(git describe --tags --abbrev=0 2>/dev/null || echo "")..HEAD --oneline -10 2>/dev/null || git log --oneline -10`
Next version (calculated from commits above):
!`(last=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0"); IFS='.' read -r ma mi pa <<< "${last#v}"; log=$(git log "${last}..HEAD" --format="%s" 2>/dev/null); if echo "$log" | grep -qE "^[a-z]+(\([^)]+\))?!:"; then echo "v$((ma+1)).0.0"; elif echo "$log" | grep -qE "^feat"; then echo "v${ma}.$((mi+1)).0"; else echo "v${ma}.${mi}.$((pa+1))"; fi)`
gh auth status 2>&1 || { echo "ERROR: gh is not authenticated. Run: gh auth login"; exit 1; }
Check for untracked .env files that could be accidentally staged:
git status --short | grep -E '^\?\? .*\.env' && echo "WARNING: untracked .env files detected — review before staging"
cat .gitignore 2>/dev/null | grep -q '\.env' || echo "WARNING: .gitignore does not exclude .env files"
If any .env files would be staged:
if [ -t 0 ]; then
# Interactive — ask for confirmation before continuing
read -p "WARNING: .env files detected. Continue? (y/N) " confirm
[[ "$confirm" =~ ^[Yy]$ ]] || { echo "Aborted."; exit 1; }
else
# Non-interactive — hard stop; too risky to proceed without human review
echo "ERROR: untracked .env files detected in non-interactive mode. Aborting."
exit 1
fi
If the git status above shows uncommitted or untracked changes:
git diff and git diff --cachedgit add -u, then review and add any
intentional new files individually. Avoid git add -A unless the user explicitly confirms.feat:, fix:, docs:, chore:, etc.) and a concise summaryIf there is nothing uncommitted, skip to Step 2.
Push the current branch to remote:
git push -u origin HEAD
Skip this step if already on main (or the repo's default branch).
If on a feature branch:
Scan commits since the last tag for issue references:
git log $(git describe --tags --abbrev=0 2>/dev/null || echo "")..HEAD --format="%B"
Look for Closes #N, Fixes #N, Resolves #N (case-insensitive). Collect all issue numbers
found. If none are found:
if [ -t 0 ]; then
# Interactive — ask the user
read -p "Any GitHub issues this resolves? (e.g. 12 15 — or enter to skip) " issues
else
# Non-interactive — skip silently
issues=""
fi
Create a PR targeting main, including closing keywords in the body so GitHub closes the issues automatically on merge:
gh pr create --title "<type>: <summary>" --body "$(cat <<'EOF'
## Summary
<bullet points from commits>
Closes #N, Closes #N
🤖 Generated with [claude-workflow-skills:promote](https://github.com/ali5ter/claude-workflow-skills) on behalf of [Alister](https://github.com/ali5ter)
EOF
)"
Omit the Closes lines if no issues were identified.
Enable auto-merge (squash preferred):
gh pr merge --auto --squash
Poll until merged:
gh pr view --json state --jq '.state'
Switch to main and pull:
git checkout main && git pull
The next version is pre-calculated in the context block above using these semver rules:
!: (e.g. feat!:, fix!:) → major bumpfeat → minor bumpConfirm the calculated version is correct given the commit list. If no previous tag exists, use
v1.0.0. Override only if the calculated version is clearly wrong (e.g. the injection returned
an error or empty output).
If .claude-plugin/plugin.json exists, update its version field to <next-version> (no v
prefix — plugin manifests use bare semver like 1.2.3):
node -e "
const fs = require('fs');
const f = '.claude-plugin/plugin.json';
const d = JSON.parse(fs.readFileSync(f, 'utf8'));
d.version = '<next-version>';
fs.writeFileSync(f, JSON.stringify(d, null, 2) + '\n');
"
Then commit and push:
git add .claude-plugin/plugin.json
git commit -m "chore: sync plugin.json version to v<next-version>"
git push
Skip this step entirely if .claude-plugin/plugin.json does not exist.
git tag -a v<next-version> -m "Release v<next-version>"
git push origin v<next-version>
gh release create v<next-version> \
--generate-notes \
--title "v<next-version>"
Skip this step if a PR was created in Step 3 — GitHub will close the issues automatically when
the PR merges via the Closes #N keywords in the PR body.
If the promotion was directly on main (no PR), close any identified issues now:
gh issue close <N> --comment "Resolved in $(gh release view v<next-version> --json url --jq '.url')"
If a feature branch was merged in Step 3, delete it locally and remotely:
git branch -d <feature-branch>
git push origin --delete <feature-branch>
git status
git log --oneline -5
Report the GitHub release URL from gh release view v<next-version> --json url --jq '.url'.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/audit-pluginPerforms a deep review of the Claude Code plugin, skill, or sub-agent defined in the current project against official best practices. Documents findings as GitHub issues and writes a prioritised fix plan to the project CLAUDE.md. Use when the user says audit this plugin, review this skill, check this agent, or audit addon./audit-standardsAudits the current project against the development standards defined in ~/.claude/CLAUDE.md. Documents non-compliant findings as GitHub issues and writes a prioritised fix plan to the project CLAUDE.md. Use when the user says audit against settings, audit standards, check standards compliance, or audit this project./improveAnalyses the current project across code quality, feature gaps, documentation, security, competitive landscape, and monetisation opportunities, then files prioritised GitHub issues. Use when the user says improve this, analyse this project, find improvements, or fill the backlog./review-prReviews an open pull request against coding standards, security, and test coverage, then posts a structured review comment and either approves or requests changes. Use when the user says review this PR, check the PR, look at PR/triageValidates all open GitHub issues, closes invalid ones with documentation, flags complex ones for planning discussion, then fixes and promotes remaining issues. Use when the user says triage issues, validate issues, fix issues, or work through the backlog.2 plugins ship this exact skill · first indexed Aug 23, 2026
claude-workflow-skills@ali5ter is listed by ali5ter/claude-plugins — review the source before installing
npx claudepluginhub ali5ter/claude-plugins --plugin claude-workflow-skillsOther plugins' skills for the same job