agentleFS
hackermanishackermanhackermanishackerman/claude-skills-vault/.claude/skills/doc-navigator/SKILL.md

doc-navigator

Skill2 starsChanged 11 months agoMITView on GitHub

Efficiently navigate codebase documentation during Research phase. Use instead of Grep/Glob for finding architectural decisions, feature specs, and technical docs. Maps topics to doc locations for fast context retrieval. If codebase lacks documentation structure, provides patterns to establish one.

  • Reads credentials

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for docs directory at project root

    line 20
  2. Distinctive:

    If docs exist → map topics to locations

    line 22
  3. Very specific:

    If no docs → suggest documentation structure (see references/doc-patterns.md)

    line 23
  4. Distinctive:

    Check these locations in order:

    line 27
  5. Distinctive:

    Run the scanner script to map available documentation:

    line 77
  6. Distinctive:

    If the codebase lacks documentation:

    line 87
  7. Distinctive:

    If no formal ADRs exist, extract architectural context from:

    line 95
  8. Distinctive:

    Use doc-navigator BEFORE grep/glob when:

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Doc Navigator

Navigate codebase documentation efficiently by checking known doc locations first, before resorting to grep/glob searches.

When to Use

  • Finding architectural decisions (ADRs)
  • Locating feature specs or API docs
  • Researching codebase before implementation
  • Suggesting documentation structure for new projects
  • Alternative to grep/glob for doc discovery

Quick Start

  1. Check for docs directory at project root
  2. Scan for common doc file patterns
  3. If docs exist → map topics to locations
  4. If no docs → suggest documentation structure (see references/doc-patterns.md)

Common Documentation Locations

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

Topic-to-Location Mapping

Looking for...Check first
Project overviewREADME.md
Architecture/designdocs/architecture/, ARCHITECTURE.md, docs/adr/
Feature specsdocs/features/, docs/specs/
API referencedocs/api/, api-docs/, OpenAPI/Swagger files
Setup/installationdocs/guides/setup.md, INSTALL.md
Database schemadocs/database/, docs/schema/, prisma/schema.prisma
Data types/modelsdocs/types/, docs/models/, src/types/, src/models/
Style guidedocs/style-guide.md, docs/conventions.md, .eslintrc, STYLE.md
Environment configdocs/config/, .env.example, docs/environment.md
Testing strategydocs/testing/, tests/README.md
Deploymentdocs/deployment/, docs/infrastructure/
ADRs (decisions)docs/adr/, docs/decisions/, architecture/decisions/
ADRs (fallback)CHANGELOG.md, git log, PR descriptions, code comments

Discovery Workflow

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)

Automated Discovery

Run the scanner script to map available documentation:

python3 scripts/scan_docs.py [project-path]

Output: JSON map of topics → file locations

When Docs Don't Exist

If the codebase lacks documentation:

  1. Inform user: "No documentation structure found"
  2. Offer to create starter docs: view references/doc-patterns.md
  3. Suggest minimal viable structure based on project type

Finding Decisions Without ADRs

If 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.

Integration with Research Phase

Use doc-navigator BEFORE grep/glob when:

  • Starting work on unfamiliar codebase
  • Looking for architectural context
  • Understanding feature implementations
  • Finding API contracts or schemas

Fall back to grep/glob when:

  • Docs don't cover the specific topic
  • Need to find implementation details in code
  • Searching for specific function/class usage

Ref: references/doc-patterns.md for documentation templates when establishing new docs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.