원클릭으로
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.