| name | rust-cli-validate |
|---|---|
| description | Validation stage for the rust-cli skill family: run the documented compliance checks for an existing project and report whether it is constitution-compliant, usable with warnings, or blocked by errors. |
Use this stage when you need a compliance report for an existing Rust CLI Skill project, or when you have just scaffolded or extended one and need to verify the result.
- The user explicitly asked for validation or compliance checking.
- Scaffold work just finished and needs a verification pass.
- Extension work just finished and needs a verification pass.
- Description-stage work just finished and needs the downstream surfaces checked for alignment.
- Publish-oriented work is requested, but validation is stale or missing.
Produce a validation report that reflects the project's current state and makes the next action obvious.
Read instructions/validate.md as the exact source of truth for the ruleset,
the output table format, build checks, and runtime-convention checks.
project_path
- Run the pre-checks from
../../instructions/validate.md: resolve the path, confirm it is a directory, and confirmCargo.tomlexists. - Execute the documented validation rules in order, including:
- structure
- naming
- dependencies and metadata
SKILL.mdcontract checks- build checks
- runtime convention checks
- generated package boundary checks so package-local support assets are allowed only when enabled and repository-owned CI automation is not misclassified as generated output
- Return the report in the required markdown table shape with the requested summary.
- Classify the outcome:
- compliant when all required checks pass
- usable with warnings when only warning-level gaps fail
- non-compliant when any error-level check fails
- Prepare the handoff:
- compliant or reviewable-with-warnings results continue into
publishso the workflow ends with final release-readiness or no-publish closure - non-compliant results route back to the earliest failing phase before later work resumes
- compliant or reviewable-with-warnings results continue into
- Do not skip checks just because an earlier rule failed unless the instruction file explicitly says the remaining check would be impossible or misleading.
- Preserve the exact reporting contract from the instruction file.
- If failures point to broken scaffold fundamentals, route back to the earlier phase that owns those surfaces before claiming the workflow is done.
This stage is complete only when the full validation report and summary have been produced for the current project state.
- Continue with
../rust-cli-publish/SKILL.mdafter every successful validation pass. If no explicit release action was requested, enterpublishinreport_onlymode. - Otherwise, route back to the earliest failing phase, fix the gaps there, and re-run validation.