协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
verification-loop【开发与工程】Use this skill for iterative verify-fix cycles across build, type, lint, test, and security gates until completion or explicit stop conditions.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Codex invocation: use
$verification-loop ...orverification-loop: ...
Run repeated verification cycles with bounded retries and clear blocker escalation.
goal (required): full-quality | tests | build | lint | typecheck | pre-pr.scope (optional): changed files/modules only.max_cycles (optional): default 5.max_same_failure (optional): default 3.strict_security (optional): true | false.$verification-loop full-quality
$verification-loop pre-pr
$verification-loop tests for src/auth/
$verification-loop when a single verification pass is not enough and automatic retry/fix cycling is needed.$verify for one-pass verification snapshot.$test-gen for adding missing tests after code changes.Codex supports native subagents. Delegate with spawn_agent, coordinate with send_input, collect via wait_agent, and clean up with close_agent.
Minimal orchestration pattern:
spawn_agent -> send_input (optional) -> wait_agent -> close_agent
Fallback: execute the loop sequentially when delegation is unavailable.
Prefer project-native commands by package manager lockfile detection.
Node defaults:
npm run buildnpx tsc --noEmit (or npm run typecheck if defined)npm run lintnpm run testSecurity checks:
rg -n "sk-[A-Za-z0-9_-]{20,}" --glob '!node_modules' .
rg -n "api[_-]?key|secret|token\s*=\s*['\"]" --glob '!node_modules' .
Debug log audit:
rg -n "console\.log|print\(" src tests
State file: .omc/state/verification-loop-state.json
Per cycle:
max_cycles)max_same_failure times[VERIFICATION-LOOP]
- goal
- cycle: <n>/<max_cycles>
- active gate
[RESULT]
- build/type/lint/test/security: pass|fail
- failure class
- fix applied
[NEXT]
- recheck command
- escalation decision
[STATUS]
- result: <complete|blocked|in_progress>
- promise: <PROMISE tag>
- stop_reason: <if blocked>
[PROMISE:VERIFICATION_LOOP_COMPLETE][PROMISE:VERIFICATION_LOOP_BLOCKED]For long tasks, run this loop at checkpoints:
If loop blocks, handoff to focused skills:
$build-fix$test-gen$security-review