pr
Skill2 starsChanged 6 months agoMITView on GitHub
Create a pull request with full git hygiene. Use after completing any code change. Enforces: correct git identity, builds pass, all files staged, feature branch, PR created via gh. Triggers on: /pr, create PR, open PR, push and PR, ship this.
- Commits and pushes
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 20
Must match the identity you intend to commit as.
- Very specific: line 34
Run the project's build command (check package.json scripts, Makefile, or CI config):
- Distinctive: line 45
Never use git add -A or git add .
- Very specific: line 52
Never commit directly to main.
- Very specific: line 58
Follow conventional commits.
- Very specific: line 64
Verify the remote is the correct account (gh repo view to confirm).
- Distinctive: line 86
NEVER merge or deploy without user approval
- Very specific: line 87
NEVER use --force push to main
- Distinctive: line 88
NEVER skip the build check — a broken build is worse than no PR
- Very specific: line 89
If pre-commit hook fails, fix the issue and create a NEW commit (never --amend)
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Workflow
Enforce complete git hygiene before opening any PR. Never skip a step.
Steps (execute in order, stop and fix before continuing)
1. Verify git identity
git config user.name
git config user.emailMust match the identity you intend to commit as. If wrong:
git config user.name "<your-github-username>"
git config user.email "<your-email>"2. Check what's changed
git status
git diff --statList every modified file. Do NOT skip unstaged files.
3. Run the build
Run the project's build command (check package.json scripts, Makefile, or CI config):
- Node projects:
npm run build(or the project's equivalent) - Python:
python3 -m py_compile <entrypoint>or the project's test/lint command - TypeScript:
npx tsc --noEmitat minimum
Fix any errors before continuing. Do not open a PR with a broken build.
4. Stage ALL changed files
git add <every modified file by name>Never use git add -A or git add . (risk of committing secrets or binaries).
Double-check with git status — nothing should show as unstaged.
5. Create a feature branch if not already on one
git checkout -b <descriptive-branch-name>Never commit directly to main. Branch names: feat/, fix/, chore/.
6. Commit
git commit -m "<type>(<scope>): <description>"Follow conventional commits. No --no-verify.
7. Push
git push -u origin <branch>Verify the remote is the correct account (gh repo view to confirm).
8. Create PR
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
- <bullet points of what changed>
## Test plan
- <what to verify>
🤖 Generated with Claude Code
EOF
)"9. Return the PR URL
Share the PR link with the user so they can review before merging.
Rules
- NEVER merge or deploy without user approval
- NEVER use
--forcepush to main - NEVER skip the build check — a broken build is worse than no PR
- If pre-commit hook fails, fix the issue and create a NEW commit (never
--amend)
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.

