- Simplified README.md by moving detailed command docs, workflows, and development info to dedicated user-guide/ and developer-guide/ directories. - Created index.md files for both guides to improve navigation. - Extracted individual command guides (e.g., chat.md, edit.md) into user-guide/ for focused, maintainable documentation. - Moved architecture, configuration, and troubleshooting to developer-guide/. - Updated README links to point to the new docs structure.
1.8 KiB
1.8 KiB
📋 PR-Describe Guide
The pr-describe command generates a professional Pull Request title and a detailed body by analyzing the diff between your current branch and a base branch.
Key Features
- Automated PR Descriptions: Saves time by drafting the entire PR description for you.
- Context-Aware: Analyzes every change on your branch to explain the "what" and "why."
- Professional Format: Includes sections for changes, motivation, and testing notes.
- Customizable Base: Compare against any branch (defaults to
master).
Usage
# From current branch vs master
grokkit pr-describe
# Compare against a specific base branch
grokkit pr-describe --base main
# With specific model
grokkit pr-describe -m grok-4
Output includes:
- Title suggestion
- Summary of changes
- Motivation/context
- Testing notes
Options
| Flag | Description |
|---|---|
--base, -b |
Base branch to compare against (default: master) |
--model, -m |
Override the default model (e.g., grok-4) |
How it Works
- Diff Generation: Grokkit runs
git diff <base>..HEADto identify all changes on your current branch. - AI Analysis: It sends the full diff to Grok with a specialized prompt for PR generation.
- Structured Output: Grok returns a professional PR title and body.
- Streaming Results: You see the description as it's being generated.
Best Practices
- Keep branches focused: PR descriptions are most effective when the branch addresses a single feature or fix.
- Review and edit: Use the AI-generated description as a strong starting point, then add any specific internal context or links (e.g., Jira tickets).
- Model selection: For large PRs with many changes, use a more powerful model like
grok-4for a better high-level summary.