一键导入
release
確認當前 sprint release,關閉 milestone,自動推進到下一個 sprint。觸發關鍵字:"release", "發佈", "上線"。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
確認當前 sprint release,關閉 milestone,自動推進到下一個 sprint。觸發關鍵字:"release", "發佈", "上線"。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
啟動實作流程。多個 engineer agent 背景並行認領 feature issues,同時 QA agent 根據 spec 撰寫 e2e test。觸發關鍵字:"implement", "實作", "開發"。
初始化 GitHub repo 的 issue labels、project 設定。在開始使用 specflow 工作流前執行一次。觸發關鍵字:"init", "初始化", "setup"。
啟動技術規劃流程。Tech Lead 讀取當前 sprint 的 spec issues,拆分為 task issues。觸發關鍵字:"plan", "規劃", "拆分", "架構"。
啟動 QA 撰寫 e2e test script。根據 spec API contract 撰寫測試程式碼,與 engineer 同時進行,不需等實作完成。觸發關鍵字:"qa", "測試", "test", "e2e"。
啟動 spec 討論流程。與使用者討論需求、規劃 sprint 階段、將功能需求以 GitHub Issue + Milestone 發佈。觸發關鍵字:"spec", "規格", "需求", "新專案"。
啟動完整的 specflow 專案流程。使用者只需與 spec agent 對話確認需求和架構,之後 tech-lead → (engineer + qa 並行) → verify → release 全部自動背景執行。觸發關鍵字:"start", "開始", "啟動專案", "新專案"。
| name | release |
| description | 確認當前 sprint release,關閉 milestone,自動推進到下一個 sprint。觸發關鍵字:"release", "發佈", "上線"。 |
| user-invocable | true |
| allowed-tools | Read, Bash, Agent |
| argument-hint | [sprint編號] |
確認當前 sprint 的交付成果,關閉 milestone,自動推進下一個 sprint。
確認當前 sprint 所有工作已完成:
SPRINT="{current_sprint}"
# 檢查是否有未關閉的 feature
OPEN_FEATURES=$(gh issue list --label "feature" --milestone "$SPRINT" --state open --json number --jq 'length')
# 檢查是否有未關閉的 bug
OPEN_BUGS=$(gh issue list --label "bug" --milestone "$SPRINT" --state open --json number --jq 'length')
# 檢查是否有未關閉的 QA
OPEN_QA=$(gh issue list --label "qa" --milestone "$SPRINT" --state open --json number --jq 'length')
# 檢查是否有未合併的 PR
OPEN_PRS=$(gh pr list --state open --json headRefName --jq '[.[] | select(.headRefName | startswith("feature/") or startswith("fix/") or startswith("test/"))] | length')
如果有未完成的項目,列出清單讓使用者確認是否仍要 release。
gh issue comment {epic_number} --body "$(cat <<'BODY'
## 🚀 Sprint {N} Released
### 交付功能
- #{feature} F-001: {名稱} ✅
- #{feature} F-002: {名稱} ✅
### 數據摘要
| 項目 | 數量 |
|------|------|
| Feature Issues | X |
| Pull Requests | X |
| E2E Test Cases | X |
| Bugs 修復 | X |
### PRs
- #{pr} {title}
- #{pr} {title}
BODY
)"
MILESTONE_NUMBER=$(gh api repos/{owner}/{repo}/milestones --jq '.[] | select(.title | startswith("Sprint {N}")) | .number')
gh api repos/{owner}/{repo}/milestones/$MILESTONE_NUMBER -X PATCH -f state="closed"
gh issue close {sprint_issue_number} --reason completed
NEXT_SPRINT=$(gh api repos/{owner}/{repo}/milestones --jq '[.[] | select(.state=="open") | select(.title | startswith("Sprint"))] | sort_by(.title) | .[0].title')
如果有下一個 sprint:
如果沒有下一個 sprint: