/the-blueprint:researchfrom the-blueprint
Objective codebase investigation that produces factual findings about existing code, patterns, and architecture. Useful for understanding code before design or during the R stage of the DRAFT pipeline.
Ships in the-blueprint. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Objective codebase investigation that produces factual findings blind to the intent expressed in the discovery brief. The lead reads the brief and generates neutral questions. Teammates investigate the codebase. The lead compiles findings. No teammate ever sees the brief, the ticket, or the user's goals.
Agent teams: !echo ${CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS:-disabled}
If agent teams shows disabled above, stop immediately and tell the user:
Agent teams are required for parallel research. Enable them by adding to your settings:
{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }Then restart the session.
Teammates also need an interactive session. Under claude -p, a named spawn runs as an ordinary subagent — the waves
still work, but findings return as subagent results instead of SendMessage.
Locate the brief:
$ARGUMENTS names a brief, or ask the user to provide one. Read it into conversation
context — the skill works from context.subagent_type: "codebase-researcher", name: "researcher-{scope-slug}", and an intent-free spawn
prompt (see Spawn Prompt below).
name is what makes the spawn a teammate, and it is the address other agents use to message it. There is no
team to create — the session owns one team — and team_name is ignored.subagent_type ensures the teammate inherits the agent's tool restrictions and system prompt; without it,
the platform falls back to the general-purpose agent.Research proceeds in waves. A wave is a set of teammates dispatched together. Never start a new wave while the current one is still running.
SendMessage or an
explicit "not determinable from files". If a teammate went idle with questions unanswered, message it by name and ask
for the missing findings.Why waves: dispatching follow-ups while a wave is still running causes redundant investigation — a sibling teammate may already be answering the question you're about to ask. Batching by wave lets findings inform each other.
By this point all waves are complete and no further teammates will be dispatched. The information barrier no longer applies.
design-docs/NN-name.research.md as sole author using the document format below.
design-docs/NN-name.brief.md.Ask every teammate to shut down, by name. A teammate can reject a shutdown request with an explanation — if one does, resolve what it reports before continuing.
There is no team cleanup step. The session's team directories are removed when the session ends.
alignment skill?"Every question must request a fact, never an opinion, assessment, or judgment. Teammates can only return facts; asking them for evaluation produces speculation, not evidence. If the brief frames something as a problem to solve or a quality to improve, translate it into factual questions about what currently exists — never pass the framing through.
Use: "document", "identify", "describe", "trace", "characterize", "examine", "list", "map"
Ban: "should", "must", "improve", "fix", "optimize", "enhance", "refactor", "recommend", "suggest", "better", "needs to"
Each question targets one of these:
Before presenting questions to the user, self-check:
Group questions by the codebase area they investigate, not by topic.
Each task description dispatched to a teammate must include exactly:
## Questions
1. [question text]
2. [question text]
## Scope
Directories: [paths]
Focus: [one-line description of the codebase area]
## Instructions
Investigate these questions by reading files within the scope above. Send one structured finding per
question to the team lead via SendMessage. Mark the task complete when all questions are answered.
Nothing else. No brief context, no intent, no background.
The prompt parameter on the Agent call is visible to the teammate. The leak we care about is intent, not
context. Distinguish:
The teammate already gets stable context from its agent definition (role, tools, output format). The spawn prompt can add light orientation — project name, scope tag, "claim a task" routing — but every word should pass the test: would removing this change what the teammate looks for? If yes, it's intent. If no, it's safe context.
- "You're a codebase-researcher on the auth-module scope. Claim a task and follow its instructions." - "Investigating the cc-foundry plugins directory. Claim your task and send findings to the lead." - "We're trying to add OAuth to the auth module — claim your task." — leaks the goal - "Help us figure out why the API middleware is slow." — assumes a problem, frames the search - "Find out where we'd need to refactor for the new caching layer." — leaks the change being considered# Research: {title from brief}
- **Date:** {date}
- **Teammates:** {count}
- **Scopes investigated:** {list of scope cluster names}
## {Scope Cluster Name}
### Files Investigated
- `path/to/file.ts` — {what it contains}
### Findings
**{Question text}**
{Compiled finding — concrete, factual, with file:line references}
### Patterns
{Patterns observed — include prevalence (e.g., "dominant in 12/15 files" vs "isolated instance")}
### Integration Points
{How this scope connects to other parts of the codebase}
### Open Gaps
{What could not be determined}
## Cross-Cutting Observations
{Patterns or findings that span multiple scopes — only if such observations exist}
## Unresolved Questions
{Questions that teammates could not answer from the files — only if any remain}
prompt parameter on Agent is visible to the teammate. Project,
scope area, role are fine. Goals, problems being solved, desired outcomes, or any framing that suggests a direction
bias the investigation.SendMessage.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xobotyi/cc-foundry --plugin the-blueprint10 skills in this plugin
/adrWrite, rewrite, and delete architecture decision records in `design-docs/adr/` and their always-loaded index `design-docs/ADR.md`, as living records that state the decision in force./alignmentSolution direction synthesis — design opinions from research findings, presented for human correction, with each settled decision handed to the adr skill. Invoke whenever task involves the A stage of the DRAFT pipeline or aligning on approach before implementation./diagrammingTechnical diagram creation with visual design principles: format selection, layout, readability, and aesthetics. Invoke whenever task involves any interaction with diagrams — creating, reviewing, or improving visual representations of systems, processes, data flows, or relationships using Excalidraw or Mermaid./discoveryRequirements elicitation and validation through structured questioning. Invoke whenever task involves defining what to build, scoping a problem or feature, or starting the DRAFT pipeline./frameVertical-slice implementation planning — phases that cross all layers end-to-end with per-phase testing. Invoke whenever task involves the F stage of the DRAFT pipeline, planning implementation phases, or structuring work before coding begins./glossaryProject glossary for consistent domain terminology. Invoke whenever task involves creating, updating, or referencing a glossary, defining domain terms, establishing ubiquitous language, or when inconsistent naming causes confusion in code or planning artifacts.Other plugins' skills for the same job