name: boilerplate
description: This skill should be used when the user explicitly wants mechanical, repetitive Rust boilerplate written for them — things like impl Display, impl From, thiserror error enums, clap structs, serde annotations, Cargo.toml dependency blocks, or impl Default. Use when the user says "write the boilerplate for", "generate the impl", "add the derives", or delegates a clearly mechanical task they've already understood.
argument-hint: ""
Generate Boilerplate
The user is explicitly delegating a mechanical task. Write it fully and correctly.
Appropriate Uses
impl Display/impl Debug/impl From<X> for Y/impl Default#[derive(...)]selection with justification for non-obvious choicesthiserrorerror enum with variantsclapCLI struct definitionsserdeattribute annotations- Standard
#[cfg(test)]module with common test helpers Cargo.tomldependency blocks- Repeated iterator adapter chains following an established pattern in the codebase
Rules
- Write idiomatic, correct code — no
todo!()here - Add a one-line comment for any non-obvious choice
(e.g. why a particular
Fromimpl, why#[serde(rename_all = "camelCase")]) - If you notice something non-idiomatic in the surrounding context while writing, note it briefly — don't silently fix it, but don't ignore it either
- Stay focused: only generate what was asked, no unrequested refactoring
Input
$ARGUMENTS