claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Audits Rust code for unsafe blocks, ownership issues, and Cargo dependency risks. Use when reviewing Rust code or before merging Rust changes.
$ npx -y skills add athola/claude-night-market --skill rust-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/rust-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Audits Rust code for unsafe blocks, ownership issues, and Cargo dependency risks. Use when reviewing Rust code or before merging Rust changes.
name: rust-review description: Audits Rust code for unsafe blocks, ownership issues, and Cargo dependency risks. Use when reviewing Rust code or before merging Rust changes. globs: "**/*.rs" alwaysApply: false category: code-review tags: - rust - ownership - concurrency - unsafe - traits - cargo tools: [] usage_patterns: - rust-audit - unsafe-review - dependency-audit - concurrency-analysis complexity: advanced model_hint: deep estimated_tokens: 400 progressive_loading: true dependencies: - imbue:proof-of-work - imbue:review-core - imbue:structured-output modules: - ownership-analysis.md - error-handling.md - concurrency-patterns.md - unsafe-audit.md - cargo-dependencies.md - silent-returns.md - collection-types.md - sql-injection.md - cfg-test-misuse.md - error-messages.md - duplicate-validators.md - builtin-preference.md - native-type-modeling.md - idiomatic-elision.md - coercion-params.md - conversion-traits.md - numeric-cast-safety.md - mutable-static-audit.md - match-wildcard.md - transmute-audit.md - float-equality.md - mem-forget-audit.md - repr-packed-audit.md - model-specific-tells.md - iterator-and-allocation-slop.md - test-slop.md - async-slop.md
Expert-level Rust code audits with focus on safety, correctness, and idiomatic patterns.
/rust-review
**Verification:** Run the command with `--help` flag to verify availability.
1. `rust-review:ownership-analysis` 2. `rust-review:error-handling` 3. `rust-review:concurrency` 4. `rust-review:unsafe-audit` 5. `rust-review:cargo-deps` 6. `rust-review:native-modeling` 7. `rust-review:idiomatic-elision` 8. `rust-review:coercion-params` 9. `rust-review:conversion-traits` 10. `rust-review:numeric-cast-safety` 11. `rust-review:mutable-static-audit` 12. `rust-review:match-wildcard` 13. `rust-review:transmute-audit` 14. `rust-review:float-equality` 15. `rust-review:mem-forget-audit` 16. `rust-review:repr-packed-audit` 17. `rust-review:evidence-log` 18. `rust-review:findings-verified`
Load modules as needed based on review scope:
**Quick Review** (ownership and errors):
**Concurrency Focus**:
**Safety Audit**:
their thread-safe replacements
precision-losing `as` casts
exhaustiveness
calls that reinterpret bytes with no layout check
field borrows become unaligned references
**Correctness Audit**:
`drop(&x)` reference drops
**Dependency Review**:
**Idiomatic Patterns**:
newtype, type-state, and derived ordering
expression-oriented returns, and explicit `-> ()` unit returns
parameters that defeat deref coercion (prefer `&str`/`&[T]`/`&Path`)
`impl From`, and discarded `try_into().unwrap()` conversion errors
1. **Ownership Analysis**: Check borrowing, lifetimes, clone patterns 2. **Error Handling**: Verify Result/Option usage, propagation 3. **Concurrency**: Review async patterns, sync primitives 4. **Unsafe Audit**: Document invariants, FFI contracts 5. **Dependencies**: Scan for vulnerabilities, updates 6. **Evidence Log**: Record commands and findings
atomics, or a `Mutex`/`RwLock`
`from_le_bytes`/`from_bits`/`bytemuck` or pointers with `.cast()`
references)
`drop(&x)` reference drops
ENOMEM handled
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.