Agent skill
create-pr
When asked to create a pull request, follow these guidelines
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/create-pr-segersniels-dotfiles
SKILL.md
Process
- Run
git fetch --all --pruneto ensure the latest changes are fetched - Check git status and current branch
- Get commit history from [origin] to HEAD
- Analyze
git diff [origin]...HEADto understand changes - Prompt the user for the [origin] (don't make assumptions)
- Confirm with the user whether it needs to be a draft PR or not
- Create a pull request with a descriptive title and body based on actual code changes (
gh) - Assign the current git user to the created PR
Analysis
- Examine modified files and functionality changes
- Understand technical implementation and business impact
- Focus on what changed, not just commit messages
Rules
- PR title MUST use Conventional Commits format:
type(scope): description- Lowercase, imperative mood (same as commit messages)
- Optional Notion ticket ID in brackets at end:
[TL-1234]
- Write meaningful descriptions based on diff analysis
- Never include checkboxes, test plans, or checklists
- Avoid ANSI codes in descriptions
- Pass markdown directly to gh, never use heredoc
- Use markdown and differentiate between sections using ###
- When writing PR titles or bodies, wrap every code identifier (variable names, params, functions, keys, enum values) in backticks.
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?