spec-app-consistency-a…
Audit mobile App PRD/Figma/local-source consistency across page routes, KMP/Clean Architecture, components, analytics, i18n,…
Autonomous goal-directed iteration loop: modify, verify, keep/discard against a metric or a checkable success predicate, with bounded cycles, plateau/ceiling backstops, safety-screened commands, and a ship gate that never auto-approves. Use for iterate-and-verify improvement
$ npx -y skills add leo-kuang-ai/spec-first --skill autoresearch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/autoresearchContext preview
The summary Claude sees to decide when to auto-load this skill.
Autonomous goal-directed iteration loop: modify, verify, keep/discard against a metric or a checkable success predicate, with bounded cycles, plateau/ceiling backstops, safety-screened commands, and a ship gate that never auto-approves. Use for iterate-and-verify improvement
name: autoresearch description: "Autonomous goal-directed iteration loop: modify, verify, keep/discard against a metric or a checkable success predicate, with bounded cycles, plateau/ceiling backstops, safety-screened commands, and a ship gate that never auto-approves. Use for iterate-and-verify improvement loops, multi-bug zeroing, security hardening loops, and regression-gated shipping. Not for one-shot questions, single-bug diagnosis without a loop (spec-debug), ordinary code review (spec-code-review), implementation planning (spec-plan), or goals whose success cannot be expressed as a checkable signal — name the destination skill and route out."
Parse the invocation in this order:
| Condition | Mode | |---|---| | `Metric:` or `Verify:` present | **Classic** — existing metric loop, unchanged | | Free-form natural-language goal, no metric/verify | **Orchestrator** — see Orchestrator section | | Nothing | **Setup wizard** — interactive config builder | | `--classic` flag | Force Classic regardless of goal text | | `--auto` flag | Force Orchestrator regardless of goal text |
**Mode banner gate.** Resolve the mode from the table below, then emit `[autoresearch] mode: <classic|orchestrator|wizard>` as your next assistant message once the skill definition is loaded — before any work tool call (test runs, file edits, project scaffolding) or planning output. No work may start before the banner is emitted; a run that starts working without it is a dispatch violation even if the work itself is correct. If the mode cannot be resolved, emit `[autoresearch] mode: unresolved` and ask exactly one clarifying question.
| Command | Does | Default Iterations | |---|---|---| | `autoresearch` | Iterate against a metric: modify → verify → keep/discard | 25 | | `autoresearch plan` | Convert a goal into validated Scope, Metric, Verify config | N/A | | `autoresearch debug` | Hunt bugs: hypothesize → test → falsify → repeat | 15 | | `autoresearch fix` | Crush errors one-by-one until zero remain | 20 | | `autoresearch security` | STRIDE + OWASP audit with red-team personas | 15 | | `autoresearch ship` | Ship through 8 phases: checklist → dry-run → deploy → verify | N/A | | `autoresearch scenario` | Generate edge cases across 12 dimensions | 20 | | `autoresearch predict` | 5 expert personas debate before implementation | N/A | | `autoresearch learn` | Scout codebase → generate docs or wiki → validate → fix loop | 10 | | `autoresearch reason` | Adversarial debate with blind judges until convergence | 8 | | `autoresearch probe` | 8 personas interrogate requirements until saturation | 15 | | `autoresearch improve` | Research ICP challenges, discover improvements, generate PRDs | 15 | | `autoresearch evals` | Analyze iteration results: trends, plateaus, regressions | N/A | | `autoresearch regression` | Regression stability gate: baseline vs candidate, verdict STABLE/UNSTABLE | N/A |
| Flag | Applies To | Purpose | |---|---|---| | `Iterations: N` | All looping | Set iteration count | | `Iterations: unlimited` | All looping | Opt-in unbounded | | `--evals` | All looping | Mid-loop checkpoints + final summary | | `--evals-interval N` | All looping | Override checkpoint frequency | | `--chain <targets>` | All | Sequential handoff after completion | | `--<subcommand>` | All | Shorthand for `--chain <subcommand>` | | `--dry-run` | Orchestrator | Print derived config + planned pipeline; no execution | | `--max-cycles N` | Orchestrator | Hard ceiling on orchestration cycles (default 50) | | `--classic` | Bare `autoresearch` | Force Classic metric-loop mode | | `--auto` | Bare `autoresearch` | Force Orchestrator mode |
Activated when a plain-language goal is given without `Metric:`/`Verify:`. Classifies the goal into a **Goal archetype** — see `references/orchestrator-routing.md` for the archetype table and router decision table.
**Two modes based on archetype:**
Backed by `scripts/orchestrate.sh` (deterministic seam — all routing logic lives there). Subcommands exposed: `classify`, `next-hop`, `units`, `plateau`, `screen-cmd`, `verdict`, `validate-state`, `screen-state-predicate`.
1. **Classify** — `scripts/orchestrate.sh classify "<goal>"` → archetype label + mode. 2. **Derive predicate** — reuse `plan` logic to produce a concrete Success predicate: exact shell command + expected output. For `optimize-metric`, run the full plan/wizard derivation internally. 3. **Confirm** — ONE `request_user_input` showing: archetype, mode, concrete predicate (command + expected output), terminal choice (stop-at-verified vs proceed-to-ship). Misclassifications are caught here, not mid-run. 4. **Round-0 dry-run** — prove the predicate command runs and returns a value; safety-screen every derived command via `screen-cmd`; print projected cycle budget. Stop here if `--dry-run`. 5. **Loop** until predicate satisfied: a. Assess state via cheap signals (last `handoff.json`, regression verdict, error count) + affected-test verify. b. `scripts/orchestrate.sh next-hop orchestrator-state.json` → next subcom
把 AI coding 会话变成可信、由项目拥有的变更。 spec-first 是面向 Claude Code、Codex、Kiro、Qoder、Cursor、OpenCode、ZCode 与 Pi 的仓库原生 AI Coding Harness。它把想法、需求、计划、代码、审查和知识连接成可检查的工程闭环。
Audit mobile App PRD/Figma/local-source consistency across page routes, KMP/Clean Architecture, components, analytics, i18n,…
Explore vague or ambitious ideas into a right-sized requirements-only unified plan. Use when the user wants to brainstorm, think…
Structured code review for bugs, regressions, tests, and standards. Report-only by default; apply fixes only when the current…
Internal landing helper for public workflows that already hold explicit commit and landing authorization; commits scoped changes,…
Internal commit helper for public workflows that already hold explicit commit authorization; creates scoped, value-communicating…
Refresh docs/solutions learnings against the current codebase. Use when auditing stale, overlapping, superseded, or drifted…