New issues pile up fast on active repos. Let Claude triage them automatically.
Auto-Label and Prioritize
# .github/workflows/triage.yml
name: Issue Triage
on:
issues:
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Triage this issue:
1. Add labels: bug, feature, docs, question, or invalid
2. Add priority: P0 (critical), P1 (high), P2 (medium), P3 (low)
3. If it's a bug, check if there's enough info to reproduce.
If not, ask for reproduction steps.
4. If it duplicates an existing issue, link to it.
Auto-Respond to Common Questions
prompt: |
If this issue is a question that's answered in our docs or README:
1. Link to the relevant doc section
2. Provide a brief answer
3. Add the "question" label
If it's a genuine bug or feature request, just label it
and don't respond.
Scheduled Maintenance
on:
schedule:
- cron: '0 9 * * 1' # Monday 9am
jobs:
stale-check:
steps:
- uses: anthropics/claude-code-action@v1
with:
prompt: |
Review open issues older than 30 days.
For each: is it still relevant? Has it been
addressed by recent commits? Post a status update.
Tip
Start conservative. Have Claude only label issues for the first week. Review the labels manually, then expand to auto-responses once you trust the accuracy.