๐Ÿ” Agent 1

Discovery Agent

The Discovery Agent transforms a rough project idea into an implementation-ready specification. It asks one structured question per message, advances through up to 15 discovery phases, and produces a feature-spec.md that the Technical Planner can act on directly.

Discovery Phases

1 Core Concept & Value Proposition
2 Target Users & Personas
3 Platform & Distribution
4 Core Feature Set (MVP)
5 Authentication & Authorization
6 Data Model & Persistence
7 Integrations & APIs
8 Monetization & Pricing
9 Non-Functional Requirements
10 Design & Branding
11 Compliance & Privacy
12 Content & Localization
13 Growth & Analytics
14 Launch & Deployment
15 Risks & Constraints

Fast-Track Mode

If the initial brief is over 500 words and covers most of the discovery phases, the agent activates fast-track mode: it skips phases already answered, focuses only on gaps, and may complete discovery in 3โ€“5 exchanges instead of 15.

โ„น๏ธ
Use !braindump for long briefs

Issue !braindump to dump everything you know about the project at once. The Discovery Agent will process the dump, identify covered phases, and only ask follow-up questions for missing information.

Discovery Commands

CommandBehavior
!braindumpEnter context ingestion mode โ€” dump everything you know at once. Discovery identifies covered phases and asks only for missing information.
!specCompile feature-spec.md and HANDOFF.json v1. Triggers the Spec Enhancement Loop automatically before showing the Discovery Complete banner.
!enhanceTrigger a Spec Enhancement round on demand โ€” surfaces premium feature suggestions and updates the spec after selection.
!stateShow internal discovery state (which phases are complete, Spec State contents).
!planHuman gate: advance from Discovery to Technical Planning. Only available after the Enhancement Loop exits.
!resetReset discovery state and restart from the beginning.
!platformsShow locked platform scope.

Spec Enhancement Loop

After !spec compiles the initial specification and Concept Validation passes, Discovery automatically asks:

โœจ
Would you like suggestions on how to improve your project specification?

Answer yes to get a curated table of premium feature recommendations. Answer no to proceed to !plan.

How it works

  1. You answer yes.
  2. Discovery internally analyzes the spec to identify high-value capabilities that would make this a top-1% product in its category. This analysis is not shown to you โ€” only the results are.
  3. Recommendations are presented in a numbered table you can select from.
  4. Selected features are fully woven into every relevant section of feature-spec.md โ€” not appended as a list.
  5. The question repeats. Continue adding features in rounds, or decline to proceed to !plan.

Recommendation table format

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
โœจ Spec Enhancement Suggestions โ€” MyApp
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

 #  Feature                          Category          Value Added                             Complexity   Priority
 โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 1  AI-powered onboarding wizard     AI / Intelligence  Learns user goals; personalizes flow    Medium       ๐Ÿ”ด High
 2  In-app referral engine           Monetization       Viral growth loop with reward tiers     Low          ๐Ÿ”ด High
 3  Real-time collaboration cursors  UX / Onboarding    Multi-user live editing (Figma-style)   High         ๐ŸŸก Medium
 4  Advanced usage analytics         Analytics          Heatmaps, funnel drop-off, cohort view  Medium       ๐ŸŸก Medium
 5  Offline-first sync engine        Performance        Full functionality without network       High         ๐ŸŸก Medium
 6  Accessibility audit dashboard    Accessibility      WCAG compliance score + auto-fixes       Low          ๐ŸŸข Low

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
Enter the numbers of features to add (e.g. 1, 3, 5) โ€” or "all" โ€” or "none" to skip.
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

After selection

Each selected feature is integrated into all sections it affects โ€” not appended at the bottom:

Feature typeSpec sections updated
Any featureCore Features (ยง3), User Stories (ยง4), Definition of Done (ยง20)
Changes user journeyCore User Flow (ยง5)
Creates new dataData & State Requirements (ยง6)
Requires new APIAPI / Business Logic (ยง10)
Adds UI surfaceUX Requirements (ยง9)
Affects permissionsRoles & Permissions (ยง12)
Changes revenue modelMonetization (ยง14)
Has security implicationsAuthentication & Security (ยง11)
Requires observabilityObservability & Release Strategy (ยง17)
Platform-specificPlatform Scope Matrix (ยง7), Native Capabilities (ยง8)

!enhance on demand

Type !enhance at any point after the spec has been compiled to trigger another enhancement round. Each round surfaces new recommendations โ€” features already offered are never re-suggested. The loop terminates automatically when all meaningful recommendations have been offered.

Outputs

ArtifactPathContents
feature-spec.md artifacts/discovery/ Full product specification: overview, users, features, data model, APIs, monetization, NFRs, risks, and open questions
HANDOFF.json v1 artifacts/pipeline/ Machine-readable summary: spec_hash, platforms[], complexity_tier, tech_stack{}, open_questions[]
design-contract.md artifacts/discovery/ Web projects only. Design system contract: brand colors, fonts, component library, spacing rules.

CIA โ€” Competitive Intelligence Analysis

During Phase 1 (Core Concept), Discovery can run an optional Competitive Intelligence Analysis using the APIs listed in available_apis.md. This surfaces named competitors, pricing anchors, and positioning gaps before the spec is written โ€” so the product can be differentiated from the start.

โ„น๏ธ
CIA is optional but valuable

Request it with !cia during Phase 1. Results are embedded in feature-spec.md under the Competitive Landscape section.

Complexity Tier Assignment

At the end of discovery, the agent assigns a complexity tier that governs downstream behavior:

TierCriteria
SimpleSingle platform, no auth, no payments, no external APIs, <10 features
StandardAuth required, database, 1โ€“2 platforms, standard API integrations, 10โ€“25 features
ComplexMulti-platform, payments, multi-tenant, ML/AI components, >25 features, compliance requirements

Multi-Modal Image Analysis

Whenever an image is attached to any message during a Discovery session, the agent analyzes it immediately before responding to the user's text. No special command is required โ€” Claude supports multimodal input natively.

Image typeAnalysis output
UI screenshot Extract UI components, layout patterns, and implied User Stories. Components are added to the design contract draft.
Competitor screenshot For each visible feature: classify as MATCH (build equivalent), EXCEED (build better), or SKIP (not needed for MVP).
Architecture / flow diagram Extract entities, relationships, and data flows. Add to the TDD outline and SCHEMA.md draft.
Text / whiteboard photo Parse as a structured braindump. Extract requirements, user stories, and constraints as if typed text.

The analysis is emitted as an Image Analysis block at the top of the agent's response, before any reply to the user's text content.

โ„น๏ธ
Model-adaptive output

The Discovery agent adjusts its output format based on the active model family. Claude models use full artifact Markdown. Kimi and GPT-family models use a streamlined format. Ollama local models use plain-text output without Unicode callout blocks.