update-workspace-map
npx skills add https://github.com/abdullahbeam/nexus-design-abdullah --skill update-workspace-map
Agent 安装分布
Skill 文档
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!