ship
Wrap up current work - lint, test, branch (if needed), update docs/changelog, commit, and create PR
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Wrap up current work - lint, test, branch (if needed), update docs/changelog, commit, and create PR
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Prepare and ship a NAPT release. Phase 1 opens the release PR (version bumps + changelog promotion). Phase 2 (after merge) tags and publishes the GitHub release. Detects phase automatically.
Add a new field to the NAPT recipe YAML schema. Categorizes the field (org-policy / strategy-specific / required / optional / computed) first, then walks the per-category checklist, documentation, changelog, and tests.
Add or update an entry in docs/roadmap.md. Enforces the standard structure (Status / Complexity / Value / Description / Benefits / Prerequisites / Dependencies / Related) and category placement.
SOC 職業分類に基づく
| name | ship |
| description | Wrap up current work - lint, test, branch (if needed), update docs/changelog, commit, and create PR |
| disable-model-invocation | true |
| user-invocable | true |
| allowed-tools | Bash(git *) Bash(*python* -m *) Bash(gh *) Read Edit Glob Grep Agent |
| argument-hint | commit type: feat|fix|refactor|docs|test|chore |
You are shipping the current work as a PR. Follow every step in order.
Run these in parallel:
git branch --show-current to check if on a feature branch or maingit status to see what's changed (never use -uall)git diff --stat to understand scope of changesgit log main..HEAD --oneline to see commits already on the branchTell the user what you found: branch name, number of files changed, and a one-line summary of the changes.
If the working tree is clean and git log main..HEAD is empty (nothing
uncommitted and no commits ahead of main), there is nothing to ship — report
that and stop.
Run these sequentially:
.venv/Scripts/python.exe -m ruff check --fix napt/ tests/
.venv/Scripts/python.exe -m black napt/ tests/
.venv/Scripts/python.exe -m ruff check napt/ tests/
.venv/Scripts/python.exe -m pyright
If ruff or black made changes, tell the user what was fixed.
If any lint errors remain that --fix couldn't resolve, stop and report them.
If pyright reports new errors compared to main (use git diff main context to judge whether they're pre-existing or introduced by this branch), stop and report them. Pre-existing errors should not block the ship.
.venv/Scripts/python.exe -m pytest tests/ -q
Run the full test suite including integration tests. If tests fail, stop and report the failures. Do not continue.
If already on a feature branch (not main), skip this step.
If on main:
feature/, bugfix/, docs/, refactor/, test/, chore/git checkout -b <type>/<name>Check whether any changes affect user-facing behavior by reviewing the diff.
If user-facing changes exist:
docs/changelog.md[Unreleased] following Keep a Changelog 1.1.0 format
(Added/Changed/Fixed/Removed). Focus on user impact, not implementation.docs/user-guide.md, docs/common-tasks.md, or
docs/recipe-reference.md need updates based on the CLAUDE.md rules.
Update them if needed.If changes are purely internal (refactor, test, chore with no user impact), skip changelog and doc updates. Tell the user you skipped this and why.
If any file under docs/ was added or edited — by you in this step or
already in the diff — validate that the site builds:
.venv/Scripts/python.exe -m mkdocs build --strict
If the build fails, fix the docs before continuing.
Invoke the napt-reviewer subagent via the Agent tool to review the full
branch delta against CLAUDE.md conventions, docs/changelog requirements, and
project principles (including forward-looking consequences).
subagent_type: napt-reviewerdescription: "Review branch against CLAUDE.md"prompt: "Review the current branch against CLAUDE.md conventions. This
is a pre-commit review — uncommitted changes in the working tree are part
of what will ship. Use git diff main to capture the full delta including
uncommitted changes. Report findings with severity and a final verdict."Echo the reviewer's full output verbatim as your own text output before doing anything else. The subagent's output renders as a collapsed box in the terminal by default, so the user can't see findings without expanding it. Repeating the output as main-thread text makes it visible inline. Preserve the reviewer's severity grouping and final verdict line.
Then, based on the findings:
[BLOCKING], no [SUGGESTION],
no [NIT], and verdict is ship), continue to Step 7 without prompting.[NIT] — STOP and ask the user how to proceed. Do not auto-fix, do not
auto-commit, do not continue to Step 7. Ask the user per-finding or
collectively: "How would you like to proceed — address any of these before
committing, skip them, or override?" Wait for their direction.Never attempt to fix findings on the user's behalf without explicit instruction. The reviewer surfaces; the user decides — including on nits.
git add -A). Never stage
.env, credentials, or secrets files.type: Subject (imperative, capitalized, under 50 chars, no period)git push -u origin <branch-name>gh pr create with: