gh-brag is a GitHub CLI extension designed to help you aggregate your engineering impact for performance reviews, brag docs, or personal retrospectives. It scans your GitHub activity (PRs, Issues, Reviews), analyzes it for high-value insights, and presents it in a Terminal UI (TUI) dashboard.
- 🎯 Impact Scoring: Automatically calculates an "Impact Score" based on weighted actions and thematic focus.
- 📊 TUI Dashboard: A stunning terminal interface showing:
- Theme Distribution: See where you're spending your time (Feature, Refactor, Bugfix, etc.).
- Activity Intensity: A sleek heatmap of your contributions over time.
- Top Repositories: Identify where you've had the most significant presence.
- 🤝 Collaboration Network: Visualize your "Review Council" (who reviews you) and your "Mentorship Impact" (who you review).
- 🔧 Customizable: Flexible theme and metric configuration.
gh-brag theme matching order:
- Labels First (Priority): Searches the PR/Issue's labels that contain theme keywords.
- Title Fallback (First Appearance): Searches the PR/Issue title for theme keywords. The theme with the keyword appearing earliest (lowest index) in the title wins.
Install as a gh extension:
gh extension install jackchuka/gh-bragGet insights into your GitHub activity in two simple steps:
Gather your GitHub events for a specific period. By default, it looks at the last 6 months.
gh brag collectCreates gh-brag.events.jsonl containing your raw activity.
Launch the TUI dashboard to explore your insights.
gh brag visualizegh brag collect --from 2024-06-01 --to 2024-12-31If you need a raw data report for your records:
gh brag analyze --out my-report.yamlCustomize the analysis by providing a config.yaml file. You can adjust theme keyword mappings and impact weights.
themes:
- name: "Feature"
keywords: ["feat", "feature", "new", "implement"]
- name: "Refactor"
keywords: ["refactor", "cleanup", "refactor"]
metrics:
ownership_threshold: 5 # Min PRs to be considered an 'Owner'
action_weights:
merged: 10.0
reviewed: 5.0
authored: 2.0Run with your config:
gh brag --config my-config.yaml visualize- Go: Core logic and performance.
- Cobra: CLI framework.
- Lipgloss / Charmbracelet: Beautiful terminal UI components.
- GitHub API (via go-gh): Reliable data collection.
MIT License - see LICENSE for details.
