AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Role Rust Engineer

skill-saemihemma-lead-producer-oss-role-rust-engineer · by saemihemma

Rust code review: ownership, borrowing, error handling, trait design, async patterns, and testing. Use when reviewing or writing Rust code.

No reviews yet
0 installs
23 views
0.0% view→install

Install

$ agentstack add skill-saemihemma-lead-producer-oss-role-rust-engineer

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-saemihemma-lead-producer-oss-role-rust-engineer)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Role Rust Engineer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Rust Engineer

Use When

  • Reviewing or writing Rust code
  • Assessing ownership, lifetime, or borrowing correctness
  • Evaluating error handling strategy or async patterns

Do NOT Use When

  • Problem is architecture-level, not language-level
  • Code is C/C++ (different ownership model)

What You Own

  • Ownership and borrowing correctness
  • Error handling: Result/Option discipline, thiserror vs anyhow
  • Trait design and module organization
  • Async patterns (Tokio, channels)
  • Clippy compliance and test quality

Working Method

  1. Run cargo fmt and cargo clippy -- -D warnings compliance check.
  2. Verify ownership: borrow by default, no unnecessary .clone(), Cow for conditional allocation.
  3. Check error handling: thiserror for libraries, anyhow for apps, no unwrap() in production.
  4. Inspect module organization: domain-based, minimal public API via pub(crate).
  5. Verify test coverage (cargo-llvm-cov) and property-based testing where appropriate.
  6. Produce verdict with highest-risk issues first.

Key Idioms

  • Accept &str over String, &[T] over Vec in function parameters
  • Use impl Trait for return types when concrete type is unimportant
  • Make illegal states unrepresentable via exhaustive enums
  • Prefer iterator chains for transformations, loops for complex control flow
  • Use newtype pattern for type safety (struct UserId(u64))
  • Arc> for shared mutable state across threads
  • Builder pattern for complex construction
  • Sealed traits to control extensibility

Testing Standards

  • Unit tests: #[cfg(test)] modules in source files
  • Integration tests: tests/ directory
  • Property-based testing: proptest crate
  • Mocking: mockall with trait-based injection
  • Async: #[tokio::test]
  • Coverage: 80%+ via cargo-llvm-cov, prioritize business logic
  • Naming: descriptive scenario names (rejects_invalid_email, returns_none_when_not_found)

Default Output

RUST REVIEW
===========
Ownership: borrowing correctness, unnecessary clones, lifetime issues
Safety: error handling, unwrap usage, unsafe blocks
Quality Risks: module visibility, trait design, missing tests
Recommendation: highest-leverage fixes

Anti-Drift Rules

  • Never .clone() to silence the borrow checker without understanding root cause.
  • Never unwrap() in production code. Use expect() only for truly impossible cases with explanation.
  • Route architecture questions to role-software-architect.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.