{"data":{"slug":"discovered-cd107546f5bfa6a5afc5827d70605c847f4c6f5cc8a6eb8e","title":"Rjv Pr Descriptions","summary":"Write or update GitHub PR and GitLab MR descriptions for the tester, with two sections: 'Test in the UI' and 'Needs code or environment setup', grounded steps, evidence, honest ticks, hard caps, and preserving checked boxes and author content.","url":"https:\/\/skillshunter.net\/skills\/discovered-cd107546f5bfa6a5afc5827d70605c847f4c6f5cc8a6eb8e","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-cd107546f5bfa6a5afc5827d70605c847f4c6f5cc8a6eb8e","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-cd107546f5bfa6a5afc5827d70605c847f4c6f5cc8a6eb8e.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-cd107546f5bfa6a5afc5827d70605c847f4c6f5cc8a6eb8e\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the body has exactly two sections: 'Test in the UI' and 'Needs code or environment setup', in that order. Each section must have at least one item, even if it is 'None.' when empty. Use 3 sentences per item, 4 checkboxes per item, and include 1 screenshot per journey or 1 output block per check. The total number of items across both sections must not exceed 5, and the entire body must be under 120 lines, including images.","instructions":"---\nname: rjv-pr-descriptions\ndescription: \"How-to: write, generate, update or fix a GitHub PR or GitLab MR description for the tester. Splits the body into Test in the UI and Needs code or environment setup, with grounded steps, evidence (using rjv-github-image-upload and rjv-replica-screenshot), honest ticks and hard caps; preserves checked checkboxes and author content on update.\"\n---\n\n# PR Descriptions\n\nTwo people read this: a reviewer deciding if the change is right, and a\ntester deciding what to check. Write for the tester and the reviewer is\nserved too. In client product work the tester clicks through the product and does\nnot read code.\n\nTreat length as a defect. An invented test step is worse than no test\nstep: it sends a human to check something that does not exist.\n\n## Shape\n\nThe body always has these two sections, in this order, both present:\n\n1. **Test in the UI**: what a tester can check by clicking through the\n   running product, with no code, console, database or config change.\n2. **Needs code or environment setup**: what can only be checked by\n   changing config, an env var or a flag, seeding data, running tinker or a\n   command, calling an API directly, or reading logs or the database.\n\nWhen a section has nothing, it holds one line: `None.` Never drop a heading.\nThe tester must see at a glance which part they can do alone.\n\nEach section is a list of items. An item is one test sitting: one actor, one\npath, from where they start to something they can see or read.\n\n- In the UI section an item is a journey: `J1`, `J2`, ...\n- In the setup section an item is a check: `S1`, `S2`, ...\n\nGroup by what a person would sit down and test as one sitting. Never by\nfile, never by commit, never by layer.\n\nA check's first line says what happens today, its second what happens after.\nThen the setup, then the command or call and the output that proves it.\n\n## The rule up top\n\nWhen a single requirement, regulation, or constraint generates every item\nin the PR, state it before the first section. Under five lines.\n\nNo rule to state, start at the first section. Never write Overview, Summary,\nor Background.\n\n## Budget\n\nHard caps. If the draft exceeds one, cut until it fits.\n\n- 3 sentences of prose per item.\n- 4 checkboxes per item. Ticked boxes kept from an earlier version do not\n  count against this cap.\n- 1 screenshot per journey; 1 output block per check.\n- 5 items in total across both sections, and past 3 you need the rule up top.\n- Whole body under 120 lines, images counted.\n\nAnything that does not change what a user or a caller observes (refactors,\nrenames, dependency bumps, test-only files, config, formatting) gets **zero**\nitems. Collect them in one closing line: `Also: <thing>, <thing>.`\n\n## Ticking\n\nTick `- [x]` for every step you performed and observed yourself. Leave\n`- [ ]` for every step you did not run.\n\nNever tick a step you did not perform. The ticks are the reason a tester\ntrusts the rest of the body; one false tick and none of it counts.\n\nA body that ships all unticked says nobody has run this. That is a legitimate\nstate. Leave the boxes empty and say in one line that nothing was run.\n\n## Evidence\n\n**Journeys get a screenshot**, immediately under the checkboxes, captioned\nwith the journey label. Take it with your browser-automation tool\n(`agent-browser screenshot` against the running app; the project's docs\ngive the local login), or use one the user provides. When the real screen\nwill not render locally, follow `rjv-replica-screenshot`; it owns the\nhonesty rules and the label for a replica.\n\n**Open every screenshot for the user** with `open -a Preview <absolute path>`\nas soon as you take it, and say so. An image you only read yourself is one\nthe user never saw.\n\nThen pass the absolute path to `rjv-github-image-upload` and take only the\nmarkdown line it prints. Paste that line under the journey's checkboxes, as\nin the format below; this skill owns where images sit in the body.\n\n**Checks get the output that proves them**: the command or API call, and the\nfew lines of its output that show the result, in a code block. No\nscreenshot needed. Never paste secrets, tokens or customer data.\n\n## Notes for QA\n\nA closing section, only for known gaps a tester would otherwise raise as a\nbug. Each line names the gap and why it stands.\n\nNothing to declare, no section. Never use it for a summary or for future\nwork.\n\n## Grounding\n\nEvery line traces to the diff. Before writing a line, name the file and hunk\nit came from. If you cannot name one, delete the line.\n\nNever write:\n\n- A UI label, route, button, field, flag, error message, env var, command or\n  endpoint whose literal text you have not seen in the diff or in a file you\n  opened.\n- An edge case the diff does not handle. No branch, no guard, no new test\n  for it means it is not a case in this PR.\n- \"Confirm nothing else broke\", \"check for regressions\", \"verify existing\n  behaviour still works\". Not testable, not grounded.\n- Hedges: should, might, presumably, likely, ensure, various.\n\nIf you cannot tell what the user actually sees, open the caller and the\ntemplate. Do not infer a screen from a function name.\n\n## Voice\n\nPlain English. Short sentences. One idea per line. Write from the tester's\nview: what they do, then what they see. Hard-wrap the source at 72\ncharacters so diffs stay readable.\n\nDo not write:\n\n- \"X, not Y\" or \"not just X \u2014 it's Y\" constructions.\n- Counts that promise structure: \"three things\", \"two problems here\".\n  State the things.\n- CAPS or bold for emphasis. If it matters, it goes in the first sentence.\n- Metaphors, em-dash asides, filler adjectives (simple, robust, seamless,\n  comprehensive, significant, various).\n- Process narration: \"I checked\", \"after investigating\", \"it turns out\".\n  Describe the code and what it does.\n- Drama: \"this was badly broken\", \"worse than it looks\". State the fact flat.\n\n## Format\n\n```\n<the rule up top, if there is one \u2014 under five lines>\n\n## Test in the UI\n\n### J1 \u2014 <Actor> <does the thing>\n\n<What the tester does and sees on this path.>\n\n- [x] <Action verb: Open \/ Create \/ Submit \/ Uncheck\u2026>\n- [x] Confirm <observable outcome>.\n\n![J1](https:\/\/github.com\/user-attachments\/assets\/\u2026)\n\n## Needs code or environment setup\n\n### S1 \u2014 <Actor or caller> <does the thing>\n\nToday: <what happens now>\nAfter: <what happens with this PR>\nSetup: <env var, flag, seed, tinker line, or config, exactly as in the diff>\n\n- [ ] Run <command or call>.\n- [ ] Confirm <the output line that proves it>.\n\n    <the few output lines that prove it>\n\n## Notes for QA\n\n- <known gap, and why it stands>\n\nAlso: <everything not user-visible, one line>\n```\n\nWhen a section is empty:\n\n```\n## Needs code or environment setup\n\nNone.\n```\n\nRules:\n\n- Item headings name the actor and what they do. Plain English about\n  behaviour. No code, no class names, no implementation.\n- Action steps start with a verb. Check steps start with \"Confirm\".\n- Happy path first. One edge case only if the diff explicitly handles it.\n- If a path needs setup only to get started and is then clicked through,\n  it belongs in the setup section, with the setup named first.\n- End the body at its last item or the `Also:` line. Add no AI signature,\n  attribution, or generator footer (`Generated by Claude`, `Generated by\n  Codex`, `Co-Authored-By`, a Claude session link, model names, badges, or\n  equivalents) unless the human explicitly asks for it.\n\n## Workflow\n\n### Writing a new description\n\n1. Read the actual diff: `gh pr diff <number>`. For context (title, commits,\n   existing body): `gh pr view <number> --json title,commits,body`.\n2. Split the diff into user-visible behaviour and everything else.\n3. Sort the user-visible behaviour: testable in the UI alone, or needing\n   code or environment setup.\n4. Work out what rule or requirement drives the change. If one does, that is\n   the rule up top.\n5. Group each side into items, at most 5 in total.\n6. Walk each journey in the running app, screenshot it, open the screenshot\n   in Preview, tick what you saw. Run each check you can, and paste its\n   output.\n7. Write the sections. Run the self-check below.\n8. Post: `gh pr edit <number> --body-file -` (pipe the body in; inline\n   `--body` breaks on multi-line and special characters). On GitLab,\n   `glab mr update <number> --description \"$(cat body.md)\"`.\n\n### Self-check before posting\n\nAnswer each. Any \"no\" means fix it and re-check.\n\n1. Are both section headings present, with `None.` under an empty one?\n2. Is every UI journey doable with no code, console, database or config?\n3. Can you point at the hunk behind every sentence and every checkbox?\n4. Is every ticked box a step you actually performed?\n5. Does every checkbox name something a person can click, run, or read, and\n   then observe a result?\n6. Is it inside every cap above?\n7. Does every line tell the reviewer something the PR title did not?\n\n### Updating an existing description\n\n1. Fetch the current body first: `gh pr view <number> --json body`.\n2. Preserve all `- [x]` checked checkboxes. Never uncheck or remove them.\n   Move them into the right section if the body predates the two-section\n   shape.\n3. Preserve any content the author or a reviewer added by hand.\n4. Preserve existing screenshots and their item labels.\n5. Merge in new changes. Prefer editing an existing item over adding\n   another one; the caps apply to the merged result too.\n6. Only replace content you generated in a prior run.\n7. Remove AI-attribution text left by a prior agent run; it counts as\n   generated content. Leave deliberate human attribution alone.\n8. Post the merged result back.\n\n## Loading this skill\n\n`hooks\/pr-body-hook.sh` is a PreToolUse hook. When a command creates or\nedits a PR or MR, it reminds the agent to load this skill first.\n\n- Claude Code: `settings.json`, `hooks.PreToolUse`, matcher `Bash`.\n- Codex: `config.toml`, `[[hooks.PreToolUse]]`, matcher `.*`, since Codex\n  wraps shell commands in its own exec tool. Codex runs a new hook only\n  after the user trusts it.\n","use_cases":["Writing a GitHub PR description for a feature update","Updating a GitLab MR description with test steps and setup requirements","Ensuring PR descriptions follow a consistent format with hard caps and evidence"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/rjvim\/ai-skills\/blob\/9a942086adef21dbd0c061d9d9e8fd5f43328bf6\/skills\/rjv-pr-descriptions\/SKILL.md","source_commit":"9a942086adef21dbd0c061d9d9e8fd5f43328bf6","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:09:56.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"How to Write or Update GitHub PR and GitLab MR Descriptions","seo_description":"Learn how to write or update GitHub PR and GitLab MR descriptions with structured sections, grounded steps, evidence, and hard caps for clarity and usability.","seo_keywords":["GitHub PR description","GitLab MR description","PR description format","Test in the UI","Needs code setup","PR description guidelines"]}}