← Back to library

Triage assigned tickets into draft PRs or questions

u/MountainByte_Ch describes a loop that fetches issues assigned to him, has an agent classify readiness, drafts a reply for unclear issues, and has a subagent open a pull request for ready ones, also picking up review comments. He reviews everything. We keep the triage loop and omit anything that fakes activity.

  • OutcomeClassify each assigned ticket as ready or not; ready ones get a draft pull request, the rest get a drafted clarifying question.
  • SetupAn afternoon+
  • LevelAdvanced
  • Creditu/MountainByte_Ch on r/ClaudeAI
View original
Works with
Claude CodeCustom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You get many small assigned tickets
  • Unclear tickets bounce back and forth
  • You review all code anyway

Not for: Merging without review; Faking presence or activity to an employer

What do you need, and what do you get?

You need

  • Issue tracker API
  • Repository access
  • Classification prompt

You get

  • Draft clarifying replies
  • Draft pull requests

How does it work, step by step?

  1. Fetch assigned issuesPoll on a schedule.
  2. ClassifyDecide ready or not ready, with reasons.
  3. Draft a questionFor not ready, save a draft reply you edit before posting.
  4. Draft a PRFor ready, a subagent works on a branch and opens a PR for review.
  5. Handle review commentsPick up new PR comments and propose changes.

The prompt

Our own prompt, inspired by u/MountainByte_Ch on r/ClaudeAI and written to work in Claude Code and Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt1 variable
Read issue {issue} with attachments.
Decide READY or NOT_READY for implementation with reasons.
If NOT_READY, draft a short question for the reporter.
If READY, write a plan: files, tests, risks. Do not push or merge.

Inspired by u/MountainByte_Ch on r/ClaudeAI: I automated most of my job. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Never auto-merge.
  • Be open with your team and employer about agent use and follow their policy.

Our take

The triage split is the valuable part: an unclear ticket gets a question instead of wasted code. We deliberately left out the part of the post about keeping a chat status active, which we do not recommend. Be transparent with your employer about automation that touches work systems. Fetch only issues assigned to you unless policy allows more. Classify before coding. Draft questions for ambiguous tickets and draft pull requests only for ready ones. Handle review comments the same way you would a human teammate's: read them, respond honestly, do not auto-resolve. Cap how many draft PRs open per day. Never merge without your review. Log which tickets the agent touched for audit. Prefer read access to the issue tracker first. Keep secrets out of classification prompts. Re-run classification when ticket descriptions change substantially after comments land. Decline to open a pull request when the issue lacks acceptance criteria you can test.

Where the time goes back: Time shifts from writing routine changes to reviewing them.

FAQ

Does code quality drop?
The author reports similar quality because he reviews everything.
What about secrets?
Limit the agent's credentials to what it needs.

Source and credit

Inspired by u/MountainByte_Ch on r/ClaudeAI. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
I automated most of my job
Creator
u/MountainByte_Ch on r/ClaudeAI
Published on
Reddit
Original date
Apr 10, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Distill agent sessions into shared memory every night

Save each completed agent session to its own transcript file, have one analyzer agent per transcript verify, enrich and organize small linked memory files, run an organizer once to merge duplicates and keep an index current, then attach the store to the agent's next session with read access only and repeat the pass nightly on new sessions.

Credit: Anthropic

An afternoon+
IT & SecuritySkill✓ AI dry run

Find repeat fixes and good habits in your team's PRs

Have Claude Code look across a chosen window of commits and pull request review comments for the same fix or review note coming up again and again, suggest turning the top ones into a project rule or skill you write in your own words, and list good practices already in the repo that other teams could copy.

Credit: anthropics

Under an hour
IT & SecuritySkill✓ AI dry run

Score your team's AI coding adoption with repo evidence

Have Claude Code rate a software team on seven areas of AI coding adoption, from tool access to guardrails, using evidence from the repo where you allow it and your answers elsewhere, then write a self-contained HTML report with the overall step, the weakest area and next moves.

Credit: anthropics

Under an hour