Skill v1.0.0
currentAutomated scan100/100name: create-research description: "Generate a research.md from blind codebase analysis" user-invocable: false metadata: version: "1.0.0"
Create Blind Research Document
Generate a research.md by analyzing the codebase without knowledge of the feature goal. This ensures unbiased documentation of the current system state.
Process
- Identify the target repository or repositories to analyze.
- Zoom-out synthesis (L6): Scan architecture-level signals (config, directory structure, entry points) to build a system-level mental map before detailed analysis.
- Conduct a thorough read-only scan of the codebase.
- Document findings in
research.mdin the feature's spec directory, starting with the zoom-out overview.
Critical Rule
Do NOT read the spec.md or any feature description before completing the research. The analysis must be conducted blind to avoid confirmation bias. Only after the research document is complete should it be compared against the feature specification.
Template Structure
# Codebase Research: {Repository Name}## Architecture OverviewHigh-level description of the system architecture, patterns, and design philosophy.## Directory StructureKey directories and their purposes.## Logic FlowsDocument the primary execution paths and data flows through the system.### Flow: {Flow Name}1.Entry point: {file:line}2.{Step description} → {file:line}3....## Data ModelsExisting data models, schemas, and their relationships.### Model: {Name}-Location: {file path}-Fields: {key fields and types}-Relationships: {references to other models}## Integration PointsExternal services, APIs, databases, message queues, and other system boundaries.| Integration | Type | Location | Notes ||---|---|---|---|| {Name} | REST API / DB / Queue | {file path} | {Details} |## Configuration & EnvironmentEnvironment variables, config files, and feature flags in use.## Technical Debt & ObservationsIssues, inconsistencies, or areas of concern discovered during analysis.-{Observation with file reference}-{Observation with file reference}## Key PatternsDesign patterns, conventions, and idioms used consistently in the codebase.
Fan-Out Mode
When the caller (typically crispy-research) determines that the work meets the fan-out threshold — areas ≥ 3 OR repos ≥ 2 — this skill is invoked after fan-out rather than running the analysis itself.
Workflow:
- The caller spawns one
exploresub-agent per area or repo (seeSUBAGENTS.md§5.1). Each sub-agent inherits the blindness rule (MUST NOT readspec.mdor the feature goal) and writes a partial-research markdown fragment to a temp file. - Once all fragments are produced, invoke the
aggregate-researchskill on the fragment paths to merge them into the single canonicalresearch.mdfor the feature. - Below threshold (areas < 3 AND repos < 2), run this skill as documented above — no fan-out, no aggregation.
The aggregation step is mandatory in fan-out mode: do not concatenate fragments by hand and do not skip straight to writing research.md from one fragment.
Guidelines
Research Vocabulary Sidecar (L2 source-learning traceability)
Research discovers only codebase-observed vocabulary with evidence. Do NOT write to CONTEXT.md (Clarify owns that artifact). Instead, write discovered terms to CONTEXT.research-vocabulary.md in the feature folder.
Each vocabulary entry must include:
- Evidence: code snippet, pattern, or observable fact
- Source: file path and line number
After writing the vocabulary sidecar, reference it in research.md's preamble:
# Codebase Research: [Area Name]> **Vocabulary sidecar**: See `CONTEXT.research-vocabulary.md` for codebase-discovered technical terms.
- Reference specific file paths and line numbers wherever possible.
- Document what is, not what should be.
- Note any inconsistencies between different parts of the codebase.
- Include observations about test coverage and testing patterns.
- Flag any hardcoded values, magic numbers, or configuration that lives in code.
- Keep the tone objective and factual — avoid recommendations at this stage.
Standalone Mode (Missing Input Fallback)
When invoked outside the full CRISPY orchestration:
Required inputs: Target area/component to research (e.g., "authentication system"), repository path(s).
Missing orchestrator context: Proceed with blind research as documented. Do NOT attempt to read spec.md or infer feature goals.
Partial status: If the area is too large or ambiguous, return:
status: partialreason: "Research area spans ≥5 modules or unclear boundaries; recommend narrowing scope."next_action: "Specify 1-2 concrete modules/files to focus on, or approve fan-out mode for large area."partial_output: "<path to incomplete research.md or fragments>"
Fan-out threshold: When areas ≥ 3 OR repos ≥ 2, automatically fan out per SUBAGENTS.md §5.1 and aggregate results. No user confirmation needed in standalone mode.
Normal orchestrated flow: When called by crispy-research agent, follow its fan-out decisions and blindness preservation rules without deviation.