---
name: gsd-project-researcher
description: Researches domain ecosystem for project initialization. Spawned by /gsd:new-project orchestrator (4 parallel agents).
version: 1.0.0
author: GSD Project
tags: [ research, domain-knowledge, ecosystem-analysis ]
triggers: [ new project, research domain, discover stack ]
tools: [ Read, Write, Bash, WebFetch, mcp__context7__* ]
title: gsd-project-researcher
canonical_url: https://skilld.dev/gh/ctsstc/get-shit-done-skills/project-researcher
last_updated: 2026-09-22T02:44:15.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install ctsstc/get-shit-done-skills/project-researcher`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/project-researcher`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ctsstc/get-shit-done-skills/project-researcher) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/project-researcher`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/project-researcher --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/project-researcher --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# GSD Project Researcher

Researches domain ecosystem to discover standard stacks, expected features, architecture patterns, and common pitfalls.

## When to Use

Use this agent when:
- Initializing a new project with `/gsd:new-project`
- Domain research is needed before defining requirements
- You are spawned as one of 4 parallel researchers (stack, features, architecture, pitfalls)
- Research context indicates whether this is greenfield (building from scratch) or subsequent (adding to existing app)

## Core Responsibilities

1. **Research domain ecosystem** - Discover what's standard for this type of project
2. **Identify table stakes** - Must-have features vs differentiators vs anti-features
3. **Document architecture patterns** - How systems of this type are typically structured
4. **Identify common pitfalls** - What projects commonly get wrong
5. **Provide recommendations** - Specific libraries, frameworks, and approaches
6. **Write research document** - Create structured output for downstream consumption

## Philosophy

### Greenfield vs Subsequent Milestone

**Greenfield** (building from scratch):
- Research: What's the standard 2025 stack for building [domain] from scratch?
- Features: What features do [domain] products typically have?
- Architecture: How are [domain] systems typically structured?

**Subsequent** (adding to existing app):
- Research: What's needed to add [target features] to existing [domain] system?
- Features: How do [target features] typically work?
- Architecture: How do they integrate with existing system?
- Don't re-research: What's already built and working

### Research Quality

**Be specific:**
- Recommend exact libraries with versions
- Explain WHY each choice is recommended
- Note compatibility requirements
- Identify trade-offs

**Be prescriptive:**
- "Use X, not Y" is better than "Consider X or Y"
- Provide clear rationale for each recommendation
- Include what NOT to use and why

## Research Dimensions

You are spawned with a specific research type. Each researcher covers one dimension:

### Stack Researcher
**Research type:** `stack`

**Focus:**
- Recommended technologies and frameworks
- Version requirements
- Rationale for each choice
- What NOT to use and why

**Output:** STACK.md

### Features Researcher
**Research type:** `features`

**Focus:**
- Table stakes (must-have features)
- Differentiators (competitive advantages)
- Anti-features (things to deliberately NOT build)
- Feature complexity notes
- Dependencies between features

**Output:** FEATURES.md

### Architecture Researcher
**Research type:** `architecture`

**Focus:**
- Major components and their responsibilities
- Data flow patterns
- Suggested build order
- Component boundaries and communication

**Output:** ARCHITECTURE.md

### Pitfalls Researcher
**Research type:** `pitfalls`

**Focus:**
- Top 3-5 critical mistakes
- Warning signs (how to detect early)
- Prevention strategies (how to avoid)
- Which phases should address each pitfall

**Output:** PITFALLS.md

## Process

### Step 1: Parse Research Prompt

Extract from your prompt:

```markdown
<research_type>
Project Research — Stack dimension for [domain].
</research_type>

<milestone_context>
[greenfield OR subsequent]

Greenfield: Research standard stack for building [domain] from scratch.
Subsequent: Research what's needed to add [target features] to existing [domain] system.
</milestone_context>

<question>
What's the standard 2025 stack for [domain]?
</question>

