Single-Flow PR Yeet
Skill11 starsChanged 6 months agoMITView on GitHub
在一个线性流程里完成 stage、commit、push、开 PR。仅在用户明确说 yeet 或 ship 时触发。
- Commits and pushes
In this repository37 other files it gives its agents.
- Browser ML in JavaScriptSkill
- CLI BuilderSkill
- ClickHouse Best PracticesSkill
- Code ReviewerSkill
- Code Review WorkflowSkill
- Commit Message WriterSkill
- deepeval Pytest Eval SuiteSkill
- deepeval OTel Trace ExportSkill
- deepeval SDK TracingSkill
- Doc Co-Authoring WorkflowSkill
- Embedding Model TrainingSkill
- Frontend Large-Feature ArchitectureSkill
- Frontend Visual Design TasteSkill
- Goal DefinitionSkill
- Internal Comms AuthoringSkill
- Invalid Name HandlerSkill
- LLM Model Pricing File UpdateSkill
- maf-prs-jobSkill
- MCP Server BuilderSkill
- Code Ownership & Bus FactorSkill
- PDF SummarizerSkill
- PDF Vision ExtractorSkill
- PNPM Upgrade PackageSkill
- promptflow-to-mafSkill
- promptfoo Eval Suite AuthorSkill
- promptfoo Redteam Plugin AuthorSkill
- React Router Search Param StateSkill
- Realtime Eval ScaffoldSkill
- Secure Code by LanguageSkill
- Security Review ChecklistSkill
- Skill Authoring LoopSkill
- SQL Query HelperSkill
- Storybook Component StoriesSkill
- Unit Test GeneratorSkill
- Repository Threat ModelSkill
- Turborepo Monorepo AuthoringSkill
- Webapp Testing HarnessSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Use this skill for:
- Distinctive: line 42
Do not: use this for:
≈ “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
When to use
The user said "yeet this", "ship it as a PR", "open a PR for this", "stage, commit, push, and open the PR", or any equivalent single-flow request. The flow is: pick a branch → write a terse commit → push → open the PR. Nothing fancy.
Use this skill for:
- Linear, single-commit changes
- Fixes / chores / small features that need exactly one PR
- A clean way to land a local branch when the user wants the whole thing done in one shot
Do not use this for:
- Stacked PRs (one PR per commit, branching from a chain of branches) — use a stacked- PRs workflow
- Repos without GitHub or without
ghauth — pick a different flow - Multi-commit history that should be squashed — the user can ask for a squash-merge separately; this skill does not rewrite history
- Hotfixes that should bypass review — that is a force-push or admin-merge decision, not a PR
Inputs
description— single string that becomes branch, commit, and PR title. Required.draft— open the PR as a draft. Defaultfalse.base_branch— target branch. Default repo's default branch.body_overrides(optional) — extra sections to append to the PR body.
Output
A ## Plan block (branch, commit, PR title,
PR body, target branch) and a ## Commands
block the agent actually runs. On success, the
final PR URL.
Prompt
You are running a single-flow PR: stage, commit,
push, open. Treat it as a four-step pipeline with
no surprises. If any step fails, stop and report
— do not improvise around the failure.
## 0. Prereqs
Before anything else, verify:
- `gh --version` is on PATH. If not, ask
the user to install it and stop.
- `gh auth status` reports an authenticated
user. If not, ask the user to run
`gh auth login` and stop.
- The current directory is a git repo with
at least one remote that points at
GitHub.
## 1. Pick the branch and commit
The user gave you a `description` string. Use
it three times, as-is:
- **Branch name**: `description` (kebab-case
if multi-word, lower-case). If the
description contains characters that are
not safe in branch names (`/`, spaces,
`?`, `*`, etc.), kebab-case the words
and strip the rest.
- **Commit subject**: `description` (terse,
no trailing period).
- **PR title**: `description` (same as
commit, summarizes the full diff).
When starting from `main` / `master` /
`default`, create the branch:
```bash
git checkout -b "<description>"When the user is already on a feature branch they want to ship, do not create a new one. Confirm in chat before reusing the current branch.
2. Discover the PR template
Resolve the repo root and look for the active GitHub PR template:
repo_root="$(git rev-parse --show-toplevel)"Template candidates, in order:
.github/pull_request_template.md.github/PULL_REQUEST_TEMPLATE.md- One
*.mdfile under.github/pull_request_template/ - One
*.mdfile under.github/PULL_REQUEST_TEMPLATE/
Use paths as emitted from the repo root, e.g.
.github/pull_request_template.md, not
./.github/pull_request_template.md.
If exactly one template is found, read it
before composing the final PR body and pass
it to gh pr create with
--template "$template".
If multiple template files are found, stop before PR creation and ask the user which to use.
If no template exists, use the fallback body shape below.
3. Stage, commit, push
Stage all tracked changes (don't sweep up untracked files unless the user explicitly said so):
git add -u
git status --shortInspect the staged diff. If it touches more
files than the description implies, stop and
ask. Don't git add . blindly.
Commit with the description as the subject:
git commit -m "<description>"If the commit fails because of a pre-commit
hook, fix the issue the hook flagged, do not
bypass with --no-verify unless the user
explicitly asked to.
Push the branch and set upstream:
git push -u origin HEAD4. Open the PR
Construct the body. If a template was found, use it as the body. Otherwise, use the fallback body:
## What
<one paragraph: what this change does and why>
## How
<bulleted list of the meaningful changes,
ordered by importance, not by appearance>
## Risk
<what could break, who should review, any
follow-up>Append any body_overrides after the
template / fallback body, each as a ##
heading.
Open the PR:
gh pr create \
--base "<base_branch>" \
--head "$(git rev-parse --abbrev-ref HEAD)" \
--title "<description>" \
--body-file <(cat <<'EOF'
<final body>
EOF
) \
$([ "$draft" = "true" ] && echo --draft)5. Output
Print the PR URL at the end. Do not summarize the diff again — the PR is the artifact.
If any step failed:
- report which step and the error
- leave the working tree and branch in a state the user can recover from
- do not retry blindly
6. Things this skill explicitly does not do
- Does not rewrite history (no
git rebase, no force-push, nogit commit --amendof a pushed commit) - Does not squash at commit time — the PR can be squash-merged by the reviewer
- Does not create a stacked chain
- Does not push to multiple remotes
- Does not handle merge conflicts — if the push is rejected, report and stop
- Does not bypass branch protection rules or required reviews
# When NOT to use
- **Stacked PRs** — use a stacked workflow
(Graphite, gh-stack, etc.)
- **Repos without GitHub or `gh`** — the
skill assumes both. Use the platform's
native flow.
- **Multi-commit history that must be
squashed** — squash-merge on the PR
side, not on the commit side.
- **Hotfixes bypassing review** — that's a
force-push / admin-merge decision, not a
PR flow.
- **The user has not said "yeet" / "ship" /
equivalent** — this is a single-flow skill,
not the default. Default to a normal
multi-step review-and-PR flow.
- **The change is WIP and should not be
reviewed yet** — open as draft with
`draft=true`, or hold the PR.
# Example
**Input:**
```yaml
description: "fix stripe webhook idempotency"
draft: trueOutput (the agent runs):
## Plan
- Branch: `fix-stripe-webhook-idempotency`
- Commit subject: `fix stripe webhook
idempotency`
- PR title: `fix stripe webhook idempotency`
- Base: `main`
- Template: `.github/pull_request_template.md`
(found, single file)
- Body: template + Risk section
## Commands (run)
git checkout -b fix-stripe-webhook-idempotency
git add -u
git status --short # inspected, only
# expected files
git commit -m "fix stripe webhook idempotency"
git push -u origin HEAD
gh pr create \
--base main \
--head fix-stripe-webhook-idempotency \
--title "fix stripe webhook idempotency" \
--body-file .github/pull_request_template.md \
--draft
## Result
PR opened as draft:
https://github.com/owner/repo/pull/1234The agent prints the URL and stops. No follow-up summary.
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.

