Issue Analysis with Label Inference

Analyze GitHub Issues and automatically infer appropriate labels from Miyabi's 57-label system across 11 categories. Use when creating or triaging Issues, or when label inference is needed.

allowed_tools: Read, Grep, Glob, WebFetch

$ 安裝

git clone https://github.com/ShunsukeHayashi/miyabi-mcp-bundle /tmp/miyabi-mcp-bundle && cp -r /tmp/miyabi-mcp-bundle/claude-plugins/miyabi-full/skills/issue-analysis ~/.claude/skills/miyabi-mcp-bundle

// tip: Run this command in your terminal to install the skill


name: Issue Analysis with Label Inference description: Analyze GitHub Issues and automatically infer appropriate labels from Miyabi's 57-label system across 11 categories. Use when creating or triaging Issues, or when label inference is needed. allowed-tools: Read, Grep, Glob, WebFetch

🏷️ Issue Analysis with Label Inference

Version: 2.0.0 Last Updated: 2025-11-22 Priority: ⭐⭐⭐⭐ (P1 Level) Purpose: AI駆動のIssue分析と57ラベルシステムからの自動推論


📋 概要

Miyabiの57ラベルシステム(11カテゴリ)に基づいたAI駆動のIssue分析と 自動ラベル推論を実行します。


🎯 P0: 呼び出しトリガー

トリガー
ラベル質問"what labels should I use?"
Issue分析"analyze this Issue", "triage issue #270"
ラベル推論"infer labels for this Issue"
Issue作成後Issue作成後の自動処理
バックログ管理"prioritize backlog"

🔧 P1: ラベルカテゴリ一覧

11カテゴリ・57ラベル

#カテゴリ必須/任意用途
1STATE8自動ライフサイクル管理
2AGENT6推奨Agent割り当て
3PRIORITY4必須優先度管理
4TYPE7必須Issue分類
5SEVERITY4条件重大度(バグのみ)
6PHASE5推奨プロジェクトフェーズ
7SPECIAL7条件特殊フラグ
8TRIGGER4自動自動化トリガー
9QUALITY4自動品質スコア
10COMMUNITY4推奨コミュニティ
11HIERARCHY4自動Issue階層

🚀 P2: ラベル推論ルール

TYPE推論(必須・1個)

キーワードラベル
"add", "implement", "create", "new"✨ type:feature新機能追加
"fix", "crash", "error", "broken"🐛 type:bugバグ修正
"docs", "README", "guide"📚 type:docsドキュメント
"refactor", "cleanup", "reorganize"🔧 type:refactorリファクタ
"test", "coverage", "e2e"🧪 type:testテスト
"architecture", "system design"🏗️ type:architectureアーキテクチャ
"deploy", "CI/CD", "docker"🚀 type:deploymentデプロイ

PRIORITY推論(必須・1個)

条件ラベルSLA
セキュリティ、本番障害、データ損失🔥 priority:P0-Critical24時間
主要機能、重大バグ、性能劣化⚠️ priority:P1-High3日
通常機能、標準バグ📊 priority:P2-Medium1週間
軽微改善、typo📝 priority:P3-Lowなし

SEVERITY推論(条件付き・バグのみ)

条件ラベルエスカレーション
本番停止、セキュリティ侵害🚨 severity:Sev.1-CriticalGuardian + CISO
主要機能障害⚠️ severity:Sev.2-HighTechLead
部分的機能問題📊 severity:Sev.3-MediumAgent自動
軽微UI問題📝 severity:Sev.4-LowAgent自動

SPECIAL推論(条件付き)

キーワードラベルアクション
"XSS", "SQL injection", "CVE"🔐 securityCISO通知、Issue非公開
"Claude API", "high cost"💰 cost-watch予算監視
"depends on #", "blocked by"🔄 dependencies依存解決まで待機
"research", "investigate"🎓 learningSLA延長
"experiment", "POC"🔬 experiment失敗許容

COMMUNITY推論(推奨)

条件ラベル
2時間以内、依存なし、明確な要件👋 good-first-issue
外部専門知識が必要🙏 help-wanted

