Ticket To Pr Loop

Converts open bug reports and issues into verified, reviewer-ready pull requests, one ticket per pass.

WorkflowengineeringMIT1 source files

Before you use this component

This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.

Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.

Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.

Source publisher
Claude Code Templates
Creator supplied by source
Not listed in source
Pinned source version
a344359459263d73d8948651c789244093c02e4e
License evidence
LICENSE

Source preview

cli-tool/components/loops/engineering/ticket-to-pr-loop.md

---
name: ticket-to-pr-loop
description: Converts open bug reports and issues into verified, reviewer-ready pull requests, one ticket per pass.
category: engineering
interval: 30m
stop-condition: Every actionable ticket in scope has a verified PR or is flagged for human input.
components: [command:git-workflow/fix-github-issue, command:git-workflow/create-pr, hook:git/conventional-commits]
tags: [issues, pull-requests, automation, loop]
---

# Ticket-to-PR-Ready Loop

> **Loop Engineering** — turn a backlog of issues into a steady stream of small, verified PRs without hand-holding each one.

## 🎯 Goal
Pick one actionable ticket, implement and verify the fix, and open a PR that a reviewer can approve quickly — then move to the next ticket.

## ⏱️ Schedule
Suggested interval: `30m`.

## ▶️ Run it
```
/loop 30m "Take the next actionable open issue. Implement the fix in an isolated branch, add tests, verify, and open a conventional-commit PR linking the issue. If a ticket needs product decisions, label it for human review and skip. Continue until the queue is clear."
```

## 🔁 Iteration steps
1. **Perceive** — read the next open, actionable issue.
2. **Reason** — confirm scope; if it needs human/product input, label and skip.
3. **Plan** — outline the change and the test that proves it.
4. **Act** — implement with `/fix-github-issue`; commits follow `conventional-commits`.
5. **Observe** — run tests; on green, open a PR with `/create-pr` that links the issue.

## 🛑 Stopping condition
No actionable tickets remain — each is either a verified PR or flagged for human input.

## 🧩 Referenced components
- `command:git-workflow/fix-github-issue` — implements the ticket fix.
- `command:git-workflow/create-pr` — opens the linked PR.
- `hook:git/conventional-commits` — enforces clean, conventional commit messages.

## 💡 Example
A "typo in error message" issue becomes a one-line fix with a snapshot test and a `fix: correct auth error copy (#412)` PR, all within a single pass.

Preview capped at 60,000 characters. Download the bundle for every original file and notice.

Read the redistribution license
MIT License

Copyright (c) 2025 Daniel (San) Ávila

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Bundle SHA-256: 77d2d9c783c057216eb4300edc9e3c2d6573e03ab3cb9a5e00ec8f30c17bb51c. Files are served as downloads and are never executed by this page.