What you get
1Brief
One paragraph, in plain words. What the system does differently now, and the effect. No file names.
2Change map
One Input → Functions → Output diagram for each flow, drawn by the tool in a theme. Added, modified, removed and risky code are easy to tell apart.
3Review guide
What changed, a ranked table of the files that carry logic and risk, and where to start reading.
The PR title is never touched. Only the description changes. See the four themes or read why the rules are fixed.
Install
Requirements
pr-brief calls two other pieces of software. Installing pr-brief from the gago-plugins marketplace installs both, because it declares them as dependencies. If one is missing anyway, the skill stops and prints the command. It never switches style on its own.
| Needs | Install | Required by style |
|---|---|---|
unmistakable (a plugin: the ASD-STE100 writing rules, as the skill unmistakable:asd-ste100) | /plugin marketplace add gagoar/gago-plugins, then /plugin install unmistakable@gago-plugins | ste, ste+iceberg (the default) |
greenhorn (a plugin: the cold-reader check, /greenhorn:test, for the Brief and the What-changed bullets) | /plugin marketplace add gagoar/gago-plugins, then /plugin install greenhorn@gago-plugins | every style |
| iceberg (a plugin) | /plugin marketplace add gagoar/gago-plugins, then /plugin install iceberg@gago-plugins | iceberg, ste+iceberg (the default) |
To need only one, change the style: /pr-brief config style iceberg needs only iceberg, and ste needs only unmistakable. The CI check and the CLI need neither.
The plugin
# from the gago-plugins marketplace /plugin marketplace add gagoar/gago-plugins /plugin install pr-brief@gago-plugins # or straight from the repo /plugin marketplace add gagoar/pr-brief /plugin install pr-brief@pr-brief # then, on any branch /pr-brief
Run /pr-brief improve 123 to rewrite an existing PR. It saves the old description first and asks before it writes. Add quiet (/pr-brief quiet) to keep the Brief visible and fold the rest under it.
Optional: block a bad description on your machine
Short version: run /pr-brief hook, or see Turn on the hook for the command, Windows notes and updating.
The plugin runs the gate when you run /pr-brief, and CI runs it on every PR. A hand-typed gh pr create is not blocked on your machine unless you turn the hook on. The plugin cannot ship it for you, because the plugin directory refuses a command hook declared by a plugin. You turn it on once, yourself.
# inside a Claude Code session, where the plugin is installed ! pr-brief hook install --scope user # then restart the session
Run it inside a Claude Code session. The plugin puts its bin/ folder on the shell path of the session, so pr-brief resolves there. In a plain terminal it is not on your PATH: use the full path of the launcher, ~/.claude/plugins/cache/<marketplace>/pr-brief/<version>/bin/pr-brief, or put a binary from the releases page on your PATH. --scope user covers every repository. --scope repo, run inside a repository, writes .claude/settings.json there. The hook finds the newest installed version when it runs, so a plugin update needs no change. An entry from an older install names one version: pr-brief hook check says whether it is out of date. pr-brief hook remove takes it out.
Check descriptions in CI
Codex and other agent tools
The skill follows the open Agent Skills format, so tools other than Claude Code can load it. pr-brief has been run on Claude Code and on Codex. Codex reads this repo’s existing plugin files. Other tools that read .agents/skills/ (Gemini CLI, Cursor, GitHub Copilot, opencode) should find it, but they are untested. Install the skill with npx skills add, or copy plugin/skills/pr-brief to ~/.agents/skills/pr-brief. The skill carries its own launcher and downloads the binary on first use.
# Codex codex plugin marketplace add gagoar/pr-brief codex plugin add pr-brief@pr-brief # any tool that reads .agents/skills npx skills add gagoar/pr-brief --skill pr-brief
On Codex, install the style skills yourself, because plugin dependencies are a Claude Code feature: codex plugin marketplace add gagoar/gago-plugins, then codex plugin add iceberg@gago-plugins and codex plugin add greenhorn@gago-plugins. For unmistakable, use its own marketplace: codex plugin marketplace add gagoar/unmistakable, then codex plugin add unmistakable@unmistakable. If a style skill is missing, pr-brief stops and names it.
Run /pr-brief improve 123 to rewrite an existing PR. It saves the old description first and asks before it writes. Add quiet (/pr-brief quiet) to keep the Brief visible and fold the rest under it.
Check descriptions in CI
The same checks run as a GitHub Action. It reads the PR description from the event payload and needs no secret and no personal access token. Run /pr-brief ci to set it up for GitHub or Azure DevOps: it asks where you work and where the settings live, then writes the file. From a shell: pr-brief init --workflow (add --host azure-devops, or --config inline to keep the style and theme in the workflow). The gate is fixed code with no AI. On GitHub, --rewrite --auth <mode> adds an optional job that lets the Claude Code GitHub Action write the description, with the sign-in method your team picks. How the gate works.
name: pr-brief on: pull_request: types: [opened, edited, synchronize, reopened, ready_for_review] permissions: { contents: read } jobs: description: if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: # the BASE commit: a PR cannot edit the rules that check it - uses: actions/checkout@v7 with: { ref: ${{ github.event.pull_request.base.sha }} } - uses: gagoar/pr-brief@v0
Drafts are skipped. Bot-authored PRs are skipped. Details: the gate.
Why you can trust it
- It runs on your machine. The optional hook (you install it with
pr-brief hook install) reads each Bash and PR-tool call locally, never runs the text it reads, and makes no network calls. - One Go program, no third-party code. It runs as a prebuilt binary, so you install no runtime. The release workflow builds the binaries, attests them and publishes them; the repository holds none. The plugin downloads the one for your machine on first use and checks it against the release checksums.
- Releases carry checksums and a provenance record.
- It says what it cannot do. See the limits.
