[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JB1R1NBS5QNSX3T6T12NN8":3,"skill-same:01M6JB1R1NBS5QNSX3T6T12NN8":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6JB1R1NBS5QNSX3T6T12NN8","create-pr",null,"Write pull request titles and descriptions when creating a PR. Use when running `gh pr create`, opening a pull request, drafting a PR body or title, or when the user asks for help writing a PR description. Produces a drafted title and body which are then passed to `gh pr create`. Encodes principles from Google eng-practices, the Linux kernel's SubmittingPatches, and Chris Beams' commit-message guide, and prevents the AI-generated-PR anti-patterns (hype tone, unsubstantiated claims, diff-restatement).","johnstegeman\u002Fai-skills","johnstegeman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6601691?v=4","01M6JB1MMQ1CSDZM5PY72YZ6Q7","John Stegeman","01M6JB1MS0FQS1CSDBECTPJ3DW",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjohnstegeman\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcreate-pr\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"create pr","pr","create","gh","for","claims","which","principles","tone","message","diff","use","generated","writing","gh pr","pull","pr description","commit","linux","kernel","2026-11-10 10:12:30",false,"---\nname: create-pr\ndescription: Write pull request titles and descriptions when creating a PR. Use when running `gh pr create`, opening a pull request, drafting a PR body or title, or when the user asks for help writing a PR description. Produces a drafted title and body which are then passed to `gh pr create`. Encodes principles from Google eng-practices, the Linux kernel's SubmittingPatches, and Chris Beams' commit-message guide, and prevents the AI-generated-PR anti-patterns (hype tone, unsubstantiated claims, diff-restatement).\nlicense: Apache-2.0\nmetadata:\n  author: johnstegeman\n  version: \"1.0\"\n---\n\n# Writing pull request descriptions\n\nYou are about to create a PR. Your job is to produce a title and body that tell the reviewer **what the diff cannot**: why this change exists, what mental model they need to read it, and how you know it works.\n\n## Workflow\n\nRun these steps in order. Steps 1 and 2 can run in parallel.\n\n### 1. Discover repo conventions\nRead whichever of these exist (skip silently if missing):\n- `.github\u002FPULL_REQUEST_TEMPLATE.md` — if present, treat its sections as the skeleton\n- `CONTRIBUTING.md`, `AGENTS.md`, `CLAUDE.md` — pull any documented PR conventions\n- Last 3 merged PRs via `gh pr list --state merged --limit 3 --json title,body` — mirror the title style and length norms you see\n\nIf a `PULL_REQUEST_TEMPLATE.md` exists, use it as the structural skeleton. Don't invent a different one.\n\n### 2. Gather change context\n- `git log \u003Cbase>..HEAD --oneline` — full commit history for the branch (not just the latest commit)\n- `git diff \u003Cbase>...HEAD --stat` — scope of changes\n- Branch name — often encodes issue number (e.g. `jstegeman\u002FENG-1234-fix-x`)\n- Scan commits and branch name for issue references (`#123`, `ENG-1234`, `JIRA-5`)\n\n### 3. Draft the title\nRules in priority order:\n1. **If the repo's recent PRs follow a convention, mirror it.** Conventional Commits adoption is genuinely contested — don't impose it where it isn't already in use.\n2. **Imperative mood**: \"Add retry logic\" not \"Added retry logic\" or \"Adds retry logic\". Test: *\"If applied, this commit will _[title]_\"*.\n3. **≤ 70 characters.** Detail goes in the body.\n4. **Capitalize, no trailing period.**\n5. **Specific over generic.** \"Fix bug\" \u002F \"Update code\" \u002F \"Refactor\" are banned — they fail the standalone-skim test.\n6. If the repo uses Conventional Commits, prefix with `feat:`, `fix:`, `chore:`, `docs:`, `refactor:`, `perf:`, `test:`, `ci:`, `build:`, or `style:`. Append `!` for breaking changes.\n\n### 4. Draft the body — adaptive to PR size\n\n**Trivial PR** (typo, comment fix, one-line config tweak): one sentence stating *why* is enough. Skip headers.\n\n**Typical PR**: cover these three, in this order, no rigid headers required:\n- **Why** — the problem or motivation. What's broken, what's missing, what triggered this. The reviewer can read the diff to see *what* changed; they need you to explain *why*.\n- **What changed at a high altitude** — the mental model the reviewer needs. Not a token-level restatement of the diff. (\"Reworks the retry loop to back off exponentially\" — not \"Adds variable `delay`, multiplies by 2 in `foo()`.\")\n- **How you verified it** — tests added, manual steps run, commands executed, output observed. If you didn't test something, say so explicitly.\n\n**Large or risky PR**: add as needed:\n- **Breaking changes \u002F API surface deltas** — explicit callout if public contracts changed\n- **Out of scope \u002F follow-ups** — what you intentionally did NOT do, so reviewers don't ask\n- **Alternatives considered** — when a non-obvious design choice was made\n\n**Always include if applicable**:\n- Linked issue with auto-close keyword: `Fixes #123`, `Closes ENG-1234`. Auto-detect from branch name or commits.\n\n### 5. Self-check before output\nBefore passing to `gh pr create`, re-read your draft against this checklist:\n\n- [ ] Does the title pass the **standalone-skim test**? (Could someone scanning `git log --oneline` understand what this PR does?)\n- [ ] Does the body explain **why**, not just **what**?\n- [ ] Have I avoided **restating the diff in prose**?\n- [ ] Are any **claims I made backed by evidence** I can point to in the PR?\n- [ ] Have I cut every **hype word** (see list below)?\n- [ ] If the description is getting long, **is the PR actually too big**? (Kernel rule: long description often = wrong-sized patch.)\n\n### 6. Execute\nPass the drafted title and body to `gh pr create` per the harness's normal PR-creation flow.\n\n## Core principles\n\n1. **Why over what** (Beams rule 7; Linux kernel). Code shows what; the description must explain why. The Linux kernel: *\"Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work.\"*\n\n2. **Self-contained** (Linux kernel). A reviewer or future archaeologist should understand the change from the title + body without chasing external context. Issue links are aids, not substitutes.\n\n3. **Standalone-skim test** (Google eng-practices). The title alone must let someone skimming history understand what this CL does. Banned title patterns from Google: `Fix bug`, `Fix build`, `Add patch`, `Moving code from A to B`.\n\n4. **Quantify or hedge** (Linux kernel). *\"If you claim improvements in performance, memory consumption, stack footprint, or binary size, include numbers that back them up. But also describe non-obvious costs.\"* If you don't have numbers, label the claim `(not measured)` or remove it — don't assert it confidently.\n\n5. **Long description = wrong-sized PR** (Linux kernel). *\"If your description starts to get long, that's a sign that you probably need to split up your patch.\"* If you find yourself writing four paragraphs of context, consider whether the PR should be split.\n\n## Anti-patterns — these break the skill\n\n**Restating the diff in prose.** \"Added function `processOrder` that calls `validateOrder` and then `submitOrder`.\" The reviewer can read code. Tell them the *shape* of the change, not its tokens.\n\n**Marketing \u002F hype language.** Cut these words on sight — they signal AI-generated content and add no information:\n\n> comprehensive, robust, seamlessly, leverages, leverage, ensures, enables, empowers, streamlines, elegant, clean, intuitive, powerful, sophisticated, cutting-edge, modern, optimal, best-in-class, production-ready, enterprise-grade\n\nAlso cut decorative emoji in headers, marketing-style intros (\"This PR brings exciting improvements to…\"), and self-congratulatory closes (\"This sets us up for future success.\").\n\n**Unsubstantiated claims.** \"Improves performance\" with no number. \"More reliable\" with no failure mode named. \"Better UX\" with no before\u002Fafter. Either name the evidence or rewrite the claim honestly: *\"Should reduce contention in `handleX` based on the lock-ordering change; not measured.\"*\n\n**Walls of text on tiny PRs.** A one-line typo fix does not need six headers. Match structure to scope.\n\n**Over-confident testing claims.** \"Tested\" alone is meaningless. Name *what* you tested: command run, test file touched, manual repro reproduced. If you didn't test a code path, say so.\n\n**Restating what's already in the linked issue.** Link the issue; don't copy-paste its body into the PR description. The reviewer can click.\n\n## Example: typical PR body\n\n> The retry middleware was retrying on 4xx responses, which amplified load against an already-failing dependency during the Tuesday incident.\n>\n> This narrows retries to 5xx, network errors, and explicit `Retry-After` responses. Other 4xx propagate to the caller unchanged.\n>\n> Verified by adding `retry_middleware_test.py::test_no_retry_on_4xx` and re-running the failure-mode replay in `scripts\u002Freplay.py` against the recorded incident traffic — request count drops from 6.2× to 1.0× as expected.\n>\n> Fixes ENG-4421.\n\nNotice: no headers, no hype, one number where a number exists, evidence named, issue linked. ~90 words. The diff fills in the rest.\n\n## Primary sources\n\n- Google eng-practices, *CL descriptions*: https:\u002F\u002Fgoogle.github.io\u002Feng-practices\u002Freview\u002Fdeveloper\u002Fcl-descriptions.html\n- Linux kernel, *Submitting patches*: https:\u002F\u002Fwww.kernel.org\u002Fdoc\u002Fhtml\u002Flatest\u002Fprocess\u002Fsubmitting-patches.html\n- Chris Beams, *How to Write a Git Commit Message*: https:\u002F\u002Fcbea.ms\u002Fgit-commit\u002F\n- Tim Pope, *A Note About Git Commit Messages*: https:\u002F\u002Ftbaggery.com\u002F2008\u002F04\u002F19\u002Fa-note-about-git-commit-messages.html\n- Conventional Commits 1.0: https:\u002F\u002Fwww.conventionalcommits.org\u002Fen\u002Fv1.0.0\u002F\n","# Writing pull request descriptions\n\nYou are about to create a PR. Your job is to produce a title and body that tell the reviewer **what the diff cannot**: why this change exists, what mental model they need to read it, and how you know it works.\n\n## Workflow\n\nRun these steps in order. Steps 1 and 2 can run in parallel.\n\n### 1. Discover repo conventions\nRead whichever of these exist (skip silently if missing):\n- `.github\u002FPULL_REQUEST_TEMPLATE.md` — if present, treat its sections as the skeleton\n- `CONTRIBUTING.md`, `AGENTS.md`, `CLAUDE.md` — pull any documented PR conventions\n- Last 3 merged PRs via `gh pr list --state merged --limit 3 --json title,body` — mirror the title style and length norms you see\n\nIf a `PULL_REQUEST_TEMPLATE.md` exists, use it as the structural skeleton. Don't invent a different one.\n\n### 2. Gather change context\n- `git log \u003Cbase>..HEAD --oneline` — full commit history for the branch (not just the latest commit)\n- `git diff \u003Cbase>...HEAD --stat` — scope of changes\n- Branch name — often encodes issue number (e.g. `jstegeman\u002FENG-1234-fix-x`)\n- Scan commits and branch name for issue references (`#123`, `ENG-1234`, `JIRA-5`)\n\n### 3. Draft the title\nRules in priority order:\n1. **If the repo's recent PRs follow a convention, mirror it.** Conventional Commits adoption is genuinely contested — don't impose it where it isn't already in use.\n2. **Imperative mood**: \"Add retry logic\" not \"Added retry logic\" or \"Adds retry logic\". Test: *\"If applied, this commit will _[title]_\"*.\n3. **≤ 70 characters.** Detail goes in the body.\n4. **Capitalize, no trailing period.**\n5. **Specific over generic.** \"Fix bug\" \u002F \"Update code\" \u002F \"Refactor\" are banned — they fail the standalone-skim test.\n6. If the repo uses Conventional Commits, prefix with `feat:`, `fix:`, `chore:`, `docs:`, `refactor:`, `perf:`, `test:`, `ci:`, `build:`, or `style:`. Append `!` for breaking changes.\n\n### 4. Draft the body — adaptive to PR size\n\n**Trivial PR** (typo, comment fix, one-line config tweak): one sentence stating *why* is enough. Skip headers.\n\n**Typical PR**: cover these three, in this order, no rigid headers required:\n- **Why** — the problem or motivation. What's broken, what's missing, what triggered this. The reviewer can read the diff to see *what* changed; they need you to explain *why*.\n- **What changed at a high altitude** — the mental model the reviewer needs. Not a token-level restatement of the diff. (\"Reworks the retry loop to back off exponentially\" — not \"Adds variable `delay`, multiplies by 2 in `foo()`.\")\n- **How you verified it** — tests added, manual steps run, commands executed, output observed. If you didn't test something, say so explicitly.\n\n**Large or risky PR**: add as needed:\n- **Breaking changes \u002F API surface deltas** — explicit callout if public contracts changed\n- **Out of scope \u002F follow-ups** — what you intentionally did NOT do, so reviewers don't ask\n- **Alternatives considered** — when a non-obvious design choice was made\n\n**Always include if applicable**:\n- Linked issue with auto-close keyword: `Fixes #123`, `Closes ENG-1234`. Auto-detect from branch name or commits.\n\n### 5. Self-check before output\nBefore passing to `gh pr create`, re-read your draft against this checklist:\n\n- [ ] Does the title pass the **standalone-skim test**? (Could someone scanning `git log --oneline` understand what this PR does?)\n- [ ] Does the body explain **why**, not just **what**?\n- [ ] Have I avoided **restating the diff in prose**?\n- [ ] Are any **claims I made backed by evidence** I can point to in the PR?\n- [ ] Have I cut every **hype word** (see list below)?\n- [ ] If the description is getting long, **is the PR actually too big**? (Kernel rule: long description often = wrong-sized patch.)\n\n### 6. Execute\nPass the drafted title and body to `gh pr create` per the harness's normal PR-creation flow.\n\n## Core principles\n\n1. **Why over what** (Beams rule 7; Linux kernel). Code shows what; the description must explain why. The Linux kernel: *\"Whether your patch is a one-line bug fix or 5000 lines of a new feature, there must be an underlying problem that motivated you to do this work.\"*\n\n2. **Self-contained** (Linux kernel). A reviewer or future archaeologist should understand the change from the title + body without chasing external context. Issue links are aids, not substitutes.\n\n3. **Standalone-skim test** (Google eng-practices). The title alone must let someone skimming history understand what this CL does. Banned title patterns from Google: `Fix bug`, `Fix build`, `Add patch`, `Moving code from A to B`.\n\n4. **Quantify or hedge** (Linux kernel). *\"If you claim improvements in performance, memory consumption, stack footprint, or binary size, include numbers that back them up. But also describe non-obvious costs.\"* If you don't have numbers, label the claim `(not measured)` or remove it — don't assert it confidently.\n\n5. **Long description = wrong-sized PR** (Linux kernel). *\"If your description starts to get long, that's a sign that you probably need to split up your patch.\"* If you find yourself writing four paragraphs of context, consider whether the PR should be split.\n\n## Anti-patterns — these break the skill\n\n**Restating the diff in prose.** \"Added function `processOrder` that calls `validateOrder` and then `submitOrder`.\" The reviewer can read code. Tell them the *shape* of the change, not its tokens.\n\n**Marketing \u002F hype language.** Cut these words on sight — they signal AI-generated content and add no information:\n\n> comprehensive, robust, seamlessly, leverages, leverage, ensures, enables, empowers, streamlines, elegant, clean, intuitive, powerful, sophisticated, cutting-edge, modern, optimal, best-in-class, production-ready, enterprise-grade\n\nAlso cut decorative emoji in headers, marketing-style intros (\"This PR brings exciting improvements to…\"), and self-congratulatory closes (\"This sets us up for future success.\").\n\n**Unsubstantiated claims.** \"Improves performance\" with no number. \"More reliable\" with no failure mode named. \"Better UX\" with no before\u002Fafter. Either name the evidence or rewrite the claim honestly: *\"Should reduce contention in `handleX` based on the lock-ordering change; not measured.\"*\n\n**Walls of text on tiny PRs.** A one-line typo fix does not need six headers. Match structure to scope.\n\n**Over-confident testing claims.** \"Tested\" alone is meaningless. Name *what* you tested: command run, test file touched, manual repro reproduced. If you didn't test a code path, say so.\n\n**Restating what's already in the linked issue.** Link the issue; don't copy-paste its body into the PR description. The reviewer can click.\n\n## Example: typical PR body\n\n> The retry middleware was retrying on 4xx responses, which amplified load against an already-failing dependency during the Tuesday incident.\n>\n> This narrows retries to 5xx, network errors, and explicit `Retry-After` responses. Other 4xx propagate to the caller unchanged.\n>\n> Verified by adding `retry_middleware_test.py::test_no_retry_on_4xx` and re-running the failure-mode replay in `scripts\u002Freplay.py` against the recorded incident traffic — request count drops from 6.2× to 1.0× as expected.\n>\n> Fixes ENG-4421.\n\nNotice: no headers, no hype, one number where a number exists, evidence named, issue linked. ~90 words. The diff fills in the rest.\n\n## Primary sources\n\n- Google eng-practices, *CL descriptions*: https:\u002F\u002Fgoogle.github.io\u002Feng-practices\u002Freview\u002Fdeveloper\u002Fcl-descriptions.html\n- Linux kernel, *Submitting patches*: https:\u002F\u002Fwww.kernel.org\u002Fdoc\u002Fhtml\u002Flatest\u002Fprocess\u002Fsubmitting-patches.html\n- Chris Beams, *How to Write a Git Commit Message*: https:\u002F\u002Fcbea.ms\u002Fgit-commit\u002F\n- Tim Pope, *A Note About Git Commit Messages*: https:\u002F\u002Ftbaggery.com\u002F2008\u002F04\u002F19\u002Fa-note-about-git-commit-messages.html\n- Conventional Commits 1.0: https:\u002F\u002Fwww.conventionalcommits.org\u002Fen\u002Fv1.0.0\u002F\n",{"name":5,"license":15,"metadata":44,"description":7},{"author":9,"version":45},"1.0","main","e33b09c72c139e12a2a8cd1a92348b5ecb6edbc9","skills\u002Fcreate-pr","https:\u002F\u002Fgithub.com\u002Fjohnstegeman\u002Fai-skills","https:\u002F\u002Fgithub.com\u002Fjohnstegeman","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fjohnstegeman\u002F","2026-05-21 03:26:07",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add johnstegeman\u002Fai-skills --skill create-pr",{"tool":59,"command":60},"bunx","bunx skills add johnstegeman\u002Fai-skills --skill create-pr",{"tool":62,"command":63},"pnpm","pnpm dlx skills add johnstegeman\u002Fai-skills --skill create-pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjohnstegeman\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcreate-pr\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"commands\u002Fcreate-pr.md","REFERENCE","参考文档",1049,"https:\u002F\u002Fgithub.com\u002Fjohnstegeman\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcreate-pr\u002Fcommands\u002Fcreate-pr.md",[74,98],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M6JB1W7TAVFNPCPJD7QCHRDG","jujutsu","Use this skill for any version control operations (commit, log, diff, push, fetch, bookmark, workspace, rebase, undo, etc.). If a `.jj` directory exists, the repo is jujutsu and git mutations will corrupt it — use `jj` for all mutations; read-only `git log\u002Fdiff\u002Fshow\u002Fblame\u002Fgrep` are allowed. Covers co-located repos, multi-agent parallel workspaces, and operation-log recovery. **DO NOT IGNORE**","https:\u002F\u002Fgithub.com\u002Fjohnstegeman\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fjujutsu\u002FSKILL.md",[],[76,81,82,83,84,85,86,87,29,88,89,90,91,92,93,94,95,96,36,97],"jj","co","do","show","workspaces","log","only","fetch","read","parallel","multi-agent","rebase","Bash","push","git","repos","directory",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M6JB1P8CJW9EAJ0S2QFB63C0","template-skill","Use this as the template for new SKILL.md files","https:\u002F\u002Fgithub.com\u002Fjohnstegeman\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002F_template-skill\u002FSKILL.md",[],[105,106,30,23,107,108,109],"template","template skill","as","new skill","files"]