
update-workspace-map
Validate workspace-map.md accuracy against actual 04-workspace/ structure (3 levels deep). Load when user says "validate workspace map", "update workspace map", "check workspace map", or from close-session. Ensures deep structure validation with comprehensive documentation.
Validate workspace-map.md accuracy against actual 04-workspace/ structure (3 levels deep). Load when user says "validate workspace map", "update workspace map", "check workspace map", or from close-session. Ensures deep structure validation with comprehensive documentation.
Validate Workspace Map
Ensure workspace-map.md stays synchronized with actual 04-workspace/ folder structure up to 3 levels deep.
Purpose
The workspace-map.md file helps AI understand your custom folder organization in 04-workspace/. When it becomes stale (folders added/removed/reorganized but not documented), AI navigation becomes unreliable.
This skill:
- Scans workspace structure 3 levels deep (root → level 1 → level 2 → level 3)
- Compares actual folders with documented folders at all levels
- Identifies mismatches (missing or extra folders, incorrect nesting)
- Provides detailed structure report with depth indicators
- Guides you through comprehensive updates
- Validates accuracy after changes
Improvements over v1:
- ✅ 3-layer deep scanning (vs 1 layer)
- ✅ Hierarchical validation (parent-child relationships)
- ✅ File detection (warns about files that should be documented)
- ✅ Depth indicators in reports (├──, │ ├──, │ │ ├──)
- ✅ Comprehensive documentation prompts for nested structures
When to use:
- You reorganized 04-workspace/ folders
- You notice AI can't find your folders
- During onboarding (Project 03, Task 5.6)
- As part of regular maintenance (via close-session)
Workflow
Step 1: Scan Actual Workspace Structure (3 Levels Deep)
Scan workspace recursively (up to 3 levels):
find 04-workspace -maxdepth 3 -type d | sort
Parse into hierarchical structure:
04-workspace/
├── input/
│ ├── skills/
│ │ ├── examples/
│ │ └── templates/
│ └── docs/
├── clients/
│ ├── acme/
│ │ ├── deliverables/
│ │ └── notes/
│ └── globex/
└── templates/
Also scan for important files (for documentation warnings):
find 04-workspace -maxdepth 3 -type f -name "*.md" -o -name "README*" | sort
Store:
- ACTUAL_STRUCTURE (tree with 3 levels)
- IMPORTANT_FILES (markdown/README files)
Exclude:
- Hidden folders (., .., .git, .DS_Store)
- workspace-map.md itself
- System folders
Time: 10 seconds
Step 2: Parse workspace-map.md (3 Levels Deep)
Read: 04-workspace/workspace-map.md
Extract documented structure:
-
From tree structure (in "Your Workspace Structure" section):
- Parse lines with
├──,│ ├──,│ │ ├──(depth indicators) - Build hierarchical tree from indentation
- Capture folder descriptions (inline comments with
#)
- Parse lines with
-
From folder descriptions (in "Folder Descriptions" section):
- Parse
###headers (level 1 folders) - Parse
####headers (level 2 folders) - Parse
#####headers (level 3 folders) - Extract purpose, contents, and notes
- Parse
-
Cross-reference both sections for completeness
Store:
- MAPPED_STRUCTURE (tree with 3 levels)
- MAPPED_DESCRIPTIONS (folder purposes and details)
Time: 10 seconds
Step 3: Deep Comparison (Hierarchical)
Compare at each level:
Level 1 (04-workspace/ direct children):
- Missing from map
- Extra in map (stale)
- Matches
Level 2 (within each level 1 folder):
- For each level 1 folder, compare children
- Track parent-child relationships
- Identify orphaned level 2 folders (parent missing)
Level 3 (within each level 2 folder):
- For each level 2 folder, compare children
- Validate full path accuracy
- Identify deeply nested mismatches
Identify:
- Missing folders (at each level)
- Extra folders (stale documentation at each level)
- Hierarchy issues (documented under wrong parent)
- Undocumented files (important .md files with no description)
- Perfect match (all levels accurate)
Time: 5 seconds
Step 4: Generate Comprehensive Report
Show detailed validation results at all 3 levels with clear depth indicators and actionable feedback.
Total Time Estimates
Scenarios:
- Perfect match (3 levels): ~20 seconds
- Minor updates (1-2 folders): 2-3 minutes
- Major reorganization (5+ folders): 5-7 minutes
- Deep restructure (many level 2-3 changes): 8-10 minutes
Integration
close-session Integration
This skill is automatically triggered during close-session. If mismatches found, prompts user to update.
Remember: Deep 3-level validation = Comprehensive AI navigation!
You Might Also Like
Related Skills

update-docs
This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature", "document this feature", "review docs completeness", "add docs for this change", "what documentation is affected", "docs impact", or mentions "docs/", "docs/01-app", "docs/02-pages", "MDX", "documentation update", "API reference", ".mdx files". Provides guided workflow for updating Next.js documentation based on code changes.
vercel
docstring
Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.
pytorch
docs-writer
Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
google-gemini
write-concept
Write or review JavaScript concept documentation pages for the 33 JavaScript Concepts project, following strict structure and quality guidelines
leonardomso
resource-curator
Find, evaluate, and maintain high-quality external resources for JavaScript concept documentation, including auditing for broken and outdated links
leonardomso
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
anthropics