task-to-pr
Skill410 starsChanged 4 months agoMITView on GitHub
Completes one or more tasks. Creates one tested and reviewed pull request for each task. Use to implement, build, fix, or deliver tasks, tickets, pull requests, or a milestone.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- architectureSkill
- codex-issue-coordinatorSkill
- designSkill
- factorySkill
- html-docSkill
- improveSkill
- planSkill
- reviewSkill
- testSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
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
- Distinctive: line 16
Start independent tasks together when useful.
- Very specific: line 17
Start a dependent task only after each prerequisite has an open pull request, an independent /review verdict of Approve, and no known …
- Very specific: line 19
When a prerequisite branch or pull request base changes, update every dependent branch to that reviewed state.
- Distinctive: line 20
After a prerequisite merges, retarget its stacked pull requests to the default branch.
- Distinctive: line 24
Create or reuse a branch and worktree for the task.
- Very specific: line 26
Use /test to prove the task works, affected failures are handled, and refactors preserve behavior.
- Distinctive: line 27
Commit and push the changes.
- Distinctive: line 28
Create or update one pull request on GitHub.
- Very specific: line 30
Use /review with a fresh subagent that did not write the code.
- Distinctive: line 35
Use the GitHub CLI to wait for CI and automated code review when the repository uses them.
- Distinctive: line 37
If a fix needs a product or technical decision that the task does not contain, stop that task and report the missing decision.
- Very specific: line 38
After changing code, repeat /test and /review.
- Distinctive: line 39
If you changed code, commit and push it.
- Distinctive: line 41
Wait for the automated checks again.
- Distinctive: line 43
Update the ticket with final proof and the pull request link when possible.
- Distinctive: line 47
If the user asks for merges, merge pull requests in dependency order.
- Distinctive: line 52
no review thread remains unresolved.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Task to PR
Take each task from a decided outcome to a tested and reviewed pull request. Keep one task, branch, and pull request focused on one result.
Review the tasks first. Decide their order, note dependencies, and identify work that can run at the same time. Then make a short plan.
Order dependent work
- Start independent tasks together when useful.
- Start a dependent task only after each prerequisite has an open pull request, an independent
/reviewverdict ofApprove, and no known blocking finding. - Stack dependent work on the prerequisite branch. If a task has several unmerged prerequisites, stack those branches in dependency order before creating the dependent branch.
- When a prerequisite branch or pull request base changes, update every dependent branch to that reviewed state. Repeat
/testand/review. - After a prerequisite merges, retarget its stacked pull requests to the default branch. Repeat the proof against that base.
Phase 1: build the code
- Create or reuse a branch and worktree for the task. Start independent work from the latest default branch and dependent work from its reviewed prerequisite or stacked base.
- Write the code.
- Use
/testto prove the task works, affected failures are handled, and refactors preserve behavior. - Commit and push the changes.
- Create or update one pull request on GitHub. Include a short summary and the current proof, then mark it ready for review.
- Move the ticket to the repository's review state, such as
In RevieworReview, when possible. - Use
/reviewwith a fresh subagent that did not write the code. - Fix valid problems, then repeat
/testand/review. Commit and push every reviewed fix before continuing.
Phase 2: pass the automated checks
- Use the GitHub CLI to wait for CI and automated code review when the repository uses them.
- Fix failures caused by your changes and valid review findings.
- If a fix needs a product or technical decision that the task does not contain, stop that task and report the missing decision.
- After changing code, repeat
/testand/review. - If you changed code, commit and push it. Update the pull request summary and proof when needed.
- Reply to every automated review finding. Say what you changed or why you made no change. Resolve the thread when it is fully addressed.
- Wait for the automated checks again.
- Repeat until all available checks pass and the automated review has no unresolved findings.
- Update the ticket with final proof and the pull request link when possible. Keep it in the repository's review state while the pull request is open.
Merge only when asked
If the user asks for merges, merge pull requests in dependency order. Before each merge, confirm that:
- automated checks pass;
- the final
/reviewverdict isApprove; - required approvals are present; and
- no review thread remains unresolved.
Explicitly naming /codex-issue-coordinator grants merge authority only for that coordinator's issue batch. Automatic skill selection does not grant merge authority.
After a prerequisite merges, retarget its dependents to the default branch and update them to that base. Repeat /test, /review, CI, and automated review before merging. Never bypass repository rules. Wait until GitHub reports the pull request as merged before marking its ticket complete when possible. If the user did not ask for merges, leave the pull request open.
Return
Continue with every task that can make progress. For each task, report the pull request, tests, review verdict, CI state, and any blocker.
Without merge authority, stop when every task has a pull request with all
available checks passing, a final /review verdict of Approve, and no
unresolved automated review finding. Record required human approval or merge as
the task blocker. With merge authority, stop when every in-scope pull request is
merged and its ticket is complete when possible. If no task can move forward,
state what is needed.
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.

