validate-and-fix
Run the local fast CI loop (`make ci`) and automatically fix discovered issues using concurrent agents
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the local fast CI loop (`make ci`) and automatically fix discovered issues using concurrent agents
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
One-time contributor setup — run `make setup` and verify governed reads work end-to-end so `/init` can report lifecycle and structural counts.
Run dead code and duplicate detection, get categorized cleanup recommendations
Create a git commit with an impact-focused conventional commit message
Staged adversarial review — triage, decorrelated finders (warm + cold), per-finding refuters, evidence-ready report
Post-create PR lifecycle automation — rerun infra failures, triage review comments adversarially, enqueue when green, verify merged main. Designed for /loop.
Glue workflow — coupling gate, local review, conventional commit, and PR creation with waiver discipline in one governed sequence
| name | validate-and-fix |
| description | Run the local fast CI loop (`make ci`) and automatically fix discovered issues using concurrent agents |
| allowed-tools | Bash, Agent, Read, Edit, Glob, Grep |
Run the local fast CI loop and automatically fix discovered issues. make ci covers the same gate set as every GitHub Actions enforcing workflow — if make ci passes locally, CI will pass too. For pre-merge release verification or parity-drift investigation, make ci-strict is the slower parity mirror (token-equivalent to the workflows).
Invoke make ci from the repo root. The Makefile is the single source of truth for what CI validates. Do not discover validation commands by grepping package.json, Cargo.toml, or CLAUDE.md — the Makefile already enumerates every gate the CI workflows enforce.
Two modes (spec 134, defaults reversed by spec 135).
make ciis the parity-exempt fast loop (~5 min warm on M1 Pro 10c / 64 GB) — parallel, with sccache + nextest auto-detected. This is the daily dev loop.make ci-strictis the parity-bound mirror (~90 min) — token-equivalent to every enforcing workflow'srun:blocks; use it pre-merge for release verification or when investigating parity drift.
make ci composes (concurrently, with make -j$(CIFAST_JOBS)):
ci-fast-rust — cargo clippy --workspace -- -D warnings + cargo test --workspace (or nextest run --workspace if installed) on crates/Cargo.toml (all 18 workspace members per spec 135 FR-01) and platform/services/deployd-api-rs/Cargo.toml. Mirrors ci-axiomregent.yml, ci-crates.yml, ci-deployd-api-rs.yml, ci-orchestrator.yml, ci-policy-kernel.yml.ci-fast-tools: parallel xargs fan-out across tool manifests with shared CARGO_TARGET_DIR; cargo test -- --list post-pass asserting each CI_REGISTRY_CONSUMER_CONTRACTS prefix has ≥1 match; spec-lint --fail-on-warn smoke; spec-spine index smoke (broad staleness gate retired per spec 188 Phase 4b). Mirrors spec-conformance.yml.ci-fast-desktop — apps/opc/src-tauri Rust (custom clippy flags: -A dead_code -D warnings) concurrent with pnpm install --frozen-lockfile; tsc --noEmit and vitest concurrent; Cargo.toml ↔ package.json version alignment. Mirrors ci-desktop.yml.ci-fast-statecraft — platform/services/statecraft: npm ci, then tsc --noEmit and npm test concurrent. Mirrors ci-statecraft.yml.ci-fast-schema-parity — Rust factory-contracts fingerprints + bun run tools/oap/schema-parity-check/index.mjs. Mirrors ci-schema-parity.yml (spec 120/125).ci-fast-spec-coupling — PR-time spec/code coupling gate. Mirrors ci-spec-code-coupling.yml (spec 127).ci-fast-supply-chain — cargo-deny parallel xargs over Rust manifests + pnpm audit + npm audit concurrent. Mirrors ci-supply-chain.yml (spec 116).make ci-strict composes the same gate set via the canonical sequential targets (ci-rust, ci-tools, ci-desktop, ci-statecraft, ci-schema-parity, ci-spec-code-coupling, ci-supply-chain) — token-equivalent to the workflows but ~90 min on M1 Pro.
Not in either make ci or make ci-strict (run on demand):
make ci-cross — axiomregent cross-target matrix (requires rustup target add per triple). Mirrors build-axiomregent.yml.If a check is missing, add it to the Makefile and the relevant workflow in the same change. Never introduce a new validation via a one-off script under scripts/ — that directory is being retired in favour of Rust binaries invoked from the Makefile (spec 105).
After edits to either the Makefile ci* targets or any workflow under .github/workflows/, run make ci-parity as a pre-PR check. It asserts that every run: block in an enforcing workflow has a mirror in make ci-strict (the parity-bound recipe); drift is a workflow violation (spec 104, rebound by spec 135 FR-04). The check is also enforced by .github/workflows/ci-parity.yml, so a PR that skips the local run will still be caught in CI.
Capture full output — file paths, line numbers, error messages. Categorize findings:
make ci-tools)make ci-<sub> after each fix to confirm no regressionsmake ci composite to confirm end-to-end paritygit stash push -m "pre-validate-and-fix"Launch multiple agents concurrently for independent, parallelizable tasks:
make ci-<sub> target before reporting completeAfter all agents complete:
make ci to confirm 100% CI parityFixed X/Y issues, Z require manual intervention — CI parity: {PASS|FAIL}