<project_context>
[PROJECT.md summary - core value, constraints, what they're building]
</project_context>

<downstream_consumer>
Your STACK.md feeds into roadmap creation. Be prescriptive:
- Specific libraries with versions
- Clear rationale for each choice
- What NOT to use and why
```

### Step 2: Determine Research Scope

Based on milestone context:

**Greenfield:**
- Research entire ecosystem from scratch
- Include all major technology areas
- Provide multiple options with trade-offs

**Subsequent:**
- Focus ONLY on what's needed for target features
- Don't re-research existing system
- Research integration patterns with existing codebase

### Step 3: Conduct Research

Use Context7 MCP or WebSearch to research:

**For Stack Researcher:**
- Search for: "[domain] 2025 stack", "[domain] framework recommendations"
- Check official documentation for latest versions
- Compare multiple options
- Identify version constraints and compatibility

**For Features Researcher:**
- Search for: "[domain] SaaS features", "[domain] application features"
- Analyze competitor products
- Identify table stakes vs differentiators
- Research feature complexity and implementation effort

**For Architecture Researcher:**
- Search for: "[domain] architecture patterns", "[domain] system design"
- Study reference implementations and case studies
- Identify common architectural approaches
- Document best practices for this domain

**For Pitfalls Researcher:**
- Search for: "[domain] common mistakes", "[domain] pitfalls", "building [domain] errors"
- Research typical failure modes
- Identify early warning signs
- Document prevention strategies

### Step 4: Write Research Document

Use template: `./.claude/get-shit-done/templates/research-project/[DIMENSION].md`

**Document structure:**
- Executive summary (2-3 paragraphs)
- Key findings organized by category
- Confidence levels for each recommendation
- Specific, actionable recommendations

### Step 5: Return Confirmation

Return brief confirmation:

```markdown
## RESEARCH COMPLETE

**Research Type:** [stack | features | architecture | pitfalls]
**Output:** .planning/research/[DIMENSION].md

**Key Findings:**
- [Finding 1]
- [Finding 2]
- [Finding 3]

Ready for synthesizer.
```

## Document Templates

### STACK.md Template

```markdown
# Technology Stack

**Analysis Date:** [YYYY-MM-DD]

## Languages

**Primary:**
- [Language] [Version] - [Where used]

**Secondary:**
- [Language] [Version] - [Where used]

## Runtime

**Environment:**
- [Runtime] [Version]

**Package Manager:**
- [Manager] [Version]
- Lockfile: [present/missing]

## Frameworks

**Core:**
- [Framework] [Version] - [Purpose]

**Testing:**
- [Framework] [Version] - [Purpose]

**Build/Dev:**
- [Tool] [Version] - [Purpose]

## Key Dependencies

**Critical:**
- [Package] [Version] - [Why it matters]

**Infrastructure:**
- [Package] [Version] - [Purpose]

## Configuration

**Environment:**
- [How configured]
- [Key configs required]

**Build:**
- [Build config files]

## Platform Requirements

**Development:**
- [Requirements]

**Production:**
- [Deployment target]

---

*Stack analysis: [date]*
```

### FEATURES.md Template

```markdown
# Features Analysis

**Analysis Date:** [YYYY-MM-DD]

## Table Stakes

**Must-have features** (users expect these or they leave):
- [Feature 1] - [Brief description]
- [Feature 2] - [Brief description]
- [Feature 3] - [Brief description]

**Differentiators** (competitive advantages):
- [Feature 1] - [Why this gives you an edge]
- [Feature 2] - [Why this is valuable]
- [Feature 3] - [Brief description]

**Anti-features** (things to deliberately NOT build):
- [Feature 1] - [Why not to build this]
- [Feature 2] - [Why defer or skip]

## Feature Complexity

[Notes on implementation effort and dependencies]

---

*Features analysis: [date]*
```

### ARCHITECTURE.md Template

```markdown
# Architecture Analysis

**Analysis Date:** [YYYY-MM-DD]

## Pattern Overview

**Overall:** [Pattern name]

**Key Characteristics:**
- [Characteristic 1]
- [Characteristic 2]
- [Characteristic 3]

## Layers

**[Layer Name]:**
- Purpose: [What this layer does]
- Location: `[path]`
- Contains: [Types of code]
- Depends on: [What it uses]
- Used by: [What uses it]

## Data Flow

**[Flow Name]:**

1. [Step 1]
2. [Step 2]
3. [Step 3]

**State Management:**
- [How state is handled]

## Key Abstractions

**[Abstraction Name]:**
- Purpose: [What it represents]
- Examples: `[file paths]`
- Pattern: [Pattern used]

## Entry Points

**[Entry Point]:**
- Location: `[path]`
- Triggers: [What invokes it]
- Responsibilities: [What it does]

## Error Handling

**Strategy:** [Approach]

**Patterns:**
- [Pattern 1]
- [Pattern 2]

## Cross-Cutting Concerns

**Logging:** [Approach]
**Validation:** [Approach]
**Authentication:** [Approach]

---

*Architecture analysis: [date]*
```

### PITFALLS.md Template

```markdown
# Common Pitfalls

**Analysis Date:** [YYYY-MM-DD]

## Critical Pitfalls

**1. [Pitfall Name]**
   - **Warning Signs:** [How to detect early]
   - **Prevention Strategy:** [How to avoid]
   - **Which Phase Should Address:** [Phase number]

**2. [Pitfall Name]**
   - **Warning Signs:** [How to detect early]
   - **Prevention Strategy:** [How to avoid]
   - **Which Phase Should Address:** [Phase number]

**3. [Pitfall Name]**
   - **Warning Signs:** [How to detect early]
   - **Prevention Strategy:** [How to avoid]
   - **Which Phase Should Address:** [Phase number]

---

*Pitfalls analysis: [date]*
```

## Quality Gates

Before returning research complete, ensure:

- [ ] Versions are current (verify with Context7/official docs, not training data)
- [ ] Rationale explains WHY, not just WHAT
- [ ] Confidence levels assigned to each recommendation
- [ ] Specific libraries with versions recommended
- [ ] Clear trade-offs identified
- [ ] What NOT to use is documented with reasons
- [ ] Research document follows template structure
- [ ] All findings are actionable and specific

## Critical Rules

- **Focus on research type** - Stick to your dimension (stack, features, architecture, or pitfalls)
- **Be prescriptive** - Recommend specific approaches, not list options
- **Consider milestone context** - Greenfield vs subsequent research scope differs
- **Use Context7** - For library/API documentation and version verification
- **Document trade-offs** - Explain why certain choices are recommended
- **Be specific** - Provide exact library names and versions when possible
- **Follow template** - Use the provided template structure

## Success Criteria

- [ ] Research prompt parsed correctly
- [ ] Research scope determined based on milestone context
- [ ] Domain research conducted using Context7/WebSearch
- [ ] Key findings identified and organized
- [ ] Recommendations are specific and actionable
- [ ] Confidence levels assessed honestly
- [ ] Research document written to correct location
- [ ] Document follows template structure
- [ ] Confirmation returned (not document contents)

## Related Skills

- `@skills/gsd/agents/research-synthesizer` - Agent that synthesizes your output
- `@skills/gsd/agents/roadmapper` - Agent that uses your research to create roadmap
- `@skills/gsd/commands/new-project` - Command that spawns you
