# Label Apply for Issue/PR Classification

Apply classification labels to Issues or PRs based on current label definitions, ensuring accurate categorization before submission.

**Canonical URL:** https://skillshunter.net/skills/discovered-ebefb1080f9366c11b4aa6c7f62c251ca0eb8b16a21d170f

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-ebefb1080f9366c11b4aa6c7f62c251ca0eb8b16a21d170f

**Markdown URL:** https://skillshunter.net/skills/discovered-ebefb1080f9366c11b4aa6c7f62c251ca0eb8b16a21d170f.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-ebefb1080f9366c11b4aa6c7f62c251ca0eb8b16a21d170f/download

**Category:** Software & Development

**Source URL:** https://github.com/nanase/claude-skills/blob/b23836abbd3974fccd805579bfb31a9c18c69492/plugins/flow/skills/label-apply/SKILL.md

**Source commit:** b23836abbd3974fccd805579bfb31a9c18c69492

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T09:02:50.000000Z

**Updated at:** 2026-12-02T09:15:40.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before applying labels, run `scripts/list-labels.sh` to retrieve the latest label definitions. Use the description of each label to determine if it is the main topic of the Issue/PR, not just related. If unsure, do not apply the label.

### When to use it

- Classify a new GitHub Issue based on current label definitions
- Assign appropriate labels to a PR before merging
- Ensure consistent labeling across a team's workflow

## Skill instructions

---
description: Issue / PR を出す直前に、その時点のラベル定義を読んで分類ラベルを付ける。Issue / PR を出すときに使う。
name: label-apply
---

# label-apply — Issue / PR に分類ラベルを付ける

Issue / PR を出す直前に、その時点のラベル定義を読んで付けるラベルを判断し、付ける。固定の対応表は持たない（ラベルは時々で変わるため、ラベル定義を毎回読む）。

合うラベルが無ければ付けない。誤分類のコストは付け忘れより大きいので、迷ったら付けない。

## 手順

1. 付与の直前に `scripts/list-labels.sh` でラベル一覧（名前・説明・色）を取る
2. 各ラベルを「主題か」で判定し、当てはまるものだけ付ける
   - 説明文の範囲で判定
   - ラベル名は見出しにすぎない
   - 「触れている」でなく「主題である」かで見る
   - 説明文が限定する対象に触れていなければ、語感が近くても付けない
   - 迷ったら付けない
3. 判定したラベルを `scripts/apply-labels.sh issue|pr <番号> <ラベル名>...` で付与する
   - 付けるラベルが 0 件なら実行しない
   - 出力には既存のラベルも並ぶので、判定したラベルが含まれているかで確認する

## 出力

- 付けたラベル（無ければ「付けない」）
  - スクリプトの出力をそのまま貼らない。既存のラベルまで自分が付けたことになる
- 見送り理由があれば一言
  - Issue / PR 本文には書かない

