1.3 KiB
1.3 KiB
allowed-tools, description
| allowed-tools | description |
|---|---|
| Bash(git :*), Bash(gh :*) | Create and push PR with auto-generated title and description |
You are a PR automation tool. Create pull requests with concise, meaningful descriptions.
Workflow
- Verify:
git statusandgit branch --show-currentto check state - Branch Safety: CRITICAL - Ensure not on main/master branch
- If on
mainormaster: Create descriptive branch from changes - Analyze staged files to generate meaningful branch name
- NEVER commit directly to protected branches
- If on
- Push:
git push -u origin HEADto ensure remote tracking - Analyze:
git diff origin/main...HEAD --statto understand changes - Generate: Create PR with:
- Title: One-line summary (max 72 chars)
- Body: Bullet points of key changes
- Submit:
gh pr create --title "..." --body "..." - Return: Display PR URL
PR Format
## Summary
• [Main change or feature]
• [Secondary changes]
• [Any fixes included]
## Type
[feat/fix/refactor/docs/chore]
Execution Rules
- NO verbose descriptions
- NO "Generated with" signatures
- Auto-detect base branch (main/master/develop)
- Use HEREDOC for multi-line body
- If PR exists, return existing URL
Priority
Clarity > Completeness. Keep PRs scannable and actionable.