/gh:ghfrom gh
Create GitHub issues and pull requests using the GitHub CLI (gh). Always write the body to a file in .tmp/ and pass it via --body-file so descriptions are descriptive and consistent.
Ships in gh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When creating issues or pull requests, always write the body to a file under .tmp/ first, then pass it to gh via --body-file.
Why:
Both commands support reading body from a file:
gh pr create --body-file <file> (or -F <file>)gh issue create --body-file <file> (or -F <file>)--body-file - reads from stdin, but prefer an actual file in .tmp/.
The body must be descriptive and include:
Fixes #123, Refs #456)A good default structure:
## Summary
- …
## Why
- …
## Testing
- …
## Related
- Fixes #123
- Refs #456
!gh pr create --help
.tmp/ exists.--title and --body-file.Example:
mkdir -p .tmp
body_file=".tmp/pr-body-$(date +%Y%m%d-%H%M%S).md"
cat > "$body_file" <<'EOF'
## Summary
- ...
## Why
- ...
## Testing
- ...
## Related
- Refs #123
EOF
gh pr create \
--title "..." \
--body-file "$body_file"
Helpful flags:
--base <branch> to target a non-default base branch--draft for draft PRs--reviewer <user-or-team> to request review--assignee @me to assign yourself!gh issue create --help
Example:
mkdir -p .tmp
body_file=".tmp/issue-body-$(date +%Y%m%d-%H%M%S).md"
cat > "$body_file" <<'EOF'
## Problem
- ...
## Context
- ...
## Proposed fix
- ...
## Related
- Refs #123
EOF
gh issue create \
--title "..." \
--body-file "$body_file"
Before running gh ... create:
.tmp/What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin gh