/flagrare:open-prfrom Flagrare
Opens a pull request that follows repo conventions: reads the PR template, writes a contextualized narrative description (not file-by-file enumeration), links tracker tickets, and adds testing notes.
Ships in Flagrare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a pull request that reads like a human wrote it.
The goal is a PR description that a reviewer can scan in 30 seconds and understand: what changed, why, and how to verify it works. No file-by-file enumerations. No bullet-point dumps of every touched line. Context and narrative, and short: about 150 words for a small PR, 300 for a large one (the length gate in Step 4 enforces it). When a person can see the change, the body shows it: one before/after image.
REQUIRED BACKGROUND: Invoke /flagrare:write-docs before writing the PR body. A PR description is a tiny how-to/explanation doc, and the same craft applies: lead with the reader's situation, let prose carry causality, put context at the point of need. This skill owns the PR mechanics and the repo's conventions; write-docs owns making the prose readable. The "Writing style" section below applies that craft specifically to PRs, read both.
Gather the raw material:
git log --oneline $(git merge-base HEAD main)..HEAD
git diff --stat $(git merge-base HEAD main)..HEAD
git diff $(git merge-base HEAD main)..HEAD
Also check the branch name for a ticket key (e.g., SKU-478/fix-menu-disabled).
A template tells you the sections; recently merged PRs tell you the structural conventions the template can't encode, the title prefix format, which section headings the team uses, how they link tickets and designs, what labels they apply. Read both for that skeleton only.
# The template (the section contract, follow it exactly)
cat .github/PULL_REQUEST_TEMPLATE.md 2>/dev/null \
|| cat .github/pull_request_template.md 2>/dev/null \
|| ls .github/PULL_REQUEST_TEMPLATE/ 2>/dev/null
# The lived convention: how this team actually writes PRs
gh pr list --state merged --limit 5 --json number,title,body 2>/dev/null
Borrow the team's skeleton: section names, title format, ticket-linking convention, labels. Match those exactly.
Do NOT imitate their level of detail, and do NOT copy enumeration. This is the trap that produces bad PR descriptions. Most teams' merged PRs are file-by-file changelogs, a ## Changes section with a bullet per file, per function, or per internal symbol (Added getFooHelper, Migration 0011, service now returns shipId). That is exactly the style to avoid. The existing PRs being enumerated does not make enumeration the house style you should match, it makes it the habit this skill exists to break. Take the section headings from the recent PRs and fill them with context-first prose per Step 4, no matter how enumerated the existing PRs are.
If no template exists, use a minimal structure (title, description, testing notes) with the section headings the recent PRs use. Follow the template's section contract exactly; just never inherit its enumeration.
If a ticket key was found (branch name, commit messages, or user-provided):
/flagrare:intake Step 0.If a design link (Figma, etc.) appears in the ticket, note it in the PR for visual reference.
The hard rule, before anything else: the description explains what changed, why, and how to verify it, in prose. It is never a list of files, functions, migrations, or internal symbols, the diff already shows those. If you find yourself writing "added X helper, updated Y service, changed Z schema", stop: that is the diff talking, not you. If you cannot describe the change without listing the files it touched, you do not yet understand it well enough to write the PR, go back to the diff and find the one or two sentences that explain what it actually does for someone.
Length is a gate, not a guideline. Count the prose only (not image tags or link URLs): about 150 words for a small or single-purpose PR, about 300 for a large one. One or two sentences per template section is normal. Write the short version first; writing long and trimming leaves the long version's shape behind. The usual overruns are a testing paragraph that lists every id, value and command; a code paragraph that re-argues decisions nobody asked about; and restating the ticket. The ticket and the diff carry the detail, so link them. Field-tested the hard way: an admin-service PR went out at 471 words for a two-field form change and the user had to ask for it to be cut. The same correction had already come up twice on earlier PRs.
Show before and after for anything a person can see. When the PR changes something visible (a page, a dialog, an email, a report, CLI output), the body includes one image with the old state above the new one, captured from dev or local, never production customer data. Crop each half to the part that changed and label the halves. If no "before" can be captured, say so and show the "after". Backend-only changes skip this unless an observable output (a response, a log line) makes the change obvious faster than prose. Upload images through GitHub before the PR exists: drop the file into the comment box of any open PR or issue in the same repo, copy the user-attachments URL it produces, clear the box without posting, and embed it near its real size (<img width="780" alt="..." src="..."> fits GitHub's PR column). The new PR has no comment box until it is created, so "upload to the PR, then edit the body" means reviewers get notified about a PR with no image. If the upload can't happen yet (the browser needs a sign-in, say), stop and ask the user before creating the PR. Field-tested the hard way: a partner-frontend PR went out with a placeholder where the image belonged, reviewers already requested, because the browser was waiting on single sign-on.
Look at every image before it ships, then again on the PR. Open the file you are about to upload and check it the way a reviewer will: every label and field is readable, nothing is cut off at any edge, both halves are at the same scale, and there is no wide empty margin that shrinks the content when GitHub scales it down. Then, after gh pr create or gh pr edit, open the PR page, scroll to the image and take a screenshot. If any text is too small to read at the embedded width, rebuild the image and re-upload it. Crops fail silently: macOS sips -c crops around the center, not the top-left corner, so a crop meant to trim the right margin cut off the left side of the form instead. Field-tested the hard way: an admin-service PR shipped a before/after image with its left edge missing and then, once fixed, so much empty space that the form labels were unreadable. Both times the user caught it, not the author.
Fill the template section by section, applying the write-docs craft from the REQUIRED BACKGROUND above. For each section, the principle is the same: write like you're explaining this to a teammate over coffee, not generating a report. Lead each section with what the reader needs to know, let a sentence carry the because, and only use a bullet list when the items are genuinely parallel (a list of independent fixes in one PR, say) rather than a single decision sliced into fragments.
Anchor to behavior, not coordinates. Describe what the code now does and why, never where the lines moved. "Line 47", "renamed the variable on line 83", "updated the import block" are all stale the moment you push another commit, and they make the reviewer hunt. The diff already shows the where; your job is the what and why. Likewise, don't transcribe the diff into prose, if a reviewer can get it from the diff, leave it to the diff.
Title: Short, imperative. Under 70 characters. Prefixed with ticket key if the repo convention does that.
Description sections:
What changed (product perspective): One paragraph. What does the user/partner/admin experience differently after this merges? Not "changed line 47 of MenuSelector" but "newly created menus now appear active in the selector instead of incorrectly showing as disabled." When a bet exists for this work (run python3 <plugin root>/lib/career/measurements.py show --home "$HOME", the plugin root being two directories above this skill's base directory, and match work.link to this PR's ticket or TDD), end the paragraph with one sentence on how we'll know it worked: the number it should move, from what, and when it gets checked. With no bet, leave it out; never invent a number.
What changed (code perspective): One or two sentences on the approach and the key decision, not a list of changes. Name the shape of the solution, not the files: "Switched the disabled-state derivation from published to enabled, since published is ClassPass-controlled and shouldn't affect partner-facing status." If a structural decision deserves a reviewer's attention (a new pattern, a tricky trade-off), say it in a sentence. Resist the urge to inventory the changeset; the reviewer reads the diff for that.
Testing: What you did to convince yourself it works, the kind of verification, not a scoreboard. "Created a new menu in the dashboard and confirmed it shows as active and selectable; checked that an existing ClassPass-disabled menu still greys out. Added tests covering the enabled-vs-published split." Name the behaviors you exercised and any manual/browser check. Do not include test counts, coverage percentages, or "N tests passing": those numbers rot on the next commit, nobody reads them, and CI already reports them.
Checklist items: Check off what applies, leave unchecked what doesn't. Don't delete template items (reviewers use them as a reference).
Before gh pr create or gh pr edit, run wc -w on the body file and cut if it is over the Step 4 cap. If the change is visible, check that the body already holds the uploaded before/after image URL (not a placeholder) and that you have looked at the image. No URL yet means no gh pr create. After the PR exists, open it and confirm the image renders legibly (Step 4).
git push -u origin HEAD
gh pr create --title "<title>" --body "$(cat <<'EOF'
<filled template>
EOF
)"
If the branch already has a remote and a PR exists, update it instead:
gh pr edit <number> --body "$(cat <<'EOF'
<filled template>
EOF
)"
Right after gh pr create succeeds, move every ticket the PR is for to the in_review stage, following <plugin root>/lib/tickets/LIFECYCLE.md (the plugin root is two directories above this skill's base directory). Draft PRs count: the code is up for people to see. Don't ask; the PR opening is the event. The file covers the mapping (some boards have no review status) and the guard rails (own tickets only, forward only, a teammate's later status wins).
On the gh pr edit path the PR already existed, so only check the status: if it is behind in_review, move it and say so in one line.
Show the user the PR URL, the ticket next to its status (SKU-123: In Progress → Needs Code Review), and a brief summary of what was submitted. Don't reprint the entire body.
These principles make the difference between a PR that gets reviewed in 5 minutes and one that sits for days:
A before/after, since the example is what the model imitates:
❌ Enumerated, stale, contextless: "Updated MenuSelector.tsx. Changed line 47 disabled logic. Renamed
pubtoenabledon line 83. Updated PropTypes. Ran 398 tests, all passing. Added 4 tests. Coverage 91% → 92%."✅ Context-first prose: "Newly created menus were showing as disabled in the selector even though they were active. The selector was deriving its disabled state from
published, which ClassPass controls, so a partner's brand-new menu looked unusable until ClassPass flipped a flag. This switches the derivation toenabled, the partner-facing field, so a menu is selectable the moment it's created. Verified by creating a menu and confirming it's immediately selectable, and that a genuinely unpublished one still greys out."
The bad version lists what moved; the good version explains what was wrong, why, what changed, and how it was checked, and it won't rot, because there's not a single coordinate or count in it.
wc -w first; the cap is the most repeated correction on this skill.## Changes dumps, you still write context-first prose inside their section headings. Copying their enumeration is the single most common way this skill fails.git status for uncommitted work.main, master, develop).[implementation complete]
|
v
/flagrare:wrap-up <- quality gate
|
v
/flagrare:open-pr <- THIS SKILL (ticket moves to in review)
|
v
[reviewer picks it up]
|
v
[merge, deploy] <- /flagrare:ticket-hygiene moves the ticket on
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flagrare/agent-skills --plugin flagrare43 skills in this plugin
/atdd-planProduce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they earn their keep. The skill enters plan mode automatically (via the EnterPlanMode tool), runs /flagrare:codebase-explore to ground the plan in the actual codebase, then produces a plan-mode plan that MUST include both: (1) 3-5 acceptance tests in plain English defining 'done' before any implementation, written behavior-first against the public API only; and (2) any non-trivial structural decisions named as design patterns with a one-line rationale. Plan mode's native approve/edit/reject button UI is the close, ExitPlanMode is how the skill ends. Use whenever the user wants to plan a feature, fix, or refactor, 'how should we implement X', 'plan this', 'let's design X', 'where do we start on Y'. Tests follow Kent Dodds Testing Trophy: behavior over implementation, integration-heavy, public-API-only, refactor-proof. The skill stops at the plan; it does not write implementation code./brag-docGenerate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls authored PRs, reviews given, commits, deploys, and linked tickets across GitHub, local git, and configured MCPs, then synthesises a themed narrative, leading with outcomes, quantifying impact, owning the work in first-person past tense, separating IC contributions from amplification, and naming the judgment exercised. Output is designed to drop straight into a developer journal, a personal bragging sheet, or a performance-review packet. Accepts a mode argument, `/flagrare:brag-doc resumancer` renders the output as ready-to-paste Resumancer CLI commands (`resumancer impact "..." --branch ...`) instead of markdown. Use whenever the user says "brag doc", "brag sheet", "what did I do this week", "weekly recap", "monthly recap", "performance review prep", "what should I tell my manager", "summarise my impact", "career log entry", "give me my wins", "biweekly recap", or any variant about looking back over a longer window than a single day's standup. Also trigger near review season ("self-review", "perf packet", "evaluation prep"), and on phrases like "log my wins to resumancer" or "make resumancer entries for this week" (which should pass the `resumancer` mode). For windows longer than about a month, a tenure retrospective, a departure record, or "everything I did at this company", hand off to `/flagrare:impact-timeline` instead; this skill's window tops out at a month./bug-bashProgrammatic bug bashing, ingest a prescribed test plan (Notion, markdown, pasted spec), drive a real running system (browser via Chrome DevTools / Playwright MCP, backend via API tools when relevant), run every prescribed case with evidence, then do exploratory passes (viewports, edge inputs, multi-actor flows, codebase-driven concerns, additional context like meeting transcripts, emails and links checked in the real inbox with a control case, other languages, failures and races) without ever claiming a bug it didn't itself reproduce. Fills free-text fields with tagged, playful test data that also probes something (unicode, HTML, template syntax, length). Lands results in a local MD file by default, optionally writes back to the source (Notion bug DB, test case Eng QA columns, etc.) in the user's voice. Use whenever the user says 'bug bash', 'QA this feature', 'run the test cases', 'go through this test plan', 'verify these scenarios', 'do a bash on X', when they hand over a Notion test case page, or any time programmatic end-to-end verification of a feature against a checklist is needed. Also use it when a smoke test passed but the user wants more cases tested, or asks 'what else should we test' and then 'test it yourself'. Make sure to use this skill even when the user just says 'test this Notion page' or 'check these scenarios', anything that smells like running someone else's prescribed test plan against a live system./careerRun the career skills that are due, in one pass, and return one short combined digest plus an updated board. It reads timestamps and flags to decide: the promotion map's first run when there is none (after asking), a refresh of map sections that are older than 90 days or flagged by a scan, an opportunity scan when the last one is a month old, and an impact scan every time. The digest leads with the initiative the user owns and its next step, then up to 5 threads worth weighing in on, one line on the promotion map (open rubric rows, people who haven't seen the work, when to talk to the manager, the packet deadline), anything that needs the user, and an "all answering, nothing owned" warning when the user keeps replying but owns nothing. A scheduled run (from /loop or a schedule) never asks questions and never posts; it lists what needs the user as pending. Use when the user says "career", "career check", "career digest", "run my career skills", "what should I do for my promotion this week", "daily career scan", or sets up a recurring career run. Also trigger for a scheduled career run./codebase-exploreExplore the codebase to map conventions, reusable utilities, analogous features, and data flows relevant to a planned change. Returns raw findings (file paths, patterns, code snippets), does NOT produce a plan. Used by /flagrare:atdd-plan as its codebase understanding step./communication-setupSet up, change or remove how Claude talks to you: a custom output style with your reply rules, a reminder of those rules on every message, and a Stop hook that quietly nudges Claude when a reply runs a little long and blocks one that runs far past your limit. Use when the user says Claude's replies are too long, exhausting, hard to skim, full of process narration or caveats, 'you make me work for the information', 'talk to me shorter', 'communication setup', 'set up how you talk to me'; when the length check or reply-length hook blocked a reply it shouldn't have, or the user wants a different limit or style; or asks to remove or undo it ('remove communication setup', 'go back to normal replies').Other plugins' skills for the same job