Skip to content
Back to skills

Label Issues

ASecurity

Label unlabeled GitHub issues with priority and type labels. Use when triaging issues, cleaning up the backlog, or when asked to label/triage issues.

  • 16 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 12, 2026
ai-agentsbashgitsecuritydocumentation

Works with

  • cli

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add shashanktomar/zen-ui --skill label-issues --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Label Issues?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Label Issues
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shashanktomar-label-issues/badge)](https://www.skillsdirectory.com/skills/shashanktomar-label-issues)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: label-issues
description: Label unlabeled GitHub issues with priority and type labels. Use when triaging issues, cleaning up the backlog, or when asked to label/triage issues.
disable-model-invocation: true
allowed-tools: Bash(gh *), AskUserQuestion
---

# Label GitHub Issues

Triage unlabeled issues by assigning priority and type labels with user confirmation.

## Workflow

### Step 1: Fetch context

Run these commands to get current state:

```bash
# Get unlabeled issues (no labels at all)
gh issue list --json number,title,body,labels --jq '.[] | select(.labels | length == 0)'

# Get available labels
gh label list
```

If no unlabeled issues exist, inform the user and stop.

### Step 2: Process each issue

For each unlabeled issue:

1. **Show the issue**:
   - Issue number and title
   - First 200 characters of body (if present)

2. **Suggest labels**:
   - **Priority** (exactly one): `priority: critical`, `priority: high`, `priority: medium`, or `priority: low`
   - **Type** (one or more): `bug`, `enhancement`, `documentation`, `question`, etc.

   Base suggestions on:
   - Title keywords (fix/bug/error → bug, add/feature/request → enhancement)
   - Body content and tone
   - Severity indicators

3. **Ask for confirmation** using AskUserQuestion:
   - Show your suggested labels
   - Let user approve, modify, or skip

4. **Apply labels** if approved:
   ```bash
   gh issue edit <number> --add-label "priority: medium" --add-label "enhancement"
   ```

5. **Move to next issue**

## Label Guidelines

| Priority | Use when |
|----------|----------|
| `priority: critical` | Blocks release, security issue, data loss |
| `priority: high` | Major bug, key feature request |
| `priority: medium` | Standard work item |
| `priority: low` | Nice to have, minor improvement |

## Example Interaction

```
Issue #42: "App crashes when clicking submit"
Body: "After filling the form, clicking submit causes the app to crash..."

Suggested labels:
- priority: high (crash = significant impact)
- bug (crash indicates defect)

Apply these labels? [Yes / Modify / Skip]
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.