Token导航 LogoToken导航

Agent Skill · 研究检索

workspace-analyzer(工作空间分析器)

workspace-analyzer 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

workspace-analyzer 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 8,673。

总安装 15,853周安装 654GitHub Stars 公开资料未说明下载 5,180核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:workspace-analyzer(工作空间分析器)
来源仓库:https://github.com/zendenho7/workspace-analyzer
安装命令:
openclaw skills install workspace-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install workspace-analyzer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

工作空间分析器用于诊断 OpenClaw 工作区结构和内容问题。识别维护需求、重复项和组织缺陷。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。输出 JSON 报告供进一步处理。运行前应排除敏感路径以防信息泄露。建议结合审计结果制定清理计划。

workspace-analyzer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install workspace-analyzer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

workspace-analyzer 怎么安装?

在终端执行 openclaw skills install workspace-analyzer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

workspace-analyzer 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

workspace-analyzer 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

workspace-analyzer 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

workspace-analyzer 用的人多吗?

公开数据是累计安装 15,853 次,近一周安装 654 次,下载 5,180 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

workspace-analyzer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
workspace-analyzer

工作空间分析器 · 本页

15,853—只读MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
workspace-analyzer
description
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.
version
1.1.0
metadata

Workspace Analyzer

"Scans, analyzes, and reports. The agent decides."

Overview

A self-improving agent needs a clean workspace. This skill analyzes any OpenClaw workspace to:

  1. Detect core files dynamically (adapts to workspace changes)
  2. Analyze content for issues (bloat, duplicates, broken links)
  3. Validate single source of truth (content in multiple places)
  4. Report actionable insights for the agent to act upon

Key Principle: The script analyzes → the agent decides → the agent acts.


Installation

# Clone or copy to your skills folder
cp -r workspace-analyzer/ ~/.openclaw/workspace/skills/

Usage

Run Analysis

# Full analysis (default)
python3 skills/workspace-analyzer/scripts/analyzer.py

# Quick scan (structure only, no content analysis)
python3 skills/workspace-analyzer/scripts/analyzer.py --quick

# Specific workspace
python3 skills/workspace-analyzer/scripts/analyzer.py --root /path/to/workspace

# Output to file
python3 skills/workspace-analyzer/scripts/analyzer.py --output report.json

Output Format

{
  "scan_info": {
    "root": "/home/user/.openclaw/workspace",
    "timestamp": "2026-02-21T18:00:00Z",
    "files_scanned": 291
  },
  "core_files_detected": {
    "kai_core": {
      "files": ["SOUL.md", "OPERATING.md", ...],
      "count": 11
    },
    "mission_control": {...},
    "agent_cores": {...},
    "skills": {...}
  },
  "analysis": {
    "SOUL.md": {
      "category": "kai_core",
      "line_count": 450,
      "sections": [...],
      "wiki_links": [...],
      "issues": [...]
    }
  },
  "single_source_validation": {
    "skill_graph": {
      "status": "PASS/FAIL",
      "locations": ["AGENTS.md", "OPERATING.md", "SOUL.md"],
      "recommendation": "Reference all to SUB_CONSCIOUS.md"
    },
    "memory_architecture": {...},
    "image_handling": {...}
  },
  "recommendations": [
    {"action": "FIX_DUPLICATE_CONTENT", "topic": "skill_graph", "files": ["AGENTS.md", "OPERATING.md"], "severity": "CRITICAL"},
    {"action": "REVIEW_BLOAT", "file": "OPERATING.md", "severity": "WARN"},
    {"action": "CHECK_DUPLICATE", "severity": "WARN"},
    {"action": "CHECK_BROKEN_LINK", "severity": "INFO"}
  ],
  "summary": {
    "total_files": 291,
    "total_issues": 17,
    "total_recommendations": 25
  }
}

Single Source of Truth Validation

What It Checks

The analyzer validates that each topic exists in exactly ONE place:

