ワンクリックで
commit
Commit, branch, PR, self-review, fix — then stop for human approval before merge
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Commit, branch, PR, self-review, fix — then stop for human approval before merge
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Manage the project backlog — add, list, filter, update, prioritize, and suggest work items
Daily session wrapper — start with backlog, work, commit, retro
End-of-session retrospective — summarize work, update backlog statuses, update MEMORY.md
Pre-flight for parallel work — pick items, check file overlap, set statuses, generate terminal commands
Manage project backlog — add, list, filter, update, prioritize, suggest
Full ship cycle: branch, PR, self-review, fix, human approval, merge
| name | commit |
| description | Commit, branch, PR, self-review, fix — then stop for human approval before merge |
| user-invocable | true |
Branch → commit → PR → self-review → fix → docs → STOP for human approval → merge. Never push directly to main.
| Invocation | Behaviour |
|---|---|
/commit | Auto-detect changes, run full cycle |
/commit <message> | Use provided message as commit summary |
/commit --auto-merge | Skip human checkpoint (Step 6) — merge immediately after self-review passes |
/commit <message> --auto-merge | Combined: custom message + auto-merge |
--auto-merge: Skips the human checkpoint at Step 7. Only use when the user has explicitly confirmed they want to skip review (e.g., trivial changes, docs-only, or user said "just ship it"). The self-review (Step 3) still runs — if it finds errors, stop and fix before merging. Never auto-merge if the self-review verdict is "Needs fixes" without resolving them first.
Before starting, ensure local main is up to date with remote. This catches PRs merged in previous sessions.
git fetch origin main
If currently on a stale branch from a previously merged PR, clean up first:
git checkout main && git pull --rebase origin main && git branch -d <stale-branch>
git status + git diff --stat HEAD to see what changedgh issue list --repo YanCheng-go/danskprep --search "<keywords>" --state open --json number,title --limit 5/backlog update BL-NNN status=in-progressCloses #NNN in Step 2git checkout -b <type>/<short-name>
Types: fix/, feat/, docs/, chore/, refactor/git add <files> — never -A; skip .env, secrets, unrelated changes)Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>git fetch origin main && git merge origin/main
If there are conflicts, resolve them, commit, and verify (tsc --noEmit && npm run build && npx vitest run) before continuing.gh auth switch --user YanCheng-go then git push -u origin <branch>.claude/references/pr-templates.mdRun /simplify on the changed files — review for code reuse, quality, and efficiency. Fix any issues found (duplicated logic, dead code, missing abstractions, over-engineering). Commit fixes on the same branch.
gh pr diff <number> — read the full diff as a reviewer.claude/rules/), regressionsFix errors on the same branch → commit → push → re-verify (tsc --noEmit && build && vitest run).
Review and update all relevant docs on the PR branch. Commit doc updates separately from code changes.
Checklist — update each file only if the PR makes it stale:
| Doc | When to update |
|---|---|
README.md | Content counts (words, exercises), Roadmap checkboxes, Features list, Python Scripts, Stack |
NOTES.md | Check off completed items, remove stale todos, update Known Issues |
CLAUDE.md | New conventions, changed directory structure, new exercise types, new env vars |
| GitHub Issues | Close related BL-NNN issues via Closes #NNN in PR body (auto-closes on merge) |
Do not update a doc if the PR doesn't affect it. Only touch what's stale.
STOP HERE. Before presenting the summary, check if the PR touches AI context files:
gh pr diff <number> --name-only | grep -E '^\.(claude/|CLAUDE\.md|DEVELOPMENT\.md)'
If any matches are found, add the requires:human-review label and include a warning banner in the summary.
Present the following summary to the user and wait for their decision:
## PR ready for review
- PR: <PR URL>
- Branch: <branch name>
- Diff: +N / -N lines across M files
- Self-review verdict: Clean / Needs fixes
- CI status: <passing / pending / failing>
⚠️ AI CONTEXT CHANGES — This PR modifies files that control AI behaviour:
- <list of .claude/ and CLAUDE.md files changed>
Please review these changes carefully — they affect how AI agents work in this project.
Please review the PR. Reply with:
- "merge" — to proceed with squash merge
- "fix <issue>" — to address something before merge
- or any other feedback
Omit the ⚠️ warning block if no AI context files are changed.
Do NOT proceed to Step 8 unless the user explicitly approves the merge.
git fetch origin main && git merge origin/main
If there are conflicts, resolve them, commit, push, and wait for CI to pass before continuing.gh pr checks <number> — confirm CI passes (fix failures if any)gh pr merge <number> --squash --delete-branch (deletes the remote branch)git checkout main && git pull --rebase origin main
git branch -d <branch>
git log --oneline -3 should show the merge commitCloses #NNN), set the project Status to Done:
# Find the project item ID, then set Status=Done
gh project item-list 15 --owner YanCheng-go --format json --limit 200 | \
python3 -c "import json,sys; [print(i['id']) for i in json.load(sys.stdin)['items'] if i.get('content',{}).get('number')==<issue_number>]"
gh project item-edit --project-id PVT_kwHOAtALr84BQs_6 --id <item_id> \
--field-id PVTSSF_lAHOAtALr84BQs_6zg-vxHc --single-select-option-id 98236657
This ensures the project board stays in sync — Closes #NNN only closes the issue, not the project field.If the merge happened in a previous session (e.g., merged via GitHub UI), still run step 4-6 to sync before starting new work.
After merge, ask the user:
Merged to main. Want to cut a release?
Run /release to assess changes since the last tag and create a release PR.
This is just a reminder — the user decides. Do not run /release automatically.
gh pr view <number> --json body), add the new changes to the Summary section, then write the full updated body (gh pr edit <number> --body ...). The --body flag replaces the entire body, so always read-then-write — never write from scratch.claude/references/pr-templates.md for backlog references in PR bodiesCloses #NNN when the PR fully implements the solution described in the issue. Partial fixes do not count. If unsure, ask the user before adding Closes