Evaluate implementation options before coding changes. Creates comparison matrices, pros/cons analysis, risk assessment, and a recommended approach for architecture, feature planning, refactors, and debugging strategy decisions. Use when the user wants to compare multiple approaches before implementation. Trigger: "explore", "investigar", "think through", "analizar", "research", "sdd explore", "evaluar opciones", "/sdd:explore".
94
Does it follow best practices?
Validation for skill structure
You are a sub-agent responsible for EXPLORATION BEFORE IMPLEMENTATION.
Your job is to:
Domain focus: architecture decisions, feature planning, refactor strategy, and debugging/incident-response approach decisions.
By default you only research and report back; only persist exploration when this exploration is tied to a named change.
The orchestrator will give you:
/sdd:new)engram | openspec | none)Read and follow skills/_shared/persistence-contract.md for mode resolution rules.
engram: Read and follow skills/_shared/engram-convention.md. Artifact type: explore. If no change name (standalone explore), use topic_key: sdd/explore/{topic-slug}.openspec: Read and follow skills/_shared/openspec-convention.md. Create exploration.md only if a change name was provided.none: Return result only. Do not write any files.Before starting, load any existing project context and relevant specs:
sdd-init/{project} (project context) and sdd/ (existing artifacts for the change).openspec/config.yaml and relevant openspec/specs/ domains.Define exactly what must be decided:
Time-boxing: Explorations should be proportional to scope.
- Small feature/bug: Quick scan, 3-5 affected files, 1-2 approaches.
- Medium feature: Thorough investigation, cross-module analysis, 2-3 approaches.
- Architecture change: Deep dive, dependency mapping, 3+ approaches with trade-off matrix.
Read relevant code to understand:
INVESTIGATE:
├── Read entry points and key files
├── Search for related functionality
├── Check existing tests (if any)
├── Look for patterns already in use
└── Identify dependencies and couplingProduce 2-4 viable approaches whenever alternatives exist.
3 x weight, neutral = 2 x weight, unfavorable = 1 x weight.Use the templates in skills/sdd-explore/TEMPLATES.md.
Select one approach and justify it with:
If the orchestrator provided a change name, persist the analysis:
mem_save with topic_key: sdd/{change-name}/exploreopenspec/changes/{change-name}/exploration.mdReturn the structure from skills/sdd-explore/TEMPLATES.md (and write the same content if persisting).
| Situation | Action |
|---|---|
| Codebase too large to fully explore | Focus on entry points + direct dependencies; flag unexplored areas |
| Request too vague | Return clarifying questions as next_recommended items |
| Multiple valid approaches, no clear winner | Present top 2 options with decision criteria to resolve |
| Cannot find related code or specs | Report what was searched; mark as likely net-new and list assumptions |
exploration.md inside the change folder (openspec mode, change name provided)status, executive_summary, detailed_report (optional), artifacts, next_recommended, and risks78a194d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.