ワンクリックで
code-quality-gates
Use automatically before and after code changes. Ensures documentation, formatting, type safety, and audit standards.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use automatically before and after code changes. Ensures documentation, formatting, type safety, and audit standards.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Coordinate specialized teammates in Agent Teams for execution, review, and planning. Delegate mode mandatory with TaskCompleted/TeammateIdle hooks.
Plan completion workflow - archive plan, verify todos, create git commit, push with retry. Use for finalizing completed plans.
Plan confirmation workflow - extract plan from conversation, create file, auto-review with Interactive Recovery. Use for confirming plans after /00_plan.
Plan execution workflow - parallel SC implementation, worktree mode, verification patterns, GPT delegation. Use for executing plans with TDD + Ralph Loop.
Use when blocked, stuck, or needing fresh perspective. Consults GPT experts via Codex CLI with graceful fallback.
Coordinate independent teammates concurrently in Agent Teams for 50-70% speedup. Launch multiple teammates simultaneously.
| name | code-quality-gates |
| description | Use automatically before and after code changes. Ensures documentation, formatting, type safety, and audit standards. |
Purpose: Automated quality checks before/after code changes (PreToolUse, PostToolUse, Stop hooks converted to skill logic) Target: All agents making code changes
# PreToolUse: Block .md creation
[[ "$file" == *.md ]] && echo "Use Write tool for .md" && return 1
# PostToolUse: Auto-format + type check
prettier --write "$file" && npx tsc --noEmit
# Stop: Console.log audit
grep -rn "console.log" src/ || true
Purpose: Block .md file creation via Bash
Apply: Before Bash commands
echo "$command" | grep -qiE '\.md' && echo "Use Write tool for .md" && return 1
Purpose: Auto-format after code changes
Apply: After Edit/Write
format_code() {
case "${1##*.}" in
js|ts|tsx|json|css|md) prettier --write "$1" ;;
py) black "$1" ;;
esac
}
Purpose: Verify TypeScript type correctness
Apply: After .ts file changes
[ -f tsconfig.json ] && npx tsc --noEmit
Purpose: Flag console.log before completion
Apply: Before work completion
find src -name "*.ts" -o -name "*.js" | xargs grep -n "console.log"
| Hook | Function | Agent | Trigger |
|---|---|---|---|
| PreToolUse | Documentation gate | All | Before Bash |
| PostToolUse | Formatting | Coder | After Edit/Write |
| PostToolUse | Type check | Coder | After .ts changes |
| Stop | Console audit | Coder | Before completion |
# Test all gates
echo "# Test" > test.md # Should warn
echo "const x=1;" > test.js && prettier --write test.js # Should format
echo "const x: string = 1;" > test.ts && npx tsc --noEmit # Should error
grep -rn "console.log" src/ # Should find logs
Version: claude-pilot 4.3.0