Agent skill
gh-current-issue
Determine the GitHub issue number by parsing the current git branch name that starts with digits (e.g., 38-migrate...). Use when you need the issue number for comments, status updates, or automation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/gh-current-issue
SKILL.md
Get Current Issue Number
Overview
Derive a GitHub issue number from the current branch name, assuming the branch begins with the issue number.
Workflow
- Read the current branch name and extract the leading issue number.
- Return the issue number for later automation (comments, status updates).
Quick Start
Run the script from any directory in the repo and show the full output:
.codex/skills/gh-current-issue/scripts/issue_from_branch.sh
Notes
- Expected branch pattern:
^<digits>-.+(e.g.,38-migrating-code-to-pwa). - If the branch does not start with digits, ask the user to confirm the issue number or rename the branch.
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?