/goal-workflow-skills:ship-itfrom goal-workflow-skills
Automates the end-of-goal workflow: commit code, push branch, create PR, merge, and close the linked GitHub Issue via git and gh CLI.
Ships in goal-workflow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
完成 GitHub Issue 实现后的标准收尾流程:提交代码 → 推送分支 → 创建 PR → 合入 → 关闭 Issue。
#42)gh auth status 可验证)# 1a. 检查变更状态
git status
git diff --stat HEAD
# 1b. 暂存本次 Issue 相关的文件(不要 add 不相关的文件)
git add <files related to this issue>
# 1c. 提交,commit message 关联 Issue
git commit -m "$(cat <<'EOF'
{简要描述} (#issue-number)
{可选的详细说明}
EOF
)"
关键规则:
#issue-number 以关联 Issue# 如果还在 main/master 上,先创建功能分支
git checkout -b {branch-name} # 如已在功能分支则跳过
# 推送到远程
git push -u origin {branch-name}
分支命名建议:feat/issue-42-short-desc 或 fix/issue-42-short-desc
gh pr create \
--title "{简要描述}" \
--body "$(cat <<'EOF'
## Summary
- 实现内容概述(复杂改动可附精简结构图、调用树、目录 diff 或 Mermaid 时序图,避免大段废话)
Closes #{issue-number}
## Evidence(行为变更 / Bug 修复推荐填写)
- **Before:** {修改前的失败测试输出、报错或截图}
- **After:** {修改后的通过测试输出或截图}
## Merge Danger(非微小改动推荐填写)
- **Door:** Two-way(可低成本回滚) / One-way(含不可逆数据迁移、破坏性 API/Schema 变更)
- **Blast Radius:** {影响范围,如 Isolated / Module / Cross-service / Public API,及潜在风险点}
## Test plan
- [ ] 测试项 1
- [ ] 测试项 2
EOF
)"
关键规则:
Closes #N 或 Fixes #N,合入后 GitHub 自动关闭 IssueSummary 用最小可视化说清重点: 按改动类型选择最直观的表达(简单改动 2–3 条 bullet;流程变更用调用树;结构重整用精简文件树 diff;跨模块交互用 Mermaid),切忌堆砌空洞文字Evidence 与 Merge Danger 按需精简: Bug 修复、UI 改动、数据迁移或公共接口变更务必写清 Before/After 实证与单向/双向门风险;纯文档或极小改动可省略这两个可选段落,避免形式主义# 4a. 查看 PR 状态(确认 checks 通过)
gh pr checks
# 4b. 合入(默认 merge commit,可选 --squash 或 --rebase)
gh pr merge --squash --delete-branch
参数说明:
--squash: 压缩为单个 commit 合入(推荐)--rebase: rebase 合入--merge: 普通 merge commit--delete-branch: 合入后删除远程分支PR 合入 / Issue 关闭时,始终在 Issue 上添加实现总结评论,方便后续直接从 Issue 回溯设计决策与代码变更。
按以下四类结构组织总结内容:Design Decisions(设计决策)、Deviations(偏离)、Tradeoffs(权衡)、Open Questions(待确认)。某一类无内容时写 None 并简要说明。
gh issue comment {issue-number} --body "$(cat <<'EOF'
## 实现总结
**核心变更**
- {从 PR body Summary 提取的实现摘要,3-5 条 bullet}
**实现亮点(Highlights)**
- {值得强调的技术亮点:性能优化、优雅设计、复用抽象、关键测试覆盖等},或 None
**设计决策(Design Decisions)**
- {spec 模糊/未定处所做的选择及理由},或 None
**偏离(Deviations)**
- {有意偏离 spec 之处:spec 怎么说 → 实际怎么做 → 为什么},或 None
**权衡(Tradeoffs)**
- {考虑过的备选方案及最终选择的原因},或 None
**待确认(Open Questions)**
- {需用户确认的假设或后续跟进项},或 None
---
- **PR**: #{pr-number}
- **Commit**: {hash}
EOF
)"
关键规则:
NoneNone如果 PR body 中已写 Closes #N,合入后 Issue 会自动关闭,跳过此步。否则手动关闭:
gh issue close {issue-number} --reason completed
| 场景 | 处理方式 |
|---|---|
gh pr checks 有失败项 | 查看失败原因,修复后追加 commit 推送 |
| PR 有 merge conflict | git fetch origin main && git rebase origin/main,解决冲突后 force push |
gh pr merge 被 branch protection 阻止 | 确认 required reviews 已满足,或请 reviewer approve |
| Issue 合入后未自动关闭 | 确认 PR body 包含 Closes #N,或执行 Step 6 手动 gh issue close |
# 创建分支并提交
git checkout -b feat/issue-42-case-model
git add cases/case.go cases/case_test.go
git commit -m "$(cat <<'EOF'
Add Case data model and Markdown read/write (#42)
Define Case struct with YAML frontmatter + Markdown body
serialization. Provide WriteCase/ReadCase/ListCases/UpdateCase.
EOF
)"
# 推送
git push -u origin feat/issue-42-case-model
# 创建 PR
gh pr create \
--title "Add Case data model and Markdown read/write" \
--body "$(cat <<'EOF'
## Summary
- Define Case struct with YAML frontmatter + Markdown body
- Implement WriteCase/ReadCase/ListCases/UpdateCase functions
- Add comprehensive test coverage
Closes #42
## Evidence
- **Before:** No Case persistence layer (`go test ./cases/...` had 0 tests)
- **After:** `go test -race ./cases/...` — 12/12 tests pass
## Merge Danger
- **Door:** Two-way (new additive package, no existing callers or schema mutated)
- **Blast Radius:** Isolated (`cases/` package only)
## Test plan
- [x] Unit tests pass
- [x] go vet / lint clean
EOF
)"
# 确认 checks 通过后合入
gh pr checks
gh pr merge --squash --delete-branch
# 添加实现总结评论
gh issue comment 42 --body "$(cat <<'EOF'
## 实现总结
**核心变更**
- Define Case struct with YAML frontmatter + Markdown body
- Implement WriteCase/ReadCase/ListCases/UpdateCase
**实现亮点(Highlights)**
- 单文件自包含存储,读写无需外部索引,测试覆盖率 100%
**设计决策(Design Decisions)**
- Markdown body 与 YAML frontmatter 分离存储,便于人工编辑与 diff
**偏离(Deviations)**
- None — 实现与 spec 一致
**权衡(Tradeoffs)**
- 选用 frontmatter 而非独立 JSON 元数据:单文件自包含,牺牲了少量解析性能
**待确认(Open Questions)**
- None
---
- **PR**: #43
- **Commit**: abc1234
EOF
)"
# 切回主分支
git checkout main
git pull
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub smallnest/goal-workflow --plugin goal-workflow-skills22 skills in this plugin
/article-iconsIllustrate an article (Markdown, HTML, etc.) with animated-style icons from itshover.com/icons. Fetches icons as clean inline SVG and places them at section headings, key concepts, lists, and callouts. Triggers on: /article-icons, 配图, 给文章配图标, add icons to article, illustrate with icons./code-to-specReverse-engineer a SPEC document from an existing project. Analyzes code, config, tests, and structure to produce a comprehensive specification. Triggers on: code-to-spec, reverse spec, generate spec, 逆向规格, 生成规格文档, 生成设计文档, 生成设计方案, extract spec, document this project, what does this project do./debug-itDisciplined bug diagnosis, performance regression forensics, and root-cause fixing: build a tight red-capable feedback loop -> minimise -> rank 3-5 falsifiable hypotheses -> instrument -> attack failed premises -> fix root causes -> lock down with regression test and proof. Triggers on: /debug-it, debug this, diagnose bug, root cause, perf regression, 排查 bug, 根因定位, 诊断问题, 性能退化排查./design-itUse when turning a requirement, spec, or feature brief into a single self-contained HTML design document in a fixed house style — one styled HTML page with a table-of-contents, architecture/sequence SVG diagrams, code/SQL/YAML blocks, callout boxes, an aligned-decisions (已对齐结论) panel, test cases, and a code index. Reuse for any new 需求/设计文档 that should look identical every time./graphGraph engineering for parallel task execution: convert a task, PRD, SPEC, or issue set into a dependency graph (DAG), layer it into supersteps, then implement each independent node concurrently with subagents — each node runs /goal → /review-it → /ship-it in an isolated git worktree, with a fan-in barrier between waves. Triggers on: graph, graph engineering, build a graph, task graph, dependency graph, DAG, parallel implement, 并发实现, 并行实现, 任务图, 把任务变成图, fan-out fan-in, superstep, dynamic workflow./humanize-it对指定文档进行去 AI 味的改写。自动选择最合适的人性化策略(humanizer-zh / humanize-chinese / technical-writing), 迭代改写直到效果达标或迭代 42 次为止。适用于中文文本的去 AI 化处理,包括通用文章、技术文档、学术论文等。 Use when user says: "humanize this", "去AI味", "降AIGC", "人性化改写", "改成人话", "去除AI痕迹", "humanize document", "make text human-like", "去机器味", "降低AI率", "过AIGC检测"
Other plugins' skills for the same job