360 Secure SkillHub
360 安全技能中心

issue-label

该 Skill 接收 issue 编号,使用 gh 命令读取指定仓库(toss/es-toolkit)issue 的标题、正文和已有标签;若尚无标签,则判断其属于缺陷、功能、文档、类型或讨论等类别,并添加一个建议标签,最后输出标签及理由。

分类:协作
toss
热度 0.00
最近更新 2026-11-25 11:51:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add toss/es-toolkit/issue-label
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
issue-label
description
Suggest and apply GitHub labels to unlabeled issues
argument-hint
<issue number>
allowed-tools
Bash, Read, Grep

Issue Label

Analyze issue content and assign appropriate labels.

Input

$ARGUMENTS — Issue number (e.g. 1234)

Available Labels

Label When to use
p0: major bug Core function broken, incorrect results, crashes
p1: minor bug Edge case failures, non-critical behavior issues, type errors
p1: docs bug Wrong/outdated documentation, broken links
p2: optimization Performance improvements, bundle size reduction
p2: new feature New function or capability request
p2: type enhancement TypeScript type improvements, better generics
p2: refactoring Code cleanup, internal improvements
p2: docs enhancement New docs, translations, better examples
p3: discussion Questions, design discussions, RFCs
help wanted Good for external contributors

Workflow

1. Fetch issue

gh issue view {number} --repo toss/es-toolkit --json title,body,labels

If labels already exist, report them and stop.

2. Analyze content

From title and body, identify:

  • Is it a bug report? (error messages, "doesn't work", "incorrect", "doesn't match lodash")
  • Is it a feature request? ("add", "implement", "support")
  • Is it about docs? ("docs", "typo", "translation", "example")
  • Is it about types? ("type", "TypeScript", "generic", "inference")
  • Is it a question? (question marks, "how to", "is it possible")

3. Apply label

gh issue edit {number} --repo toss/es-toolkit --add-label "{label}"

4. Report

## Issue #{number} — {title}

### Applied Label: {label}
### Reason: {why this label fits}