From agentops
Dense execution-packet generator for goal clarification, product-fit pressure testing, and re-planning. Invoke to frame a problem, explore the problem space, and produce a structured discovery packet for downstream workflow steps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentops:discoveryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **brainstorm** — Separate goals from implementation; clarify goals and explore the problem space before planning.
references/bead-operationalization.mdreferences/best-practices.mdreferences/brainstorm.featurereferences/complexity-auto-detect.mdreferences/dag.mdreferences/discovery.featurereferences/goal-clarification-brainstorm.mdreferences/idea-rubric.mdreferences/ideation-mode.mdreferences/idempotency-and-resume.mdreferences/isolation-contract.mdreferences/output-templates.mdreferences/phase-budgets.mdreferences/phase-data-contracts.mdreferences/red-team-checklist.mdreferences/troubleshooting.mdscripts/validate.shYOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
Loop position: move 1 (shape intent as BDD) plus the seed for move 3 (slice candidates) of the operating loop. Discovery turns a goal plus delegated child artifacts into one dense execution packet for
/crankand/validate. It is also the re-plan engine for/rpi's Agile Re-Plan Loop: invoked again at each wave boundary to mutate the remaining waves from what the last wave taught — not only at the start.
Discovery is the fold target for the retired standalone brainstorm and design
skills (skill-prune phase 2). Fire /discovery for their use-cases:
--ideate) is the Open-Ended Path below.--preset=product) runs as discovery's
conditional design delegation step.Discovery delegates to brainstorm (conditional), design (conditional),
/research, /plan, and /pre-mortem via declared skill invocations.
Strict delegation is the default.
Anti-pattern to reject: inlining /research work (grep + read + synthesize), collapsing /plan into an inline decomposition, skipping /pre-mortem. See ../shared/references/strict-delegation-contract.md for the full contract, supported compression escapes (--quick, --skip-brainstorm, --interactive/--auto, --no-scaffold), and the Pre-Mortem Anti-Rationalization Clause (what does NOT count as a pre-mortem: an inline risk section you wrote, a prior adversarial pass on an input/premise rather than this plan, or "a related council already ran").
Re-baseline before you scope (mandatory for "improve X" / "build the missing Y"): /research MUST confirm a capability doesn't already exist before scoping new construction. The --auto trap is author-as-researcher scoping "what's unbuilt" from memory without grepping — existing machinery gets re-estimated as net-new. Every "X is missing" claim carries the search that proved it; no search → /pre-mortem's re-baseline check (2.4–2.8) WARN/FAILs it.
See docs/learnings/orchestrator-compression-anti-pattern.md for the live compression signature.
See references/isolation-contract.md for the mechanical four-lever model and the compression patterns flagged by scripts/check-skill-isolation.sh. See references/best-practices.md for the lifecycle principle + anti-pattern citation table.
Discovery does not carry raw child-skill output forward. It records artifact
paths, verdicts, the hexagon: boundary block from
docs/architecture/intent-to-loop-hexagon.md,
and the six Context Density Rule fields:
| Field | Meaning |
|---|---|
intent | Behavior or capability to produce |
boundary | Bounded context, non-goals, write scope |
evidence | Acceptance examples, tests, gates, verdicts |
decision | Why this plan shape was chosen |
constraint | Safety, runtime, token, and process limits |
next_action | Exact /crank or follow-up command |
Everything else stays in child artifacts and is linked by path.
Use the Skill Ports and Adapters vocabulary and the Intent-to-Loop Hexagon for the boundary between Discovery and Plan:
| Boundary piece | Discovery contract |
|---|---|
| Inbound port | shape_intent from operator goal or BDD intent |
| Outbound port | plan_slices into /plan |
| Driving adapter | /discovery skill invocation |
| Driven adapter | /plan skill invocation plus br/file persistence |
| Context packet | density block, artifact links, acceptance examples, non-goals, constraints |
| Guard adapter | /pre-mortem verdict before packet handoff |
Executable acceptance: references/discovery.feature — Discovery hands dense intent across the plan_slices port (promoted from inline; soc-qk4b.2).
The fanout/Fable ceremony is for one-way doors, not every slice. Route first:
Ceremony is not a substitute for adversarial acceptance tests: the 2026-06-12
Codex runtime post-review found a coherent fanout + approval artifact set that
still missed an auth bypass one adversarial test would have caught. Source:
docs/learnings/2026-06-12-codex-runtime-review-auth-and-scope.md.
For open-ended or high-risk Codex discovery, insert the fanout gate before
/plan creates beads. The contract is
docs/contracts/codex-fanout-approval-packet.md.
Required artifact sequence:
PerspectivePlan artifacts with different
lenses, normally product/user value, architecture/gate integrity, and
operations/migration risk.SynthesisPacket that records the selected plan,
rejected alternatives, rationale, open questions, and risks.codex-approval so an idle Fable/Claude-family ATM/NTM pane reviews
the SynthesisPacket and every PerspectivePlan path directly.ApprovalEdge with the validator pane, tmux capture, normalized
Fable verdict artifact, verdict, required changes, and accepted risks.PASS permits bead creation. WARN is not a silent pass: update the packet and
rerun approval, or record an explicit accepted-risk note in the ApprovalEdge.
FAIL blocks bead creation and returns Discovery to fanout/synthesis, up to
three approval attempts.
Approval evidence must survive the worktree: before the gated bead/epic closes,
the council artifact (or a compact proof packet) must be mirrored to a tracked
durable surface — see the closeout rule in
codex-approval. .agents/ state in a temporary
worktree is ignored and strands the evidence.
Additive to the default flow — it does not replace the strict-delegation contract or the artifact-first DAG. This path activates for open-ended "improve the project"-style goals (
"improve the project","what should we build next","make X more robust") OR when--ideateis passed. For a specific goal, the default flow (brainstorm-clarify → research → plan → pre-mortem) is unchanged.
On the open-ended path, Discovery prepends the generate-winnow methodology before research/plan and adds two steps after planning. Full detail lives in references/bead-operationalization.md and references/ideation-mode.md.
brainstorm --ideate). Invoke brainstorm in ideation mode (a real skill invocation — strict delegation still applies; do NOT inline the 30-idea generation). It returns a ranked portfolio of 15 ideas (top 5 + next 10) with how/perceive/implement notes, rubric scores, and red-team findings.PerspectivePlan artifacts, a SynthesisPacket, and a Fable ApprovalEdge before /plan creates tracker rows. Then run the normal artifact-first DAG over the approved packet rather than a single goal.br beads — tasks, subtasks, dependency structure (br dep add), and explicit test tasks (unit + e2e with detailed logging). Each bead carries what/why/how/risks/success so the original plan markdown never needs to be consulted again. Overlap-check against existing beads (br list --json) before creating — merge, don't duplicate./crank, run 4-5 refinement passes over the bead set. Each pass: re-read AGENTS.md (especially after compaction), check every bead for sense and optimality, and DO NOT OVERSIMPLIFY / DO NOT LOSE FEATURES OR FUNCTIONALITY. Validate between passes (no dependency cycles; every leaf actionable via br ready).Tracking is
brwithbvtriage — this is AgentOps. The operationalize and refine steps consumebrainstorm's ideation output; seereferences/bead-operationalization.md.
Executable acceptance for this path: references/discovery.feature (ideation/operationalize/refine scenarios, ag-yw0).
Run the artifact-first DAG in references/dag.md. That file owns the executable workflow, state shape, gate detail, per-step detail, and the acceptance-criteria YAML contract.
| Flag | Default | Description |
|---|---|---|
--auto | on | Fully autonomous (no human gates). Inverse of --interactive. Passed through to /research and /plan. |
--interactive | off | Human gates in research and plan (STEP 3, STEP 4). Does NOT affect pre-mortem gate. |
--skip-brainstorm | auto | Skip STEP 1 brainstorm when goal is already specific |
--ideate | auto | Force the open-ended generate-winnow path: delegate to brainstorm --ideate (30→5→15), then operationalize into self-documenting br beads and refine 4-5x in plan space. Auto-on for open-ended goals. See Open-Ended Path. |
--complexity=<level> | auto | Force complexity level (fast / standard / full) |
--no-budget | off | Disable phase time budgets |
--no-scaffold | off | Skip scaffold auto-invocation in STEP 4.5 |
/discovery "add user authentication" # full discovery
/discovery --interactive "refactor payment module" # human gates in research + plan
/discovery --skip-brainstorm "fix login bug" # skip brainstorm for specific goals
/discovery --complexity=full "migrate to v2 API" # force full council ceremony
Format: compact markdown phase summary to stdout plus JSON execution packet on disk.
Files written:
.agents/research/<topic-slug>.md - research artifact path only.agents/plans/YYYY-MM-DD-<goal-slug>.md - plan document path only.agents/council/YYYY-MM-DD-pre-mortem-<topic>.md - pre-mortem verdict path only.agents/rpi/execution-packet.json - latest dense packet.agents/rpi/runs/<run-id>/execution-packet.json - per-run archive when run_id is set.agents/rpi/phase-1-summary-YYYY-MM-DD-<goal-slug>.md - compact discovery summaryExit signal: completion marker (<promise>DONE</promise> or <promise>BLOCKED</promise>) — see Completion Markers below.
<promise>DONE</promise> # Discovery complete, epic-id + execution-packet ready
<promise>BLOCKED</promise> # Pre-mortem failed 3x, manual intervention needed
Read references/troubleshooting.md for common problems and solutions.
npx claudepluginhub boshu2/agentops --plugin agentopsPhase 1 of the prd-taskmaster pipeline: runs brainstorm-driven discovery with adaptive questions, extracts constraints, calibrates project scale (Solo/Team/Enterprise), and advances to GENERATE. Supports Interactive and Autonomous modes.
Guides product managers through a full discovery cycle from problem hypothesis to validated solution using framing, interviews, synthesis, and experiments. Suitable for teams exploring problem spaces or investigating retention/drop-off issues.
Collaborative discovery before planning. Explore the problem space, evaluate approaches, surface past work, and produce a structured brainstorm document. Triggers: brainstorm, explore, discovery, ideate, think through, what should we build, explore approaches.