plugins/spectre-codex/skills/execute/SKILL.md
👻 | Adaptive Wave-Based Build with Per-Wave Verification Gate
npx skillsauth add codename-inc/spectre executeInstall 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.
Treat the current command arguments as this workflow's input. When invoked from a slash command, use the forwarded $ARGUMENTS value.
Execute tasks in parallel waves with full scope context, verify each wave before proceeding, adapt based on learnings, audit cross-wave integration, generate manual test guide. Outcome: complete implementation with verified quality and E2E requirement coverage.
Action — LoadScopeContext: Identify available scope docs in {OUT_DIR}/:
concepts/scope.md, specs/prd.md, specs/ux.md, specs/plan.md, specs/tasks.md, task_summary.mdSCOPE_DOCS for subagent dispatchAction — LoadTaskList: Read docs/tasks/{branch}/specs/tasks.md or Beads tasks
Action — ExecuteAdaptiveLoop: Until all tasks complete:
Batch Tasks: Assign up to 3 sequential parent tasks per subagent
Dispatch Wave: Launch parallel @dev subagents (1 per task batch)
SCOPE_DOCS before executing## Prior-Wave Context header. Includes Completed tasks, Files changed, Scope signal, Discoveries, and Guidance from each prior batch. This is how state is carried forward — there is no separate state file.jest --findRelatedTests <file>, pytest by path, vitest related, cargo test <path>). Do not create parallel test files for code already covered.feat(module): add X, fix(module): resolve Y). Return completion report with Implementation Insights + E2E Completeness Check."E2E Completeness Check (subagent returns one per batch):
Per-Wave Verification Gate: Verify the wave's output before adapting or advancing.
3a. Deterministic pre-gate (no AI)
package.json / pyproject.toml / Cargo.toml / Makefile3b. Parallel review lenses (single message, two @reviewer dispatches)
Build each reviewer prompt from:
git diff <parent-of-first-wave-commit>..HEADForbidden in reviewer prompts: @dev completion reports, implementer rationale, orchestrator paraphrase of "what the dev did and why". The reviewer is a clean room — diff + criteria only.
Lens 1 — security + correctness
Lens 2 — wiring
Severity & evidence rule (enforced in both lens prompts):
file:line referencesha256(file_path + line + finding_category) for the fix-loop ledger (3c).3c. Bounded fix loop
If lens dispatches return CRITICAL/HIGH:
3d. Exit condition: No CRITICAL/HIGH remain, OR iteration cap reached and user has been notified of unresolved findings.
Mark Complete: Update tasks doc with [x] for completed tasks
Reflect: Review completion reports for:
Adapt (only if triggered):
[ADDED - E2E gap] prefix[ADDED] prefix[SKIPPED - reason]Next Wave: Identify next tasks, gather prior-wave completion reports for the Prior-Wave Context block, return to step 1
Action — SpawnValidation: @analyst runs Skill(validate) (Claude slash route: validate) with narrowed scope:
Action — AddressGaps: If high priority gaps surface → dispatch @dev subagents to fix.
Skill(create_test_guide) (Claude slash route: create_test_guide)
{OUT_DIR}/test_guide.mdAction — SummarizeCompletion:
Action — RenderFooter: Use Skill(spectre-guide) skill for Next Steps
testing
👻 | Independent multi-lens review of plan.md and/or tasks.md — finds overengineering, missing verification, hallucinated deps, weak references
data-ai
👻 | Unified planning entry point - researches, assesses complexity, routes to workflow - primary agent
data-ai
👻 | Transform requirements into executable tasks - primary agent
testing
👻 | Independent multi-lens review of plan.md and/or tasks.md — finds overengineering, missing verification, hallucinated deps, weak references