Efficiently navigate codebase documentation during Research phase. Use instead of Grep/Glob for finding architectural decisions, feature specs, and technical docs...
Navigate codebase documentation efficiently by checking known doc locations first, before resorting to grep/glob searches.
references/doc-patterns.md)Check these locations in order:
project-root/
āāā docs/ # Primary documentation
ā āāā architecture/ # System design, ADRs
ā āāā features/ # Feature specs
ā āāā api/ # API documentation
ā āāā guides/ # How-to guides
āāā .github/ # GitHub-specific docs
ā āāā docs/
āāā README.md # Project overview
āāā ARCHITECTURE.md # High-level architecture
āāā CONTRIBUTING.md # Contribution guidelines
āāā doc/ or documentation/ # Alternative doc folders
| Looking for... | Check first |
|---|---|
| Project overview | README.md |
| Architecture/design | docs/architecture/, ARCHITECTURE.md, docs/adr/ |
| Feature specs | docs/features/, docs/specs/ |
| API reference | docs/api/, api-docs/, OpenAPI/Swagger files |
| Setup/installation | docs/guides/setup.md, INSTALL.md |
| Database schema | docs/database/, docs/schema/, prisma/schema.prisma |
| Data types/models | docs/types/, docs/models/, src/types/, src/models/ |
| Style guide | docs/style-guide.md, docs/conventions.md, .eslintrc, STYLE.md |
| Environment config | docs/config/, .env.example, docs/environment.md |
| Testing strategy | docs/testing/, tests/README.md |
| Deployment | docs/deployment/, docs/infrastructure/ |
| ADRs (decisions) | docs/adr/, docs/decisions/, architecture/decisions/ |
| ADRs (fallback) | CHANGELOG.md, git log, PR descriptions, code comments |
1. ls docs/ (or doc/, documentation/)
ā exists?
YES ā scan structure, build topic map
NO ā check for standalone doc files (*.md in root)
ā found?
YES ā use available docs
NO ā suggest creating docs structure
(see references/doc-patterns.md)
Run the scanner script to map available documentation:
python3 scripts/scan_docs.py [project-path]
Output: JSON map of topics ā file locations
If the codebase lacks documentation:
view references/doc-patterns.mdIf no formal ADRs exist, extract architectural context from:
CHANGELOG.md ā Breaking changes, migration rationale
git log ā Commits w/ "migrate", "refactor", "replace"
PR/MR descriptions ā Discussion threads on major changes
Issue tracker ā Closed RFCs, architecture proposals
Code comments ā // DECISION:, // WHY:, // HACK:
See references/doc-patterns.md ā "Fallback: When No ADRs Exist" for git commands & reconstruction templates.
Use doc-navigator BEFORE grep/glob when:
Fall back to grep/glob when:
Ref: references/doc-patterns.md for documentation templates when establishing new docs.