ワンクリックで
check
Run the pre-commit check suite — cargo fmt, clippy, and unit tests — and fix formatting automatically if needed
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run the pre-commit check suite — cargo fmt, clippy, and unit tests — and fix formatting automatically if needed
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Step-by-step checklist for adding a new CLI flag to openshell-image-builder, covering all locations from the clap struct to integration tests
Understand and edit the OpenShell sandbox policy — base YAML, network rule schema, how inference and agent fragments are merged, and how to test changes
Step-by-step checklist for adding a new inference provider to openshell-image-builder, covering the trait implementation, agent wiring, unit tests, integration tests, and README
Step-by-step checklist for adding a new agent to openshell-image-builder, covering the Agent trait, mod.rs registration, unit tests, integration tests, and README
Step-by-step checklist for adding a new base image to openshell-image-builder, covering the Containerfile match arm, unit tests, and integration tests
Create a new project skill in .agents/skills/ and register it in the skills README
| name | check |
| description | Run the pre-commit check suite — cargo fmt, clippy, and unit tests — and fix formatting automatically if needed |
Run the mandatory pre-commit check suite for openshell-image-builder.
CLAUDE.md requires this suite to pass before staging any commit:
cargo fmt --check && cargo clippy -- -D warnings && cargo test
This skill runs the three steps in order, stopping at the first failure. If cargo fmt --check fails it automatically applies cargo fmt and reports which files were reformatted before continuing.
Run the steps below in sequence. Stop and report the failure if any step exits non-zero (after the fmt auto-fix described in step 1).
cargo fmt --check
If this fails (exit non-zero), run:
cargo fmt
Then tell the user which files were reformatted. Continue to step 2.
cargo clippy -- -D warnings
-D warnings promotes every clippy warning to a hard error. Common causes:
#[cfg(test)] — move them into the test module.If this step fails, report the clippy output and stop.
cargo test
This runs only the unit tests embedded in src/. Integration tests in tests/ are excluded here (they require podman and are opt-in via /integration-tests).
If this step fails, report the failing test names and their output, then stop.
If all three steps pass (or step 1 was auto-fixed and steps 2–3 pass), report:
git add for the reformatted files.