Skip to content
Back to skills

Languages

ASecurity

Rust development skill - Memory safety, systems programming, async Rust

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
developmentrustsqltestingdatabase

Works with

  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add pluginagentmarketplace/custom-plugin-linux --skill languages --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Languages?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Languages
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pluginagentmarketplace-languages-e40bd8a4/badge)](https://www.skillsdirectory.com/skills/pluginagentmarketplace-languages-e40bd8a4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rust
description: Rust development skill - Memory safety, systems programming, async Rust
version: "1.0.0"
sasmp_version: "1.3.0"

input_schema:
  type: object
  properties:
    task: { type: string, enum: [code, debug, explain, optimize, review] }
    context: { type: string, enum: [systems, web, cli, embedded] }
  required: [task]

output_schema:
  type: object
  properties:
    solution: { type: string }
    safety_notes: { type: array }

retry_config:
  max_attempts: 3
  backoff: exponential

timeout_ms: 30000
---

# Rust Skill

## PURPOSE
Systems programming with memory safety and fearless concurrency.

## CORE COMPETENCIES
```
Ownership Model:
├── Ownership rules
├── Borrowing (&, &mut)
├── Lifetimes
└── Move semantics

Error Handling:
├── Result<T, E>
├── Option<T>
├── ? operator
└── thiserror/anyhow

Async Rust:
├── async/await
├── Tokio runtime
└── Channels (mpsc)
```

## CODE PATTERNS

### Error Handling
```rust
use thiserror::Error;

#[derive(Error, Debug)]
pub enum AppError {
    #[error("Database error: {0}")]
    Database(#[from] sqlx::Error),
    #[error("Not found")]
    NotFound,
}
```

### Retry Pattern
```rust
async fn with_retry<T, F, Fut>(f: F, attempts: u32) -> Result<T>
where
    F: Fn() -> Fut,
    Fut: Future<Output = Result<T>>,
{
    for _ in 0..attempts {
        if let Ok(r) = f().await { return Ok(r); }
    }
    f().await
}
```

## TROUBLESHOOTING

| Issue | Cause | Solution |
|-------|-------|----------|
| Borrow checker | Lifetime conflict | Use Rc/Arc |
| Deadlock | Lock ordering | Review lock order |

## TESTING
```rust
#[cfg(test)]
mod tests {
    #[test]
    fn test_function() {
        assert_eq!(fn("input"), "expected");
    }

    #[tokio::test]
    async fn test_async() {
        assert!(async_fn().await.is_ok());
    }
}
```

Files in this skill

  • SKILL.md637 B
  • assets/config.yaml678 B
  • assets/schema.json1.1 KB
  • java-SKILL.md1.8 KB
  • js-SKILL.md3.1 KB
  • python-SKILL.md4.1 KB
  • references/GUIDE.md1.8 KB
  • references/PATTERNS.md1.5 KB
  • rust-SKILL.md1.8 KB
  • scripts/validate.py3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…