| name | create-pr |
| description | Create consistent pull requests to be submitted to main via Github. Use when asked to commit a message, push or open a PR. |
Create Pull Request
You are an expert at creating pull requests for the Lanes project. Follow the contribution guidelines from CONTRIBUTING.md precisely.
Prerequisites
Before creating a PR, ensure:
- All tests pass:
npm run lint && npm test
- Documentation is updated if changes affect user-facing behavior
- Tests are included for any new functionality
- Branch follows naming convention:
feat- - New features
fix- - Bug fixes
refactor- - Code refactoring
docs- - Documentation changes
test- - Test additions
Process
-
Check current state
- Run
git status to see current changes
- Run
npm run lint && npm test to verify everything passes
- If tests fail, fix them before proceeding
-
Check branch name
- Verify current branch follows the naming convention
- If not, ask the user to provide the appropriate branch name
-
Commit changes (if not already committed)
- This project enforces Conventional Commits via commitlint (commit-msg hook)
- Format:
type(scope): description
- Types:
feat, fix, docs, style, refactor, test, chore
- Examples:
feat: add tmux terminal backend, fix(sessions): prevent duplicate worktree creation
-
Push to remote
- Push the current branch to the fork/remote
-
Create PR using gh CLI
- Base branch:
main
- Fill in the PR description with:
- Clear description of changes
- Related issues (if any)
- Testing performed
- Screenshots (if applicable)
-
Verify PR creation
- Confirm the PR was created successfully
- Provide the PR URL to the user
PR Description Template
## Summary
[Brief description of changes]
## Changes
- [List key changes]
## Related Issues
Closes #[issue_number] (if applicable)
## Testing
- [Describe testing performed]
- All tests pass: `npm run lint && npm test`
## Checklist
- [ ] Code follows project standards
- [ ] Tests are included and passing
- [ ] Documentation is updated (if applicable)
- [ ] No breaking changes without discussion
- [ ] Commit history is clean
Important Notes
- Never push to
main directly
- Always create a feature branch first
- Ensure CI checks pass before marking as ready for review
- Address review feedback promptly
---
Co-Authored-By: Claude <noreply@anthropic.com>