Omniscio

OmniscioSkills examplesPR description

A Claude Code PR description skill you can copy

One complete SKILL.md for the moment before review, when the branch works but the description is three words long. What a skill is and how the folder mechanism works is the skills guide; the file, its fields and what breaks it are below.

Checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

When this skill fires

This skill is manual-only: disable-model-invocation: true removes Claude's own route to it, which Anthropic recommends for a workflow with a side effect or a timing you control. You start it when the branch is ready, not when Claude thinks it is.

  • Directly with /pr-description, optionally followed by a note such as /pr-description #4821, which the skill receives as text.
  • Not on its own. Asking "write a PR description" will not load it. That is deliberate: a pull request is a thing other people read, so you get to decide when one is drafted.

The whole skill, ready to copy

Save this as SKILL.md inside a folder named pr-description. The three dashes must be the file's first line, with no blank line above them. If your default branch is not main, change all three origin/main occurrences — the two injected commands and the sentence below them — before you save.

---
name: pr-description
description: Writes a pull request description from the branch's real commits and diff, with what changed, how to test it and what could break.
disable-model-invocation: true
allowed-tools: Read Grep Glob Bash(git log *) Bash(git diff *)
---

## The branch

!`git log --oneline origin/main..HEAD`
!`git diff --stat origin/main...HEAD`

## Write the description

The base is origin/main. Read the commit list and the file stat above, then open the files with the largest changes before writing a word. The commits say what the author did; the files say what actually changed.

Produce these sections, in this order:

1. Summary: two sentences on what this branch does and why it exists.
2. What changed: one line per area, grouped by the part of the system it touches, not one line per commit.
3. How to test: the exact commands, taken from the repository's own config such as package.json or a CI workflow, and what a reviewer should see when they work. If you cannot find them, say so instead of guessing.
4. Risk: what could break, who is affected, and how to roll back.
5. Reviewer notes: the part you are least sure about, named plainly, plus the files a reviewer should read first.

Rules:

- Only claim a test passed if its output is in this conversation. Otherwise write "Not run".
- Never invent a test command, an issue number, a link, a screenshot or a benchmark.
- Keep the whole body under 400 words. A description nobody finishes is a description nobody reads.

Show the description in Markdown. Do not push, and do not run `gh pr create`: the user posts it.

What each part does

Every field is optional, and only description is recommended. A field name must match the documentation exactly: Claude Code ignores an unrecognised one without reporting an error, so a typo here fails silently.

The four frontmatter fields in this file, and what each one changes.
FieldWhat it does here
name: pr-descriptionThe command shown in the / menu. Without it, the folder name becomes the command
descriptionWhat the skill does and when to use it. With model invocation off it is not used for matching, but it is what the /skills list and a teammate read, so it still has to be honest
disable-model-invocation: trueRemoves Claude's own route to the skill, so a description is drafted only when you ask. Anthropic recommends this for workflows with a side effect or a timing you want to control, and a pull request is both
allowed-tools: Read Grep Glob Bash(git log *) Bash(git diff *)Pre-approves reading and the two injected git commands for the turn the skill runs, so an ordinary permission check does not abort the injection — a deny or an ask rule that names them still does. It clears on your next message and restricts nothing else
  • The two injected lines run before Claude sees the file, and their output replaces them. The description is therefore written against the branch as it is now, not against what Claude remembers of it.
  • Grouping by area rather than by commit is the difference between a description a reviewer can read and a copy of the commit log, which the reviewer can already see.
  • "Only claim a test passed" is the rule that keeps a generated description from inventing a test run. A reviewer who reads "tests pass" and finds they do not stops trusting every later description.
  • "Do not push and do not run gh pr create" keeps the side effect yours. If you want the skill to open the pull request, that is a separate decision, made after you have read the body.

Where to put it: personal or project

The same file, two locations, two audiences.
ChoosePathWho gets it
Personal~/.claude/skills/pr-description/SKILL.mdYou, in every project on this machine, but not Cowork or cloud sessions
Project.claude/skills/pr-description/SKILL.mdEveryone in this repository once it is committed, which is usually what a team wants for its review template

