用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Stanshy/AgentHub --skill sprint-close命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | sprint-close |
| description | Merge sprint branch to base branch, tag release, and clean up branches |
| allowed-tools | Read, Glob, Bash |
老闆 + PM 確認所有 Gate 通過後執行,將 sprint branch merge 回 base branch。
/sprint-close <sprint-number>
$0: Sprint 編號(如 1)確認所有任務已完成:
使用 Glob tool 搜尋 .tasks/sprint-$0/*.md,用 Read tool 逐一讀取,確認所有任務 | 狀態 | 欄位均為 done。
若有任一非 done → 列出未完成任務,停止執行。
讀取 base branch:
使用 Glob tool 搜尋 proposal/sprint$0-dev-plan.md,用 Read tool 讀取,找到 | Base Branch | 欄位取得 base branch 名稱(如 main 或 master)。
切換並 merge:
git checkout {base-branch}
git merge --no-ff sprint-$0 -m "release: sprint-$0 結案"
建立 Tag:
git tag sprint-$0-release
清理已 merge 的 task branches:
git branch --merged {base-branch} | grep "task/s$0-" | xargs git branch -d
只刪除已完整 merge 進 base branch 的 task branches,未 merge 的保留並輸出警告。
刪除 sprint branch:
git branch -d sprint-$0
輸出結案摘要:
✅ Sprint $0 結案完成
Base Branch:{base-branch}
Tag:sprint-$0-release
清理 branches:{已刪除的 branch 列表,或「無」}
git log --oneline -5 顯示最近 commit:
{輸出}
基于 SOC 职业分类