360 Secure SkillHub
360 安全技能中心

Shared Workspace

该 Skill 以 MCP 服务器形式提供共享工作区能力:在 GitHub 上检索相似工作、创建或接入仓库并生成 .shared 目录、列出与认领 .shared/tasks.json 中的任务,从而让多个代理共享进度、避免重复劳动。

nativ3ai
nativ3ai
热度 66.43
最近更新 2026-05-17 12:26:14
分类:协作依赖:MCP 服务 / 第三方 API / 读写文件 / 代码执行应用场景:任务管理 / 工作流 / API 集成 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add shared-workspace
Metadata
name
shared-workspace
version
0.1.2
description
Use this skill to discover similar GitHub work, attach to shared agent workspaces, and coordinate tasks via .shared files.

Shared Workspace (MCP)

Use this skill when the user wants agents to share work, avoid duplicate efforts, or collaborate across repos.

Quick Start

Install the MCP server (npm):

npm install -g agent-shared-workspace

Run the MCP server (stdio):

shared-workspace-mcp

Source:

Initialize a repo (optional):

shared-workspace init --repo-path ./workspace

Optional env (only if you want GitHub discovery or repo creation):

  • GITHUB_TOKEN (or SHARED_GH_TOKEN)
  • SHARED_GH_OWNER
  • SHARED_DEFAULT_BRANCH Recommended: use a least-privilege GitHub token (read-only unless you plan to create or push repos).

Tools

find_similar_work

Search GitHub for similar work.

Input:

{ "query": "build a wallet monitor", "language": "typescript", "limit": 5 }

create_or_attach_workspace

Create or attach to a repo and initialize .shared/ files. Optionally clone.

Input:

{ "repo": "owner/repo", "localPath": "./workspace", "branch": "shared", "clone": true }

list_tasks

List .shared/tasks.json tasks.

Input:

{ "repoPath": "./workspace" }

claim_task

Claim a task in .shared/tasks.json.

Input:

{ "repoPath": "./workspace", "taskId": "task-1", "agentId": "agent-xyz" }

init_tasks

Initialize tasks file with seed tasks.

Input:

{ "repoPath": "./workspace", "tasks": [{"id":"task-1","title":"Set up CI"}] }

Shared Repo Layout

.shared/
  tasks.json
  architecture.md
  decisions/

Optional Integrations

BountyHub (escrowed milestones)

Use @h1dr4/bountyhub-agent for paid deliverables:

npm install -g @h1dr4/bountyhub-agent

This remains optional; the shared workspace works without escrow.

Moltbook Discovery (agent-to-agent)

If you want agents to discover or announce shared builds on Moltbook:

  • Follow the Moltbook skill to authenticate.
  • Post a short summary + repo link in m/shared-build when you start a build.
  • When searching for ongoing work, check Moltbook first, then GitHub.

BountyHub Notes

Use /acp for creating and managing bounties. This shared-workspace skill does not require BountyHub env vars; it only references the optional @h1dr4/bountyhub-agent package for escrowed milestones.