open-pr
Skill2 starsChanged 47 days agoMITView on GitHub
Open a pull request on the wtm repository (this Go CLI) the way its maintainer reviews them — base branch taken from the stack wtm records (`wtm tree`), the change shown rather than described (before/after terminal snapshots via tmux, GIFs via VHS, call-tree or diff sketches for internals), and a short what/why · proof · verify · risk body. Use this whenever the user asks to open, create, submit, raise or draft a PR / pull request / merge request on wtm, to "push and open a PR", to write or rewrite a PR description, or to add screenshots/GIFs/proof to a PR — even when they only say "ship it" or "PR this" at the end of a task in this repo.
- Commits and pushes
73 other projects use a version of this.
Adopted by
Most recently taken up by
- OpenMined/PySyfttheir own version, first seen Nov 30, 2026
- nicksonthc/claude-skilltheir own version, first seen Nov 29, 2026
- sigee-min/ashfoxtheir own version, first seen Nov 29, 2026
- antithesishq/antithesis-plugintheir own version, first seen Nov 29, 2026
- asafofer/perchtheir own version, first seen Nov 29, 2026
- pascalorg/editortheir own version, first seen Nov 26, 2026
Used with
Projects with it also use open-issue, implement-change and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dlupiakSkillopen-issue
Analyze a change request, ask clarifying questions, and create a well-structured GitHub issue with acceptance criteria. Use this skill whenever the user wants to create an issue, write a ticket, log a bug, propose a feature request, or capture requirements — even if they say "let's track this" or "add this to the backlog".
Also in 3 projects that use this
Codagent-AISkillimplement-change
Implements an approved change in one continuous session, with tiered test runs. Use when asked to implement a change from its approved definition, or to invoke codagent:implement-change.
Also in 3 projects that use this
thlaureSkillreview-change
Use this skill when the user asks for a code review, a correctness pass, a check before PR, or asks whether a Signalist change follows project conventions.
Also in 4 projects that use this
saffron-healthSkilladdress-review
Address PR review comments systematically. Use when responding to code review feedback on a pull request.
Also in 3 projects that use this
DataCoveySkillcommit-push
Commit and push the changes made on this chat session to the current branch. Use best practices from Conventional Commits.
Also in 3 projects that use this
AnthropicSkillwrite-spec
Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.
Also in 3 projects that use this
Other versions73 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 73
- Significant-Gravitas/AutoGPT★ 188ksame name
- storybookjs/storybook★ 92ksame name
- pascalorg/editor★ 26ksame name
- dask/dask★ 14ksame name
- polarsource/polar★ 11ksame name
- OpenMined/PySyft★ 10ksame name
- cloudflare/agents★ 6.2ksame name
- Kiln-AI/Kiln★ 5.3ksame name
- analogjs/analog★ 3.2ksame name
- raine/workmux★ 3.1ksame name
63 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- go-styleSkill
- orchestrateSkill
- wtm-docsSkill
- wtm-sandboxSkill
- wtm-siteSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 72 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Read git log --oneline origin/$BASE..HEAD and git diff origin/$BASE...HEAD --stat, then the diff itself.
- Very specific: line 61
When only a line or two moves, a diff block of the output is tighter than two full frames.
“Common” is measured: kept by at least 6 in 10 of the 72 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Opening a PR on wtm
A reviewer of this repo wants three things from a PR, in this order: which branch it lands on, what changes for someone typing wtm, and enough evidence to believe it without checking out the branch. Every step below serves one of those.
S=.claude/skills/open-pr/scripts (paths are relative to the repository root). Every terminal capture goes through the wtm-sandbox skill.
1. Pick the base branch
The base is decided in this order — stop at the first that applies:
- The user named a base ("against release/v0.29.1",
--base x): use it, always. If wtm records a different parent, use the user's base anyway and mention the mismatch in your final report (not in the PR body). - wtm records a parent:
$S/base-branch.shprints the parent of the current branch fromwtm tree --output json. In a stack the parent is the right base: a PR againstmainwould show the parent's commits as if they were this PR's. - wtm has nothing (exit 3: the branch is a root; exit 4: wtm does not manage it): fall back to
main, and say so explicitly in the report — "wtm records no parent for X, opened against main". Never default tomainsilently.
Then check the base exists on the remote (git ls-remote --exit-code --heads origin "$BASE"). If the parent is local-only, it has to be pushed first, or its own PR opened first: ask the user rather than retargeting to main.
2. Understand the change
Read git log --oneline origin/$BASE..HEAD and git diff origin/$BASE...HEAD --stat, then the diff itself.
Follow every changed symbol to every surface it reaches. In this codebase one domain constant or rules function typically renders in several places — wtm tree text, --output mermaid, --output json, the wtm ui dashboard, a wizard recap, a docs/demos/*.tape that waits on the old text. grep each changed identifier and string; list the surfaces it lands on. Each one is either shown in the proof or named under Risk as not shown — a reviewer must never discover a surface you did not mention.
Run the tests of the touched and dependent packages now (go test ./internal/<pkg>/... for every package that references a changed symbol), before writing anything. A red test changes the PR: fix it, or — when the fix is a product decision — ask the user. Never write a body around a failure you have not resolved or surfaced.
Then classify the change — this decides what proof you need:
| The change… | Proof |
alters what a command prints (text, recap, error, --help, exit code) | before/after text snapshots (tmux) |
| alters an interactive flow (wizard step, dashboard key, live view, spinner) | before/after GIF (VHS), or 1–2 tmux frames if a still says it |
changes the --output json contract | a diff of the JSON document |
| is internal (refactor, layering, perf, tests, tooling) | a shape sketch (call tree / file tree / mermaid diff), no terminal capture — and the body says "no user-visible change" |
| fixes a bug | the failing scenario before, the same scenario after |
3. Show it (show-me, translated to a terminal)
Pick the smallest view that makes the point — one or two visuals, each placed next to the sentence it supports. Prose explains why; visuals show what.
Terminal output — capture, don't retype. Before/after blocks, same command, same sandbox state:
**Before** (`main` @ abc1234) ```text ❯ wtm tree ┃ main ┃ └─ feat/login ``` **After** ```text ❯ wtm tree ┃ main ┃ └─ feat/login ↑2 needs sync ```When only a line or two moves, a
diffblock of the output is tighter than two full frames.Runtime flow — a call tree, as a
diffwhen the shape already existed:surface/cli/clean.go runClean flow/clean.Run worktree.Remove + events.Publish(WorktreeRemoved)- Files / layering — a shallow file tree with one comment per entry, as a
diffwhen it is a move. - Package or stack relations — Mermaid. For a PR inside a stack,
wtm tree --output mermaidgives the stack ready to paste; trim it to this branch's ancestors and children. - Motion — a GIF (MP4 past ~10 s) only when the change is the movement. One idea per recording.
Capture with the wtm-sandbox skill — load it now if it is not already: it builds the before (merge-base with $BASE) and after binaries, gives each its own throwaway sandbox, and drives them with tmux (text frames) or VHS (GIF/MP4/PNG), then cleans up. Text frames go inline in the body; image and video files stay in the temp directory and are attached by gh in step 6 — never committed to the PR branch.
4. Before pushing
The PR must not be the first place the gates run:
make lintandmake testpass — run thebuild-validatorsubagent (CLAUDE.md §11). Quote its one-line result in the body. If a gate is red, do not open the PR: fix it, or ask the user (and open as--draftonly if they say so).- The change carries its docs:
make docsif a command/flag moved, theusing-wtmagent skill if agent-relevant behaviour changed,docs/guide/ordocs/dev/for the concept,make demosif a README GIF is now wrong, aCHANGELOG.mdentry for a user-facing change (not for internal tooling). Missing ones are fixed now, not listed as TODO. - Commits are in English with no
Co-Authored-Bytrailer.
5. Write the body
Short enough to read in under a minute. Every line answers a reviewer question; anything that does not is cut. No headings for empty sections, no file-by-file changelog (the diff has it), no restating the title.
<Only when the base is not main/release: "Stacked on #<N> (`<parent>`) — merge that first." Find N with `gh pr list --head <parent> --json number`.>
<What changes and why, 1–3 sentences, user-visible effect first. Linear key if the branch has one: (LUC-123).>
## Changes
- <one bullet per behaviour, not per file; ≤ 5 bullets>
## Proof
<the visuals from step 3 — or the shape sketch and "No user-visible change.">
## Verify
- `make lint` ✓ · `make test` ✓ (<N> tests) — build-validator
- <the 1–3 commands a reviewer can paste to see it themselves>
## Risk
<what could break and for whom, what is not covered; "Low — <reason>" when it is>Title: Conventional Commits like the history (fix(tui): …, feat(run): …, chore(skills): …), with the Linear key at the end when there is one. Markdown is never hard-wrapped: one paragraph is one line.
6. Open it
git push -u origin HEAD
gh pr create --base "$BASE" --title "<title>" --body-file <body.md> \
--attach "$PROOF/before.gif#Before" --attach "$PROOF/after.gif#After"Write the body to a temp file (not in the repository) and pass --body-file, so backticks and code fences survive the shell. --attach uploads each image or video to GitHub; where the body should show it, reference it by exactly the path passed to --attach (, with the real path) and gh rewrites the link to the upload — an attachment the body does not reference is appended at the end. GIF/PNG render inline that way; an MP4 renders as a player only as a bare URL on its own line, so leave videos unreferenced and let gh append them. gh pr edit --attach and gh pr comment --attach work the same way to add proof later. Never merge, never enable auto-merge. If a PR already exists for the branch (gh pr view), update it with gh pr edit --body-file instead of opening another.
7. Report
Tell the user: the PR URL, the base and why that base (user / wtm parent / fallback), what proof is attached, and anything you could not show (e.g. a behaviour that needs GitHub and so could not be captured in the sandbox).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

