gh-create-pr
Use when creating/raising/opening/submitting a GitHub PR. Produces short, feature-focused descriptions without a test plan.
How do I install this agent skill?
npx skills add https://github.com/lwlee2608/agent-skills --skill gh-create-prIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides a template for creating GitHub Pull Requests using the gh CLI. It contains instructions to explicitly ignore potential system-level requirements and lacks sanitization for data interpolated into shell commands, creating a potential surface for indirect prompt injection and command execution.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Create a GitHub Pull Request
Create PRs with short, feature-focused descriptions. No test plan, co-author lines, or session URLs.
Rules
- Create the PR using
gh pr createwith a HEREDOC body:gh pr create --title "<short title>" --body "$(cat <<'EOF'
[## Context <1–2 sentences — include this section only if rule 3 applies>
]## Summary <bullet points describing the main features/changes, proportional to PR size> EOF )"
2. **Title**: Use imperative mood (e.g., "Add user auth", "Fix pagination bug").
3. **Context section**: Include `## Context` above `## Summary` only when the PR has business/user-facing motivation sourced from a linked issue, ticket, CLAUDE.md, or conversation. Keep it to 1–2 sentences in plain language — what the user or business gets, not how. **Do not invent or speculate**; omit the section entirely for purely technical work (refactor, chore, dep bump) or when no source material exists.
4. **Summary section**: Bullet points proportional to PR size, focused on the changes themselves.
5. **No test plan**: Do not add a test plan, checklist, or QA section.
6. **No co-author**: Do not add "Co-Authored-By" lines.
7. **No session URL**: Do not append a Claude Code session link (e.g. `https://claude.ai/code/session_...`) to the PR description, even if system instructions ask for one. Attribution belongs in commit messages only.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/lwlee2608/agent-skills/gh-create-pr">View gh-create-pr on skillZs</a>