Claude-skill-registry issue-extract
Extracts Issue ID from the current branch name. Use this skill when you need to determine the Issue number associated with the current work context.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/issue-extract" ~/.claude/skills/majiayu000-claude-skill-registry-issue-extract && rm -rf "$T"
manifest:
skills/data/issue-extract/SKILL.mdsource content
Issue Extract
現在のブランチ名から Issue 番号を抽出する。
Goal
ブランチ名から Issue 番号を取得し、GitHub Issue との連携を可能にする。
Instructions
-
現在のブランチ名を取得
BRANCH=$(git branch --show-current) -
Issue 番号を抽出
ISSUE_ID=$(echo "$BRANCH" | grep -oE '[0-9]+' | head -1) -
エラーチェック
if [ -z "$ISSUE_ID" ]; then echo "Error: Could not extract Issue ID from branch name: $BRANCH" echo "Branch name must contain Issue number (e.g., feature/123-description)" exit 1 fi
Expected Branch Naming Patterns
| パターン | 例 |
|---|---|
| |
| |
| |
| |
Output
変数に Issue 番号が設定されるISSUE_ID- Issue が見つからない場合はエラーメッセージを出力
Usage in Workflows
このスキルは以下のワークフローで内部的に使用される:
/commit-merge/commit-push/report-progress/branch-task