# Rust Coding

> Use this skill for anything Rust-related. It encodes specific conventions that must be followed. Always consult it before reading or writing Rust code.

- **Type:** Skill
- **Install:** `agentstack add skill-perongh-skills-rust-coding`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [PeronGH](https://agentstack.voostack.com/s/perongh)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [PeronGH](https://github.com/PeronGH)
- **Source:** https://github.com/PeronGH/skills/tree/main/skills/rust-coding

## Install

```sh
agentstack add skill-perongh-skills-rust-coding
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Rust Coding

## File Size

Recommended file size is under 500 lines. Hard limit is 1000 lines; if reached, break the file down.

## Error Handling

Use `thiserror` for library errors, `anyhow` in binary/CLI layers.

## Documentation

Doc comments on every public item. `cargo doc` should produce useful, navigable documentation.

## Before Commit

Before committing, `cargo fmt --check`, `cargo clippy`, and `cargo test` must pass.

## Lint Suppressions

Follow the lint policy. Any non-test lint suppression must use the narrowest scope possible and include an explicit `reason = "..."`.

## Panic Policy

Do not use panic-prone code casually in non-test code. `unwrap`, `expect`, and similar operations are acceptable when a local invariant guarantees the value and making it fallible would only force fallibility onto callers up the call chain; make that invariant explicit in the code or comments.

## Unsafe Policy

Each unsafe block must contain a single operation with a `SAFETY` comment explaining why the invariant holds. Every unsafe function must have a `# Safety` doc section.

## Performance

Hot paths must have benchmarks. Any performance regression must be explained to the human before committing.

## Hygiene

Handle every `Result` — never silently discard. Do not hold locks or `RefCell` borrows across await points. Do not mark functions async unless they await.

## Source & license

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

- **Author:** [PeronGH](https://github.com/PeronGH)
- **Source:** [PeronGH/skills](https://github.com/PeronGH/skills)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-perongh-skills-rust-coding
- Seller: https://agentstack.voostack.com/s/perongh
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
