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/Issue に対して tea labels update、tea labels delete、または tea issues edit を実行します。
組織レベルのラベル
組織レベルのラベル操作については、actions/org-labels/README.md を参照してください。
actions/... のパスを解決する際は、このスキルディレクトリに相対してバンドルされている actions/ ディレクトリを使用してください。
コメント
Markdown 対応