pr
Skill2 starsChanged 9 months agoMITView on GitHub
Create a pull request. Summarizes changes since the base branch, generates a PR title and description, pushes the branch, and opens a PR via the gh CLI. Use when opening a PR, submitting work for review, or when the user says "open a PR", "create a pull request", or "submit for review".
- Commits and pushes
In this repository239 other files it gives its agents.
- claude-code-docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude-code-docs/llms.txtllms.txt
- agent-native-architectureSkill
- claude-apiSkill
- embedding-strategiesSkill
- fal-ai-mediaSkill
- gemini-imagegenSkill
- hybrid-search-implementationSkill
- langchain-architectureSkill
- llm-evaluationSkill
- ml-pipeline-workflowSkill
- prompt-engineering-patternsSkill
- rag-implementationSkill
- similarity-search-patternsSkill
- vector-index-tuningSkill
- api-design-principlesSkill
- api-designSkill
- architecture-patternsSkill
- cqrs-implementationSkill
- event-store-designSkill
- fastapi-templatesSkill
- microservices-patternsSkill
- openapi-spec-generationSkill
- projection-patternsSkill
- saga-orchestrationSkill
- api-conventionsSkill
- andrew-kane-gem-writerSkill
- angular-migrationSkill
- auth-implementation-patternsSkill
- backend-patternsSkill
- bazel-build-optimizationSkill
- coding-standardsSkill
- database-migrationSkill
- debugging-strategiesSkill
- dependency-upgradeSkill
- dhh-rails-styleSkill
- dotnet-backend-patternsSkill
- dspy-rubySkill
- error-handling-patternsSkill
- monorepo-managementSkill
- nodejs-backend-patternsSkill
- nx-workspace-patternsSkill
- react-modernizationSkill
- temporal-python-testingSkill
- turborepo-cachingSkill
- workflow-orchestration-patternsSkill
- defi-protocol-templatesSkill
- nft-standardsSkill
- solidity-securitySkill
- web3-testingSkill
- backtesting-frameworksSkill
- billing-automationSkill
- competitive-landscapeSkill
- data-storytellingSkill
- employment-contract-templatesSkill
- investor-materialsSkill
- investor-outreachSkill
- kpi-dashboard-designSkill
- market-sizing-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
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
- Distinctive: line 13
Create a pull request for the current branch:
- Distinctive: line 16
If $ARGUMENTS is provided, use it as the base branch
- Distinctive: line 18
Check the current branch name: git branch --show-current
- Distinctive: line 19
If already on the default branch, stop and ask the user to switch to a feature branch
- Very specific: line 24
If the push fails due to no upstream, use git push --set-upstream origin <branch>
- Very specific: line 32
Create the PR: gh pr create --base <base> --title "<title>" --body "<description>"
- Distinctive: line 38
Must be on a feature branch (not the default branch)
- Very specific: line 43
If gh is not installed: provide the PR URL to create manually via the web
- Distinctive: line 44
If push is rejected (non-fast-forward): suggest git pull --rebase first
- Very specific: line 45
If PR already exists for this branch: show the existing PR URL with gh pr view
- Distinctive: line 46
If no commits ahead of base: report and stop
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Create a pull request for the current branch:
- Determine the base branch:
- If $ARGUMENTS is provided, use it as the base branch
- Otherwise, detect the default branch:
git remote show origin | grep 'HEAD branch'
- Check the current branch name:
git branch --show-current- If already on the default branch, stop and ask the user to switch to a feature branch
- Summarize changes compared to the base:
git log origin/<base>..HEAD --onelinefor commit historygit diff origin/<base>..HEAD --statfor changed files
- Push the current branch to origin:
git push -u origin HEAD- If the push fails due to no upstream, use
git push --set-upstream origin <branch>
- If the push fails due to no upstream, use
- Generate a PR title and description:
- Title: concise, imperative mood, max 72 chars (e.g., "Add user authentication via OAuth2")
- Description sections:
- Summary: what this PR does and why (2-4 sentences)
- Changes: bullet list of key changes
- Testing: how to verify the changes
- Related issues: mention any linked issue numbers if inferable from branch name or commits
- Create the PR:
gh pr create --base <base> --title "<title>" --body "<description>" - Print the PR URL
Requirements
ghCLI must be installed and authenticated (gh auth status)- Must be on a feature branch (not the default branch)
- At least one commit must exist ahead of the base branch
Error Handling
- If
ghis not installed: provide the PR URL to create manually via the web - If push is rejected (non-fast-forward): suggest
git pull --rebasefirst - If PR already exists for this branch: show the existing PR URL with
gh pr view - If no commits ahead of base: report and stop
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.

