Agent SkillsStanshy/AgentHub › sprint-close

sprint-close

GitHub

在Sprint结案时,验证任务完成状态,将Sprint分支合并至Base分支,创建发布Tag,清理已合并的Task分支及Sprint分支,并输出操作摘要。

.knowledge/company/skill-templates/sprint-close/SKILL.md Stanshy/AgentHub

Trigger Scenarios

用户要求执行Sprint结案流程 用户输入/sprint-close命令

Install

npx skills add Stanshy/AgentHub --skill sprint-close -g -y
More Options

Non-standard path

npx skills add https://github.com/Stanshy/AgentHub/tree/main/.knowledge/company/skill-templates/sprint-close -g -y

Use without installing

npx skills use Stanshy/AgentHub@sprint-close

指定 Agent (Claude Code)

npx skills add Stanshy/AgentHub --skill sprint-close -a claude-code -g -y

安装 repo 全部 skill

npx skills add Stanshy/AgentHub --all -g -y

预览 repo 内 skill

npx skills add Stanshy/AgentHub --list

SKILL.md

Frontmatter
{
    "name": "sprint-close",
    "description": "Merge sprint branch to base branch, tag release, and clean up branches",
    "allowed-tools": "Read, Glob, Bash"
}

Sprint 結案

老闆 + PM 確認所有 Gate 通過後執行,將 sprint branch merge 回 base branch。

使用方式

/sprint-close <sprint-number>

參數

  • $0: Sprint 編號(如 1

執行步驟

  1. 確認所有任務已完成: 使用 Glob tool 搜尋 .tasks/sprint-$0/*.md,用 Read tool 逐一讀取,確認所有任務 | 狀態 | 欄位均為 done。 若有任一非 done → 列出未完成任務,停止執行。

  2. 讀取 base branch: 使用 Glob tool 搜尋 proposal/sprint$0-dev-plan.md,用 Read tool 讀取,找到 | Base Branch | 欄位取得 base branch 名稱(如 mainmaster)。

  3. 切換並 merge

    git checkout {base-branch}
    git merge --no-ff sprint-$0 -m "release: sprint-$0 結案"
    
  4. 建立 Tag

    git tag sprint-$0-release
    
  5. 清理已 merge 的 task branches

    git branch --merged {base-branch} | grep "task/s$0-" | xargs git branch -d
    

    只刪除已完整 merge 進 base branch 的 task branches,未 merge 的保留並輸出警告。

  6. 刪除 sprint branch

    git branch -d sprint-$0
    
  7. 輸出結案摘要

✅ Sprint $0 結案完成

Base Branch:{base-branch}
Tag:sprint-$0-release
清理 branches:{已刪除的 branch 列表,或「無」}

git log --oneline -5 顯示最近 commit:
{輸出}

Version History

  • 5300820 Current 2026-07-24 12:11

Same Skill Collection

.knowledge/company/skill-templates/dev-plan/SKILL.md
.knowledge/company/skill-templates/gate-record/SKILL.md
.knowledge/company/skill-templates/harness-audit/SKILL.md
.knowledge/company/skill-templates/knowledge-feedback/SKILL.md
.knowledge/company/skill-templates/pitfall-record/SKILL.md
.knowledge/company/skill-templates/pitfall-resolve/SKILL.md
.knowledge/company/skill-templates/pm-review/SKILL.md
.knowledge/company/skill-templates/product-diagnosis/SKILL.md
.knowledge/company/skill-templates/project-kickoff/SKILL.md
.knowledge/company/skill-templates/review/SKILL.md
.knowledge/company/skill-templates/sop-deploy/SKILL.md
.knowledge/company/skill-templates/sop-review/SKILL.md
.knowledge/company/skill-templates/sprint-proposal/SKILL.md
.knowledge/company/skill-templates/sprint-retro/SKILL.md
.knowledge/company/skill-templates/task-delegation/SKILL.md
.knowledge/company/skill-templates/task-dispatch/SKILL.md
.knowledge/company/skill-templates/task-done/SKILL.md
.knowledge/company/skill-templates/task-start/SKILL.md
.knowledge/company/skill-templates/task-status/SKILL.md
.knowledge/company/skill-templates/pre-deploy/SKILL.md
.knowledge/company/skill-templates/sop-execute/SKILL.md
.knowledge/company/skill-templates/sop-plan/SKILL.md
.knowledge/company/skill-templates/spec-update/SKILL.md
.knowledge/company/skill-templates/task-approve/SKILL.md

Metadata

Files
0
Version
5300820
Hash
d95da0e8
Indexed
2026-07-24 12:11

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 01:18
浙ICP备14020137号-1 $bản đồ khách truy cập$