Agent skill
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 this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/issue-extract
SKILL.md
Issue Extract
現在のブランチ名から Issue 番号を抽出する。
Goal
ブランチ名から Issue 番号を取得し、GitHub Issue との連携を可能にする。
Instructions
-
現在のブランチ名を取得
bashBRANCH=$(git branch --show-current) -
Issue 番号を抽出
bashISSUE_ID=$(echo "$BRANCH" | grep -oE '[0-9]+' | head -1) -
エラーチェック
bashif [ -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
| パターン | 例 |
|---|---|
feature/ISSUE_ID-description |
feature/42-add-login |
research/ISSUE_ID-description |
research/15-explore-caching |
fix/ISSUE_ID-description |
fix/7-memory-leak |
docs/ISSUE_ID-description |
docs/3-update-readme |
Output
ISSUE_ID変数に Issue 番号が設定される- Issue が見つからない場合はエラーメッセージを出力
Usage in Workflows
このスキルは以下のワークフローで内部的に使用される:
/commit-merge/commit-push/report-progress/branch-task
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?