← 返回 Skills 市场
luojingwei123

G.workspace

作者 luojingwei123 · GitHub ↗ · v3.2.1 · MIT-0
cross-platform ⚠ suspicious
166
总下载
0
收藏
0
当前安装
12
版本数
在 OpenClaw 中安装
/install gworkspace
功能描述
G.workspace — 群共享文件空间插件。通过 OpenClaw 插件注册 Discord 斜杠命令(/ws_create, /ws_files 等),代理到 G.workspace REST API。单 bot 架构,无冲突。包含插件源码,安装后需手动部署到 extensions 目录。
使用说明 (SKILL.md)

G.workspace Plugin

为 Discord 服务器提供共享文件空间,支持文件管理、版本控制、批注审阅。

架构

用户 ←→ Discord ←→ OpenClaw (插件处理斜杠命令) ←→ G.workspace REST API (localhost:3080)
  • OpenClaw 插件:注册 12 个 /ws_* 斜杠命令 + 5 个 AI tools
  • G.workspace 服务:Web-only 模式运行,提供 REST API 和 Web 界面
  • 单 Bot:所有 Discord 交互通过 OpenClaw 的 bot 处理,不需要额外 bot

安装步骤

1. 部署 G.workspace 后端

git clone https://github.com/gworkspace/gworkspace.git ~/Workspace
cd ~/Workspace
npm install

配置 .env

# G.workspace Web-only 模式(不连 Discord)
DISCORD_TOKEN=
DISCORD_CLIENT_ID=
DISCORD_BOT_TOKEN=
PORT=3080
BASE_URL=http://localhost:3080
DATA_DIR=./data

启动:

node src/index.js

2. 安装 OpenClaw 插件

plugin/ 目录复制到 OpenClaw extensions:

cp -r plugin/ ~/.openclaw/extensions/gworkspace/

openclaw.json 中启用:

{
  "plugins": {
    "entries": {
      "gworkspace": {
        "enabled": true,
        "config": { "port": 3080 }
      }
    },
    "allow": ["gworkspace"],
    "installs": {
      "gworkspace": {
        "source": "path",
        "sourcePath": "~/.openclaw/extensions/gworkspace",
        "installPath": "~/.openclaw/extensions/gworkspace",
        "version": "3.1.0"
      }
    }
  }
}

重启 OpenClaw 即可。

斜杠命令

命令 说明
/ws_create [name] 创建群共享文件空间(已有空间时弹出确认按钮)
/ws_info 查看空间信息和统计
/ws_files [folder] 查看文件列表
/ws_file \x3Cfilename> 查看文件详情
/ws_search \x3Ckeyword> 搜索文件
/ws_delete \x3Cfilename> 删除文件(移入回收站)
/ws_versions \x3Cfilename> 查看版本历史
/ws_ref \x3Cfilename> 生成文件引用链接
/ws_upload 获取上传链接
/ws_trash [action] [filename] 管理回收站
/ws_invite 获取空间访问链接
/ws_members 查看成员列表

AI Tools

插件同时注册 5 个 AI tools,供 agent 在对话中使用:

  • gworkspace_files — 列出文件
  • gworkspace_create — 创建空间
  • gworkspace_tasks — 获取批注任务
  • gworkspace_claim_task — 认领任务
  • gworkspace_complete_task — 完成任务

注意事项

  • G.workspace 必须在本地运行(默认 localhost:3080)
  • 插件通过 REST API 与 G.workspace 通信,不直接连接 Discord
  • 不要同时让 G.workspace 后端连接 Discord(设置 DISCORD_TOKEN= 为空)
