yas-pr
Skill242 starsChanged 4 months agoBSD-3-ClauseView on GitHub
Assemble a pull request that follows this repo's PR template, then open it as a draft. Use when the user wants to open, create, submit, or raise a PR for the current branch.
- Commits and pushes
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- tmck-code-statuslineSkill
- yas-demo-textSkill
- yas-pr-screenshotsSkill
- configSkill
- initSkill
- uninstallSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Embed system info: Run make pr-info and paste its output into the System info fenced block verbatim.
- Very specific: line 33
Run tests: Run uv run pytest. If green, tick the tests checkbox.
- Very specific: line 37
Benchmark: Run make bench (times this branch vs main via a throwaway git worktree).
- Very specific: line 38
If hyperfine is not on PATH, bench.py prints an install hint and falls back to a Python timer — before letting it fall back, offer to …
- Distinctive: line 48
Don't render or push images yourself — that's the agent's whole job.
- Very specific: line 50
If the change isn't visible (logic/docs/config-only), skip this and tick the section's "N/A — no visible change" escape honestly.
- Distinctive: line 73
Keep checkbox N/A escapes honest — only tick "N/A — no behaviour change" / "N/A — no visible change" when that's actually true.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
YAS PR
Fill in this repo's PR template from the current branch, then open a draft PR. Do not invent the template structure — read it from the repo so the two never drift.
Steps
- Sanity-check the branch and hooks. Confirm the current branch is not
mainand has commits ahead oforigin/main. If it'smainor has no diff, stop and tell the user. Also checkgit config --local --get core.hooksPath; if it isn't.github/hooks, offer to runmake hooksso the contributor gets pre-commit checks (don't enable it without their yes). - Read the template. Load
.github/pull_request_template.md. This is the single source of truth for the section structure — mirror its headings exactly. - Draft Context and Changes. From
git diff main...HEADplus the conversation:- Context — why the change is needed; the higher-level goal/problem. Link the related
issue/PRD (
.scratch/<feature>/...) if one exists. If this PR bumps the version (step 8), reference the new version number here. - Changes — what changed and how it works. Group related changes and give each group
its own
###(H3) heading. Under each heading, break the distinct points out into bullet points rather than one long run-on sentence — a wall of text is hard to read. Present these as a draft for the user to edit; don't fabricate motivation you can't infer.
- Context — why the change is needed; the higher-level goal/problem. Link the related
issue/PRD (
- Embed system info. Run
make pr-infoand paste its output into the System info fenced block verbatim. - Run tests. Run
uv run pytest. If green, tick the tests checkbox. If red, show the failures and ask the user whether to fix first or proceed. Optionally also runuv run ruff checkanduv run mypy .and note results. - Benchmark. Run
make bench(times this branch vsmainvia a throwaway git worktree). Ifhyperfineis not on PATH,bench.pyprints an install hint and falls back to a Python timer — before letting it fall back, offer to install hyperfine (apt/brew/cargo) and ask the user; only fall back if they decline. Paste the paste-ready table into the Benchmark block. Tick "N/A — no performance-relevant change" instead only for docs/config-only PRs. Before/after screenshots. For any visible rendering/layout/glyph change, fill the Screenshots / recording section by delegating to the
pr-screenshotteragent (see its own file for what it does). Drop the table it returns verbatim into the Screenshots / recording section.- Don't render or push images yourself — that's the agent's whole job; you just place the table it returns.
- If the change isn't visible (logic/docs/config-only), skip this and tick the section's "N/A — no visible change" escape honestly.
- The agent commits + pushes to the screenshots repo's
main; flag that to the user when you present the body, since it's an outward-facing side effect of this PR flow.
Bump the version (only if the statusline's behaviour changed). If the diff changes the statusline tool or its behaviour — anything a user would notice (rendering, layout, glyphs, config knobs, new stats, output format) — bump the version before creating the PR. Work out the next version from the current one (
uv version --short) per semver, then runVERSION=0.X.Y make version/bump. This is an outward-facing action — it commits and pushes the bump (plugin.json,pyproject.toml,uv.lock) — so confirm the new number with the user before running it. Then reference the new version in the Context section.- Skip the bump for developer-only changes that users never see: tests, the Makefile, hooks, CI, dev deps, docs, OpenSpec specs, etc. When in doubt about whether a change is user-facing, ask rather than bumping blindly.
- Confirm, then create the draft. Show the fully assembled body (Screenshots section already
populated with the agent's table). After the user confirms, run
gh pr create --draftwith that body. Print the PR URL and tell the user to click "Ready for review" when done.
Notes
- Keep checkbox N/A escapes honest — only tick "N/A — no behaviour change" / "N/A — no visible change" when that's actually true.
gh pr create --draftis an outward-facing action: never run it before the user confirms the body.
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.

