Ticket Auto-Triage
Automatically analyze and label unlabeled issues in a GitHub repository to improve organization and streamline development workflows.
Goal
Automate issue labeling for unlabeled GitHub issues
How to Run
Run this loop in a GitHub repository to automatically label unlabeled issues using AI analysis.
- 01
Initiate the Loop
Execute the kickoff prompt in your preferred coding agent environment (Cursor, Claude Code, Codex, etc.)
- 02
Monitor Progress
Observe the agent's labeling decisions and verify accuracy as it processes each issue
- 03
Review Results
After loop completion, audit labeled issues to ensure proper categorization
Workflow Steps
- 01
Check for Unlabeled Issues
Run 'gh issue list' to identify open issues missing labels
- 02
Analyze Issue Content
Review title, body, and comments to determine appropriate labels (bug, feature, documentation, etc.)
- 03
Apply Labels
Add relevant labels to the issue using 'gh issue edit'
- 04
Verify Changes
Confirm labels were successfully applied and issue is now categorized
- 05
Repeat Process
Continue until no unlabeled issues remain or max iterations reached
Kickoff Prompt
Start the "Ticket Auto-Triage" loop. Goal: Automate issue labeling for unlabeled GitHub issues Max iterations: 10 Between iterations run: gh issue list --state open --label '' Exit when: No unlabeled issues remain Start the Ticket Auto-Triage loop to automatically label unlabeled issues in this repository. Begin by checking for open issues without labels, then analyze each one and apply appropriate labels based on content. Self-pace this loop. After each iteration, run `gh issue list --state open --label ''` and evaluate the output, and only continue if the exit condition is not met (No unlabeled issues remain). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.
Guardrails
hardcoded- ·Only process issues without any existing labels
- ·Use predefined label taxonomy from repository settings
- ·Avoid applying generic labels like 'bug' without specific context
- ·Stop immediately if repository connection fails
- ·Respect maximum iteration limit to prevent infinite loops
- ·Do not modify issues that already have labels applied
Flow Diagram
Related loops — Automation
Automation
Release Automation Builder
This loop automates the entire software release process by creating and validating a CI/CD pipeline that builds, tests, and deploys your application. The agent will iteratively refine the release pipeline until it passes all checks, ensuring a robust and reliable deployment process.
Automation
Automate Repetitive Task
This loop identifies repetitive manual tasks in a project and automatically generates automation scripts to replace them. The agent iteratively analyzes workflows, creates optimized scripts, validates their effectiveness, and refines until all targeted manual steps are eliminated.
Automation
Workflow Until Zero Failures
This loop automates the process of identifying, fixing, and resolving CI/CD workflow failures. It continuously monitors GitHub Actions workflow runs, inspects failure logs, applies targeted fixes, and re-runs workflows until all pass or maximum iterations are reached.