TopicExpected Single Source
Skill GraphSUB_CONSCIOUS.md
Memory ArchitectureOPERATING.md or SUB_CONSCIOUS.md
Message ReactionsSUB_CONSCIOUS.md
Image HandlingOPERATING.md
Session BootstrapAGENTS.md

Detection Logic

  1. Scan all core files for key section headings
  2. Build content map of where each topic appears
  3. Flag violations where topic appears in 2+ places
  4. Recommend fix by pointing to single source

Example Output

{
  "single_source_validation": {
    "skill_graph": {
      "status": "FAIL",
      "locations": ["AGENTS.md:285", "OPERATING.md:56", "SOUL.md:52"],
      "severity": "CRITICAL",
      "recommendation": "Consolidate to SUB_CONSCIOUS.md, reference from others"
    },
    "memory_architecture": {
      "status": "FAIL", 
      "locations": ["AGENTS.md:157", "OPERATING.md:74", "OPERATING.md:193"],
      "severity": "CRITICAL",
      "recommendation": "Remove duplicate section at OPERATING.md:193"
    }
  }
}

Features

Dynamic Core File Detection

Automatically detects core files based on location patterns:

CategoryPatternExample
KAI CoreRoot *.mdSOUL.md, OPERATING.md
Mission Controlmission_control/*GUIDELINES.mdMISSION_CONTROL_GUIDELINES.md
Agent Coresmission_control/agents/*/*.mddesigner/SOUL.md
Skillsskills/*/SKILL.mdreact-expert/SKILL.md
SUB_CONSCIOUSRoot SUB_CONSCIOUS.mdSUB_CONSCIOUS.md

Category-Specific Thresholds

Bloat thresholds vary by category:

CategoryWarningCritical
kai_core400600
mission_control500800
agent_cores300500
skills6001000
memory500800
docs400600
SUB_CONSCIOUS100200

Issue Detection

  • BLOAT_WARNING: File exceeds warning threshold
  • BLOAT_CRITICAL: File exceeds critical threshold
  • ORPHAN_WARNING: File not modified in 30+ days
  • DUPLICATE_CONTENT: Same topic in multiple files
  • BROKEN_WIKI_LINK: Wiki-link may not match any file

Recommendations

The analyzer generates actionable recommendations:

ActionSeverityDescriptionWhat To Do
FIX_DUPLICATE_CONTENTCRITICALSame content in 2+ filesConsolidate to single source
REVIEW_BLOATWARN/CRITICALFile is too largeReview if legitimate or split
REVIEW_ORPHANINFOFile hasn't been modifiedArchive if no longer needed
CHECK_DUPLICATEWARNPotential duplicate filesVerify if intentional or merge
CHECK_BROKEN_LINKINFOWiki-link may be brokenVerify if skill exists
CHECK_MISSINGWARNExpected core files not foundCreate if needed

Fix Instructions for Agents

When duplicate content is detected, follow these steps:

Step 1: Identify the True Source

Determine which file should be the single source:

TopicShould Be In
Reflex behaviorsSUB_CONSCIOUS.md
Session bootstrapAGENTS.md
ProceduresOPERATING.md
Identity principlesSOUL.md
Knowledge indexKNOWLEDGE_GRAPH.md

Step 2: Update Non-Source Files

Replace duplicate content with references:

**Topic:** See [[SUB_CONSCIOUS.md]] for procedures.

Step 3: Verify Bootstrap Injection

Ensure new files are injected at session start:

Check ~/.openclaw/openclaw.json:

{
  "hooks": {
    "internal": {
      "entries": {
        "bootstrap-extra-files": {
          "enabled": true,
          "paths": ["SUB_CONSCIOUS.md", "self-improving/memory.md"]
        }
      }
    }
  }
}

Step 4: Commit Changes

git add -A
git commit -m "Fix duplicate content - consolidate to single source"

Interpretation Guide

How to Use Results

Step 1: Prioritize by Severity

CRITICAL → Review immediately
WARN → Review during next maintenance
INFO → Review during weekly cleanup

Step 2: Check Single Source Validation

FAIL → Fix duplicate content first (most important)
PASS → Move to other issues

Step 3: Understand Context

  • BLOAT = Informational, not all need fixing

- Reference docs (skills/*/references/*.md) can be legitimately large - Research logs are consolidations - consider splitting by date - Session logs - archive old ones

  • DUPLICATES = Check if intentional

- IDENTITY files = Expected (agent templates) - REVIEW files = May need consolidation - LESSONS files = OK (different skills)

  • BROKEN LINKS = Usually false positives

- Links to skills like [[blogwatcher]] ARE valid - Skills have SKILL.md suffix - analyzer doesn't detect this - Only flag if link to core file is truly broken

Step 4: Take Action

  1. Don't auto-fix - review first
  2. Archive old session logs monthly
  3. Split large research logs by topic
  4. Keep reference docs as-is (legitimate)
  5. Fix duplicate content by consolidating to single source

Integration

With Heartbeat

Add to your HEARTBEAT.md maintenance section:

## 7. Memory + Workspace Maintenance

### Run Workspace Analyzer
python3 skills/workspace-analyzer/scripts/analyzer.py --output /tmp/analysis.json

### Review Single Source Validation
- Check for DUPLICATE_CONTENT issues
- Fix by consolidating to single source

### Review Recommendations
- Check recommendations in output
- Prioritize by severity
- Fix issues manually

Output to Memory

Save analysis results for later review:

python3 skills/workspace-analyzer/scripts/analyzer.py \
  --output memory/$(date +%Y-%m-%d)-workspace-analysis.json

Safety & Security

Read-Only

  • Never modifies files
  • Only reads and analyzes

No Secrets

  • Never reads API keys
  • Never accesses credentials
  • Only analyzes file metadata and content structure

Safe Output

  • Only contains: file paths, sizes, line counts, recommendations
  • No sensitive data exposed

Limitations

  • No auto-fix: Script reports, agent must decide and act
  • Wiki-link false positives: Links to external skills may appear broken
  • Date-based duplicate detection: May miss non-date-based duplicates

Examples

Sample Output - Single Source Validation

{
  "single_source_validation": {
    "skill_graph": {
      "status": "FAIL",
      "files": ["AGENTS.md", "OPERATING.md", "SOUL.md"],
      "severity": "CRITICAL",
      "recommendation": "Reference all to SUB_CONSCIOUS.md"
    },
    "memory_architecture": {
      "status": "FAIL",
      "files": ["AGENTS.md", "OPERATING.md"],
      "severity": "CRITICAL", 
      "recommendation": "Remove duplicate in OPERATING.md"
    },
    "message_reactions": {
      "status": "PASS",
      "files": ["SUB_CONSCIOUS.md"],
      "severity": "OK"
    }
  }
}

Sample Output - Recommendations

[
  {
    "action": "FIX_DUPLICATE_CONTENT",
    "topic": "skill_graph",
    "files": ["AGENTS.md:285", "OPERATING.md:56", "SOUL.md:52"],
    "severity": "CRITICAL",
    "recommendation": "Replace with reference to SUB_CONSCIOUS.md"
  },
  {
    "action": "REVIEW_BLOAT",
    "file": "OPERATING.md",
    "category": "kai_core",
    "reason": "503 lines - consider splitting (threshold: 400)",
    "severity": "WARN"
  }
]

Skill Graph

This skill is related to:

  • [[mcporter]] - For MCP server analysis
  • [[clean-workspace]] - For actual cleanup tasks
  • [[qmd]] - For memory organization

Changelog

v1.1.0 (2026-02-24)

  • Added single source of truth validation
  • Added duplicate content detection (same topics in multiple files)
  • Added FIX_DUPLICATE_CONTENT recommendation type
  • Added SUB_CONSCIOUS category
  • Added fix instructions for agents

v1.0 (2026-02-21)

  • Initial release
  • Basic file analysis
  • Core file detection
  • Bloat detection

*Last updated: 2026-02-24*

平台分布

OpenClaw

76.77%
按下载量换算3,977

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills