Task to pr

From owainlewis/blueprint · View interactive version

Task to pr is an AI agent skill from the GitHub repository owainlewis/blueprint. Delivers a spec, issue, or decided task as a pull request that passes its checks, CI, and an independent review. Leaves the PR open unless merging was explicitly authorized.

How to use this skill

Skill file

Task to PR

Deliver each task as one focused pull request that passes CI and an independent review. The spec, issue, or task is the ticket; do not write another one.

When a step names spec, plan, test, pr, or review, read that file and follow it.

Steps

  1. Read the ticket, the repository instructions, and the code it touches (plus ARCHITECTURE.md or REQUIREMENTS.md if present). If a decision that changes behavior is missing, ask the user or return to spec. Split large work with plan.
  2. Branch from the latest default branch, or continue the existing branch and PR.
  3. Build one behavior at a time with tests against the public interface (write or run a failing test for each behavior before or alongside implementing it). Update ARCHITECTURE.md, REQUIREMENTS.md, or the spec only if present and made wrong by the change.
  4. Follow test until every check passes.
  5. Commit with a Conventional Commit message, then follow pr to push, open or update the pull request, and mark it ready for review.
  6. Follow review. Wait for CI and any review bot on the latest commit.
  7. Fix each real finding and failure, and reply on each review thread with the fix or the reason for no change. Go back to step 4. After three rounds on the same problem, stop and report it.
  8. Link the PR and its proof in the ticket.

Dependent tasks

Start a task that depends on another once that task has an open PR with an Approve review. Branch from it, and update your branch when it changes or merges.

Merge

Leave the PR open. Merge only when the user asks (for example "/task-to-pr and merge it") or /codex-issue-coordinator was invoked by name, and only when:

Never bypass branch protection. After merging, update the ticket and delete any worktree you created. Merging never includes deploying or releasing.

Return

Each PR link with its check results, review verdict, CI state, and anything blocked.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.