Openclaw-go pr-review
Review pull requests against repo standards — Go conventions, test coverage, race detector, CHANGELOG, and docs
install
source · Clone the upstream repo
git clone https://github.com/a3tai/openclaw-go
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a3tai/openclaw-go "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.opencode/skills/pr-review" ~/.claude/skills/a3tai-openclaw-go-pr-review && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a3tai/openclaw-go "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/.opencode/skills/pr-review" ~/.openclaw/skills/a3tai-openclaw-go-pr-review && rm -rf "$T"
manifest:
.opencode/skills/pr-review/SKILL.mdsource content
What I do
Perform a structured code review of a pull request against the openclaw-go repository standards.
When to use me
Use this skill when reviewing a PR, or when asked to check if a branch is ready to merge.
Review checklist
1. Go standards
- Exported types and functions have GoDoc comments
- Error handling follows
pattern — no swallowed errorsif err != nil { return ... } - Naming is idiomatic Go (MixedCaps, not underscores; receiver names are short)
- No
in library code — return errors insteadpanic -
is the first parameter where applicablecontext.Context - JSON struct tags use
where the zero value is valid to omitomitempty
2. Test coverage
- New public functions have corresponding test cases
- Tests use table-driven patterns consistent with existing tests
- Both success and error paths are covered
-
passes cleanlygo test ./... -race - No test files import packages they shouldn't (e.g., no circular deps)
3. Protocol correctness
- New types match the upstream OpenClaw wire format exactly
- Method strings match the upstream RPC names (e.g.,
)"sessions.get" - No breaking changes to existing exported types without a major version bump discussion
4. CHANGELOG
- New features, fixes, or breaking changes have a
entry[Unreleased] - Entries follow Keep a Changelog format
- Links to upstream version or issue are included where relevant
5. Documentation
-
pages updated if public API surface changeddocs-site/packages/ -
markdown files updated if applicabledocs/ - README badges and links still work
6. Security
- No hardcoded tokens, passwords, or secrets
- TLS defaults are safe (no
in production code)InsecureSkipVerify: true - No user input passed unsanitized into shell commands or SQL
7. Git hygiene
- Commits have clear messages describing the "why"
- No unrelated changes bundled into the PR
- Branch is based on current
main - No force-pushes to shared branches
Output format
Provide the review as a structured summary:
- Verdict — Approve / Request Changes / Comment
- Summary — 1-2 sentence overview
- Findings — list each issue with file:line reference and severity (blocking / suggestion / nit)
- Tests — confirm
resultsgo test ./... -race