Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance. Auto-activates when user asks to review, understand, or explore a codebase, when starting work in a new project, when asking about conventions or agents, or when documentation context would help. Can consolidate multiple platform docs into unified AGENTS.md.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
reference.mdtemplates.mdScan for and synthesize project documentation across AI assistants, IDEs, and CLI tools.
Use this skill when:
doc-scanner skillBefore scanning the project, read the supporting files from this skill directory:
~/.claude/skills/doc-scanner/reference.md - Contains the complete list of documentation files to scan for~/.claude/skills/doc-scanner/templates.md - Contains templates for generating AGENTS.mdThese files provide the patterns and templates needed for the remaining steps.
Use Glob to search the project root for documentation files using the patterns from reference.md.
Priority order:
Read the complete contents of every documentation file found. Do not skip any.
Combine information from all sources into a unified summary:
PROJECT DOCUMENTATION
Sources: [list each file found]
RECOMMENDED AGENTS
Primary: [agents recommended for core work]
Secondary: [agents for specific tasks]
KEY WORKFLOWS
[consolidated workflows from all docs]
CONVENTIONS
[code style, patterns, architecture guidelines]
QUICK COMMANDS
[common commands extracted from docs]
When information conflicts between files:
If 2 or more documentation files exist, ask the user:
"I found [N] documentation files. Would you like me to consolidate them into a single AGENTS.md?
This would:
.doc-archive/Reply 'yes' to consolidate, or 'no' to keep separate files."
If user agrees to consolidate, follow these steps IN ORDER:
Use Bash to create the archive directory:
mkdir -p .doc-archive
For EACH documentation file found (except AGENTS.md if it exists), archive it BEFORE creating the new AGENTS.md:
# Get today's date for the suffix
DATE=$(date +%Y-%m-%d)
# Move each file - repeat for every doc file found
mv CLAUDE.md .doc-archive/CLAUDE.md.$DATE
mv WARP.md .doc-archive/WARP.md.$DATE
# etc. for each file
Do not skip this step. Every original file must be safely archived before proceeding.
Use Glob to confirm files were archived:
.doc-archive/*.md.*
List what was archived to the user.
Now create the new AGENTS.md using the template from templates.md. Include:
<!-- Source: CLAUDE.md -->Report to user:
Consolidation complete.
Archived to .doc-archive/:
- CLAUDE.md.2024-01-15
- WARP.md.2024-01-15
Created: AGENTS.md (unified documentation)
If no documentation files exist:
No project documentation found.
Recommended: Create AGENTS.md for AI-agnostic project guidance.
I can generate a starter AGENTS.md based on:
- This project's structure and tech stack
- Common patterns I observe in the codebase
Would you like me to create one?
If user agrees, analyze the project and generate appropriate AGENTS.md using the template structure from templates.md.