rust-cli Extend
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.
When To Use This Stage
- 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
stream or repl.
Stage Goal
Apply the requested feature cleanly, keep the project constitution-compliant,
and prepare the result for validation.
Canonical References
Read instructions/add-feature.md as the exact source of truth for pre-checks,
file patches, required touched files, and post-edit verification.
Required Inputs
project_path
feature where feature is exactly stream or repl
Workflow
- 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.rs
repl -> 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, structured help, 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, and
cargo fmt --check.
Guardrails
- 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
stream and repl.
- 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.
Done Condition
This stage is complete only when the requested feature is present and the
required verification commands pass.
Next Step
Continue with ../rust-cli-validate/SKILL.md
to verify the project after the extension work.
1---2name: rust-cli-extend3description: 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.4---56# rust-cli Extend78Use this stage when an existing scaffolded Rust CLI Skill project needs one of9the supported optional features: `stream` or `repl`, or when a10description-impacting change must continue into feature work after the11description stage refreshed the contract.1213## When To Use This Stage1415- Intake classified the work as optional feature extension.16- The description stage already ran when the request changed the skill's17 purpose, positioning, or other user-facing contract.18- The target project already has the scaffold baseline.19- The requested feature is exactly `stream` or `repl`.2021## Stage Goal2223Apply the requested feature cleanly, keep the project constitution-compliant,24and prepare the result for validation.2526## Canonical References2728- [`../../instructions/add-feature.md`](../../instructions/add-feature.md)29- [`../../constitution.md`](../../constitution.md)3031Read `instructions/add-feature.md` as the exact source of truth for pre-checks,32file patches, required touched files, and post-edit verification.3334## Required Inputs3536- `project_path`37- `feature` where `feature` is exactly `stream` or `repl`3839## Workflow40411. Run the pre-checks from42 [`../../instructions/add-feature.md`](../../instructions/add-feature.md):43 resolve the path, confirm the scaffolded files exist, validate the feature44 name, and stop if the feature is already present.452. Expand the matching template into the target project:46 - `stream` -> `src/stream.rs`47 - `repl` -> `src/repl.rs`483. Apply the required source, help, and documentation updates described in the49 instruction file.504. Preserve the shared runtime contract while editing:51 plain-text `--help`, structured `help`, runtime-directory docs, and Active52 Context behavior must stay accurate.535. Keep the generated package within the documented boundary:54 package-local support files may be added when the enabled capability55 requires them, but repository-owned CI workflows, release scripts, and56 release automation must not be copied into the generated skill.576. Run the required verification commands after the edit:58 `cargo build`, `cargo test`, `cargo clippy -- -D warnings`, and59 `cargo fmt --check`.6061## Guardrails6263- Do not use this stage on a project that is missing the scaffolded baseline.64 Return to the earlier scaffold phase instead.65- Do not add unsupported features beyond `stream` and `repl`.66- Keep feature-specific changes scoped to the files and behaviors described by67 the instruction file.68- If the request changes the generated skill's public description and feature69 behavior together, treat the approved description contract as an input rather70 than inventing new summaries here.7172## Done Condition7374This stage is complete only when the requested feature is present and the75required verification commands pass.7677## Next Step7879Continue with [`../rust-cli-validate/SKILL.md`](../rust-cli-validate/SKILL.md)80to verify the project after the extension work.