| name | rust-cli-extend |
|---|---|
| description | Extension stage for the rust-cli skill family: add the supported stream or repl feature to an existing scaffolded project while preserving the shared runtime contract. |
Use this stage when an existing scaffolded Rust CLI Skill project needs one of
the supported optional features: stream or repl, or when a
description-impacting change must continue into feature work after the
description stage refreshed the contract.
- Intake classified the work as optional feature extension.
- The description stage already ran when the request changed the skill's purpose, positioning, or other user-facing contract.
- The target project already has the scaffold baseline.
- The requested feature is exactly
streamorrepl.
Apply the requested feature cleanly, keep the project constitution-compliant, and prepare the result for validation.
Read instructions/add-feature.md as the exact source of truth for pre-checks,
file patches, required touched files, and post-edit verification.
project_pathfeaturewherefeatureis exactlystreamorrepl
- Run the pre-checks from
../../instructions/add-feature.md: resolve the path, confirm the scaffolded files exist, validate the feature name, and stop if the feature is already present. - Expand the matching template into the target project:
stream->src/stream.rsrepl->src/repl.rs
- Apply the required source, help, and documentation updates described in the instruction file.
- Preserve the shared runtime contract while editing:
plain-text
--help, structuredhelp, runtime-directory docs, and Active Context behavior must stay accurate. - Keep the generated package within the documented boundary: package-local support files may be added when the enabled capability requires them, but repository-owned CI workflows, release scripts, and release automation must not be copied into the generated skill.
- Run the required verification commands after the edit:
cargo build,cargo test,cargo clippy -- -D warnings, andcargo fmt --check.
- Do not use this stage on a project that is missing the scaffolded baseline. Return to the earlier scaffold phase instead.
- Do not add unsupported features beyond
streamandrepl. - Keep feature-specific changes scoped to the files and behaviors described by the instruction file.
- If the request changes the generated skill's public description and feature behavior together, treat the approved description contract as an input rather than inventing new summaries here.
This stage is complete only when the requested feature is present and the required verification commands pass.
Continue with ../rust-cli-validate/SKILL.md
to verify the project after the extension work.