AgentSkillsCN

configuring-labeler

为拉取请求自动添加或更新标签。当收到标签器设置或自动标签需求时,请使用此技能。

SKILL.md
--- frontmatter
name: configuring-labeler
description: PR自動ラベリングの設定を追加・更新します。ラベラー設定、自動ラベル付与を求められた場合に使用してください。

PR 自動ラベリング設定

Pull Request に変更内容に応じて自動的にラベルを付与する設定を管理します。

手動でのラベル付与は不要 - PR 作成時に GitHub Actions で自動付与されます。

実行手順

  1. ユーザーから追加したいラベルルールをヒアリング
  2. .github/labeler.yml を確認・更新
  3. 変更をコミット・プッシュ

ラベリングルール

アプリケーション

ラベル対象ファイル
backendapps/backend/**
frontendapps/frontend/**

カテゴリ

ラベル対象ファイル
infra.github/**, docker-compose.yml
docs**/*.md, docs/**
tests**/tests/**, **/*.test.{ts,tsx,py}
dependenciespackage.json, pyproject.toml

技術スタック

ラベル対象ファイル
typescript**/*.{ts,tsx}
python**/*.py

設定ファイル

.github/labeler.yml:

yaml
backend:
  - changed-files:
      - any-glob-to-any-file: 'apps/backend/**'

frontend:
  - changed-files:
      - any-glob-to-any-file: 'apps/frontend/**'

カスタマイズ

bash
# 新しいラベル作成
gh label create "ai" --color "FF6B6B" --description "AI/LLM related"

# labeler.yml にルール追加
cat >> .github/labeler.yml <<EOF

ai:
  - changed-files:
      - any-glob-to-any-file: 'apps/backend/src/services/llm.py'
EOF

参考