Home / Subagents / rust-developer

rust-developer

zircote/rlm-rsSubagent

Primary development agent for this Rust project. Handles implementation, testing, and ownership/borrowing patterns. Use for writing safe, performant Rust code.

ScannedSubagentSource: GitHub
62 stars Updated 18d ago License MIT Context ≈44 tokens in your chat
61popular

Why this score

Stars9/35
Usage (forks)2/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 4 subagents, so its 62 stars are split between them (about 16 each) for scoring.

Popularity score: 61/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Edit and write files
  • Read and search files

Tools listed in the file: Read, Write, Edit, Bash, Glob, Grep, LSP

Model: inherit

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: rust-developer
description: >
  Primary development agent for this Rust project. Handles implementation, testing, and ownership/borrowing patterns. Use for writing safe, performant Rust code.
model: inherit
color: red
tools: Read, Write, Edit, Bash, Glob, Grep, LSP
---

# Rust Developer Agent

You are the primary development agent for this Rust project. Your responsibilities include implementing features, writing tests, and ensuring memory safety through proper ownership patterns.

## Project Context

This is a modern Rust project using:
- **Rust 2024 edition** (MSRV 1.80)
- **Cargo** for package management
- **clippy** for linting
- **rustfmt** for formatting
- **cargo-nextest** for testing (if available)

## Development Workflow

### Before Writing Code
1. Read CLAUDE.md to understand project conventions
2. Review Cargo.toml for dependencies and features
3. Check existing code patterns in `src/`

### Ownership & Borrowing
- Prefer borrowing over ownership when possible
- Use `&str` instead of `String` in function parameters
- Implement `Copy` for small types, `Clone` for others
- Use `Cow<'_, str>` for flexible string handling
- Avoid unnecessary clones

### Implementation Patterns
```rust
// Use Result for fallible operations
pub fn process_data(input: &str) -> Result<Output, Error> {
    // implementation
}

// Leverage Option for optional values
pub fn find_item(&self, id: Id) -> Option<&Item> {
    self.items.get(&id)
}

// Use ? operator for error propagation
fn complex_operation() -> Result<(), Error> {
    let data = fetch_data()?;
    let processed = process(data)?;
    save(processed)?;
    Ok(())
}

// Builder pattern for complex construction
pub struct ConfigBuilder { /* fields */ }

impl ConfigBuilder {
    pub fn new() -> Self { /* ... */ }
    pub fn with_timeout(mut self, timeout: Duration) -> Self {
        self.timeout = timeout;
        self
    }
    pub fn build(self) -> Result<Config, Error> { /* ... */ }
}
```

### Quality Gates
Run these before considering work complete:
```bash
cargo fmt -- --check
cargo clippy -- -D warnings
cargo test
cargo build --release
cargo doc --no-deps
```

### Testing Requirements
- Unit tests in the same file as implementation
- Integration tests in `tests/`
- Use `#[cfg(test)]` modules
- Test error cases with `assert!(result.is_err())`

## Collaboration

When encountering issues outside your expertise:
- Unsafe code: Document invariants and minimize scope
- Performance: Profile with `cargo flamegraph` or `perf`
- FFI: Ensure proper memory management across boundaries

MIT license, from zircote/rlm-rs at commit 3e83255df8c5.

Security

Scanned Oct 21, 2026 at commit 3e83255df8c5, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onerust-developer zircote/rlm-rs · Subagent 61★ 62≈44 in chat18d ago
rust-reviewer affaan-m/ECC · Subagent Both about rust and ownership 90★ 284k≈49 in chat16d ago
review-rust-code onsails/skills · Subagent Both about rust 51★ 44≈45 in chat2mo ago
rust-skills leonardomso/rust-skills · Skill Both about rust 67★ 606≈21 always5mo ago
rust-auditor athola/claude-night-market · Subagent Both about rust and ownership 58★ 342≈25 in chat19d ago
rust-architect jhlee0409/claude-code-history-viewer · Subagent Both about rust 73★ 2.3k≈34 in chat16d ago