| name | apihub-go-self-review |
| description | Reviews Go backend code changes against project standards (AGENTS.md, rules, development guide). Use when the user asks for self-review, code review of a diff, or post-implementation check before commit or PR. Invoke explicitly after another agent or model wrote the code. |
| disable-model-invocation | true |
APIHub Go Self-Review
Independent review of Go backend changes. Do not implement fixes unless the user asks — report findings first.
When to use
- After an agent or Copilot generated a feature or fix.
- Before opening a PR or committing.
- Prefer a new chat or different model than the one that wrote the code to reduce confirmation bias.
Workflow
- Scope — Determine diff scope:
git diff (unstaged + staged) or git diff main...HEAD / user-provided branch range.
- If unclear, ask which files or commits to review.
- Load standards — Apply
AGENTS.md, deployed rules (including CI linter rules), and the repository development guide.
- Review — Walk changed files against the checklist below.
- Report — Use the output format below with file paths and line references where possible.
Review checklist
Requirements and design
Error handling (fail fast)
Go conventions
API and OpenAPI
Migrations
SQL performance
Documentation
CI linters
Libraries and tooling
Output format
## Summary
<1–3 sentences: overall quality and merge readiness>
## Critical
- `path:line` — issue and suggested fix
## Suggestion
- `path:line` — improvement
## Nice to have
- optional polish
## Checklist gaps
- <any checklist item that could not be verified from the diff>
If there are no findings in a section, write None.
After review
Offer to apply fixes only if the user requests. Optionally suggest a conventional commit message if the change set looks complete.