Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计提醒

agent-workspace-managerAgent 工作区经理

Agent Skill

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

总安装

4,079

周安装

165

GitHub Stars

公开资料未说明

下载量

1,280
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install agent-workspace-manager

简介

通过初始化结构、分类文件、审核放置、清理内容和建议扩展来组织和维护代理工作区目录。

SKILL.md

name
agent-workspace-manager
description
Manage and optimize agent workspace directory structure. Use when: (1) initializing a new agent workspace with proper structure, (2) auditing document placement to ensure files are in correct functional directories, (3) cleaning up expired or redundant content, (4) detecting need for directory structure expansion, or (5) maintaining workspace health across multiple agents. Triggers on phrases like "organize workspace", "cleanup agent directory", "workspace structure", "optimize agent files".

Agent Workspace Manager

Overview

This skill provides a systematic approach to organizing and maintaining agent workspace directories. It ensures documents are placed in appropriate functional directories, detects structure issues, and maintains content freshness.

Core Capabilities

1. Structure Initialization

Initialize a standardized workspace structure for new agents:

workspace/
├── MEMORY.md              # Core memory index (agent reads this first)
├── memory/                # Time-based memory fragments
├── knowledge/             # Stable domain knowledge
│   └── sql/               # Core business SQL (NEW)
├── tasks/                 # Temporary/project-specific items
├── decisions/             # Decision records with rationale
├── preferences/           # User preferences and settings
├── archives/              # Expired but preserved content
│   └── sql_versions/      # Historical SQL versions (NEW)
├── templates/             # Reusable templates
│   └── sql/               # Reusable SQL templates (NEW)
└── scripts/               # Scripts and utilities (NEW)

Usage: When setting up a new workspace, create this structure to enable efficient information retrieval.

2. Document Classification

Every document must be placed in a directory matching its functional purpose:

Document TypeDirectoryCharacteristics
Events, conversations, time-based recordsmemory/Has timestamp, may expire
Domain knowledge, technical docsknowledge/Stable, long-term valid
Core business SQLknowledge/sql/Long-term used SQL
Tasks, todos, project itemstasks/Temporary, project-bound
Important choices with rationaledecisions/Decision history, traceable
User habits, preferencespreferences/Personalization config
Expired but valuable contentarchives/Preserved for reference
Historical SQL versionsarchives/sql_versions/Deprecated SQL
Reusable patterns, templatestemplates/Copy-paste ready
Reusable SQL templatestemplates/sql/Standard queries
Scripts (.py, .sh)scripts/Utility scripts

Classification Rule: Before creating any document, determine its primary function. Place it in the matching directory. Never place files in incorrect directories.

3. Code File Classification (NEW)

Code files (SQL, Python, Shell, etc.) must follow these rules:

File TypeDirectoryPurpose
.sql (core business)knowledge/sql/Long-term used SQL queries
.sql (templates)templates/sql/Reusable standard queries
.sql (historical)archives/sql_versions/Deprecated SQL versions
.py (scripts)scripts/Python utility scripts
.sh (scripts)scripts/Shell utility scripts
.json (config)config/ or rootConfiguration files

SQL File Naming Rules:

  • DO: Use semantic names: 神策宽表转JSON.sql
  • DON'T: Use version suffixes: 神策宽表转JSON_v1.sql, 神策宽表转JSON_最终版.sql
  • DON'T: Use functional suffixes: 神策宽表转JSON_修正版.sql, 神策宽表转JSON_完整版.sql

When to Create New Version:

  • If SQL needs update, modify the existing file
  • Archive old version to archives/sql_versions/ with timestamp if needed
  • Keep only ONE active version in knowledge/sql/

4. Workspace Health Check

Run health checks to identify issues:

  • Misplaced files: Documents in wrong directories
  • Duplicates: Similar content in multiple files
  • Code file duplicates: Multiple versions of same SQL/script (NEW)
  • Stale content: Outdated information that needs refresh
  • Orphan files: Files without clear purpose or references
  • Naming violations: Files with version suffixes (NEW)

Output: A report with specific file recommendations.

5. Duplicate File Detection (ENHANCED)

Detect duplicate files using these methods:

For Document Files (.md)

  1. Name similarity: Files with similar names (e.g., report-v1.md and report-v2.md)
  2. Content similarity: Files with >80% content overlap
  3. Functional similarity: Files serving the same purpose

For Code Files (.sql, .py, .sh)

  1. Version suffixes: Files with _v1, _v2, _final, _修正版, _完整版 etc.
  2. Same functionality: Multiple SQL files for the same transformation/query
  3. Timestamp in name: Files with timestamps that could be archived

Detection Command:

# Find SQL files with version suffixes
find . -name "*.sql" -type f | grep -E "(_v[0-9]|_最终|_完整|_修正|_修复)"

# Find duplicate MD files by name pattern
find . -name "*.md" -type f | grep -E "(_v[0-9]|_最终|_完整)"

6. Content Freshness Maintenance

Maintain document freshness through:

  1. Merge: Combine duplicate or similar files, preserving all key information
  2. Archive: Move expired content to archives/ with timestamp
  3. Refresh: Update stale knowledge with latest information
  4. Prune: Remove truly redundant content (only when no key info is lost)
  5. Consolidate: Merge multiple versions into one, archive old versions (NEW)

Safety Principle: Never delete content that might contain unique valuable information. Archive instead.

7. Structure Extension Detection

When existing directories cannot accommodate new functional needs:

  1. Detect: Identify documents that don't fit current categories
  2. Propose: Suggest new directories or structure reorganization
  3. Implement: Create new directories following naming conventions
  4. Document: Update this skill's structure reference

Example: If knowledge/ grows too large with mixed domain types, split into knowledge/product/, knowledge/technical/, knowledge/business/.

Workflow

For New Workspace Setup

  1. Determine agent type (personal assistant, project manager, knowledge base, etc.)
  2. See references/structure-templates.md for appropriate template
  3. Create directories and initial files
  4. Set up MEMORY.md as the entry point

For Workspace Audit

  1. Scan all files in workspace
  2. Classify each file by function
  3. Check for misplaced files
  4. Detect duplicate files (including code files)
  5. Generate health report
  6. Propose fixes for user approval

For Content Cleanup

  1. Identify duplicates/similar files
  2. Detect version-suffixed files (NEW)
  3. Propose merge candidates
  4. Identify expired content
  5. Archive with preservation
  6. Verify no key information is lost

For Code File Cleanup (NEW)

  1. Scan all code files (.sql, .py, .sh)
  2. Identify files with version suffixes
  3. Determine the latest/best version
  4. Keep latest in appropriate directory (knowledge/sql/ or templates/sql/)
  5. Archive old versions to archives/sql_versions/
  6. Remove version suffixes from filenames

Resources

references/

  • structure-templates.md - Pre-defined workspace templates for different agent types
  • classification-rules.md - Detailed rules for document classification (UPDATED)

Multi-Agent Sharing

This skill is designed to be copyable across agents:

  1. Install the same skill in multiple agent workspaces
  2. Each agent follows the same structure conventions
  3. Shared knowledge can be exchanged between agents
  4. Consistent structure enables cross-agent collaboration

Changelog

v1.1 (2026-03-25)

  • Added code file classification rules (SQL, Python, Shell)
  • Added duplicate file detection methods
  • Added file naming best practices
  • Enhanced workspace health check to detect version-suffixed files
  • Added SQL-specific cleanup workflow

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.01%
按下载量换算1,075

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install agent-workspace-manager 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills