一键导入
gate-check
Run the 12 gates against a named crate and report pass/fail per gate. Use before crate admission or when verifying gate progress on an in-flight crate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the 12 gates against a named crate and report pass/fail per gate. Use before crate admission or when verifying gate progress on an in-flight crate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Author, check and repair Nika workflows (.nika.yaml files — the workflow language for AI). Use when writing or editing a *.nika.yaml file, converting a repeated AI task or prompt chain into a workflow, or when nika check reports NIKA-XXXX findings to fix.
Convert existing automation — shell scripts, Python glue, Makefile targets, CI jobs, prompt chains in docs — into checkable .nika.yaml workflows. Use when a script wraps LLM calls or HTTP/file plumbing, a prompt chain lives in a README or notebook, or ad-hoc automation needs audit, cost bounds and replayable traces.
Diagnose and repair failed, paused or suspicious Nika runs from their traces (.nika/traces). Use when nika run exited red, a run paused on a prompt, a NIKA-XXXX runtime finding needs a root cause, a trace must be read or tamper-verified, or a fixed workflow needs a surgical partial rerun.
Operate Nika workflows day-2 — spend caps, permits boundaries, secrets, model swaps (cloud/local), CI wiring, trace export. Use when hardening a working workflow for production, wiring it into CI or a scheduler, capping cost, tightening the permits boundary, swapping models, or exporting traces to OpenTelemetry.
Guided 12-gate crate admission workflow. Runs each gate sequentially and stops on first failure. Use when you believe a crate is ready to join the workspace.
| name | gate-check |
| description | Run the 12 gates against a named crate and report pass/fail per gate. Use before crate admission or when verifying gate progress on an in-flight crate. |
| argument-hint | ["crate-name"] |
| allowed-tools | Bash, Read, Grep |
$ARGUMENTSRun each gate sequentially on crate $ARGUMENTS. Report PASS / FAIL / N/A with a 1-line reason.
test -f docs/crate-specs/$ARGUMENTS.md && echo PASS || echo FAIL
grep -rc -E '#\[(test|tokio::test)\]' crates/$ARGUMENTS/src 2>/dev/null | awk -F: '{s+=$2} END{print s " tests"}'
PASS if tests > 20 per 1k LOC. Check git log --oneline crates/$ARGUMENTS/ for test-first commit order.
cargo test -p $ARGUMENTS --lib 2>&1 | tail -5
cargo clippy -p $ARGUMENTS --all-targets -- -D warnings 2>&1 | grep -E '(error|warning)' | wc -l
PASS if output is 0.
cargo mutants -p $ARGUMENTS --timeout 30 2>&1 | tail -5
grep -rE 'proptest!|quickcheck!' crates/$ARGUMENTS/ 2>/dev/null | wc -l
N/A if crate is pure types. Document exemption in spec.
test -d crates/$ARGUMENTS/benches && echo PASS || echo "N/A (not hot path)"
cargo doc --no-deps -p $ARGUMENTS 2>&1 | grep -iE 'warning' | wc -l
test -f tests/canary-$ARGUMENTS.nika.yaml && echo PASS || echo "N/A"
Crate-specific. Check golden-test file against git show brouillon:… output.
Launch 3 parallel agents. See .claude/agents/review-swarm.md.
git log --oneline --grep "admit to workspace" crates/$ARGUMENTS/ | head -5
PASS = exactly 1 commit feat($ARGUMENTS): admit to workspace — all 12 gates passed, co-authored Nika 🦋.
After running all 12 gates, print a summary table:
Gate Status Detail
──── ────── ──────────────
1 PASS docs/crate-specs/$ARGUMENTS.md exists
2 PASS 87 tests
3 PASS all green
...
If any FAIL → stop, report why. Do NOT proceed with admission.