关于 label-schemes
用于规范仓库标签的技能,提供一致的命名约定和 tea CLI 操作方法,涵盖标签导入导出、批量处理及组织级操作。
主要功能
- 01标签命名约定
- 02JSON 导出与 CSV 导入
- 03批量标签操作
- 04组织级标签指引
适用场景
- 01创建易于浏览的 issue 标签
- 02通过文件迁移标签集合
- 03批量更新或删除选定标签
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ deevus/ tea-skills --skill label-schemes安装后在 Claude Code 中输入/label-schemes确认已加载。
详细介绍
标签方案
命名约定
统一的前缀便于快速浏览和筛选标签。
# Type
tea labels create --name "type:bug" --color "#d73a4a" --description "Something isn't working"
tea labels create --name "type:feature" --color "#a2eeef" --description "New feature or request"
tea labels create --name "type:docs" --color "#0075ca" --description "Documentation"
tea labels create --name "type:chore" --color "#e4e669" --description "Maintenance"
tea labels create --name "type:refactor" --color "#d4c5f9" --description "Code restructuring"
# Priority
tea labels create --name "priority:critical" --color "#b60205"
tea labels create --name "priority:high" --color "#d93f0b"
tea labels create --name "priority:medium" --color "#fbca04"
tea labels create --name "priority:low" --color "#0e8a16"
# Status
tea labels create --name "status:blocked" --color "#000000"
tea labels create --name "status:in-progress" --color "#1d76db"
tea labels create --name "status:needs-review" --color "#5319e7"
# Scope
tea labels create --name "scope:frontend" --color "#bfd4f2"
tea labels create --name "scope:backend" --color "#c2e0c6"
tea labels create --name "scope:api" --color "#d4c5f9"
导出 / 导入
tea labels list --output json > labels.json
tea labels create --file labels.csv
批量操作
需要解析时,使用 tea labels list --output json,然后对选定的 ID/议题应用 tea labels update、tea labels delete 或 tea issues edit。
组织级标签
有关组织级标签操作,请参阅 actions/org-labels/README.md。
解析 actions/... 路径时,请使用相对于此技能目录随附的 actions/ 目录。
评论
支持 Markdown