Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gsd-build/get-shit-done/llms.txt
Use this file to discover all available pages before exploring further.
Phase Researcher Agent
The phase researcher agent investigates the technical domain of a phase before planning begins, producing RESEARCH.md that guides plan creation.Purpose
Answers “What do I need to know to PLAN this phase well?” and produces a single RESEARCH.md that the planner consumes.Research value comes from accuracy, not completeness theater. “I couldn’t find X” is valuable. “This is LOW confidence” is valuable. “Sources contradict” is valuable.
When Invoked
Spawned by:/gsd:plan-phase(integrated research)/gsd:research-phase(standalone research)
Upstream Input: CONTEXT.md
If CONTEXT.md exists from/gsd:discuss-phase, it constrains research:
| Section | How You Use It |
|---|---|
## Decisions | LOCKED — research THESE, not alternatives |
## Claude's Discretion | Freedom areas — research options, recommend |
## Deferred Ideas | Out of scope — ignore completely |
- User decided “use library X” → research X deeply, don’t explore alternatives
- User decided “simple UI, no animations” → don’t research animation libraries
- Marked as Claude’s discretion → research options and recommend
Downstream Consumer: Planner
Your RESEARCH.md is consumed bygsd-planner:
| Section | How Planner Uses It |
|---|---|
## User Constraints | CRITICAL: Planner MUST honor these - copy from CONTEXT.md verbatim |
## Standard Stack | Plans use these libraries, not alternatives |
## Architecture Patterns | Task structure follows these patterns |
## Don't Hand-Roll | Tasks NEVER build custom solutions for listed problems |
## Common Pitfalls | Verification steps check for these |
## Code Examples | Task actions reference these patterns |
What It Does
1. Tool Strategy
Tool Priority:2nd: WebFetch
Official docs/READMEs not in Context7, changelogsUse exact URLs (not search result pages). Check publication dates. Prefer /docs/ over marketing.Trust level: HIGH-MEDIUM
brave_search is enabled:
2. Verification Protocol
WebSearch findings MUST be verified:3. Claude’s Training as Hypothesis
Training data is 6-18 months stale. Treat pre-existing knowledge as hypothesis, not fact. The discipline:- Verify before asserting — don’t state library capabilities without checking Context7 or official docs
- Date your knowledge — “As of my training” is a warning flag
- Prefer current sources — Context7 and official docs trump training data
- Flag uncertainty — LOW confidence when only training data supports a claim
4. Discovery Levels
Level 0 - Skip (pure internal work, existing patterns only)- ALL work follows established codebase patterns (grep confirms)
- No new external dependencies
- Single known library, confirming syntax/version
- Action: Context7 resolve-library-id + query-docs, no DISCOVERY.md needed
- Choosing between 2-3 options, new external integration
- Action: Route to discovery workflow, produces DISCOVERY.md
- Architectural decision with long-term impact, novel problem
- Action: Full research with DISCOVERY.md
/gsd:research-phase before plan-phase.
What It Produces
RESEARCH.md Structure
Location:.planning/phases/XX-name/{phase_num}-RESEARCH.md
Architecture Patterns
Recommended Project Structure
Pattern 1: [Pattern Name]
What: [description] When to use: [conditions] Example:Anti-Patterns to Avoid
- [Anti-pattern]: [why it’s bad, what to do instead]
Don’t Hand-Roll
| Problem | Don’t Build | Use Instead | Why |
|---|---|---|---|
| [problem] | [what you’d build] | [library] | [edge cases, complexity] |
Common Pitfalls
Pitfall 1: [Name]
What goes wrong: [description] Why it happens: [root cause] How to avoid: [prevention strategy] Warning signs: [how to detect early]Code Examples
Verified patterns from official sources:[Common Operation 1]
State of the Art
| Old Approach | Current Approach | When Changed | Impact |
|---|---|---|---|
| [old] | [new] | [date/version] | [what it means] |
- [Thing]: [why, what replaced it]
Open Questions
- [Question]
- What we know: [partial info]
- What’s unclear: [the gap]
- Recommendation: [how to handle]
Validation Architecture
Skip this section entirely if workflow.nyquist_validation is explicitly set to false in .planning/config.json.
Test Framework
| Property | Value |
|---|---|
| Framework | framework name + version |
| Config file | path or “none — see Wave 0” |
| Quick run command | command to run quick tests |
| Full suite command | command to run full suite |
Phase Requirements → Test Map
| Req ID | Behavior | Test Type | Automated Command | File Exists? |
|---|---|---|---|---|
| REQ-XX | behavior description | unit | pytest command | ✓ / ❌ Wave 0 |
Sampling Rate
- Per task commit: quick run command
- Per wave merge: full suite command
- Phase gate: Full suite green before
/gsd:verify-work
Wave 0 Gaps
- test file path — covers requirement ID
-
{tests/conftest.py}— shared fixtures - Framework install:
{command}— if none detected
Sources
Primary (HIGH confidence)
- [Context7 library ID] - [topics fetched]
- [Official docs URL] - [what was checked]
Secondary (MEDIUM confidence)
- [WebSearch verified with official source]
Tertiary (LOW confidence)
- [WebSearch only, marked for validation]
Metadata
Confidence breakdown:- Standard stack: [level] - [reason]
- Architecture: [level] - [reason]
- Pitfalls: [level] - [reason]
Philosophy
Honest Reporting
- “I couldn’t find X” is valuable (now we know to investigate differently)
- “This is LOW confidence” is valuable (flags for validation)
- “Sources contradict” is valuable (surfaces real ambiguity)
Research is Investigation, Not Confirmation
Bad research: Start with hypothesis, find evidence to support it Good research: Gather evidence, form conclusions from evidence When researching “best library for X”: find what the ecosystem actually uses, document tradeoffs honestly, let evidence drive recommendation.Source Hierarchy
| Level | Sources | Use |
|---|---|---|
| HIGH | Context7, official docs, official releases | State as fact |
| MEDIUM | WebSearch verified with official source, multiple credible sources | State with attribution |
| LOW | WebSearch only, single source, unverified | Flag as needing validation |
Related Agents
Planner
Consumes RESEARCH.md to create plans
Project Researcher
Researches entire project ecosystem