boilerplate

star 0

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.

eywalker By eywalker schedule Updated 3/7/2026

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 choices
  • thiserror error enum with variants
  • clap CLI struct definitions
  • serde attribute annotations
  • Standard #[cfg(test)] module with common test helpers
  • Cargo.toml dependency 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 From impl, 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

Install via CLI
npx skills add https://github.com/eywalker/rust-learning --skill boilerplate
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator