to-pr
Skill3 starsChanged 36 days agoMITView on GitHub
Implements agreed subtasks into a new branch, commits each subtask, pushes when complete, and opens a GitHub PR. Use when subtasks from to-subtasks should be implemented end-to-end as a pull request, or when the user mentions to-pr, PR automation, branch-to-PR workflow, or implementing all subtasks into a GitHub pull request.
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- fynnhaupt/skillstheir own version, first seen Nov 1, 2026
- yahyabedirhan/skillstheir own version, first seen Oct 18, 2026
- helderberto/agent-skillstheir own version, first seen Oct 13, 2026
- Franco904/skillstheir own version, first seen Oct 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- helderberto/agent-skills★ 19same name
- yahyabedirhan/skills★ 3same name
- fynnhaupt/skills★ 1same name
- Franco904/skills★ 0same name
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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-project-rulesSkill
- changelogSkill
- do-subtasksSkill
- pest-arch-reviewSkill
- qaSkill
- retroSkill
- simplify-agent-instructionsSkill
- to-subtasksSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. About 0 are common, 16 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When the user asks to turn agreed subtasks into a PR:
- Very specific: line 14
Use the existing subtasks from to-subtasks.
- Distinctive: line 16
Create a new branch from the current branch, unless the user specifies another base.
- Very specific: line 19
Create the PR with gh and return the PR URL.
- Very specific: line 24
If no agreed subtasks exist, stop and instruct the user to run to-subtasks first.
- Distinctive: line 25
Run git status --short to check the working tree.
- Distinctive: line 26
If the user explicitly says to continue despite a dirty tree, ignore unrelated dirty files and proceed without modifying or reverting them.
- Very specific: line 30
If do-subtasks has not already run for these subtasks, automatically enter its subtask execution model without asking the user.
- Very specific: line 31
After that routing step, ignore the do-subtasks requirement to stop after one task.
- Very specific: line 35
Create the work branch from the base branch with git switch -c <work-branch> <base-branch> before implementation.
- Distinctive: line 38
Do not push the branch until all subtasks are complete and tests pass.
- Distinctive: line 44
Run the relevant tests or checks for that subtask.
- Distinctive: line 45
Treat the subtask as incomplete until tests pass.
- Distinctive: line 47
Commit only the verified changes for that subtask.
- Very specific: line 48
Use a conventional commit message with no scope and no body: <type>: <short description>.
- Very specific: line 51
After all subtasks are committed and the full relevant test suite passes, push the work branch with git push --set-upstream origin …
- Very specific: line 52
Before creating the PR, get the authenticated GitHub CLI user's login with gh api user --jq '.login'.
- Very specific: line 54
Create the PR with gh pr create --base <base-branch> --head <work-branch> --assignee <login> --label <label> [--label <another-label> ...] …
- Very specific: line 55
After creation, run gh pr view --json url,baseRefName,headRefName,assignees,labels to verify the PR target, assignee, and labels, and …
- Very specific: line 56
Use a human-readable PR title based on the project goal, such as Add comments to blog posts.
- Distinctive: line 57
Do not use conventional commit style for the PR title.
- Very specific: line 58
If the PR resolves an open GitHub issue, include a closing keyword in the PR body (for example, Closes #123) so the issue closes …
- Distinctive: line 62
Use this format for the PR body.
- Distinctive: line 110
Use visuals only when they help explain the change.
- Distinctive: line 117
If blocked, explain the blocker and the exact next action needed.
- Distinctive: line 122
Do not add opportunistic refactors or unrelated fixes.
- Distinctive: line 123
Do not modify, revert, or stage unrelated dirty files.
- Distinctive: line 124
Do not push partial work.
- Distinctive: line 125
Do not create a PR until all subtasks are complete and tests pass.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
To PR
Quick start
When the user asks to turn agreed subtasks into a PR:
- Use the existing subtasks from
to-subtasks. - Route through
do-subtasksbehavior automatically if it has not already run. - Create a new branch from the current branch, unless the user specifies another base.
- Implement each subtask, test it, and commit it separately.
- Push only after all subtasks are complete and tests pass.
- Create the PR with
ghand return the PR URL.
Workflow
1) Preconditions
- If no agreed subtasks exist, stop and instruct the user to run
to-subtasksfirst. - Run
git status --shortto check the working tree. If it prints any files, stop and list the dirty files. - If the user explicitly says to continue despite a dirty tree, ignore unrelated dirty files and proceed without modifying or reverting them.
- Determine the base branch with
git branch --show-current, unless the user specifies another base branch.
2) Do-subtasks routing
- If
do-subtaskshas not already run for these subtasks, automatically enter its subtask execution model without asking the user. - After that routing step, ignore the
do-subtasksrequirement to stop after one task. - Continue through all agreed subtasks, but keep each commit limited to the current subtask.
3) Branch setup
- Create the work branch from the base branch with
git switch -c <work-branch> <base-branch>before implementation. - Infer the branch prefix from the goal and work type, using conventional prefixes such as
feat/,fix/,chore/,ci/,docs/,refactor/, ortest/. - Infer a short kebab-case branch name from the project goal.
- Do not push the branch until all subtasks are complete and tests pass.
4) Implementation loop
For each agreed subtask, in order:
- Implement only the current subtask.
- Run the relevant tests or checks for that subtask.
- Treat the subtask as incomplete until tests pass.
- Stage only the changes for that subtask, then run
git diff --cached --checkandgit diff --cached --name-onlyto verify the staged changes. - Commit only the verified changes for that subtask.
- Use a conventional commit message with no scope and no body:
<type>: <short description>.
5) Push and PR
- After all subtasks are committed and the full relevant test suite passes, push the work branch with
git push --set-upstream origin <work-branch>. - Before creating the PR, get the authenticated GitHub CLI user's login with
gh api user --jq '.login'. Assign the PR to that user by default; use another assignee if the user specifies one. - Check available repository labels with
gh label list --limit 1000 --json name,description. Choose the existing label or labels that best match the changes, using their descriptions when available. Do not create or guess labels. If no available label is appropriate, ask the user whether to proceed without a label or use another label before creating the PR. - Create the PR with
gh pr create --base <base-branch> --head <work-branch> --assignee <login> --label <label> [--label <another-label> ...]and include the project-specific title and body. Replace<login>with the authenticated user's login unless the user specified another assignee, and include one--labelflag for each selected label. - After creation, run
gh pr view --json url,baseRefName,headRefName,assignees,labelsto verify the PR target, assignee, and labels, and retrieve its URL. - Use a human-readable PR title based on the project goal, such as
Add comments to blog posts. - Do not use conventional commit style for the PR title.
- If the PR resolves an open GitHub issue, include a closing keyword in the PR body (for example,
Closes #123) so the issue closes automatically when the PR is merged.
PR description
Use this format for the PR body. Keep prose brief and use the project's domain language:
## Summary
<diagram, diff sketch, or tree that makes the key change clear>
## Evidence
- **Before:** <screenshot, output, or failing test>
- **After:** <screenshot, output, or passing test>
- **Manual QA:** <practical step-by-step checks, when hands-on verification is useful>
## Merge Danger
**Door:** <one-way or two-way>
**Blast Radius:** <one-word label>Classify Door by whether merging and deploying the PR is reversible:
- Two-way: reverting the code or deployment restores previous behavior.
- One-way: merging or deploying causes effects a revert cannot undo, such as irreversible data changes.
An explicitly invoked destructive operation does not by itself make the PR one-way.
Choose exactly one blast-radius label for the PR, with no accompanying description in the PR field. Classify the credible failure boundary of the actual changes relative to the PR base:
- Local — failure stays within one component, action, endpoint, or isolated workflow.
- Narrow — failure affects one feature or a bounded set of related workflows.
- Broad — changed shared behavior propagates failure across multiple distinct features or workflows.
- Systemic — failure compromises application-wide operation, cross-cutting security boundaries, or the integrity of shared persistent data.
Identify the changed behavior, its consumers, and where a regression stops. Inspect direct consumers when necessary. Require concrete propagation paths, not speculative chains of unrelated failures. Before selecting Broad or Systemic, identify the affected distinct workflows or cross-cutting boundary and explain the causal link. Missing evidence means uncertainty, not automatic escalation.
File count, directory, shared-code status, and user count do not independently determine the label. Keep impact extent separate from severity, likelihood, and reversibility. Passing tests do not shrink blast radius.
Calibration examples: isolated button styling used by everyone = Local; feature-specific calculation = Narrow; shared URL generation breaking editor, checkout, and exports = Broad; tenant isolation bypass = Systemic.
Choose the smallest representation that explains the change:
- Pseudocode for logic or algorithms.
- A call tree for runtime control flow.
- A component tree for UI structure.
- A shallow file tree for file responsibility or broad refactors.
- Mermaid for interactions or data flow.
- A focused diff sketch when the key point is what changed.
Use visuals only when they help explain the change. Include concrete before-and-after evidence; prefer screenshots for visual changes and test or command output for behavior changes. Write manual QA steps in the style of qa when hands-on verification is useful.
Output rules
- Return the GitHub PR URL when finished.
- Include a concise recap of implemented subtasks.
- Include a brief blast-radius classification rationale in the completion recap, not in the label-only PR field. State any uncertainty.
- If blocked, explain the blocker and the exact next action needed.
Guardrails
- Stick exactly to the agreed subtasks.
- Do not add opportunistic refactors or unrelated fixes.
- Do not modify, revert, or stage unrelated dirty files.
- Do not push partial work.
- Do not create a PR until all subtasks are complete and tests pass.
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.

