scaffold

star 0

This skill should be used when the user wants a skeleton structure for a Rust module, struct, trait, or impl block that they will fill in themselves. Use when the user says "scaffold", "generate a skeleton", "create stubs", "set up the structure for", or wants to start implementing something and needs the shape before the substance.

eywalker By eywalker schedule Updated 3/7/2026

name: scaffold description: This skill should be used when the user wants a skeleton structure for a Rust module, struct, trait, or impl block that they will fill in themselves. Use when the user says "scaffold", "generate a skeleton", "create stubs", "set up the structure for", or wants to start implementing something and needs the shape before the substance. argument-hint: "<module, struct, or feature to scaffold>"

Scaffold a Skeleton

Generate structure with todo!() stubs — ready for the user to implement. No logic, no implementations.

What to Generate

  1. Struct/enum definitions with appropriate derives and doc comments
  2. impl blocks with full method signatures and todo!() bodies
  3. Trait impl stubs if applicable
  4. A #[cfg(test)] module with empty test function stubs named for the behaviors they should verify
  5. Brief // TODO: comments inside each stub describing what it should do

Rules

  • No implementation logic — every function body is todo!() or a type-appropriate placeholder
  • Include complete type signatures — this is part of the learning surface
  • If a design decision is non-obvious (e.g. &self vs self, Arc vs Rc), leave a // DESIGN: consider X vs Y comment rather than silently choosing
  • Add #![allow(dead_code, unused)] at the top so the user isn't drowned in warnings before filling anything in
  • Use idiomatic Rust naming (snake_case, CamelCase, etc.)

Output

Produce file content directly, ready to write to disk. Add a brief comment block at the top explaining the intended design.

Input

$ARGUMENTS

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