with one click
polymath-engine
Research-first design discovery engine for /legion:explore
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Research-first design discovery engine for /legion:explore
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
DEPRECATED compatibility shim; workflow-common-core is canonical for all conventions referenced here
Interprets --just-* and --skip-* command flags for /legion:build and /legion:review, validates flag combinations against rules, and resolves the matching team template from intent-teams.yaml. Use when the user passes intent flags to build or review commands, asks about flag combinations, or needs to filter agent teams by intent.
Dev-QA loop engine with structured feedback, fix routing, and user escalation for /legion:review
Executes wave-structured plans with personality-injected agents — parallel or sequential per CLI adapter
Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly
Engine for /legion:map. Analyzes an existing codebase, generates CODEBASE.md for backward-compatible architecture context, and writes .planning/codebase/ index artifacts consumed by /legion:start, /plan, /build, /review, /status, and /quick.
| name | polymath-engine |
| description | Research-first design discovery engine for /legion:explore |
| triggers | ["explore","clarify","brainstorm","design","discovery","pre-flight","alignment"] |
| token_cost | medium |
| summary | Inspects local context, performs bounded research, asks focused clarifying questions, compares approaches, and produces a saved exploration design document. |
Execution engine for /legion:explore. The workflow is modeled after design-before-code brainstorming: understand context first, research the ask, ask one useful question at a time, compare possible approaches, then write a design document that can later seed /legion:start.
This engine no longer exposes user-facing modes such as crystallize, onboard, compare, or debate. Those behaviors are now internal techniques inside a single design-discovery flow.
Before asking questions, inspect available local context:
.planning/PROJECT.md, .planning/ROADMAP.md, .planning/STATE.md.planning/CODEBASE.md.planning/codebase/index.jsonl.planning/codebase/symbols.json.planning/explorations/*.mdIf a codebase map exists, use it to understand current architecture and functionality. If it is stale or partial, mention the limitation and suggest /legion:map --refresh only when it materially affects the exploration.
Research happens before clarification:
Keep this pass bounded. If research cannot be completed quickly, capture the gap in the design document and ask whether to proceed with assumptions, narrow the scope, or park.
Every user-facing question after the initial idea capture uses adapter.ask_user / AskUserQuestion.
Rules:
Decision slots to resolve:
Track answers as:
exploration:
title: string
raw_ask: string
research:
facts: []
inferences: []
assumptions: []
decisions:
- question: string
selected: string
rationale: string
open_questions:
- question: string
status: pending|deferred|blocker
Before writing the design document, present 2-3 viable approaches:
| Approach | Use When | Strengths | Tradeoffs |
|---|---|---|---|
| Conservative | The user needs fastest validated path | Lowest risk, narrowest MVP | Less extensible |
| Balanced | The user wants useful v1 without overbuilding | Best default for most projects | Requires clear scope discipline |
| Ambitious | The long-term architecture is already clear | Extensible, future-ready | Higher build and validation cost |
Recommend one approach and state why. The recommendation must be grounded in the local context, research, and user decisions.
New design documents are saved to:
.planning/explorations/YYYY-MM-DD-<slug>-design.md
Legacy .planning/exploration-*.md files may be read for continuity but should not be created by new runs.
Template:
# Design Exploration — {title}
## Initial Ask
{raw idea or source context}
## Research Summary
- Facts:
- Inferences:
- Assumptions:
## Product Definition
- Target users:
- Primary outcome:
- Value proposition:
- Non-goals:
## Recommended Approach
{chosen approach and rationale}
## Alternatives Considered
| Approach | Strengths | Tradeoffs | Decision |
|----------|-----------|-----------|----------|
## Feature Scope
### MVP
- [ ] ...
### Later
- [ ] ...
## Experience / Workflow
{main user flow or operational workflow}
## Technical Direction
{platform, architecture, integrations, data, constraints}
## Open Questions
- {question} — {resolution path or why deferred}
## Start Input
{concise summary that /legion:start <this-file> can use to prefill project initialization}
After writing or updating the design document, ask via AskUserQuestion:
/legion:start <design-doc-path>.The engine must not run /legion:start before the user explicitly selects the start option.
Exploration is complete when:
.planning/explorations/./legion:start <design-doc-path>.