Agent skill
code-review
Review code changes against Weaver SDK project standards before committing. Works in any worktree.
Install this agent skill to your Project
npx add-skill https://github.com/nex-agi/weaver/tree/main/.claude/skills/code-review
SKILL.md
Weaver SDK Code Review Skill (Worktree-Aware)
How to Use
- Read agent instructions at
.claude/agents/code-review/AGENT.md - Invoke Task tool with
subagent_type="code-review"(specialized agent) - Agent reviews all changes against project standards
Prerequisites
Verify you're in the correct worktree:
git rev-parse --show-toplevel
git branch --show-current
Review Checklist
1. License Headers
- Apache 2.0 header present in all new/modified
.pyfiles - Header matches exact format from
.claude/rules/core-development.md
2. Python Code Quality
- Type hints on all public API parameters and return types
- Modern syntax:
list[int],X | None(notList,Optional) - f-strings for formatting (no
.format()or%) - Google-style docstrings on public APIs
- No debug code (
print(), commented sections)
3. Formatting
- Black-formatted (100 char line length)
- isort-compliant import ordering
- Proper import grouping (stdlib, third-party, local)
4. Error Handling
- Custom exceptions used (
WeaverAPIError,ValueError) - Error messages include context
- No bare
except:clauses
5. Commit Content
- Only relevant changes included
- No build artifacts (
dist/,*.egg-info) - No sensitive information (tokens, API keys)
Output Format
## Code Review Summary
**Status:** PASS / WARNINGS / FAIL
### Issues Found
[List issues by category]
### Recommendations
[Specific actions to fix issues]
### Approved Items
[What looks good]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
address-pr-comments
Address GitHub PR review comments. Navigate to the correct worktree, make fixes, push updates.
git-commit
Complete git commit workflow in a worktree. Includes review, staging, and message generation.
testing
Run linting and tests for Weaver SDK. Works in any worktree.
fix-issue
Fix a GitHub issue using git worktree for isolation. Fetches issue, creates worktree, plans and implements fix, then creates PR.
weaver-regression-test
Run the full Weaver provisioner regression test suite against the production service. Covers full_ft, LoRA, debug modes, and edge cases.
github-pr
Create a GitHub PR from a worktree branch. Use after committing changes.
Didn't find tool you were looking for?