Agent skill
issue-labeler
Analyze unlabeled GitHub issues and generate label recommendations for review. Supports batch submission after approval.
Install this agent skill to your Project
npx add-skill https://github.com/patniko/skills/tree/main/issue-labeler
Metadata
Additional technical details for this skill
- author
- patrick
- version
- 1.0
SKILL.md
Issue Labeler
Generate label recommendations for unlabeled GitHub issues, review them, then submit in batch.
When to Use
- Repository has many unlabeled or poorly labeled issues
- You want to triage issues without manually reading each one
- Need consistent labeling based on issue content
Workflow
Step 1: Generate Recommendations
# Fetch unlabeled issues and analyze them
./scripts/analyze.sh owner/repo
This creates recommendations.json with suggested labels for each issue.
Step 2: Review Recommendations
# Launch the review UI
./scripts/serve.sh
The UI shows:
- Issue title and preview
- Current labels (if any)
- Recommended labels with confidence
- Checkbox to approve/reject each recommendation
Step 3: Submit Approved Labels
After reviewing in the UI, export approved recommendations and run:
# Apply approved labels
./scripts/apply.sh recommendations-approved.json
Or use the "Submit All" button in the UI to apply via gh CLI.
Label Categories
The analyzer suggests labels from these categories:
| Category | Labels |
|---|---|
| Type | bug, enhancement, question, documentation |
| Priority | priority-1, priority-2, priority-3 |
| Status | triage, needs-info, investigating, confirmed |
| Area | (detected from content: auth, cli, api, ui, etc.) |
How Analysis Works
For each unlabeled issue, the LLM analyzes:
- Title keywords - error, feature, how to, crash, etc.
- Body content - stack traces, repro steps, feature requests
- Existing patterns - what labels similar issues have
- Repository context - available labels in the repo
Files
issue-labeler/
├── SKILL.md # This file
├── review.html # Review UI for recommendations
├── scripts/
│ ├── analyze.sh # Fetch and generate recommendations
│ ├── apply.sh # Apply approved labels
│ └── serve.sh # Launch review UI
├── recommendations.json # Generated recommendations (git-ignored)
└── approved.json # Approved recommendations (git-ignored)
Example Recommendation
{
"number": 123,
"title": "App crashes when clicking submit",
"current_labels": [],
"recommended_labels": ["bug", "priority-2", "needs-info"],
"confidence": 0.85,
"reasoning": "Title indicates crash (bug). No repro steps provided (needs-info). User-facing issue (priority-2).",
"approved": null
}
Safety
- No labels applied without explicit approval
- Review UI shows reasoning for each recommendation
- Dry-run mode available:
./scripts/apply.sh --dry-run - All actions logged for audit
Notes
- Requires
ghCLI authenticated with write access to issues - Run
gh auth statusto verify permissions - For large repos, analyze in batches using
--limitflag
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
scorecard-update
Review Azure Data Explorer dashboards for Copilot CLI metrics and update Google Sheets scorecard. Connects to existing Chrome session for authentication.
canvas
Spawn interactive terminal TUI components (calendars, documents, flight bookings) with real-time IPC communication. Display rich content and collect user selections in tmux split panes.
shipment-tracker
Generate a visual report of what was shipped in GitHub repositories over a specified time period by analyzing merged PRs and closed issues.
meeting-to-issues
Parse meeting transcripts to extract action items and create GitHub issues after user confirmation. Converts discussions into trackable work items.
issue-triage
Fetch GitHub issues and use LLM judgment to prioritize them based on importance, clarity, delegation potential, and urgency. Helps identify what to work on next.
competitive-analysis
Compare local codebase capabilities against competitor products by researching competitor features via web search and documentation, analyzing local code patterns, and generating an interactive HTML comparison report.
Didn't find tool you were looking for?