You are helping the user prepare a pull request title and description.
Generates a formatted PR title and description from git branch and commit context.
/plugin marketplace add pietgk/vivief/plugin install devac@viviefYou are helping the user prepare a pull request title and description.
Check the branch and commits:
# Current branch
git branch --show-current
# Commits since main
git log main..HEAD --oneline
# Changed files
git diff main --name-only
Look for issue number in branch name (e.g., 42-add-feature):
# Extract issue number from branch name
git branch --show-current | grep -oE '^[0-9]+'
Create a concise, descriptive title:
Use the PR template structure:
## Description
[Brief description of what this PR does]
## Related Issue
Closes #[issue-number]
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update
## Checklist
- [ ] Tests pass locally
- [ ] Code follows project conventions
- [ ] Changeset added (if applicable)
- [ ] Documentation updated (if applicable)
ls .changeset/*.md 2>/dev/null | grep -v README
Note if changesets are present for the release.
## PR Ready
**Title:** feat(cli): add watch mode for incremental analysis (#42)
**Description:**
## Description
Adds a `--watch` flag to the analyze command that monitors file changes and re-analyzes incrementally.
## Related Issue
Closes #42
## Type of Change
- [x] New feature
## Checklist
- [x] Tests pass locally
- [x] Code follows project conventions
- [x] Changeset added
---
To create the PR:
```bash
gh pr create --title "feat(cli): add watch mode for incremental analysis (#42)" --body "[paste description]"
## When to Use
Use `/devac:prepare-pr` when:
- You're ready to open a pull request
- You want to draft the PR description before creating
- You need to ensure all checklist items are complete