file-pr: lead with the problem, not the diff
The agent opens PRs whose title says why the change matters and whose description starts with the user's problem in plain words.
Reported by @juliandierker · Verified 2026-11-22
- Agent
- Claude Code, Codex
- Stack
- Any
Problem
Agent-written PRs read like a changelog of deleted functions. The reviewer has to reverse the diff to find out what was wrong in the first place.
Setup
cp -R tstack/skills/{file-pr,leaving-pr-comments} ~/.claude/skills/file a PRThe skill checks for an existing PR, reviews the diff against the base branch, and copies the repo's title conventions. Its own examples show the difference:
Bad title: perf(server): negotiate permessage-deflate on the websocket
Good title: perf(server): cut websocket frame size by 70%+ with gzipping
Good description:
My "new worktree" default was ignored when starting new threads on existing
worktrees. Super unintuitive. Now your preferences always apply.It ends the description with the model and harness that wrote the change, and opens a real PR, not a draft, so review bots run.
What happened
Titles become commit messages, so the history reads as reasons, not mechanics.
The skill also checks title, description and attachments for secrets before it
submits, and falls back to the REST API when gh pr create hits the GraphQL
rate limit.
Sources: file-pr SKILL.md.
Reproduce
Copy the skill and log in with
gh.Make a small fix on a branch and say "file a PR".
Check that the first sentence of the description names the problem.