Comprehensive Go backend code review with optional parallel agents
Comprehensive Go backend code review with optional parallel agents. Use for PRs to catch bugs, race conditions, and verify BubbleTea, Wish SSH, Prometheus, and ZeroLog patterns before merging.
/plugin marketplace add anderskev/beagle/plugin install anderskev-beagle@anderskev/beagle--parallel: Spawn specialized subagents per technology areagit diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '\.go$'
# Detect BubbleTea TUI
grep -r "charmbracelet/bubbletea\|tea\.Model\|tea\.Cmd" --include="*.go" -l | head -3
# Detect Wish SSH
grep -r "charmbracelet/wish\|ssh\.Session\|wish\.Middleware" --include="*.go" -l | head -3
# Detect Prometheus
grep -r "prometheus/client_golang\|promauto\|prometheus\.Counter" --include="*.go" -l | head -3
# Detect ZeroLog
grep -r "rs/zerolog\|zerolog\.Logger" --include="*.go" -l | head -3
# Check for test files
git diff --name-only $(git merge-base HEAD main)..HEAD | grep -E '_test\.go$'
Use the Skill tool to load each applicable skill (e.g., Skill(skill: "beagle:go-code-review")).
Always load:
beagle:go-code-reviewConditionally load based on detection:
| Condition | Skill |
|---|---|
| Test files changed | beagle:go-testing-code-review |
| BubbleTea detected | beagle:bubbletea-code-review |
| Wish SSH detected | beagle:wish-ssh-code-review |
| Prometheus detected | beagle:prometheus-go-code-review |
Sequential (default):
Parallel (--parallel flag):
Task tool## Review Summary
[1-2 sentence overview of findings]
## Issues
### Critical (Blocking)
1. [FILE:LINE] ISSUE_TITLE
- Issue: Description of what's wrong
- Why: Why this matters (bug, race condition, resource leak, security)
- Fix: Specific recommended fix
### Major (Should Fix)
2. [FILE:LINE] ISSUE_TITLE
- Issue: ...
- Why: ...
- Fix: ...
### Minor (Nice to Have)
N. [FILE:LINE] ISSUE_TITLE
- Issue: ...
- Why: ...
- Fix: ...
## Good Patterns
- [FILE:LINE] Pattern description (preserve this)
## Verdict
Ready: Yes | No | With fixes 1-N
Rationale: [1-2 sentences]
After fixes are applied, run:
go build ./...
go vet ./...
golangci-lint run
go test -v -race ./...
All checks must pass before approval.
-race flag