issue-extract

Extract the Issue number from the current Git branch name.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/barikata1984/.agent --skill issue-extract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: issue-extract
Source: https://github.com/barikata1984/.agent/tree/main/skills/issue-extract
Command: npx skills add https://github.com/barikata1984/.agent --skill issue-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract the Issue number from the current Git branch name to enable automatic linking with the corresponding GitHub Issue in workflows.

Core Features & Use Cases

  • Extracts the Issue ID from standard branch naming patterns like feature/123-description, bugfix/45-fix.
  • Enables automation to map work to the correct Issue for reporting, CI, and task tracking.
  • Use Case: When starting a new task, run this skill to identify the Issue number from the branch to auto-link commits and PRs.

Quick Start

Run the tool in a repository whose branch name includes an Issue ID to obtain the ISSUE_ID value.

Frequently Asked Questions about issue-extract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract an issue ID from a Git branch name?

The tool parses standard branch naming patterns like feature/123-description and bugfix/45-fix to isolate the embedded issue number. It outputs an ISSUE_ID variable for downstream workflow automation, exiting with an error if no ID is found.

Can I automatically link commits to a GitHub issue using a branch name?

Yes, you can link commits to a GitHub issue by extracting the issue number from your branch name. The extracted ISSUE_ID variable enables automation workflows to map development work to the correct tracking issue.

What branch naming patterns are supported for extracting issue numbers?

Supported patterns include standard formats like feature/123-description and bugfix/45-fix. The tool isolates the numeric ID embedded within these standard feature, bugfix, or hotfix branch names.

What happens if there is no issue number in my current Git branch?

If there is no issue number in your current Git branch, the extraction process exits with an error. The tool requires standard branch naming patterns to successfully isolate and output the ISSUE_ID variable.

How do I get the issue ID for CI and task tracking automation?

To get the issue ID for CI and task tracking automation, run the tool in a repository with a named branch. It isolates the issue number from the branch name and outputs an ISSUE_ID variable to map work for reporting.