research
Systematic codebase analysis and project understanding workflows. Use this skill to analyze project structure, discover patterns, trace dependencies, and understand existing implementations before development work.
When & Why to Use This Skill
The Research Skill is a comprehensive toolkit for systematic codebase analysis and project comprehension. It empowers developers to decode complex software architectures by mapping file systems, tracing dependencies, and identifying recurring design patterns. By providing structured workflows for technical discovery, it ensures that implementation, refactoring, and onboarding are guided by a deep, evidence-based understanding of the existing environment.
Use Cases
- Feature Implementation Planning: Analyze existing code patterns and integration points before development to ensure new features remain consistent with the project's architecture.
- Legacy Codebase Onboarding: Rapidly build a mental model of unfamiliar projects by generating filesystem maps and discovering core organizational conventions.
- Refactoring & Impact Analysis: Trace complex module dependencies and data flows to identify the potential scope of changes and mitigate the risk of regressions.
- Automated Technical Documentation: Generate structured research reports, filesystem references, and architecture overviews to maintain a living knowledge base for the team.
- Pattern Discovery: Identify and document specific coding standards and implementation styles across a repository to maintain high-quality, idiomatic code.
| name | research |
|---|---|
| description | Systematic codebase analysis and project understanding workflows. Use this skill to analyze project structure, discover patterns, trace dependencies, and understand existing implementations before development work. |
| domain | codebase-analysis |
Research Skill
You are a meticulous technical researcher using the research skill domain. This skill provides systematic approaches to understanding codebases, discovering patterns, and documenting project structure.
When to Use This Skill
Use research workflows:
- Before feature implementation - Understand existing patterns and integration points
- During architecture - Analyze codebase structure and conventions
- For refactoring - Map dependencies and understand data flows
- For onboarding - Build mental model of project organization
- For documentation - Create reference materials for team/AI agents
Available Workflows
Core Analysis Workflows
analyze-codebase -
workflows/analyze-codebase.md- Comprehensive codebase analysis and pattern discovery
- Use for: Feature planning, architecture decisions, refactoring prep
- Output: Structured research report with findings and recommendations
map-filesystem -
workflows/map-filesystem.md- Project structure mapping and directory analysis
- Use for: Creating file-system.md documentation, understanding organization
- Output: Complete filesystem reference document
find-patterns -
workflows/find-patterns.md- Pattern discovery and naming convention analysis
- Use for: Understanding how similar features are implemented
- Output: Pattern catalog with examples
trace-dependencies -
workflows/trace-dependencies.md- Dependency analysis and call graph mapping
- Use for: Understanding module relationships, impact analysis
- Output: Dependency map with integration points
understand-feature -
workflows/understand-feature.md- Feature-specific deep dive analysis
- Use for: Extending existing features, understanding specific functionality
- Output: Feature documentation with extension recommendations
Workflow Selection Guide
For new feature development:
- Start with
analyze-codebaseto understand project conventions - Use
find-patternsto locate similar existing features - Use
understand-featureto deeply analyze related functionality - Use
trace-dependenciesto map integration points
For project onboarding:
- Start with
map-filesystemto understand structure - Use
analyze-codebasefor comprehensive overview - Use
find-patternsto learn project conventions
For refactoring:
- Use
understand-featureto map current implementation - Use
trace-dependenciesto identify impact scope - Use
find-patternsto ensure consistency
For documentation creation:
- Use
map-filesystemto generate file-system.md - Use
analyze-codebaseto create architecture overview - Use
find-patternsto document coding standards
Context Files
The research skill provides analysis techniques and standards:
- analysis-patterns.md - Common analysis approaches and methodologies
- search-strategies.md - Effective search techniques using Grep, Glob, Read
- documentation-standards.md - How to document research findings
Integration with Other Skills
This skill supports:
specification-writing- Research informs PRD and epic creationarchitecture- Analysis guides architecture decisionsimplementation- Pattern discovery ensures consistencyquality- Understanding codebase enables better reviews
Used by agents:
- project-research-agent (primary user)
- feature-architect (for context before design)
- api-developer (understanding existing APIs)
- frontend-developer (understanding existing components)
Tools Required
Research workflows use:
- Read - Reading files and documentation
- Grep - Content search across codebase
- Glob - File pattern matching
- Bash - Directory listing and structure analysis
- WebSearch - Technology documentation lookup (optional)
Output Standards
All research workflows should:
- Be systematic - Follow structured exploration steps
- Be evidence-based - Cite file paths and code examples
- Be actionable - Provide clear recommendations
- Be documented - Use templates from context/documentation-standards.md
- Be reproducible - Others can verify findings
Success Criteria
Research is complete when:
- Project structure is mapped and understood
- Coding conventions are documented with examples
- Similar features are identified and analyzed
- Integration points are clearly identified
- Recommendations are actionable and specific
- Findings are well-documented for future reference
Workflow Invocation Pattern
## Research Phase
1. Invoke research skill workflow:
- Skill: `~/.claude/skills/research/workflows/analyze-codebase.md`
- Context: {what you're building}
2. Review research findings
3. Document key patterns and integration points
4. Proceed with design/implementation using research insights
Next Steps
Select the appropriate workflow based on your research goal:
- Comprehensive analysis: Use
workflows/analyze-codebase.md - Structure mapping: Use
workflows/map-filesystem.md - Pattern discovery: Use
workflows/find-patterns.md - Dependency mapping: Use
workflows/trace-dependencies.md - Feature understanding: Use
workflows/understand-feature.md
Refer to context files for analysis techniques and documentation standards.