[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77YKS1CTJG2PA32S48QT43E":3,"skill-same:01M77YKS1CTJG2PA32S48QT43E":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M77YKS1CTJG2PA32S48QT43E","workspace-analyzer",null,"Analyzes OpenClaw workspace structure and content to identify maintenance needs, bloat, duplicates, and organization issues. Outputs a JSON report for the agent to review and act upon.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fw\u002Fworkspace-analyzer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: workspace-analyzer\ndescription: \"Analyzes OpenClaw workspace structure and content to identify maintenance needs, bloat, duplicates, and organization issues. Outputs a JSON report for the agent to review and act upon.\"\nversion: \"1.1.0\"\nmetadata:\n  {\"openclaw\":{\"emoji\":\"📊\",\"requires\":{\"bins\":[\"python3\"]}, \"tags\":[\"workspace\", \"maintenance\", \"analysis\", \"health\"]}}\n---\n\n# Workspace Analyzer\n\n> \"Scans, analyzes, and reports. The agent decides.\"\n\n---\n\n## Overview\n\nA self-improving agent needs a clean workspace. This skill analyzes any OpenClaw workspace to:\n1. **Detect** core files dynamically (adapts to workspace changes)\n2. **Analyze** content for issues (bloat, duplicates, broken links)\n3. **Validate** single source of truth (content in multiple places)\n4. **Report** actionable insights for the agent to act upon\n\n**Key Principle:** The script analyzes → the agent decides → the agent acts.\n\n---\n\n## Installation\n\n```bash\n# Clone or copy to your skills folder\ncp -r workspace-analyzer\u002F ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002F\n```\n\n---\n\n## Usage\n\n### Run Analysis\n\n```bash\n# Full analysis (default)\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py\n\n# Quick scan (structure only, no content analysis)\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --quick\n\n# Specific workspace\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --root \u002Fpath\u002Fto\u002Fworkspace\n\n# Output to file\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --output report.json\n```\n\n---\n\n## Output Format\n\n```json\n{\n  \"scan_info\": {\n    \"root\": \"\u002Fhome\u002Fuser\u002F.openclaw\u002Fworkspace\",\n    \"timestamp\": \"2026-02-21T18:00:00Z\",\n    \"files_scanned\": 291\n  },\n  \"core_files_detected\": {\n    \"kai_core\": {\n      \"files\": [\"SOUL.md\", \"OPERATING.md\", ...],\n      \"count\": 11\n    },\n    \"mission_control\": {...},\n    \"agent_cores\": {...},\n    \"skills\": {...}\n  },\n  \"analysis\": {\n    \"SOUL.md\": {\n      \"category\": \"kai_core\",\n      \"line_count\": 450,\n      \"sections\": [...],\n      \"wiki_links\": [...],\n      \"issues\": [...]\n    }\n  },\n  \"single_source_validation\": {\n    \"skill_graph\": {\n      \"status\": \"PASS\u002FFAIL\",\n      \"locations\": [\"AGENTS.md\", \"OPERATING.md\", \"SOUL.md\"],\n      \"recommendation\": \"Reference all to SUB_CONSCIOUS.md\"\n    },\n    \"memory_architecture\": {...},\n    \"image_handling\": {...}\n  },\n  \"recommendations\": [\n    {\"action\": \"FIX_DUPLICATE_CONTENT\", \"topic\": \"skill_graph\", \"files\": [\"AGENTS.md\", \"OPERATING.md\"], \"severity\": \"CRITICAL\"},\n    {\"action\": \"REVIEW_BLOAT\", \"file\": \"OPERATING.md\", \"severity\": \"WARN\"},\n    {\"action\": \"CHECK_DUPLICATE\", \"severity\": \"WARN\"},\n    {\"action\": \"CHECK_BROKEN_LINK\", \"severity\": \"INFO\"}\n  ],\n  \"summary\": {\n    \"total_files\": 291,\n    \"total_issues\": 17,\n    \"total_recommendations\": 25\n  }\n}\n```\n\n---\n\n## Single Source of Truth Validation\n\n### What It Checks\n\nThe analyzer validates that each topic exists in exactly ONE place:\n\n| Topic | Expected Single Source |\n|-------|----------------------|\n| Skill Graph | SUB_CONSCIOUS.md |\n| Memory Architecture | OPERATING.md or SUB_CONSCIOUS.md |\n| Message Reactions | SUB_CONSCIOUS.md |\n| Image Handling | OPERATING.md |\n| Session Bootstrap | AGENTS.md |\n\n### Detection Logic\n\n1. **Scan all core files** for key section headings\n2. **Build content map** of where each topic appears\n3. **Flag violations** where topic appears in 2+ places\n4. **Recommend fix** by pointing to single source\n\n### Example Output\n\n```json\n{\n  \"single_source_validation\": {\n    \"skill_graph\": {\n      \"status\": \"FAIL\",\n      \"locations\": [\"AGENTS.md:285\", \"OPERATING.md:56\", \"SOUL.md:52\"],\n      \"severity\": \"CRITICAL\",\n      \"recommendation\": \"Consolidate to SUB_CONSCIOUS.md, reference from others\"\n    },\n    \"memory_architecture\": {\n      \"status\": \"FAIL\", \n      \"locations\": [\"AGENTS.md:157\", \"OPERATING.md:74\", \"OPERATING.md:193\"],\n      \"severity\": \"CRITICAL\",\n      \"recommendation\": \"Remove duplicate section at OPERATING.md:193\"\n    }\n  }\n}\n```\n\n---\n\n## Features\n\n### Dynamic Core File Detection\n\nAutomatically detects core files based on location patterns:\n\n| Category | Pattern | Example |\n|----------|---------|---------|\n| KAI Core | Root *.md | SOUL.md, OPERATING.md |\n| Mission Control | mission_control\u002F*GUIDELINES.md | MISSION_CONTROL_GUIDELINES.md |\n| Agent Cores | mission_control\u002Fagents\u002F*\u002F*.md | designer\u002FSOUL.md |\n| Skills | skills\u002F*\u002FSKILL.md | react-expert\u002FSKILL.md |\n| SUB_CONSCIOUS | Root SUB_CONSCIOUS.md | SUB_CONSCIOUS.md |\n\n### Category-Specific Thresholds\n\nBloat thresholds vary by category:\n\n| Category | Warning | Critical |\n|----------|---------|----------|\n| kai_core | 400 | 600 |\n| mission_control | 500 | 800 |\n| agent_cores | 300 | 500 |\n| skills | 600 | 1000 |\n| memory | 500 | 800 |\n| docs | 400 | 600 |\n| SUB_CONSCIOUS | 100 | 200 |\n\n### Issue Detection\n\n- **BLOAT_WARNING**: File exceeds warning threshold\n- **BLOAT_CRITICAL**: File exceeds critical threshold\n- **ORPHAN_WARNING**: File not modified in 30+ days\n- **DUPLICATE_CONTENT**: Same topic in multiple files\n- **BROKEN_WIKI_LINK**: Wiki-link may not match any file\n\n---\n\n## Recommendations\n\nThe analyzer generates actionable recommendations:\n\n| Action | Severity | Description | What To Do |\n|--------|----------|-------------|------------|\n| FIX_DUPLICATE_CONTENT | CRITICAL | Same content in 2+ files | Consolidate to single source |\n| REVIEW_BLOAT | WARN\u002FCRITICAL | File is too large | Review if legitimate or split |\n| REVIEW_ORPHAN | INFO | File hasn't been modified | Archive if no longer needed |\n| CHECK_DUPLICATE | WARN | Potential duplicate files | Verify if intentional or merge |\n| CHECK_BROKEN_LINK | INFO | Wiki-link may be broken | Verify if skill exists |\n| CHECK_MISSING | WARN | Expected core files not found | Create if needed |\n\n---\n\n## Fix Instructions for Agents\n\nWhen duplicate content is detected, follow these steps:\n\n### Step 1: Identify the True Source\n\nDetermine which file should be the single source:\n\n| Topic | Should Be In |\n|-------|-------------|\n| Reflex behaviors | SUB_CONSCIOUS.md |\n| Session bootstrap | AGENTS.md |\n| Procedures | OPERATING.md |\n| Identity principles | SOUL.md |\n| Knowledge index | KNOWLEDGE_GRAPH.md |\n\n### Step 2: Update Non-Source Files\n\nReplace duplicate content with references:\n\n```markdown\n**Topic:** See [[SUB_CONSCIOUS.md]] for procedures.\n```\n\n### Step 3: Verify Bootstrap Injection\n\nEnsure new files are injected at session start:\n\nCheck `~\u002F.openclaw\u002Fopenclaw.json`:\n```json\n{\n  \"hooks\": {\n    \"internal\": {\n      \"entries\": {\n        \"bootstrap-extra-files\": {\n          \"enabled\": true,\n          \"paths\": [\"SUB_CONSCIOUS.md\", \"self-improving\u002Fmemory.md\"]\n        }\n      }\n    }\n  }\n}\n```\n\n### Step 4: Commit Changes\n\n```bash\ngit add -A\ngit commit -m \"Fix duplicate content - consolidate to single source\"\n```\n\n---\n\n## Interpretation Guide\n\n### How to Use Results\n\n**Step 1: Prioritize by Severity**\n```\nCRITICAL → Review immediately\nWARN → Review during next maintenance\nINFO → Review during weekly cleanup\n```\n\n**Step 2: Check Single Source Validation**\n```\nFAIL → Fix duplicate content first (most important)\nPASS → Move to other issues\n```\n\n**Step 3: Understand Context**\n- **BLOAT** = Informational, not all need fixing\n  - Reference docs (skills\u002F*\u002Freferences\u002F*.md) can be legitimately large\n  - Research logs are consolidations - consider splitting by date\n  - Session logs - archive old ones\n  \n- **DUPLICATES** = Check if intentional\n  - IDENTITY files = Expected (agent templates)\n  - REVIEW files = May need consolidation\n  - LESSONS files = OK (different skills)\n  \n- **BROKEN LINKS** = Usually false positives\n  - Links to skills like [[blogwatcher]] ARE valid\n  - Skills have SKILL.md suffix - analyzer doesn't detect this\n  - Only flag if link to core file is truly broken\n\n**Step 4: Take Action**\n1. Don't auto-fix - review first\n2. Archive old session logs monthly\n3. Split large research logs by topic\n4. Keep reference docs as-is (legitimate)\n5. **Fix duplicate content** by consolidating to single source\n\n---\n\n## Integration\n\n### With Heartbeat\n\nAdd to your HEARTBEAT.md maintenance section:\n\n```markdown\n## 7. Memory + Workspace Maintenance\n\n### Run Workspace Analyzer\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --output \u002Ftmp\u002Fanalysis.json\n\n### Review Single Source Validation\n- Check for DUPLICATE_CONTENT issues\n- Fix by consolidating to single source\n\n### Review Recommendations\n- Check recommendations in output\n- Prioritize by severity\n- Fix issues manually\n```\n\n### Output to Memory\n\nSave analysis results for later review:\n\n```bash\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py \\\n  --output memory\u002F$(date +%Y-%m-%d)-workspace-analysis.json\n```\n\n---\n\n## Safety & Security\n\n### Read-Only\n- Never modifies files\n- Only reads and analyzes\n\n### No Secrets\n- Never reads API keys\n- Never accesses credentials\n- Only analyzes file metadata and content structure\n\n### Safe Output\n- Only contains: file paths, sizes, line counts, recommendations\n- No sensitive data exposed\n\n---\n\n## Limitations\n\n- **No auto-fix:** Script reports, agent must decide and act\n- **Wiki-link false positives:** Links to external skills may appear broken\n- **Date-based duplicate detection:** May miss non-date-based duplicates\n\n---\n\n## Examples\n\n### Sample Output - Single Source Validation\n\n```json\n{\n  \"single_source_validation\": {\n    \"skill_graph\": {\n      \"status\": \"FAIL\",\n      \"files\": [\"AGENTS.md\", \"OPERATING.md\", \"SOUL.md\"],\n      \"severity\": \"CRITICAL\",\n      \"recommendation\": \"Reference all to SUB_CONSCIOUS.md\"\n    },\n    \"memory_architecture\": {\n      \"status\": \"FAIL\",\n      \"files\": [\"AGENTS.md\", \"OPERATING.md\"],\n      \"severity\": \"CRITICAL\", \n      \"recommendation\": \"Remove duplicate in OPERATING.md\"\n    },\n    \"message_reactions\": {\n      \"status\": \"PASS\",\n      \"files\": [\"SUB_CONSCIOUS.md\"],\n      \"severity\": \"OK\"\n    }\n  }\n}\n```\n\n### Sample Output - Recommendations\n\n```json\n[\n  {\n    \"action\": \"FIX_DUPLICATE_CONTENT\",\n    \"topic\": \"skill_graph\",\n    \"files\": [\"AGENTS.md:285\", \"OPERATING.md:56\", \"SOUL.md:52\"],\n    \"severity\": \"CRITICAL\",\n    \"recommendation\": \"Replace with reference to SUB_CONSCIOUS.md\"\n  },\n  {\n    \"action\": \"REVIEW_BLOAT\",\n    \"file\": \"OPERATING.md\",\n    \"category\": \"kai_core\",\n    \"reason\": \"503 lines - consider splitting (threshold: 400)\",\n    \"severity\": \"WARN\"\n  }\n]\n```\n\n---\n\n## Skill Graph\n\nThis skill is related to:\n\n- [[mcporter]] - For MCP server analysis\n- [[clean-workspace]] - For actual cleanup tasks\n- [[qmd]] - For memory organization\n\n---\n\n## Changelog\n\n### v1.1.0 (2026-02-24)\n- Added single source of truth validation\n- Added duplicate content detection (same topics in multiple files)\n- Added FIX_DUPLICATE_CONTENT recommendation type\n- Added SUB_CONSCIOUS category\n- Added fix instructions for agents\n\n### v1.0 (2026-02-21)\n- Initial release\n- Basic file analysis\n- Core file detection\n- Bloat detection\n\n---\n\n*Last updated: 2026-02-24*\n","# Workspace Analyzer\n\n> \"Scans, analyzes, and reports. The agent decides.\"\n\n---\n\n## Overview\n\nA self-improving agent needs a clean workspace. This skill analyzes any OpenClaw workspace to:\n1. **Detect** core files dynamically (adapts to workspace changes)\n2. **Analyze** content for issues (bloat, duplicates, broken links)\n3. **Validate** single source of truth (content in multiple places)\n4. **Report** actionable insights for the agent to act upon\n\n**Key Principle:** The script analyzes → the agent decides → the agent acts.\n\n---\n\n## Installation\n\n```bash\n# Clone or copy to your skills folder\ncp -r workspace-analyzer\u002F ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002F\n```\n\n---\n\n## Usage\n\n### Run Analysis\n\n```bash\n# Full analysis (default)\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py\n\n# Quick scan (structure only, no content analysis)\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --quick\n\n# Specific workspace\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --root \u002Fpath\u002Fto\u002Fworkspace\n\n# Output to file\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --output report.json\n```\n\n---\n\n## Output Format\n\n```json\n{\n  \"scan_info\": {\n    \"root\": \"\u002Fhome\u002Fuser\u002F.openclaw\u002Fworkspace\",\n    \"timestamp\": \"2026-02-21T18:00:00Z\",\n    \"files_scanned\": 291\n  },\n  \"core_files_detected\": {\n    \"kai_core\": {\n      \"files\": [\"SOUL.md\", \"OPERATING.md\", ...],\n      \"count\": 11\n    },\n    \"mission_control\": {...},\n    \"agent_cores\": {...},\n    \"skills\": {...}\n  },\n  \"analysis\": {\n    \"SOUL.md\": {\n      \"category\": \"kai_core\",\n      \"line_count\": 450,\n      \"sections\": [...],\n      \"wiki_links\": [...],\n      \"issues\": [...]\n    }\n  },\n  \"single_source_validation\": {\n    \"skill_graph\": {\n      \"status\": \"PASS\u002FFAIL\",\n      \"locations\": [\"AGENTS.md\", \"OPERATING.md\", \"SOUL.md\"],\n      \"recommendation\": \"Reference all to SUB_CONSCIOUS.md\"\n    },\n    \"memory_architecture\": {...},\n    \"image_handling\": {...}\n  },\n  \"recommendations\": [\n    {\"action\": \"FIX_DUPLICATE_CONTENT\", \"topic\": \"skill_graph\", \"files\": [\"AGENTS.md\", \"OPERATING.md\"], \"severity\": \"CRITICAL\"},\n    {\"action\": \"REVIEW_BLOAT\", \"file\": \"OPERATING.md\", \"severity\": \"WARN\"},\n    {\"action\": \"CHECK_DUPLICATE\", \"severity\": \"WARN\"},\n    {\"action\": \"CHECK_BROKEN_LINK\", \"severity\": \"INFO\"}\n  ],\n  \"summary\": {\n    \"total_files\": 291,\n    \"total_issues\": 17,\n    \"total_recommendations\": 25\n  }\n}\n```\n\n---\n\n## Single Source of Truth Validation\n\n### What It Checks\n\nThe analyzer validates that each topic exists in exactly ONE place:\n\n| Topic | Expected Single Source |\n|-------|----------------------|\n| Skill Graph | SUB_CONSCIOUS.md |\n| Memory Architecture | OPERATING.md or SUB_CONSCIOUS.md |\n| Message Reactions | SUB_CONSCIOUS.md |\n| Image Handling | OPERATING.md |\n| Session Bootstrap | AGENTS.md |\n\n### Detection Logic\n\n1. **Scan all core files** for key section headings\n2. **Build content map** of where each topic appears\n3. **Flag violations** where topic appears in 2+ places\n4. **Recommend fix** by pointing to single source\n\n### Example Output\n\n```json\n{\n  \"single_source_validation\": {\n    \"skill_graph\": {\n      \"status\": \"FAIL\",\n      \"locations\": [\"AGENTS.md:285\", \"OPERATING.md:56\", \"SOUL.md:52\"],\n      \"severity\": \"CRITICAL\",\n      \"recommendation\": \"Consolidate to SUB_CONSCIOUS.md, reference from others\"\n    },\n    \"memory_architecture\": {\n      \"status\": \"FAIL\", \n      \"locations\": [\"AGENTS.md:157\", \"OPERATING.md:74\", \"OPERATING.md:193\"],\n      \"severity\": \"CRITICAL\",\n      \"recommendation\": \"Remove duplicate section at OPERATING.md:193\"\n    }\n  }\n}\n```\n\n---\n\n## Features\n\n### Dynamic Core File Detection\n\nAutomatically detects core files based on location patterns:\n\n| Category | Pattern | Example |\n|----------|---------|---------|\n| KAI Core | Root *.md | SOUL.md, OPERATING.md |\n| Mission Control | mission_control\u002F*GUIDELINES.md | MISSION_CONTROL_GUIDELINES.md |\n| Agent Cores | mission_control\u002Fagents\u002F*\u002F*.md | designer\u002FSOUL.md |\n| Skills | skills\u002F*\u002FSKILL.md | react-expert\u002FSKILL.md |\n| SUB_CONSCIOUS | Root SUB_CONSCIOUS.md | SUB_CONSCIOUS.md |\n\n### Category-Specific Thresholds\n\nBloat thresholds vary by category:\n\n| Category | Warning | Critical |\n|----------|---------|----------|\n| kai_core | 400 | 600 |\n| mission_control | 500 | 800 |\n| agent_cores | 300 | 500 |\n| skills | 600 | 1000 |\n| memory | 500 | 800 |\n| docs | 400 | 600 |\n| SUB_CONSCIOUS | 100 | 200 |\n\n### Issue Detection\n\n- **BLOAT_WARNING**: File exceeds warning threshold\n- **BLOAT_CRITICAL**: File exceeds critical threshold\n- **ORPHAN_WARNING**: File not modified in 30+ days\n- **DUPLICATE_CONTENT**: Same topic in multiple files\n- **BROKEN_WIKI_LINK**: Wiki-link may not match any file\n\n---\n\n## Recommendations\n\nThe analyzer generates actionable recommendations:\n\n| Action | Severity | Description | What To Do |\n|--------|----------|-------------|------------|\n| FIX_DUPLICATE_CONTENT | CRITICAL | Same content in 2+ files | Consolidate to single source |\n| REVIEW_BLOAT | WARN\u002FCRITICAL | File is too large | Review if legitimate or split |\n| REVIEW_ORPHAN | INFO | File hasn't been modified | Archive if no longer needed |\n| CHECK_DUPLICATE | WARN | Potential duplicate files | Verify if intentional or merge |\n| CHECK_BROKEN_LINK | INFO | Wiki-link may be broken | Verify if skill exists |\n| CHECK_MISSING | WARN | Expected core files not found | Create if needed |\n\n---\n\n## Fix Instructions for Agents\n\nWhen duplicate content is detected, follow these steps:\n\n### Step 1: Identify the True Source\n\nDetermine which file should be the single source:\n\n| Topic | Should Be In |\n|-------|-------------|\n| Reflex behaviors | SUB_CONSCIOUS.md |\n| Session bootstrap | AGENTS.md |\n| Procedures | OPERATING.md |\n| Identity principles | SOUL.md |\n| Knowledge index | KNOWLEDGE_GRAPH.md |\n\n### Step 2: Update Non-Source Files\n\nReplace duplicate content with references:\n\n```markdown\n**Topic:** See [[SUB_CONSCIOUS.md]] for procedures.\n```\n\n### Step 3: Verify Bootstrap Injection\n\nEnsure new files are injected at session start:\n\nCheck `~\u002F.openclaw\u002Fopenclaw.json`:\n```json\n{\n  \"hooks\": {\n    \"internal\": {\n      \"entries\": {\n        \"bootstrap-extra-files\": {\n          \"enabled\": true,\n          \"paths\": [\"SUB_CONSCIOUS.md\", \"self-improving\u002Fmemory.md\"]\n        }\n      }\n    }\n  }\n}\n```\n\n### Step 4: Commit Changes\n\n```bash\ngit add -A\ngit commit -m \"Fix duplicate content - consolidate to single source\"\n```\n\n---\n\n## Interpretation Guide\n\n### How to Use Results\n\n**Step 1: Prioritize by Severity**\n```\nCRITICAL → Review immediately\nWARN → Review during next maintenance\nINFO → Review during weekly cleanup\n```\n\n**Step 2: Check Single Source Validation**\n```\nFAIL → Fix duplicate content first (most important)\nPASS → Move to other issues\n```\n\n**Step 3: Understand Context**\n- **BLOAT** = Informational, not all need fixing\n  - Reference docs (skills\u002F*\u002Freferences\u002F*.md) can be legitimately large\n  - Research logs are consolidations - consider splitting by date\n  - Session logs - archive old ones\n  \n- **DUPLICATES** = Check if intentional\n  - IDENTITY files = Expected (agent templates)\n  - REVIEW files = May need consolidation\n  - LESSONS files = OK (different skills)\n  \n- **BROKEN LINKS** = Usually false positives\n  - Links to skills like [[blogwatcher]] ARE valid\n  - Skills have SKILL.md suffix - analyzer doesn't detect this\n  - Only flag if link to core file is truly broken\n\n**Step 4: Take Action**\n1. Don't auto-fix - review first\n2. Archive old session logs monthly\n3. Split large research logs by topic\n4. Keep reference docs as-is (legitimate)\n5. **Fix duplicate content** by consolidating to single source\n\n---\n\n## Integration\n\n### With Heartbeat\n\nAdd to your HEARTBEAT.md maintenance section:\n\n```markdown\n## 7. Memory + Workspace Maintenance\n\n### Run Workspace Analyzer\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py --output \u002Ftmp\u002Fanalysis.json\n\n### Review Single Source Validation\n- Check for DUPLICATE_CONTENT issues\n- Fix by consolidating to single source\n\n### Review Recommendations\n- Check recommendations in output\n- Prioritize by severity\n- Fix issues manually\n```\n\n### Output to Memory\n\nSave analysis results for later review:\n\n```bash\npython3 skills\u002Fworkspace-analyzer\u002Fscripts\u002Fanalyzer.py \\\n  --output memory\u002F$(date +%Y-%m-%d)-workspace-analysis.json\n```\n\n---\n\n## Safety & Security\n\n### Read-Only\n- Never modifies files\n- Only reads and analyzes\n\n### No Secrets\n- Never reads API keys\n- Never accesses credentials\n- Only analyzes file metadata and content structure\n\n### Safe Output\n- Only contains: file paths, sizes, line counts, recommendations\n- No sensitive data exposed\n\n---\n\n## Limitations\n\n- **No auto-fix:** Script reports, agent must decide and act\n- **Wiki-link false positives:** Links to external skills may appear broken\n- **Date-based duplicate detection:** May miss non-date-based duplicates\n\n---\n\n## Examples\n\n### Sample Output - Single Source Validation\n\n```json\n{\n  \"single_source_validation\": {\n    \"skill_graph\": {\n      \"status\": \"FAIL\",\n      \"files\": [\"AGENTS.md\", \"OPERATING.md\", \"SOUL.md\"],\n      \"severity\": \"CRITICAL\",\n      \"recommendation\": \"Reference all to SUB_CONSCIOUS.md\"\n    },\n    \"memory_architecture\": {\n      \"status\": \"FAIL\",\n      \"files\": [\"AGENTS.md\", \"OPERATING.md\"],\n      \"severity\": \"CRITICAL\", \n      \"recommendation\": \"Remove duplicate in OPERATING.md\"\n    },\n    \"message_reactions\": {\n      \"status\": \"PASS\",\n      \"files\": [\"SUB_CONSCIOUS.md\"],\n      \"severity\": \"OK\"\n    }\n  }\n}\n```\n\n### Sample Output - Recommendations\n\n```json\n[\n  {\n    \"action\": \"FIX_DUPLICATE_CONTENT\",\n    \"topic\": \"skill_graph\",\n    \"files\": [\"AGENTS.md:285\", \"OPERATING.md:56\", \"SOUL.md:52\"],\n    \"severity\": \"CRITICAL\",\n    \"recommendation\": \"Replace with reference to SUB_CONSCIOUS.md\"\n  },\n  {\n    \"action\": \"REVIEW_BLOAT\",\n    \"file\": \"OPERATING.md\",\n    \"category\": \"kai_core\",\n    \"reason\": \"503 lines - consider splitting (threshold: 400)\",\n    \"severity\": \"WARN\"\n  }\n]\n```\n\n---\n\n## Skill Graph\n\nThis skill is related to:\n\n- [[mcporter]] - For MCP server analysis\n- [[clean-workspace]] - For actual cleanup tasks\n- [[qmd]] - For memory organization\n\n---\n\n## Changelog\n\n### v1.1.0 (2026-02-24)\n- Added single source of truth validation\n- Added duplicate content detection (same topics in multiple files)\n- Added FIX_DUPLICATE_CONTENT recommendation type\n- Added SUB_CONSCIOUS category\n- Added fix instructions for agents\n\n### v1.0 (2026-02-21)\n- Initial release\n- Basic file analysis\n- Core file detection\n- Bloat detection\n\n---\n\n*Last updated: 2026-02-24*\n",{"name":5,"version":24,"metadata":25,"description":7},"1.1.0",{"openclaw":26},{"tags":27,"emoji":32,"requires":33},[28,29,30,31],"workspace","maintenance","analysis","health","📊",{"bins":34},[35],"python3","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fw\u002Fworkspace-analyzer",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill workspace-analyzer",{"tool":51,"command":52},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill workspace-analyzer",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill workspace-analyzer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fw\u002Fworkspace-analyzer\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]