Use this workflow to implement issue-driven changes with gh, keep work isolated in a new branch, and open a PR that references the issue numbers.
Workflow
Confirm issue numbers
If issue numbers are missing or ambiguous, ask the user to provide them.
If multiple issues are provided, treat them as a single change set unless the user asks to split work.
Fetch issue context with gh
Use gh issue view <id> --web only when needed; prefer gh issue view <id> for CLI details.
Capture required acceptance criteria, labels, and any linked PRs.
Synchronize with origin
Ensure local main is up to date before branching to avoid merge conflicts.
Suggested sequence:
git fetch origin
git checkout main
git pull --ff-only origin main
Create a branch
Base on main unless the repo uses a different default.
Suggested naming: issue-<id>-<short-slug> or issues-<id1>-<id2>-<slug>.
Implement changes
Follow repo instructions and existing patterns.
Keep scope tight to the issue(s).
Add or update tests when reasonable.
Validate
Run the smallest test or build commands that establish confidence.
If tests are not run, state why in the PR description.
Commit
Use a clear commit message, e.g. Fix #123: <short summary> or Implement #123/#124: <summary>.
Create PR and link issues
Use gh pr create --base main --head <branch>.
Include Fixes #<id> or Closes #<id> in the PR body to auto-link.
For multiple issues, list each on its own line.
Share outcome
Provide the PR URL, branch name, and a brief summary.
Call out any follow-ups or risks.
Suggested gh commands (examples)
gh issue view 123
git checkout -b issue-123-short-slug
# implement changes
git status
git add -A
git commit -m "Fix #123: short summary"
gh pr create --base main --head issue-123-short-slug \
--title "Fix #123: short summary" \
--body $'Fixes #123\n\nSummary:\n- ...\n\nTesting:\n- ...'
Notes
If the repo requires a different base branch, use it consistently for both branch creation and PR base.
If CI or policy requires specific PR templates, follow them.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: brucehart-codex-skills-gh-issue-fix-pr3description: Gh Issue Fix Pr4---56# Gh Issue Fix Pr78## Overview9Use this workflow to implement issue-driven changes with gh, keep work isolated in a new branch, and open a PR that references the issue numbers.1011## Workflow12131) Confirm issue numbers14- If issue numbers are missing or ambiguous, ask the user to provide them.15- If multiple issues are provided, treat them as a single change set unless the user asks to split work.16172) Fetch issue context with gh18- Use `gh issue view <id> --web` only when needed; prefer `gh issue view <id>` for CLI details.19- Capture required acceptance criteria, labels, and any linked PRs.20213) Synchronize with origin22- Ensure local `main` is up to date before branching to avoid merge conflicts.23- Suggested sequence:24 - `git fetch origin`25 - `git checkout main`26 - `git pull --ff-only origin main`27284) Create a branch29- Base on `main` unless the repo uses a different default.30- Suggested naming: `issue-<id>-<short-slug>` or `issues-<id1>-<id2>-<slug>`.31325) Implement changes33- Follow repo instructions and existing patterns.34- Keep scope tight to the issue(s).35- Add or update tests when reasonable.36376) Validate38- Run the smallest test or build commands that establish confidence.39- If tests are not run, state why in the PR description.40417) Commit42- Use a clear commit message, e.g. `Fix #123: <short summary>` or `Implement #123/#124: <summary>`.43448) Create PR and link issues45- Use `gh pr create --base main --head <branch>`.46- Include `Fixes #<id>` or `Closes #<id>` in the PR body to auto-link.47- For multiple issues, list each on its own line.48499) Share outcome50- Provide the PR URL, branch name, and a brief summary.51- Call out any follow-ups or risks.5253## Suggested gh commands (examples)5455```bash56gh issue view 1235758git checkout -b issue-123-short-slug5960# implement changes6162git status6364git add -A6566git commit -m "Fix #123: short summary"6768gh pr create --base main --head issue-123-short-slug \69 --title "Fix #123: short summary" \70 --body $'Fixes #123\n\nSummary:\n- ...\n\nTesting:\n- ...'71```7273## Notes74- If the repo requires a different base branch, use it consistently for both branch creation and PR base.75- If CI or policy requires specific PR templates, follow them.7677---78> Converted and distributed by [TomeVault](https://tomevault.io/claim/brucehart) — claim your Tome and manage your conversions.79<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/brucehart-codex-skills-gh-issue-fix-pr in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Gh Issue Fix Pr It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.