HIERARCHY推論(自動)

条件ラベル
親Issueなし🌳 hierarchy:root
子Issueあり📂 hierarchy:parent
親Issueあり📄 hierarchy:child
子Issueなし(末端)🍃 hierarchy:leaf

⚡ P3: 分析ワークフロー

Step 1: Issue内容読み取り

- タイトル
- 本文(説明)
- コメント(あれば)
- 関連Issue(リンク)

Step 2: キーワード抽出

- 技術キーワード: "security", "performance", "API"
- アクションキーワード: "add", "fix", "refactor"
- 緊急度キーワード: "urgent", "critical", "nice-to-have"

Step 3: 推論ルール適用

1. TYPE決定(必須、1個)
2. PRIORITY決定(必須、1個)
3. SEVERITY決定(バグ/インシデント時)
4. SPECIAL条件チェック
5. COMMUNITY適合性評価
6. HIERARCHY位置決定

Step 4: ラベルセット生成

{
  "required": ["type:feature", "priority:P1-High"],
  "recommended": ["agent:codegen", "phase:planning"],
  "optional": ["security", "cost-watch"],
  "automatic": ["state:pending", "hierarchy:leaf"]
}

📊 出力フォーマット

JSON形式

{
  "issue_number": 270,
  "title": "XSS vulnerability in comment form",
  "analysis": {
    "type": "bug",
    "priority": "P0-Critical",
    "severity": "Sev.1-Critical",
    "estimated_time": "4-6 hours",
    "complexity": "medium",
    "agent_recommendation": "codegen + review",
    "escalation": "Guardian + CISO"
  },
  "labels": {
    "required": ["type:bug", "priority:P0-Critical"],
    "recommended": ["severity:Sev.1-Critical", "security"],
    "automatic": ["state:pending", "hierarchy:leaf"]
  },
  "rationale": {
    "type": "Keywords: 'vulnerability', 'XSS'",
    "priority": "Security issue with global impact",
    "severity": "Security vulnerability"
  }
}

テキスト形式

🏷️ Issue Analysis Results

📋 Issue #270: XSS vulnerability in comment form

📊 Analysis:
- Type: bug (Keywords: 'vulnerability', 'XSS')
- Priority: P0-Critical (Security, global impact)
- Severity: Sev.1-Critical (Security vulnerability)
- Estimated: 4-6 hours
- Agent: codegen + review

🏷️ Labels:
✅ Required: type:bug, priority:P0-Critical
📎 Recommended: severity:Sev.1-Critical, security
🔄 Automatic: state:pending, hierarchy:leaf

⚠️ Escalation: Guardian + CISO (immediately)

🛡️ エラーハンドリング

キーワード検出失敗

# デフォルトフォールバック
TYPE: type:feature (不明な場合)
PRIORITY: priority:P2-Medium (不明な場合)

複数TYPE該当

# 優先順位で決定
bug > security > feature > docs > test > chore

コンフリクトするラベル

# 相互排他ラベルのチェック
state:pending ⊕ state:in-progress
priority:P0 ⊕ priority:P1

✅ 成功基準

チェック項目基準
TYPE推論1個選択
PRIORITY推論1個選択
SEVERITY推論バグ時のみ
SPECIAL検出該当時のみ
根拠提示各ラベルに理由
エスカレーション必要時に推奨

🔗 関連ドキュメント

ドキュメント用途
docs/LABEL_SYSTEM_GUIDE.mdラベルシステム詳細
.github/labels.ymlラベル定義
agents/specs/coding/issue-agent.mdIssueAgent仕様
docs/ENTITY_RELATION_MODEL.mdエンティティ関係

📝 関連Skills

  • Agent Execution: ラベル割り当て後のAgent実行
  • Git Workflow: Issue解決後のコミット
  • Rust Development: 実装品質チェック

Repository

ShunsukeHayashi
ShunsukeHayashi
Author
ShunsukeHayashi/miyabi-mcp-bundle/claude-plugins/miyabi-full/skills/issue-analysis
3
Stars
1
Forks
Updated3d ago
Added1w ago