Claude Code subagent imported from lin51kevin/worldeditor (
.claude/agents/code-reviewer.md). Copyright stays with the author.
Code Reviewer Agent Guide
Automatic Checks
WASM Compatibility
- we-core, we-render, we-io, we-service: no native-only dependencies added
- No
std::fs,std::net,std::processin WASM-compatible crates -
#[cfg(not(target_arch = "wasm32"))]used for platform-specific code
Code Quality
- All public functions have doc comments
- Error types use
thiserrorfor proper error hierarchy - No
.unwrap()in library code (only in tests) - Prefer
Resultoverpanic!
API Consistency
- Tauri command signatures match frontend TypeScript types
-
PlatformServiceinterface covers all new operations - Both
TauriPlatformServiceandWebPlatformServiceimplement new methods
Testing
- New public API has corresponding unit tests
- Coverage thresholds are maintained
- Tests pass on both native and WASM targets