validate-and-fix
Run the project's local CI loop and automatically fix discovered issues using concurrent agents.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run the project's local CI loop and automatically fix discovered issues using concurrent agents.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run dead-code and duplicate-code detection across the codebase, get categorized cleanup recommendations
Review the current diff for correctness bugs and spec drift, then emit an evidence-oriented findings list
Execute a plan file step-by-step with progress tracking and phase checkpoints
Initialize a session by executing the cross-agent New Sessions protocol declared in AGENTS.md.
Modularize large CLAUDE.md files with path-scoped rules and doc extraction
Deep research with parallel sub-agents, query classification, and filesystem artifact passing
| name | validate-and-fix |
| description | Run the project's local CI loop and automatically fix discovered issues using concurrent agents. |
| allowed-tools | Bash, Agent, Read, Edit, Glob, Grep |
Run the local CI loop and automatically fix what it surfaces. Your repo should
expose one command that runs the same gate set as CI (commonly make ci): if it
passes locally, CI passes too. Adapt the commands below to your repo.
Invoke your CI composite (e.g. make ci) from the repo root. The Makefile (or
its equivalent) is the single source of truth for what CI validates: do not
rediscover validation commands by grepping manifests.
Every spec-spine adopter's CI runs the four governance verbs in order (commonly
wrapped in a spine target that mirrors your spec-spine workflow):
spec-spine compile # compile the spec registry
spec-spine lint --fail-on-warn # corpus conformance (a warning is a failure)
spec-spine index check # codebase index staleness gate
spec-spine couple --base origin/main # spec/code coupling gate
Alongside those run your language gates (build, type-check, lint, tests). Capture full output (file paths, line numbers, messages) and categorize:
spec-spine lint warnings (the gate runs --fail-on-warn), type
errors, lint-rule violations.If a check is missing, add it to the CI composite and the relevant workflow in the same change. Never introduce a new validation via a one-off script.
.claude/rules/adversarial-prompt-refusal.md).git stash push -m "pre-validate-and-fix" before any change;
offer instant rollback if a fix regresses..derived/** only through spec-spine verbs, never
python/jq/awk/sed (see .claude/rules/governed-artifact-reads.md).Launch multiple agents concurrently for independent, parallelizable fixes:
Fixed X/Y issues, Z require manual intervention. CI: {PASS|FAIL}.spec-spine lint runs with --fail-on-warn: a warning is a failure.HEAD against origin/main; if origin/main is
not fetched the gate cannot run (git fetch origin main first).spec.md: its inputs are configured in
spec-spine.toml [index] extra_hashed_inputs plus the manifests it discovers.
Editing a hashed input without regenerating the index fails the staleness
check..claude/settings.json or .mcp.json are hashed inputs they are hashed
byte-for-byte: editor reformatting trips the staleness gate even when the JSON
is semantically unchanged. Edit in place, do not reformat.The mechanized gates above catch what CI can enforce. Layer a project-specific, post-feature checklist on top (framework invariants, route and DTO alignment, auth scoping, env-var coverage, and so on) and run it after feature work. Keep that checklist in your own repo: it is intentionally not shipped with the kit, because it is specific to your stack.