github-pr
Skill2 starsChanged 6 months agoMITView on GitHub
Create standardised GitHub pull requests using the gh CLI. Use when the user wants to create a PR, open a pull request, submit changes for review, or says things like "PR this", "open a PR", or "submit for review". Enforces conventional commit titles, structured body templates, labels, and reviewers.
- Commits and pushes
9 other projects use a version of this.
Adopted by
Most recently taken up by
- swaroopsm/skillstheir own version, first seen Sep 17, 2026
- giulio333/ClaudeLenstheir own version, first seen Sep 9, 2026
- DeRuiChen258/RL_Infra_skills-openAItheir own version, first seen Aug 14, 2026
- enkr1/claude-code-skillstheir own version, first seen Jul 14, 2026
- nemori-ai/langchain-dynamic-workflowtheir own version, first seen Jun 1, 2026
- damacus/agent-skillstheir own version, first seen May 20, 2026
Used with
Projects with it also use github-issue and skill-creator.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
devstefanchoSkillgithub-issue
Unified GitHub issue workflow via the gh CLI — fetch an issue (body, labels, comments, image/video attachments) into the session, create a new issue from a template, or update an existing one (body, labels, state, comments). Handles the 404 that plain curl/WebFetch hits on GitHub attachment URLs by downloading with an auth token, and extracts viewable frames from video attachments. Use whenever the user mentions GitHub issues — 이슈 가져와, 이슈 조회, 이슈 등록, 이슈 생성, 이슈 만들어줘, 이슈 업데이트, 이슈 수정, 이슈 코멘트, 이슈 작업, fetch issue N, work on issue N, create an issue, update issue N, file a bug, /github-issue.
Also in 3 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- giulio333/ClaudeLens★ 64same name
- dhruvanbhalara/skills★ 30same name
- nemori-ai/langchain-dynamic-workflow★ 18same name
- yantrikos/yantrikclaw★ 9same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- DeRuiChen258/RL_Infra_skills-openAI★ 3same name
- damacus/agent-skills★ 2same name
- enkr1/claude-code-skills★ 1same name
- swaroopsm/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- browseSkill
- pr-review-actionerSkill
- repo-hardeningSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Create well-structured pull requests using gh pr create with consistent formatting and conventions.
- Distinctive: line 33
If the current branch matches the default/base branch, stop before pushing and ask the user to create a feature branch first.
- Distinctive: line 52
If the branch name doesn't match a known prefix, ask the user what type of PR this is.
- Distinctive: line 64
If the branch has a single commit, prefer the commit message as the title instead.
- Very specific: line 68
Read the matching template from assets/ and fill it in based on the changes:
- Very specific: line 91
If a CODEOWNERS file exists, read it to identify who should review:
- Distinctive: line 99
Before creating the PR, verify requested labels exist:
- Very specific: line 105
Only pass labels that exist.
- Distinctive: line 138
Always use a heredoc for the body to preserve formatting.
- Distinctive: line 142
After creating the PR, show the user:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub PR Creation
Create well-structured pull requests using gh pr create with consistent formatting and conventions.
Prerequisites
ghCLI is installed and authenticated- Current directory is a git repository
- Changes are committed and on a feature branch (not
mainormaster)
Workflow
1. Check prerequisites
# Determine branches
current_branch=$(git branch --show-current)
base_branch=${BASE_BRANCH:-$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')}
printf 'current=%s base=%s\n' "$current_branch" "$base_branch"If the current branch matches the default/base branch, stop before pushing and ask the user to create a feature branch first.
Once on a feature branch, ensure it is pushed to remote:
git push -u origin HEAD2. Determine PR type
Infer the type from the branch name prefix:
| Prefix | Type | Label |
feat/, feature/ | Feature | enhancement |
fix/, bugfix/ | Bugfix | bug |
hotfix/ | Hotfix | bug, priority: critical |
chore/, refactor/, docs/, test/ | Chore | chore |
If the branch name doesn't match a known prefix, ask the user what type of PR this is.
3. Generate PR title
Convert the branch name to a conventional commit-style title:
feat/add-user-auth→feat: add user authfix/login-crash→fix: login crashhotfix/null-pointer→fix: null pointer
Replace hyphens with spaces. Drop the prefix category from the branch name. Capitalise only where appropriate.
If the branch has a single commit, prefer the commit message as the title instead.
4. Fill the PR body
Read the matching template from assets/ and fill it in based on the changes:
- Feature → assets/feature.md
- Bugfix → assets/bugfix.md
- Hotfix → assets/hotfix.md
- Chore → use the feature template
To understand what changed, run:
# See commits on this branch
base_branch=${BASE_BRANCH:-$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')}
git log --oneline "$base_branch"..HEAD
# See the full diff
git diff "$base_branch"...HEAD --stat
git diff "$base_branch"...HEADFill in the template sections with concrete details from the diff. Remove HTML comments. Do not leave placeholder text.
5. Set reviewers
If a CODEOWNERS file exists, read it to identify who should review:
cat .github/CODEOWNERS 2>/dev/null || cat CODEOWNERS 2>/dev/null || cat docs/CODEOWNERS 2>/dev/nullParse CODEOWNERS conservatively. GitHub accepts usernames and team slugs as reviewers, but not email addresses or comments. If ownership is broad, ambiguous, or path-specific in a way that does not clearly match the diff, ask the user who should review.
Before creating the PR, verify requested labels exist:
gh label list --limit 200 --json name --jq '.[].name'Only pass labels that exist. If the intended label is missing, ask whether to omit it or create it. Use the --reviewer flag only with validated usernames or team slugs; ask the user when reviewers are ambiguous.
6. Create the PR
gh pr create \
--title "feat: add user auth" \
--body "$(cat <<'EOF'
## Summary
Added user authentication using OAuth2...
## Changes
- Added auth middleware
- Created login/logout endpoints
## Test Plan
- Ran full test suite
- Manual testing against staging
## Checklist
- [x] Changes are scoped to the feature described above
- [x] Tests added or updated
- [x] No unrelated changes included
EOF
)" \
--label "enhancement" \
--reviewer "username"Always use a heredoc for the body to preserve formatting.
7. Report back
After creating the PR, show the user:
- The PR URL
- Title and labels applied
- Who was assigned to review
Conventions
- One PR per feature/fix — don't bundle unrelated changes
- Keep diffs small — if the diff is large (>500 lines), suggest splitting
- Draft PRs — use
--draftif the work is still in progress - Base branch — default to the repository default branch from
gh repo view; use--baseif targeting a different branch
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

