cargo-generate
Installation
SKILL.md
cargo-generate — Project Scaffolding from Git Templates
cargo-generate expands a git repository of real files into a new project, substituting Liquid expressions in file contents and in path names. It is the Rust ecosystem's standard scaffolding tool — Bevy, wasm-pack, and most framework starters ship templates for it.
When to Use This Skill
| Use this skill when... | Use the alternative instead when... |
|---|---|
Starting from a published template (bevy_new_2d, wasm-pack-template) |
Starting a plain binary or library — cargo new is enough (see rust-development) |
| Authoring a template so a project shape can be reproduced | Applying standards to an existing repo — cargo-generate only generates once (see configure-plugin) |
| A scaffold needs prompts, variants, or derived values | The scaffold is a fixed file set with no substitution — copy it |