| name | source-command-check |
| description | Run the cargo dev-loop (fmt check, clippy, test) across the workspace or one crate |
source-command-check
Use this skill when the user asks to run the migrated source command check.
Command Template
Run the project's standard cargo dev-loop: format check, lint, and tests.
Input: Optional crate name after /check (context-lexer or context-parser). If omitted,
run across the whole workspace.
Steps
-
If no crate name argument was given, run:
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
-
If a crate name argument was given (e.g. /check context-lexer), scope every step to that
crate instead:
cargo fmt --check -p <crate>
cargo clippy -p <crate> --all-targets -- -D warnings
cargo test -p <crate>
-
Run all three steps even if an earlier one fails, and report a combined pass/fail summary at
the end (which step(s) failed, and the relevant error output) rather than stopping at the first
failure.
The workspace's baseline cargo clippy is currently warning-free, so -D warnings is expected to
pass cleanly on unrelated code — a failure means the change under review introduced a new lint.