Skip to content
Back to skills

Format Rust

ASecurity

Run `cargo fmt` on every Rust file after creating or editing it.

  • 11 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
toolsrustgobash

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add shannonshell/shannon --skill format-rust --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Format Rust?

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

Security grade badge for Format Rust
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shannonshell-format-rust/badge)](https://www.skillsdirectory.com/skills/shannonshell-format-rust)

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: format-rust
description:
  "Format Rust files with cargo fmt. Use after creating or editing any Rust file
  (.rs)."
---

# Format Rust

Run `cargo fmt` on every Rust file after creating or editing it.

## When This Skill Applies

After every Write or Edit to any `.rs` file in the project. This includes:

- TUI source files (`tui/src/*.rs`)
- Any other Rust file in the project

## Process

After your edits to a Rust file are complete, run:

```bash
cargo fmt -- <file_path>
```

That's it. No other steps needed.

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…