一键导入
release
Cut a versioned release — assess changes since last tag, changelog, version bump, release PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Cut a versioned release — assess changes since last tag, changelog, version bump, release PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | release |
| description | Cut a versioned release — assess changes since last tag, changelog, version bump, release PR |
| user-invocable | true |
When multiple PRs have been merged to main and you're ready to cut a versioned release. This skill looks at everything since the last release tag, creates a changelog entry, bumps the version, and opens a small release PR.
main with a clean working tree (git status shows no changes)gh auth switch --user YanCheng-go has been runIf any prerequisite fails, stop and tell the user what needs fixing.
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
git log --oneline ${LAST_TAG:+$LAST_TAG..HEAD}
git diff --stat ${LAST_TAG:+$LAST_TAG..HEAD}
gh issue list --repo YanCheng-go/danskprep --search "BL-" --state open --json number,title --limit 50Present the summary to the user and confirm this is what should be released.
git checkout -b release/vX.Y.Z
Run /update-changelog to create the changelog entry, bump the version, and sync all three locations (changelog.json, constants.ts, package.json).
Pass the last release tag so it knows the correct range of changes to summarize.
Confirm the version bump with the user before writing.
Checklist — update each file only if changes since last release make it stale:
| Doc | When to update |
|---|---|
README.md | Content counts, Roadmap checkboxes, Features list, Stack |
NOTES.md | Check off completed items, remove stale todos |
| GitHub Issues | Backlog items auto-close when PR merges via Closes #NNN in PR body |
Do not update a doc if the release doesn't affect it.
Run all checks — stop if any fail:
npx tsc --noEmit # TypeScript clean
npm run lint # No lint errors
npm test # All tests pass
npm run build # Production build succeeds
If a check fails, fix the issue and re-run. Do not proceed with a broken build.
git add src/data/seed/changelog.json src/lib/constants.ts package.json
# Also stage any docs that were actually updated:
# git add README.md NOTES.md docs/backlog.md
git commit -m "$(cat <<'EOF'
chore: release vX.Y.Z
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"
git push -u origin release/vX.Y.Z
Only stage files that were actually modified. Do not use git add -A.
Create the PR using the Release PR template from .claude/references/pr-templates.md.
STOP HERE. Present the summary and wait for the user to decide:
## Release vX.Y.Z ready for review
- PR: <PR URL>
- Branch: release/vX.Y.Z
- Version: X.Y.Z (synced in 3 places)
- Changes since last release: N commits across M PRs
- Changelog: N highlights
Please review the PR. Reply with:
- "merge" — to squash-merge (CI will auto-create the GitHub release)
- "fix <issue>" — to address something first
Do NOT merge unless the user explicitly approves.
gh pr checks <number> — confirm CI passesgh pr merge <number> --squash --delete-branchgit checkout main && git pull --rebasegit branch -d release/vX.Y.ZCI will auto-create the GitHub release from the version in package.json.
gh auth switch --user YanCheng-goCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>| Problem | Fix |
|---|---|
| No release tag exists yet | Use full git log; /update-changelog handles this gracefully |
gh: not authenticated | Run gh auth switch --user YanCheng-go |
| Version mismatch between 3 files | Re-read all three, fix the one that's wrong |
| Build fails on type errors | Run npx tsc --noEmit to see the errors, fix them |
| PR creation fails | Check branch is pushed: git push -u origin release/vX.Y.Z |
Manage the project backlog — add, list, filter, update, prioritize, and suggest work items
Daily session wrapper — start with backlog, work, commit, retro
End-of-session retrospective — summarize work, update backlog statuses, update MEMORY.md
Commit, branch, PR, self-review, fix — then stop for human approval before merge
Pre-flight for parallel work — pick items, check file overlap, set statuses, generate terminal commands
Manage project backlog — add, list, filter, update, prioritize, suggest