بنقرة واحدة
test
Run cargo test with llvm-cov coverage, enforce gates, name uncovered lines on modified files.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Run cargo test with llvm-cov coverage, enforce gates, name uncovered lines on modified files.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review a pull request or pending changes. Performs a focused code review against the current branch's diff (or staged diff if invoked pre-commit), surfacing correctness bugs, missing tests, style violations, and unclear naming. Use when the user asks to "review this", "review the PR", "code review", or before commits/PRs.
Complete a security review of pending changes on the current branch. Focuses on injection, authn/authz, secrets, SSRF, deserialisation, insecure defaults, and supply-chain risk. Use when the user asks to "security review", "security audit", "check for vulns", or before raising a PR.
Pre-commit gate (fmt + clippy + test) then create a conventional commit with explicit file staging.
Create or update ARCHITECTURE.md with system components, data flows, and ADRs
Format Rust code with rustfmt and report what changed.
Full TDD loop — plan, branch, write code + tests, fmt, clippy, test, review, commit.
| name | test |
| description | Run cargo test with llvm-cov coverage, enforce gates, name uncovered lines on modified files. |
Run the test suite with coverage. Coverage threshold is 80% — this command surfaces why and where when it fails.
cargo llvm-cov --all-features --workspace --summary-only 2>&1
Capture exit code and stdout. If cargo llvm-cov is not installed, halt: "Run /setup first — cargo-llvm-cov is not installed."
For more detail when diagnosing uncovered lines, use:
cargo llvm-cov --all-features --workspace 2>&1
Extract from stdout:
test result: line, e.g. test result: ok. 5 passed; 0 failed; 0 ignored).TOTAL row in the coverage summary.If any test failed:
<test_name> — <one-line failure reason>.If coverage is below threshold:
git diff --name-only HEAD~1 HEAD -- '**/*.rs' and git diff --name-only -- '**/*.rs'.cargo llvm-cov --all-features --workspace 2>&1
test_parse_returns_err_on_empty_input, not "add more tests".If everything is green, report:
PASS <N> passed, <M> ignored
COVER <X>% line coverage (threshold: 80%)
TIME <Z>s