gh-linking-branches-to-issues

Creates and links a development branch to an issue. Use to start implementation work.

SKILL.md

GitHub

Linking Branches to Issues

Purpose

Manages development branches using the gh issue develop command.

1. Safety & Verification

  • Mandatory Context: Ensure gh-verifying-context has been run and confirmed by the user.
  • Human-in-the-Loop: You MUST confirm the branch name and the target issue with the user before creation.
  • Repository Check: Ensure you are in the correct repository (work vs personal) before creating a branch.

2. Common Workflows

Workflow: Create Linked Branch

Creates a new branch and links it to the issue.

Command:

gh issue develop <issue-number> --name "feature-x"

3. Reference

See references/commands.md for the full flag reference, branch naming conventions, and verification command.