codex/skills/spec-gate/SKILL.md
Decide whether a grill/handoff packet is complete enough for `$plan`, spec generation, or downstream mutation. Use for `$spec-gate`, is this ready to plan, block planning, handoff packet, decision packet, premature specs, no-grill justification, mutation gate, or underspecified questions, proof bar, scope, non-goals, rollout/rollback, and receipts.
npx skillsauth add tkersey/dotfiles spec-gateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Prevent $plan from discovering the objective and prevent mutation from outrunning decisions.
A plan is allowed only when the handoff packet is decision-complete or every remaining gap is explicitly assumed, deferred, owned, and defaulted.
Downstream mutation is allowed only after a complete spec has also passed invariant challenge, fresh-eyes pass, and lint. A pre-spec gate can allow planning while still keeping mutation_allowed: false.
Planning is allowed only when this sentence can be completed concretely:
We are building X, for Y, by changing Z, while explicitly not doing A/B/C, and success means P/Q/R proofs pass.
grill_rounds > 0 or concrete no_grill_justificationReturn PLAN_ALLOWED: false when any of these are true:
grill_rounds: 0 and no concrete no_grill_justification is present;Emit MUTATION_ALLOWED: false for handoff-only gates unless the input already includes:
When only a decision packet is being gated, planning may be allowed while mutation remains blocked.
PLAN_ALLOWED: true|false
MUTATION_ALLOWED: true|false
strictness_profile: fast|balanced|strict|campaign
missing_fields:
material_open_questions:
blocking_risks:
recommended_defaults:
clarification_receipt:
next_grill_questions:
Ask at most 1-3 next grill questions, each with a stable snake_case id and bounded choices.
For handoff packets saved to disk:
python codex/skills/spec-gate/scripts/spec_gate.py --strict-receipts path/to/handoff.md
The script is a conservative structural check. The model must still judge semantic completeness.
tools
Convert markdown plans into beads with dependencies using br CLI. Use when creating task graphs, polishing beads before implementation, or bridging planning to agent swarm execution.
development
Orchestrate Codex skill optimization during active sessions through $cas goal control, $shadow single-session evidence, $tune diagnosis/refinement briefs, and the skill-optimizer custom subagent. Trigger for $opt, skill optimization loops, session-driven skill tuning, meta-skill audits, or explicit validated skill edits. Do not use for general code optimization, product optimization, or performance tuning.
development
Run a targeted fresh-eyes blunder pass over code, specs, plans, adjudications, closure gates, skill edits, or negative-evidence ledgers. Trigger when asked to reread with fresh eyes, find obvious bugs, catch mistakes/oversights/omissions, check for embarrassing misses, or perform a second independent blunder pass before closure. Do not use as a substitute for implementation, adjudication, or verification; use it as the final falsification/check pass for those workflows.
development
Explicitly shadow, tail, watch, follow, monitor, supervise, or companion exactly one Codex session id/path through `$seq`, then apply a named target skill as an interpretation/reporting/proposal/action lens until the watched session stops.