一键导入
validate
Run all validators against recent code changes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run all validators against recent code changes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Configure Claude Code for this project - detects languages and sets up rules, skills, and validators
Implement a feature or fix with automatic validation
Multi-LLM craftsmanship council with live progress and debate mode for code review and design questions
Review recent changes - run all validators and report status
Validate error handling completeness across languages
Validate Go code against Effective Go and idiomatic conventions
| name | validate |
| description | Run all validators against recent code changes |
| allowed-tools | Task, Bash |
Run all applicable validators against recent code changes.
Check what files have changed. Combine committed, staged, and unstaged changes to capture all recent work:
{ git diff HEAD~1 --name-only --diff-filter=ACMRT 2>/dev/null; git diff --cached --name-only --diff-filter=ACMRT 2>/dev/null; git diff --name-only --diff-filter=ACMRT 2>/dev/null; } | sort -u
Based on file extensions, select validators:
.go files → run go-effective, go-proverbs.py files → run python-style.ts or .tsx files → run typescript-stylesecuritystate-machineerror-handlingUse the Task tool to spawn validators in parallel. For each applicable validator, create a Task with:
Example Task prompt for each validator:
Invoke the `go-effective` skill using the Skill tool (skill: "go-effective"). Return its JSON output verbatim — do not summarize, reformat, or re-implement the validation logic.
Go files changed:
go-effective skill and return JSON output verbatim.go-proverbs skill and return JSON output verbatim.security skill and return JSON output verbatim.state-machine skill and return JSON output verbatim.error-handling skill and return JSON output verbatim.Python files changed:
python-style skill and return JSON output verbatim.security skill and return JSON output verbatim.state-machine skill and return JSON output verbatim.error-handling skill and return JSON output verbatim.TypeScript files changed:
typescript-style skill and return JSON output verbatim.security skill and return JSON output verbatim.state-machine skill and return JSON output verbatim.error-handling skill and return JSON output verbatim.Mixed languages: Combine all applicable validators. Security, state-machine, and error-handling always run exactly once regardless of how many languages are detected.
Run all applicable Tasks in parallel (multiple Task calls in one response).
Collect all validator outputs and present a human-readable summary. Do NOT display raw validator JSON to the user — interpret and summarise the results.
# Validation Results
| Validator | Result | HARD | SHOULD | WARN |
|-----------|--------|------|--------|------|
| {validator} | {✓ pass / ✗ fail} | {count} | {count} | {count} |
## HARD violations (must fix)
- **{validator}** `{file}:{line}` — {rule description}
## SHOULD violations (fix or justify)
- **{validator}** `{file}:{line}` — {rule description}
- *Accepted:* {reason — e.g., pre-existing code outside diff scope, justified trade-off}
## Warnings
- {count} advisory warnings from {validator} ({brief context})
## Verdict
**PASS / PASS with warnings / FAIL** — {1-2 sentence summary with reasoning}
Important formatting rules:
If any HARD violations or unjustified SHOULD violations:
If only warnings:
If clean: