From dw
Use when you have research questions from deep-work Phase 1. Objectively investigates the codebase to answer pasted questions without access to the original task description.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dw:dw-02-researchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Objectively answer every research question by investigating the codebase.
Objectively answer every research question by investigating the codebase. Document what IS, not what should be. You are a documentarian, not a critic.
Announce at start: "Starting deep-work Phase 2: Research."
You MUST NOT:
00-ticket.md directly — everYou MUST:
extract-research-questions.sh script (see Pre-flight Step 4) or from user-pasted text"$SKILL_BASE_DIR/setup.sh" "$ARGUMENTS" and parse stdout for REPO, TOPIC_SLUG, ARTIFACT_DIR. $SKILL_BASE_DIR is the "Base directory for this skill" path shown at the top of this prompt.
MISSING_SLUG on stderr), ask user via AskUserQuestion for the topic slug, then re-run with the slug./dw-research-questions <slug> first in a separate conversation." Stop.00-ticket.md exists in directory (confirms Phase 1 ran) → if not: "Phase 1 hasn't completed. Run /dw-research-questions <slug> first." Stop.00-ticket.md — only check existence via bash test -f."$SKILL_BASE_DIR/extract-research-questions.sh" <repo> <topic-slug>
This script outputs ONLY the ## Research Questions section from 01-research-questions.md. It never exposes the original prompt.
Use the output of extract-research-questions.sh from Pre-flight Step 4 as your input.
If the user pastes additional or edited questions, use those instead — user-provided questions always take precedence over the script output.
Extract numbered questions from pasted text. Identify the category of each.
| Category | Agent Type |
|---|---|
| Subsystem understanding | dw:codebase-analyzer |
| Code tracing | dw:codebase-analyzer |
| Pattern discovery | dw:codebase-pattern-finder |
| Dependency mapping | dw:codebase-locator |
| Boundary identification | dw:codebase-locator → dw:codebase-analyzer |
| Constraint discovery | dw:codebase-pattern-finder |
For each agent, prepend this objectivity wrapper to the task prompt:
"You are a documentarian. Answer the following question by reading the codebase. Report ONLY what exists. Do not suggest improvements, critique patterns, or propose solutions. Include file:line references for all claims."
Dispatch independent questions in parallel.
For each question:
### Q<N>: <question text>
**Status:** COMPLETE | INCOMPLETE
**Sources:** <agent type(s) used>
<findings with file:line references>
Mark INCOMPLETE when: code can't be found, uses dynamic dispatch, or spans too many files. For INCOMPLETE, document what WAS found and what remains ambiguous.
Identify overlapping answers, contradictions, and cross-cutting patterns.
Synthesize findings into tagged categories. This summary is based ONLY on what the questions asked about — you have no task context, so do not filter by "relevance." Summarize everything you investigated.
System State (as investigated)
Patterns Found
<pattern name> — file:line — <brief description>Constraints & Invariants
Write 02-research.md to the artifact directory:
---
phase: research
date: <today>
topic: <topic-slug>
repo: <repo>
git_sha: <HEAD>
agents_dispatched: <count>
questions_complete: <count>
questions_incomplete: <count>
input_artifacts: [01-research-questions.md (questions section only via extract script)]
status: complete
---
## Research Findings
### Q1: <question>
**Status:** COMPLETE
**Sources:** dw:codebase-analyzer
<detailed findings with file:line references>
...
## Summary
- <N>/<total> questions fully answered
- <M> questions incomplete (<list which and why>)
## Cross-References
- <overlaps, contradictions, patterns>
## Structured Summary
### System State (as investigated)
- <factual description of current system state for investigated components>
- <include file:line references>
### Patterns Found
- <pattern name> — `file:line` — <brief description>
- ...
### Constraints & Invariants
- <constraint> — <source/file:line>
- ...
.state.json:
{
"topic": "<topic-slug>",
"repo": "<repo>",
"current_phase": 2,
"completed_phases": [1, 2],
"last_updated": "<ISO timestamp>"
}
/dw-03-design-discussion <topic-slug>
in a fresh conversation to continue. The original prompt will be
re-introduced alongside these findings."npx claudepluginhub ronsanzone/context-engineering-workflows --plugin dwGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.