discovery
Create dense execution packets.
What this skill does
# /discovery - Dense Discovery Phase Adapter **YOU 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](../../docs/architecture/operating-loop.md). > Discovery turns a goal plus delegated child artifacts into one dense execution > packet for `/crank` and `/validate`. ## Strict Delegation Contract (default) 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`](../shared/references/strict-delegation-contract.md) for the full contract and supported compression escapes (`--quick`, `--skip-brainstorm`, `--interactive`/`--auto`, `--no-scaffold`). See [`docs/learnings/orchestrator-compression-anti-pattern.md`](../../docs/learnings/orchestrator-compression-anti-pattern.md) for the live compression signature. See [`references/isolation-contract.md`](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`](references/best-practices.md) for the lifecycle principle + anti-pattern citation table. ## Narrow Waist 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`](../../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. ## Discovery To Plan Port Use the [Skill Ports and Adapters](../../docs/contracts/skill-ports-and-adapters.md) vocabulary and the [Intent-to-Loop Hexagon](../../docs/architecture/intent-to-loop-hexagon.md) 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 bd/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](references/discovery.feature) — Discovery hands dense intent across the `plan_slices` port (promoted from inline; soc-qk4b.2). ## Open-Ended Path (generate-winnow → operationalize → refine) > **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 `--ideate` is 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 [`../brainstorm/references/bead-operationalization.md`](../brainstorm/references/bead-operationalization.md) and [`../brainstorm/references/ideation-mode.md`](../brainstorm/references/ideation-mode.md). 1. **Ideate (delegate to `/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. 2. **Research + Plan + Pre-mortem.** Run the normal artifact-first DAG over the selected portfolio, scoped to the winnowed ideas rather than a single goal. 3. **Operationalize.** Turn the ranked portfolio into a comprehensive, granular set of **self-documenting `bd` beads** — tasks, subtasks, dependency structure (`bd 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 (`bd list --json`) before creating — merge, don't duplicate. 4. **Refine in plan space (4-5 passes).** Before handing the packet to `/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 `bd ready`). > Tracking is **`bd`**, never `br`/`bv` — this is AgentOps. The operationalize and refine steps consume `/brainstorm`'s ideation output; see [`../brainstorm/references/bead-operationalization.md`](../brainstorm/references/bead-operationalization.md). Executable acceptance for this path: [references/discovery.feature](references/discovery.feature) (ideation/operationalize/refine scenarios, ag-yw0). ## Execution Run the artifact-first DAG in [references/dag.md](references/dag.md). That file owns the executable workflow, state shape, gate detail, per-step detail, and the acceptance-criteria YAML contract. ## Flags | 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 `bd` beads and refine 4-5x in plan space. Auto-on for open-ended goals. See [Open-Ended Path](#open-ended-path-generate-winnow--operationalize--refine). | | `--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 | ## Quick Start ```bash /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 ``` ## Output Specification **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 summary **Exit signal:** completion marker (`<promise>DONE</promise>` or `<promise>BLOCKED</promise>`) — see Completion Markers below. ## Completion Markers ``` <promise>DONE</promise> # Discovery complete, epic-id + execution-packet ready <promise>BLOCKED</promise>
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.