ship
Use when changes are ready to land — a fast local checkpoint, or the full flow through push and an open pull request. Defaults to the PR flow; say 'commit' or 'quick commit' for a checkpoint-only. Replaces /commit-push-pr, /quick-commit.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- ship
- requires
- [ { "cli": "gh", "reason": "GitHub CLI for PR creation (pr mode)" } ]
- description
- Use when changes are ready to land — a fast local checkpoint, or the full flow through push and an open pull request. Defaults to the PR flow; say 'commit' or 'quick commit' for a checkpoint-only. Replaces /commit-push-pr, /quick-commit.
- argument-hint
- [commit|pr]
- user-invocable
- true
03 SKILL.md 正文
Ship
Codex: Read
../_shared/codex-tools.mdbefore following this skill. Apply its tool, root and dispatch mappings throughout.
Two-mode pipeline for landing work. Use whichever scope you want.
- Commit mode — stage and commit locally, push if tracked. No PR. (
/claudna:ship commit, or say "commit"/"quick commit") - PR mode (default) — rebase onto the base branch, verify, review the diff, commit, push, open a PR. (
/claudna:ship,/claudna:ship pr, or say "ship")
Read ../_shared/visual-evidence.md §1 before preparing PR media. Reuse the caller's
evidence decision and reason; choose them here only if absent, and revise only for
changed scope, risk, claims or requirements. none needs no packet or media gates;
screenshots need no recording or playback. For selected media, reuse the packet
and owner or become its owner if creating it here. Prepare/validate missing selected
evidence; after updating the base, recapture affected evidence unless exact runtime
inputs still match. Check both the diff and feature history for generated media
before pushing. Keep the packet outside Git and carry the decision into the PR.
Commit mode
When: user says "commit", "quick commit", "stage and commit," or invokes /claudna:ship commit.
- Run
/claudna:verify-completion's discipline — tests pass, lint clean, type-check clean — before staging. - Run
git statusto see the current state. - Run
git diffto understand the changes. - Stage the appropriate files with
git add, named explicitly (nevergit add -A— it sweeps in.env, editor auto-saves, and debug code left in unrelated files). - Create a commit with a clear message:
- Starts with a type prefix (
feat:,fix:,refactor:,docs:,test:,chore:) - Briefly describes what changed, imperative mood ("Add feature" not "Added feature")
- Starts with a type prefix (
- Push to the current branch if tracked.
No PR. Just a checkpoint commit.
Example: feat: add product search functionality
PR mode (default)
When: user says "ship", "push to main", "create a PR," "open a PR," or invokes /claudna:ship / /claudna:ship pr.
- Run
git statusto see what files have changed. - Run
git diffto review the changes. - Detect the base branch (usually
main, fall back tomaster). Fetch and merge/rebaseorigin/<base>into the current branch. Resolve conflicts — never discard work. - Run
/claudna:verify-completion's discipline against the full test suite, lint, and types. Must pass fully — no "most tests pass" rationalizations. - Review the diff via
/claudna:review-work changes— catches structural issues, unintended side effects, and safety problems before a human reviewer sees them. - Bump version and update CHANGELOG, if the project uses them — check the project's own CLAUDE.md for its convention. Skip silently if the project doesn't version this way.
- Stage the appropriate files with
git add, named explicitly. - Create a commit with a clear, descriptive message following conventional commits format.
- Push to the remote branch (create the remote branch if needed with
-u origin <branch>). - Create a Pull Request. Write the title and the description to two files in
<scratch>(../_shared/orchestration-guide.md§1) with the Write tool, then rungh pr create --title "$(cat <title-file>)" --body-file <body-file>. They hold:- A clear title summarizing the changes, under 70 characters
- A description with:
## Summary— what changed and why## Test plan— testing done## Notes for reviewers— anything reviewers should look at closely (risky areas, deliberate omissions, follow-ups); omit only when there's genuinely nothing to call out
- Include the shared evidence decision and reason in the PR verification note.
For selected media only, embed native attachment links and provenance/results,
then verify the saved PR's rendering and, for video, playback per
../_shared/visual-evidence.md. Do not claim delivered media from links alone or block anonedecision on absent media. Complete the owner's automatic finalizer for any owned resources on success and blocked/failed exits; a nested caller remains responsible for its borrowed root. Return the PR URL and actual evidence and cleanup states to the user.
Does NOT merge — that's the user's call. If there are any issues at any step, finalize owned resources, then stop and report them.
Red Flags — STOP
If you catch yourself thinking any of these, STOP — you are about to commit or ship without adequate diligence:
- "Just a quick fix" — Quick fixes need review too. Run
git diffand actually read what you're committing. A "quick fix" that introduces a regression is not quick. - "I'll clean this up in the next commit" — No you won't. The next commit will have its own scope. If the code needs cleanup, clean it up NOW before committing.
- "The tests aren't related" — Run them anyway. Changes have unintended side effects. If the tests pass, you've confirmed no regression in 30 seconds. If they fail, you just prevented a broken commit or PR.
- "It's just a docs change" — Documentation changes can contain incorrect information, broken links, and outdated examples. Read the diff.
- "I know what I changed" — Read the diff anyway.
git add -Astages everything, including files you forgot you modified, files your editor auto-saved, and temporary debugging code you meant to remove. - Staging with
git add -Awithout first runninggit status— Step 1/2 exist for a reason. You need to know what's about to be committed. Untracked files, modified configs, and accidental changes all get swept in by-A. - Writing a commit message before reading the diff — The message describes the change. You can't describe what you haven't read.
- Using "misc" or "various" in the commit message — These words mean you're committing unrelated changes together. Split them into separate commits.
- "The parent branch will still be current" — always fetch fresh state before rebasing in PR mode; don't trust a base branch you checked earlier in the session.
Common Rationalizations
| Excuse | Reality |
|---|---|
| "Just a quick fix" | Quick fixes need review too. Read the diff. |
| "I'll clean this up next commit" | No you won't. Clean it up now. |
| "The tests aren't related" | Run them anyway. 30 seconds to confirm no regression. |
| "It's just a docs change" | Docs can be wrong too. Read the diff. |
| "I know what I changed" | git add -A stages everything. Read git status first. |
| "One commit is fine for all of this" | Unrelated changes belong in separate commits. Split them. |
| "The message is good enough" | Vague messages make git log useless. Be specific. |
| "I'll run tests after pushing" | Post-push failures cost everyone time. Run tests pre-commit or pre-PR. |
04 同仓库更多 Skills
example-review
Use when you want to review pull requests with detailed, actionable feedback on code quality, correctness, and maintainability.
bad-skill
Too short
worktree
Use when starting feature work that needs isolation from the current workspace, or when running multiple Claude sessions in parallel on different branches — creates and manages git worktrees. For fetching latest main into every existing worktree and branch across your sibling repos, use /claudna:sync-branches instead.
weigh-development-paths
Use when at a development junction with multiple viable approaches — architecture choices, refactoring strategies, where to put new code, or which pattern to follow. Triggers on 'which approach', 'how should I', 'Option A vs B', or any point where the next step isn't obvious and the wrong choice creates rework.
verify-completion
Use when about to claim work is complete, fixed, or passing -- requires running verification commands and confirming output before making any success claims.
vercel
Use for Vercel operations — deploy to production or preview (or roll back), view, filter, or debug deployment logs, or check project status (deployments, domains, env vars, config). Replaces /vercel-deploy, /vercel-logs, /vercel-status.