metaphor/marketplace

skill · built into metaphor

/rust

Rust idioms, cargo test, filesystem-safe temp dirs

  • Built in
  • Slash command
try it

you ›/rust

metaphor ›Loaded the rust skill. What should I work on?

What the agent is told

This is the skill's SKILL.md, exactly what Metaphor reads before the task.

Prefer minimal diffs that compile cleanly under the workspace Cargo.toml.

Idioms

  • Follow existing crate layout, module visibility, and error types (Result, thiserror/anyhow as used).
  • Prefer borrowing over cloning; avoid unnecessary unwrap() in library code.
  • Keep pub API surface intentional; match naming already in the crate.
  • Use cargo fmt style: rustfmt defaults unless the repo overrides them.

Testing

  • Add or update unit tests in the same module or tests/ integration crate as peers do.
  • Prefer deterministic tests; avoid network and filesystem races.

Safety

  • Do not embed secrets, tokens, or credentials in source.
  • Avoid unsafe unless the surrounding code already requires it and is reviewed.
  • Proposed paths must be repo-relative.

Questions

What is the rust skill?

Rust idioms, cargo test, filesystem-safe temp dirs

How do I use rust in Metaphor?

It is built into Metaphor. Type /rust in the composer, or describe the task and the agent loads the skill when it fits.

What is a skill?

A skill is a set of written instructions the agent reads before it starts a kind of task. It changes how the agent works, not what it is allowed to do.

More built-in skills