ship-feature
Use to close the loop after review — verify the feature actually works, write the changelog, and open the pull request. Triggers on "ship {slug}", "open a PR for {slug}", "changelog for {slug}", "prepare {slug} for merge", "/sdlc:ship-feature {slug}", "відправ фічу {slug}", "створи PR для {slug}", "changelog для {slug}". Gate: refuses if docs/features/{slug}/_review/review-<date>.md does not show PASS (produced by review-feature). Runs the feature end-to-end to confirm it actually works (not just green tests), drafts a changelog + PR body that link PRD/ACs/ADRs and the SDLC-Task commit history, detects the git forge (gh for GitHub / glab for GitLab) and proposes the right PR-create command, then moves the feature to Shipped in docs/roadmap.md. Never auto-merges to main — merging is the user's call. Output: docs/features/{slug}/CHANGELOG.md + PR body (proposed command or URL).
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 15
- Forks
- 13
01 前言 Front Matter
- name
- ship-feature
- model
- inherit
- stage
- 18
- agents
- []
- effort
- medium
- triggers
- [ "/sdlc:ship-feature", "ship ", "open a PR for", "changelog for", "prepare for merge", "відправ фічу", "створи PR для", "changelog для" ]
- description
- Use to close the loop after review — verify the feature actually works, write the changelog, and open the pull request. Triggers on "ship {slug}", "open a PR for {slug}", "changelog for {slug}", "prepare {slug} for merge", "/sdlc:ship-feature {slug}", "відправ фічу {slug}", "створи PR для {slug}", "changelog для {slug}". Gate: refuses if docs/features/{slug}/_review/review-<date>.md does not show PASS (produced by review-feature). Runs the feature end-to-end to confirm it actually works (not just green tests), drafts a changelog + PR body that link PRD/ACs/ADRs and the SDLC-Task commit history, detects the git forge (gh for GitHub / glab for GitLab) and proposes the right PR-create command, then moves the feature to Shipped in docs/roadmap.md. Never auto-merges to main — merging is the user's call. Output: docs/features/{slug}/CHANGELOG.md + PR body (proposed command or URL).
02 资源文件 2
- 参考文档templates/changelog.md972 B
- 参考文档templates/pr-body.md1.1 KB
03 SKILL.md 正文
Skill: ship-feature (SDLC stage 18 — terminal)
The closing step. review-feature confirmed the change is correct on paper; ship-feature confirms it works in reality and packages it for merge. The loop ends here: a reviewed, verified change with a changelog and an open PR — not a merge to main (that stays a human decision).
Forge-agnostic and stack-agnostic: verification commands are detected the same way implement-tasks detects them; the PR step targets whatever forge the remote points at (GitHub via gh, GitLab via glab, or copy-paste).
Owner
The implementer (drives) + the reviewer who signed off in review-feature.
Inputs
<slug>— feature slug (same one used by every upstream stage).- Gate (hard refuse):
docs/features/<slug>/_review/review-<date>.mdshowingPASS. If missing or showingCHANGES REQUESTED→ refuse with: «run/sdlc:review-feature <slug>first — ship-feature requires a PASS verdict». - Read:
docs/features/<slug>/PRD.md(what to claim in the changelog),docs/features/<slug>/adr/(decisions worth recording), the feature's commits (SDLC-Tasktrailer history viagit log --grep SDLC-Task).
Protocol
-
Gate check. Confirm
docs/features/<slug>/_review/review-<date>.mdexists and its verdict isPASS(search for the most recent date). If absent or non-PASS → hard refuse with the pointer above. -
Final verification — does it actually work. Re-run the detected gate (unit + integration where available + lint + vet). Then run the feature for real against its acceptance criteria — not just "tests pass": start the app / hit the endpoint / exercise the flow and observe the PRD's outcomes (e.g. the default-on read returns defaults; an invalid value is rejected). If the app cannot be run here (no runtime, no Docker), say so explicitly and record what was verified vs deferred — never claim verified-working when only tests compiled.
-
Write the changelog. From
./templates/changelog.md: what changed, why (linkPRD.md+ the key ADRs), any migration/operational note (e.g. "adds migration 000023 — run it on deploy"), and how to use it. Partner-facing if the change is partner-facing. Write todocs/features/<slug>/CHANGELOG.md. -
Prepare the PR body. Ensure the work is on a feature branch (not the default branch). Draft the PR body from
./templates/pr-body.md: summary, the ACs it satisfies, links to PRD/sad/ADRs, theSDLC-Taskcommit list, the test + verification evidence, and any migration/rollback note. -
Detect the forge + propose the PR command. Inspect the git remote URL:
github.com→gh pr create --title "feat(<slug>): <summary>" --body-file docs/features/<slug>/pr-body.mdgitlab.comor self-hosted GitLab (any non-github remote) →glab mr create --title "feat(<slug>): <summary>" --description-file docs/features/<slug>/pr-body.md- Remote undetectable / unknown forge → print the branch name + body for manual PR creation. Propose the command — do not push to a shared remote unasked and never merge to main.
-
Update the roadmap → Shipped. Move this feature's item from Now to Shipped in
docs/roadmap.md: add the date, the outcome one-liner, a link todocs/features/<slug>/, and the PR link/command. Remove the item from the Now table. Ifdocs/roadmap.mddoes not exist → skip and note it (roadmap is optional at this stage). -
Terminal handoff. Emit the stage-handoff block per
../_shared/handoff.md— terminal variant. What I did (verification result: verified-working / what was deferred and why; the roadmap update). Review (the changelog path + the PR body path). Run next = Done — the PR command (or URL if the user already ran it); «merging to main is your call». There is no/sdlc:successor.
Definition of Done
- Gate passed:
_review/review-<date>.mdshows PASS — the skill confirmed it before proceeding. - The gate was re-run and the feature was exercised against its ACs (or the deferral was stated explicitly with the reason).
docs/features/<slug>/CHANGELOG.mdexists, linking PRD + load-bearing ADRs and including the operational note (migrations, flags).docs/features/<slug>/pr-body.mdis prepared with the full PR body.- The forge-appropriate PR command is proposed (work is on a feature branch; main untouched).
docs/roadmap.mdupdated — feature moved to Shipped (or skip noted if roadmap absent).
Anti-patterns
- Shipping without a PASS review. The gate is unconditional —
review-featuremust confirm correctness beforeship-featureruns. - "Tests pass" ≠ "it works". Run the actual feature against the PRD's outcomes; green unit tests don't prove the wired system behaves.
- Claiming verified when you only compiled. If the runtime/Docker wasn't available, say what was deferred — don't overstate.
- Auto-merging to main / pushing to a shared remote unasked. Propose the PR; the merge is the team's call.
- A changelog that restates the diff. Say what changed and why (link the PRD + ADR), plus the operational note (migrations, flags) — not a file list.
- Forgetting the migration/rollback note when the change includes one — the deployer needs it.
- Skipping the roadmap update. If
docs/roadmap.mdexists, the Shipped move is not optional — delivery itself keeps the roadmap current.
References & templates
./templates/changelog.md— changelog scaffold../templates/pr-body.md— PR description scaffold (forge-agnostic).../_shared/handoff.md— stage-handoff block format (terminal variant).
04 同仓库更多 Skills
release
Run the whole local release pipeline in order, stopping at each human gate. Triggers on "run the release", "prepare a release", "/release", "зроби реліз", "підготуй реліз". Drives the four stages back to back — bump-version → curate-changelog → release-notes → check-docs-drift — pausing after each so the human reviews the diff before the next stage. Prepares everything in the working tree; never tags, commits, or pushes. The tag push (which fires CI) stays the human's action.
release-notes
Draft partner-facing release notes from the same commits as the changelog. Triggers on "draft release notes", "release notes for the next version", "/release-notes", "нотатки релізу", "release notes партнеру". Same input as curate-changelog, different audience and tone: a short, benefit-first narrative for a user or partner — "what's new for you" — not a categorized engineer's list. Keeps only changes a user actually notices; drops internal refactors and tooling. Prints the notes to the chat to seed a GitHub Release description or a partner announcement. Writes no file.
curate-changelog
Curate the [Unreleased] section of docs/CHANGELOG.md from git history. Triggers on "curate the changelog", "update the changelog", "/curate-changelog", "онови changelog", "курування журналу". Reads git log since the last tag, FILTERS out what a reader never feels (test/ci/chore/merge), GROUPS commits about one feature into one bullet, and REWRITES technical subjects into plain language under the six Keep a Changelog categories (Added/Changed/Deprecated/ Removed/Fixed/Security). The result must have FEWER lines than the raw log — that is the proof of curation, not a dump. Leaves the edit in the working tree; never commits or pushes.
codify-rule
Turn a repeated mistake into a durable, path-scoped rule in .claude/rules/. Triggers on "codify this rule", "make a rule so this doesn't happen again", "/codify-rule", "закодифікуй правило", "петля помилка-правило". Use only when the same mistake showed up TWICE (twice = a pattern, once = noise). Names the wrong shape and the right shape with one short example of each, scopes the rule to the paths that matter, and leaves the edit in the working tree so the next agent on this repo inherits the fix. Edits only .claude/rules/; never commits or pushes.
check-docs-drift
Find and fix where docs/api.md fell behind the code. Triggers on "check for doc drift", "is the API doc up to date", "/check-docs-drift", "перевір дрейф документації", "docs drift". Runs the deterministic scripts/check-docs-drift.py (parses the public NoteBook methods with ast, compares to what docs/api.md documents — NO LLM finds the gap), reports the drift, and PROPOSES the doc edit that closes it. The gap is found by parsing; the agent writes the missing documentation in the doc's existing style. Edits only docs/; never commits or pushes.
bump-version
Decide and apply the next semver for a release. Triggers on "bump the version", "what version is next", "/bump-version", "простав версію", "яка наступна версія". Reads the next number from the deterministic scripts/next-version.sh (NEVER guesses it), explains in plain language WHICH part moved and why (e.g. "MINOR, because a feat landed: filter notes by tag"), edits the version line in pyproject.toml, and proposes the matching `git tag vX.Y.Z`. The number is decided by a rule; the agent explains and applies — the human confirms the tag. Never pushes a tag itself.