pr
Use when opening a pull request with gh, writing a PR title/body, or pushing finished work for review
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when opening a pull request with gh, writing a PR title/body, or pushing finished work for review
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when handed a set/batch of iterations, plans, or work slices to carry out end to end in one run — multiple iteration/story IDs to execute, ordered by blocking edges, each with review, commit, and doc-status transitions, until the whole set is done. lazyspec or any DAG-backed backlog.
Interview the user relentlessly about a plan or design. Use when the user wants to plan/design a system, break down a problem, or asks an open question.
You MUST use this skill when authoring an iteration, work slice, or "iteration document" that hands a bounded unit of work to a coding agent — drawn from a story, card, spec, or backlog. Symptoms include an iteration that bundles several acceptance criteria, restates a spec it links to, or won't finish in one agent session.
You MUST use when writing a story/user story; when decomposing a system, feature, epic, requirement, or spec into a backlog of user stories, or whenever about to write user stories or acceptance criteria during planning. Symptoms include "break this into stories", "write the backlog", "split this epic", stories that feel too big to estimate, or technical tasks masquerading as stories.
You MUST use this skill any time you are investigating a bug/unintended behaviour, before proposing fixes
Use when comparing a running web UI against its intended design (Figma mockups or reference screenshots), reviewing visual/layout/spacing/typography fidelity of a page, component, or interaction, or when a design-vs-build diff is needed before shipping or to feed a fix loop.
| name | pr |
| description | Use when opening a pull request with gh, writing a PR title/body, or pushing finished work for review |
The reviewer reads the diff for what changed. The body exists for what the diff cannot show: why the change was made and what is now possible because of it. A body that re-narrates the diff file-by-file wastes the one channel the diff doesn't already cover.
A PR body is a contract derived from two sources: the spec/issue chain (why) and the diff (what you can now claim). It is not a summary of your session, not a restatement of the prompt, not a tour of the files touched, and not a description of how the subsystem works in general.
Read the diff before writing a single claim about it. Then write about the reasons and consequences, not the lines.
main/master.git diff origin/main...HEAD --stat then read the substantive hunks.lazyspec context <ID> --json (or lazyspec status to find the ID) to get the linked iteration/story/RFC and any GitHub issue refs. Use the real links, not numbers from the prompt..github/PULL_REQUEST_TEMPLATE.md, .github/pull_request_template.md, and .github/PULL_REQUEST_TEMPLATE/. If one exists, fill ITS sections. Do not invent your own.--body-file.gh pr create --base main --head <branch> --title "<title>" --body-file "$TMPDIR/pr-body.md"main/master? STOP. Branch first: git switch -c <type>/<slug>, then commit there. Never push WIP commits to the default branch.git fetch origin && git rebase origin/main. A PR diffed against a stale base shows phantom changes.git status and confirm. A stray nvim.log, debug print, or unrelated config under a feature label is a defect, not a convenience.git push -u origin <branch>.<type>: <imperative summary> — Conventional Commits prefix (feat, fix, chore, refactor, docs, test). One line, ≤ 72 chars, lowercase after the colon, no trailing period. Describes the change, not the files touched.
If the repo has a template, fill its sections with the content below mapped in. Otherwise produce exactly these parts, in order. Keep the whole body short — a reviewer should read it in under thirty seconds.
Closes #N only if this PR fully resolves the issue; Refs #N if it is partial or the issue is an epic. Reference the lazyspec doc (Implements ITERATION-014).🤖 PR Description generated using an LLM: <model name> / <agent harness>
Notes is optional and goes before Related. Include it only when the diff contains a decision a reviewer cannot infer from the code itself: a deliberate tradeoff, a known limitation, something left out of scope. It is for judgement calls, never a per-file inventory of the change.
The diff is the list of files and lines. The body never restates it. Every claim in Why and What this enables must trace to a hunk in the diff — if you cannot point to the line, delete the claim.
| Step | Command |
|---|---|
| Confirm not on main | git branch --show-current |
| Update base | git fetch origin && git rebase origin/main |
| Read diff | git diff origin/main...HEAD --stat then read hunks |
| Spec chain | lazyspec context <ID> --json |
| Find template | ls .github/PULL_REQUEST_TEMPLATE* .github/pull_request_template* |
| Create PR | gh pr create --base main --head <branch> --body-file "$TMPDIR/pr-body.md" |
| Mistake | Fix |
|---|---|
| Body describes the algorithm from memory ("token-bucket, 429...") | Read the diff; describe why it changed and what it enables |
Per-file walkthrough restating the diff ("cache.ts: new class with get/set...") | Delete it. The diff is the file list; write Why + What this enables |
| Invented section structure | Fill the repo's .github template if present |
| Took issue number from the prompt | Resolve via lazyspec context; verify the issue exists |
Closes #N on a partial fix | Use Refs #N; reserve Closes for full resolution |
Committed on main | Branch off updated origin/main, move commits there |
| Staged unrelated files | git status; stage only this change's files |
| Wrote a passing-tests checkmark without running | Run them, or state what you didn't run |
main/master and about to commit or pushlazyspec/gh.github template[x] tests pass you didn't actually run