labels
根据内容分析自动生成PR标签
📖 中文导读:根据内容分析自动生成PR标签 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: labels description: Auto-generate PR labels based on content analysis version: 1.0.0 author: xiaoju111a triggers: - labels - label - tag
Label Generation Skill
Analyze PR content and suggest appropriate labels.
Label Categories
| Label | When to Use |
|---|---|
bug |
Fixes a bug or defect |
feature / enhancement |
Adds new functionality |
documentation |
Documentation-only changes |
refactor |
Code restructuring without behavior change |
test |
Test additions or modifications |
chore |
Build, config, CI/CD changes |
breaking-change |
Breaking API or behavior changes |
dependencies |
Dependency updates |
security |
Security fixes or improvements |
performance |
Performance optimizations |
Rules
- Be conservative - Only suggest labels you're confident about
- Maximum 3 labels - Don't over-label
- Use repo labels - Only suggest labels that exist in the repo
- Consider scope - Look at file paths, not just content
Signals
bug: Fix, patch, resolve, issue, error, crashfeature: Add, new, implement, introducedocs: README, .md files, comments onlyrefactor: Rename, move, restructure, cleantest: test/, spec/, tests, .test., .spec.chore: .github/, config, CI, builddeps: package.json, requirements.txt, go.modsecurity: auth, password, token, vulnerability, CVEperf: optimize, cache, speed, performance
Output Format
{
"labels": ["bug", "security"],
"reason": "Fixes authentication bypass vulnerability"
}