// Apply Progressive Disclosure principles to organize large documentation projects. Restructure docs into hierarchical structure, reduce token usage by 95%+, and create README files for navigation.
| name | doc-organizer |
| description | Apply Progressive Disclosure principles to organize large documentation projects. Restructure docs into hierarchical structure, reduce token usage by 95%+, and create README files for navigation. |
Purpose: Transform chaotic documentation into a Progressive Disclosure structure, achieving 95%+ token reduction through systematic hierarchical organization.
Use this skill when the user's request involves:
You are a documentation architect who applies Progressive Disclosure principles to turn overwhelming documentation into navigable, token-efficient knowledge systems. You achieve 95%+ token savings through systematic hierarchical structuring.
Structure:
project/
โโโ Layer 1: Top-level categories (by purpose)
โ โโโ Layer 2: Sub-categories (by function)
โ โ โโโ Layer 3-4: Documents
Example:
_ecommerce/
โโโ for-customers/ # Layer 1: Purpose (customer-facing)
โ โโโ security/ # Layer 2: Function
โ โ โโโ README.md
โ โ โโโ trust-framework.md # Layer 3: Document
โ Wrong (Format-Based):
project/
โโโ design/ # PPT, Figma
โโโ docs/ # All markdown
โโโ assets/ # Images
โ Right (Purpose-Based):
project/
โโโ _docs/ # Project hub
โโโ technical/ # System design
โโโ customer/ # Client-facing
โโโ compliance/ # Regulations
โโโ knowledges/ # Knowledge base
Why: Users search by need (e.g., "security docs"), not format (e.g., "all PDFs").
knowledges/, _docs/, meeting-notes/_docs/ - Internal documentation hubfor-*/ - External stakeholder folders (e.g., for-pharma/, for-jmyoung/)[number]-[topic]-[subtitle].md
Examples:
โ
01-system-architecture.md
โ
02-1-overview.md
โ
04-2-table-definitions.md
โ system_arch.md (abbreviation)
โ SecurityOverview.md (camelCase)
[topic]-[category].md
Examples:
โ
executive-summary.md
โ
roi-analysis.md
โ
gtm-strategy.md
Every major directory must have a README.md with:
Template:
# [Directory Name] Documentation Index
[1-2 sentence description]
---
## ๐ Directory Structure
\`\`\`
directory/
โโโ README.md
โโโ subdirectory1/
โโโ subdirectory2/
\`\`\`
## ๐ Document List
<!-- Template Example: Replace placeholder paths with your actual documentation files -->
| File | Topic | Key Content |
|------|-------|-------------|
| [file1.md](./file1.md) | Title | โข Item 1<br>โข Item 2 |
**Total: N documents**
## ๐ฏ Role-Based Recommendations
- **Executives**: doc1, doc2
- **Developers**: doc3, doc4
## ๐ Related Documents
- **Link1**: path - description
Location: Project root Purpose: Single entry point for entire documentation
Key Sections:
# Understand current structure
tree -L 3
# Count documents
find . -name "*.md" | wc -l
# Identify patterns
find . -type d -maxdepth 2
Questions:
Analyze existing patterns:
| Pattern | Example | Assessment |
|---|---|---|
| Format-based | design/, docs/ | โ Replace with purpose |
| Purpose-based | customer/, technical/ | โ Keep and expand |
| Mixed | Some OK, some not | โ ๏ธ Standardize |
Option A: Purpose-Based Reorganization (Recommended)
Option B: In-Place Structuring
Present 2 options to user before executing.
# Create new structure
mkdir -p customer/research customer/strategy
mv customer/*.md customer/research/
mv design/ai-*.md knowledges/analysis/
# Rename files
mv systemArch.md 01-system-architecture.md
Principles:
git mv if possible)Tasks:
# Full structure (depth limited)
tree -L 2
# With statistics
tree -L 2 --du --dirsfirst
# Exclude unnecessary files
tree -I "node_modules|.git|__pycache__"
# Save to file
tree -L 3 > tree.md
# .md files only
find . -name "*.md"
# Directories only
find . -type d -maxdepth 2
# File count
find . -name "*.md" | wc -l
Tier 1: Master Index (5KB)
Tier 2: Category Index (15KB)
Tier 3: Document Index (30KB)
Result: 95%+ token savings
Step 1: Analyze
tree -L 2 _ecommerce/
find _ecommerce/ -name "*.md" | wc -l # 311
Output:
_ecommerce/
โโโ 97 files (mixed purposes)
โโโ customer/
โโโ technical/
โโโ research/
Assessment:
Step 2: Plan
Option A: Full Reorganization
_ecommerce/
โโโ _docs/ # Hub
โโโ for-customers/ # Customer-facing (70 docs)
โโโ for-partners/ # Partnership (25 docs)
โโโ technical/ # Architecture (30 docs)
โโโ compliance/ # PCI-DSS (31 docs)
โโโ research/ # Market research (9 docs)
โโโ knowledges/ # Knowledge base (17 docs)
Option B: In-Place Structure
_ecommerce/
โโโ README.md (new)
โโโ customer/
โ โโโ README.md (new)
โ โโโ [existing files]
โโโ technical/
โ โโโ README.md (new)
โ โโโ [existing files]
Present to user: "I found 311 docs. Option A reorganizes into 7 purpose-based folders. Option B adds structure without moving files. Which do you prefer?"
Step 3: Execute (Option A chosen)
# Create structure
mkdir -p _ecommerce/{for-customers/{security,frameworks},for-partners,technical,compliance,research,knowledges}
# Move files by purpose
mv _ecommerce/*security*.md _ecommerce/for-customers/security/
mv _ecommerce/*proposal*.md _ecommerce/for-partners/
mv _ecommerce/*architecture*.md _ecommerce/technical/
Step 4: Generate READMEs
_ecommerce/README.md:
# E-commerce Platform Documentation Index
E-commerce Platform Project - 311 documents
---
## ๐ Directory Structure
\`\`\`
_ecommerce/
โโโ for-customers/ # Customer support (70 docs)
โโโ for-partners/ # Partner proposals (25 docs)
โโโ technical/ # Technical design (30 docs)
โโโ compliance/ # Compliance documentation (31 docs)
\`\`\`
## ๐ฏ Role-Based Guide
- **Sales Team**: for-customers/ (customer persuasion)
- **Development Team**: technical/ (system design)
- **Executive Team**: for-partners/ (proposals)
## ๐ Statistics
- **Total**: 311 docs
- **Token savings**: 95%+ (hierarchical structure)
Step 5: Create Hierarchical Navigation
Document organization with clear categories and navigation structure.
Result:
| Approach | Token Usage | Savings |
|---|---|---|
| Load all docs | ~20MB+ | 0% (exceeds limits) |
| Load by category | ~500KB | 75% |
| Hierarchical priority | ~50KB | 95%+ โญ |
Best Practice: Always load hierarchical index first, then selectively load categories.
docs/ # All markdown
images/ # All images
videos/ # All videos
Why wrong: Users search by purpose, not format.
project/A/B/C/D/E/file.md
Why wrong: Hard to navigate, unclear purpose.
Fix: Keep 3-4 levels max.
technical/
โโโ file1.md
โโโ file2.md
โโโ file3.md # No README.md
Why wrong: No navigation, unclear purpose.
Fix: Add README.md with document list.
technical/
โโโ 01-architecture.md
โโโ design_doc.md # Mixed style
โโโ SecurityOverview.md # CamelCase
Why wrong: Hard to scan, unprofessional.
Fix: Standardize to [number]-[topic]-[subtitle].md.
When reorganizing documentation, provide:
Current State Analysis
Reorganization Plan
Execution
Index Creation
Result Summary
For detailed usage and examples, see related documentation files.