安全使用建议
This plugin appears to do what it says (proxy slash commands to a local G.workspace service), but exercise caution before deploying: 1) The SKILL.md asks you to git clone and run a separate backend from GitHub — review that repository's code (and README) before npm install / node src/index.js, or run it inside an isolated container/VM. 2) The plugin hardcodes GW_BASE to http://localhost:3080 while the manifest and install steps mention a configurable port — verify the plugin actually uses any configuration you set (the mismatch suggests sloppy packaging). 3) Do not supply Discord tokens unless you trust the backend code; if you must, use least-privilege test credentials. 4) If you proceed, run the backend only on localhost or behind appropriate firewall rules and audit its network behaviour. If you want higher assurance, ask the publisher for the backend source bundle or a signed release and/or have someone audit the backend code before running it on production infrastructure.
功能分析
Type: OpenClaw Skill Name: gworkspace Version: 3.2.1 The G.workspace skill bundle is a legitimate integration designed to provide shared file management for Discord servers by proxying commands to a local REST API. The implementation in `plugin/index.ts` uses standard fetch calls to `localhost:3080` and contains no evidence of data exfiltration, obfuscation, or malicious execution. The instructions in `SKILL.md` are consistent with the code's functionality, and the AI tools are appropriately scoped to the stated purpose of file and task management.
能力评估
Purpose & Capability
The name/description (Discord slash commands proxying to a local G.workspace REST API) matches the included plugin code which issues HTTP requests to http://localhost:3080 and registers slash commands and interactive handlers.
Instruction Scope
SKILL.md instructs you to clone and run a separate backend (github.com/gworkspace/gworkspace) and to copy the plugin into OpenClaw extensions — this is consistent with the plugin's purpose. However the instructions ask you to set a port in openclaw.json but the plugin code hardcodes GW_BASE = 'http://localhost:3080' and does not read a config port, which is an inconsistency (sloppy implementation) and could cause confusion during deployment.
Install Mechanism
There is no packaged install spec, but SKILL.md tells the user to git clone and run a backend from GitHub. While GitHub is a known host, cloning and running an external repo installs/executed arbitrary code on the host — this is a moderate-risk action and should be reviewed manually before running. The plugin itself is included, but the backend is not bundled.
Credentials
The skill declares no required env vars or credentials. SKILL.md suggests leaving Discord tokens empty for web-only mode. There are no unexpected credential requests in the plugin code. If you later configure the backend to connect to Discord you will need tokens — only provide those if you trust the backend.
Persistence & Privilege
always is false and the skill behaves like a normal OpenClaw plugin (registers commands, interactive handlers, and AI tools). It does not request elevated agent-wide privileges or modify other skills. Autonomous invocation is allowed by default (expected).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gworkspace
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gworkspace 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.2.1
v3.2.1: restore options arrays for Discord slash command parameter registration (name, filename, keyword, folder, action)
v3.2.0
v3.2.0: replace force:yes with interactive confirm buttons on Discord; remove force option from ws_create
v3.1.4
Fix: dedupe guard prevents triple command registration; friendlier create-exists prompt
v3.1.3
Fix: add force option to ws_create (prompt when workspace exists); fix duplicate command registration (remove plugin from skill dir)
v3.1.2
Fix: package.json extension path ./src/index.ts -> ./index.ts; improve error messages for service-down
v3.1.1
Fix: improve error messages - distinguish service-down (ECONNREFUSED/fetch failed) vs API errors vs timeout
v3.1.0
v3.1.0: 单bot架构,OpenClaw插件模式,12个斜杠命令+5个AI tools,包含插件源码
v2.0.4
文档全面更新:修复批注 Unknown Channel 说明、补充代理配置(socks5 注意事项)、完善 autocomplete 交互说明、添加故障排查指南
v2.0.3
v2.0.3: fix ws_create guild/channel ID confusion
v2.0.2
v2.0.2: ws_create 改为直接调API创建空间,不再跳转空间列表页面
v2.0.1
v2.0.1: 修复端口硬编码(改读pluginConfig)、缓存加5分钟TTL、fetch加8秒超时、catch加日志、版本号统一、references文档更新
v2.0.0
v2.0.0: 零配置插件,自动复用 OpenClaw Discord Token,11个斜杠命令 + 5个AI工具
元数据
Slug gworkspace
版本 3.2.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 12
常见问题

G.workspace 是什么?

G.workspace — 群共享文件空间插件。通过 OpenClaw 插件注册 Discord 斜杠命令(/ws_create, /ws_files 等),代理到 G.workspace REST API。单 bot 架构,无冲突。包含插件源码,安装后需手动部署到 extensions 目录。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 166 次。

如何安装 G.workspace?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gworkspace」即可一键安装,无需额外配置。

G.workspace 是免费的吗?

是的,G.workspace 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

G.workspace 支持哪些平台?

G.workspace 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 G.workspace?

由 luojingwei123(@luojingwei123)开发并维护,当前版本 v3.2.1。

💬 留言讨论