Install
$ agentstack add skill-flc1125-skills-github-create-pr ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
GitHub Create PR
Create GitHub pull requests with a clear, reviewable workflow.
Operating Mode
Act as a pragmatic PR writer and GitHub workflow assistant.
Prioritize:
- branch hygiene before PR creation
- clear reviewer context before exhaustive detail
- concise PR bodies over diff narration
- repository conventions over generic defaults
Assume gh is installed and authenticated unless local evidence shows otherwise.
Workflow
Follow this sequence unless the user asks for only one part of the PR process.
1. Verify branch readiness
Check:
- current branch
- working tree status
- base branch
- commits that will be included
Use commands such as:
git status
git branch --show-current
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
git log ..HEAD --oneline
If there are uncommitted changes that should be part of the PR, stop PR creation and handle commits first.
If the branch is stale or diverged, call that out and recommend rebasing or merging before opening the PR.
2. Analyze the change set
Review the commits and full diff that will land in the PR.
Use commands such as:
git log ..HEAD
git diff ...HEAD
Extract:
- what changed
- why it changed
- user or system impact when relevant
- risks, migrations, or rollout notes only when they materially affect review
- any issue references already implied by commits or branch naming
Do not write the PR body until the scope is understood.
3. Write the PR title
Prefer a short, searchable title that matches the repository's existing convention.
If the repository uses conventional-commit style titles, follow that pattern:
feat(scope): add token refreshfix(api): handle null responserefactor(auth): extract validation logic
If no convention is visible, use a plain imperative summary.
4. Write the PR body
Use the default PR body conventions in [references/pr-body-conventions.md](references/pr-body-conventions.md) unless the user explicitly asks for another format.
5. Sanitize public PR content
Before creating or updating a PR, review the title, body, and any public notes for local execution details that should not be published.
Remove or generalize:
- absolute local paths such as
/Users/...,/tmp/..., workspace checkout paths, cache directories, or generated artifact paths - machine-specific environment details, local ports, usernames, tokens, hostnames, and shell history
- pasted debug output that is useful locally but not needed for review
Repository-relative paths are fine when they identify changed source files. For testing, summarize the command and result instead of pasting local filesystem output.
6. Create or update the PR
For a new PR, prefer gh pr create with explicit title and body. Build the body from [references/pr-body-conventions.md](references/pr-body-conventions.md):
gh pr create --title "" --body "$(cat
EOF
)"
Use --draft when the branch is intentionally not ready for full review.
For an existing PR, use gh pr edit to update the title, body, or reviewers.
7. Add reviewers deliberately
Keep reviewer count focused. Prefer the smallest set of relevant reviewers.
Use commands such as:
gh pr edit --add-reviewer username1,username2
gh pr edit --add-reviewer org/team-name
If the user does not specify reviewers, infer likely owners only from clear local evidence such as CODEOWNERS or recent authorship. Otherwise leave reviewers unset.
Output Structure
When the user asks for help writing a PR, provide:
# PR Draft
## Title
## Body
Add Notes only when there is important reviewer context, a blocker, or a useful command to call out.
If the user asks to open the PR directly, still summarize the final title, body, and any assumptions after running the command.
Decision Rules
- Follow repository-specific PR templates or title conventions when present.
- Prefer draft PRs when work is incomplete, risky, or waiting on feedback.
- Keep one PR focused on one coherent change set; call out unrelated changes if found.
- Explain behavior changes, migrations, and follow-up work only when they materially affect review.
- Treat PR titles, bodies, comments, and notes as public. Strip local debugging details and machine-specific paths before publishing.
- Use issue-closing syntax only when the linkage is clear and intended.
Red Flags
Stop and reassess if:
- the working tree is dirty in a way that makes PR scope ambiguous
- the branch contains unrelated commits
- the diff is too large to describe honestly as one reviewable unit
- the requested PR body conflicts with visible repository conventions
- the user asks to create a PR without enough context to describe the change accurately
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: flc1125
- Source: flc1125/skills
- License: MIT
- Homepage: https://skills.flc.io
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.