Label issues

From shashanktomar/zen-ui · View interactive version

Label issues is an AI agent skill from the GitHub repository shashanktomar/zen-ui. Label unlabeled GitHub issues with priority and type labels. Use when triaging issues, cleaning up the backlog, or when asked to label/triage issues.

How to use this skill

Skill file

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:

# 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:
  1. Suggest labels:

Base suggestions on:

  1. Ask for confirmation using AskUserQuestion:
  1. Apply labels if approved:

```bash

gh issue edit <number> --add-label "priority: medium" --add-label "enhancement"

```

  1. 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]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.