Skills rust-review
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/athola/nm-pensive-rust-review" ~/.claude/skills/openclaw-skills-rust-review && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/athola/nm-pensive-rust-review" ~/.openclaw/skills/openclaw-skills-rust-review && rm -rf "$T"
manifest:
skills/athola/nm-pensive-rust-review/SKILL.mdsource content
Night Market Skill — ported from claude-night-market/pensive. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Table of Contents
- Quick Start
- When to Use
- Required TodoWrite Items
- Progressive Loading
- Core Workflow
- Rust Quality Checklist
- Safety
- Correctness
- Performance
- Idioms
- Output Format
- Summary
- Ownership Analysis
- Error Handling
- Concurrency
- Unsafe Audit
- [U1] file:line
- Dependencies
- Recommendation
- Exit Criteria
Rust Review Workflow
Expert-level Rust code audits with focus on safety, correctness, and idiomatic patterns.
Quick Start
/rust-review
Verification: Run the command with
--help flag to verify availability.
When To Use
- Reviewing Rust code changes
- Auditing unsafe blocks
- Analyzing concurrency patterns
- Dependency security review
- Performance optimization review
When NOT To Use
- General code review without Rust - use unified-review
- Performance profiling - use parseltongue:python-performance pattern
Required TodoWrite Items
rust-review:ownership-analysisrust-review:error-handlingrust-review:concurrencyrust-review:unsafe-auditrust-review:cargo-depsrust-review:evidence-log
Progressive Loading
Load modules as needed based on review scope:
Quick Review (ownership + errors):
- See
for borrowing and lifetime analysismodules/ownership-analysis.md - See
for Result/Option patternsmodules/error-handling.md
Concurrency Focus:
- See
for async and sync primitivesmodules/concurrency-patterns.md
Safety Audit:
- See
for unsafe block documentationmodules/unsafe-audit.md
Dependency Review:
- See
for vulnerability scanningmodules/cargo-dependencies.md
Idiomatic Patterns:
- See
for conversion traits and builtin preferencemodules/builtin-preference.md
Core Workflow
- Ownership Analysis: Check borrowing, lifetimes, clone patterns
- Error Handling: Verify Result/Option usage, propagation
- Concurrency: Review async patterns, sync primitives
- Unsafe Audit: Document invariants, FFI contracts
- Dependencies: Scan for vulnerabilities, updates
- Evidence Log: Record commands and findings
Rust Quality Checklist
Safety
- All unsafe blocks documented with SAFETY comments
- FFI boundaries properly wrapped
- Memory safety invariants maintained
Correctness
- Error handling complete
- Concurrency patterns sound
- Tests cover critical paths
Performance
- No unnecessary allocations
- Borrowing preferred over cloning
- Async properly non-blocking
Idioms
- Standard traits implemented
- Conversion traits preferred over helper functions
- Error types well-designed
- Documentation complete
Output Format
## Summary Rust audit findings ## Ownership Analysis [borrowing and lifetime issues] ## Error Handling [error patterns and issues] ## Concurrency [async and sync patterns] ## Unsafe Audit ### [U1] file:line - Invariants: [documented] - Risk: [assessment] - Recommendation: [action] ## Dependencies [cargo audit results] ## Recommendation Approve / Approve with actions / Block
Verification: Run the command with
--help flag to verify availability.
Exit Criteria
- All unsafe blocks audited
- Concurrency patterns verified
- Dependencies scanned
- Evidence logged
- Action items assigned
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior Enable verbose logging with
--verbose flag