Scaffold stage for the cli-forge skill family: create a new Rust CLI Skill project from the authoritative templates and prepare it for validation.
Use this stage when the work is to create a brand-new Rust CLI Skill project from the baseline templates, and the detailed CLI contract (Plan) has already been explicitly defined and approved.
Generate the baseline codebase for a new skill using the approved
cli-plan.yml and the authoritative templates.
This stage does not make design decisions; it strictly follows the blueprint provided by the Plan stage.
| # | Check | Source |
|---|---|---|
| 1 | cli-plan.yml exists and is approved | Plan stage |
| 2 | skill_name is known | Plan stage |
| 3 | Target project directory DOES NOT exist | Filesystem |
skill_namecli-plan.ymlauthor, version, rust_edition./instructions/new.md: require the skill
name, verify cli-plan.yml, and refuse to overwrite an existing directory../templates/ EXACTLY as defined by
cli-plan.yml and the instruction file, restoring any install-safe
dot-* resource alias to its intended dot-prefixed output path.{{token}} placeholders remain unresolved.cargo buildcargo clippy -- -D warningscargo fmt --checkcargo test.cli-forge/scaffold-receipt.yml using the template at
./contracts/scaffold-receipt.yml.tpl..cli-forge/scaffold-receipt.yml| # | Check |
|---|---|
| 1 | All templates expanded with no unresolved tokens |
| 2 | cargo build passes |
| 3 | cargo clippy -- -D warnings passes |
| 4 | cargo fmt --check passes |
| 5 | cargo test passes |
| 6 | scaffold-receipt.yml generated |
./templates/ directory for this
stage. Do not reach outside this skill package for scaffold templates.dot-* resource names inside ./templates/ as install-safe aliases
only. Generated outputs must restore the intended dot-prefixed filename.cli-plan.yml.cli-plan.yml marks daemon in_scope, stop and
report that scaffold support for daemon must be implemented before
generation can proceed.Continue with ../cli-forge-validate/SKILL.md
to run the full compliance rule set.