Agent skill
pr
Creates a pull request for the current branch.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pr-metamask-ocap-kernel
SKILL.md
When asked to create a pull request, follow these steps:
-
Run
git status. If any of the following conditions apply, stop and report the errors:- There are unstaged changes
- There are untracked files
- The current branch is the default branch (
main)
-
Check if this is a stacked PR:
- Run
git merge-base main HEADto find the common ancestor with main - Run
git log --oneline <merge-base>..HEADto see commits since diverging from main - Check if any parent commits are on another feature branch (not main)
- If so, run
gh pr list --head <parent-branch>to check if that branch has an open PR - If a parent branch has an open PR, this is a stacked PR
- Run
-
Run
git log main..HEAD --onelineto see the commit history. -
Run
git diffand/orgit showas necessary to understand the changes. -
Run
gh pr createto create a pull request. The PR body should include:- A brief narrative description of the PR
- A summary of the changes (bullet points)
- A brief description of how the code is tested (narrative, not a checklist)
If this is a stacked PR, add
--draftto create it as a draft PR. -
Return the PR URL and any relevant information.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?