If both exist, personal wins: enterprise beats personal and personal beats project. A repository that has its own review conventions therefore needs the project copy to be the only one, or a home-folder copy will quietly replace it.

Claude Code watches both directories and takes an added or edited skill within the session, except in bare mode; /reload-skills loads one that does not appear.

How to confirm it loads

  1. Find the command. Type / and look for pr-description, or open /skills, which lists what you can run. The / menu is the reliable check here: with model invocation off the skill is not offered to Claude, but you can still run it.
  2. Read the answer. If the command appears but the skill is loaded from the wrong folder, the "Where to put it" section above tells you which copy wins.
  3. Run it on a real branch. /pr-description should print your commits against origin/main and a file stat, then a five-section draft.
  4. Read the draft, do not post it. The proof that the skill works is a body you would be happy to publish, not a pull request you had to close.

/skill-doctor reports what each skill costs and how often it is used, which is the quickest way to notice a skill that is loaded but never run.

The common failure

The usual break is the base branch, not the writing. Both injected lines name origin/main, and a failed injected command aborts the entire invocation: Claude never sees the instructions, and the error reads Shell command failed for pattern "..." with the command's own output.

  • A repository whose default branch is master. origin/main does not resolve and the skill refuses to run before Claude reads a word, so the arguments cannot rescue it. Edit all three to origin/master.
  • A repository with no remote, or one that has never fetched. origin/main is a remote-tracking ref, so a repository created locally, or a clone whose remote refs were never fetched, has nothing to compare against. Run git fetch, or change the lines to HEAD~10..HEAD.
  • A permission rule that asks. Injected commands cannot answer a prompt while the skill renders. Outside auto mode, an ask rule that would have prompted aborts the invocation even with allowed-tools listed, and a deny rule aborts in every mode; that is why the two git commands are pre-approved.
  • No bash on the machine. The injected lines run through the Bash tool, and on Windows without Git Bash Claude Code falls back to the PowerShell tool, where the Bash(git …) grant does not match. A frontmatter shell: bash is the one setting that still fails before any command runs. Either way, delete the two lines and paste the commit log and file stat in yourself.
  • "It never runs by itself." That is the frontmatter, not a bug: disable-model-invocation: true. Remove that line if you want Claude to offer a draft, and keep the rule that it never posts.

Where this fits

This page writes the description; it does not review the pull request. For that side: the Claude Code code review guide covers the built-in review routes, REVIEW.md tunes the GitHub reviewer, and the PR review Action reviews pull requests in CI.

The step before this one has its own copyable skill in the commit message writer, and release notes are next in the release notes writer. The rest of the library is at the skills examples hub.

Where these answers come from

  • Extend Claude with skills, read November 25, 2026: the folder and file, the frontmatter fields used here, invocation control, allowed-tools, dynamic context and its permission checks, where skills load and live change detection.
  • Control who invokes a skill: the field this file sets, and the guidance to use it for side effects and timing.
  • The changelog: release 2.1.332, dated November 25, 2026, the newest listed on the day this page was checked.

Common questions

Why can Claude not run this one on its own?

Because the output is other people's first impression of the branch, and because the next step after a description is usually a push. Anthropic recommends disable-model-invocation: true for exactly that shape of workflow.

What if my default branch is not main?

Edit the two injected lines to your base. They are ordinary shell commands, so origin/master or origin/develop work the same way. The one thing you cannot do is pass it as an argument: a failing injected command aborts the skill before it reads the arguments.

Can it include the linked issue?

Yes, if you give it one. The body is told never to invent an issue number, so type it after the command: /pr-description #4821. With no placeholder in the file, Claude Code appends what you typed to the skill content as ARGUMENTS:.

Does it write the pull request title too?

No. The file asks for a body only, because the title belongs to whoever opens the request and a title generated from a commit subject is usually worse than one written by hand.