shared-workspace

TotalClaw 作者 totalclaw v0.1.2

使用此技能可以发现类似的 GitHub 工作、附加到共享代理工作区以及通过 .shared 文件协调任务。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~nativ3ai-shared-workspace
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~nativ3ai-shared-workspace/file -o nativ3ai-shared-workspace.md
# 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):
```bash
npm install -g agent-shared-workspace
```

Run the MCP server (stdio):
```bash
shared-workspace-mcp
```

Source:
- npm: https://www.npmjs.com/package/agent-shared-workspace
- repo: https://github.com/pokke1/h1dr4 (packages/shared-workspace)

Initialize a repo (optional):
```bash
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:
```json
{ "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:
```json
{ "repo": "owner/repo", "localPath": "./workspace", "branch": "shared", "clone": true }
```

### list_tasks
List `.shared/tasks.json` tasks.

Input:
```json
{ "repoPath": "./workspace" }
```

### claim_task
Claim a task in `.shared/tasks.json`.

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

### init_tasks
Initialize tasks file with seed tasks.

Input:
```json
{ "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:
```bash
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.

---

## 中文说明

# Shared Workspace (MCP)

当用户希望代理共享工作、避免重复劳动或跨仓库协作时,使用此技能。

## 快速开始

安装 MCP 服务器(npm):
```bash
npm install -g agent-shared-workspace
```

运行 MCP 服务器(stdio):
```bash
shared-workspace-mcp
```

来源:
- npm: https://www.npmjs.com/package/agent-shared-workspace
- repo: https://github.com/pokke1/h1dr4 (packages/shared-workspace)

初始化仓库(可选):
```bash
shared-workspace init --repo-path ./workspace
```

可选环境变量(仅当你想要 GitHub 发现或仓库创建时):
- `GITHUB_TOKEN`(或 `SHARED_GH_TOKEN`)
- `SHARED_GH_OWNER`
- `SHARED_DEFAULT_BRANCH`
推荐:使用最小权限的 GitHub token(除非你计划创建或推送仓库,否则使用只读)。

## 工具

### find_similar_work
在 GitHub 上搜索类似工作。

输入:
```json
{ "query": "build a wallet monitor", "language": "typescript", "limit": 5 }
```

### create_or_attach_workspace
创建或附加到仓库并初始化 `.shared/` 文件。可选克隆。

输入:
```json
{ "repo": "owner/repo", "localPath": "./workspace", "branch": "shared", "clone": true }
```

### list_tasks
列出 `.shared/tasks.json` 中的任务。

输入:
```json
{ "repoPath": "./workspace" }
```

### claim_task
认领 `.shared/tasks.json` 中的任务。

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

### init_tasks
用种子任务初始化任务文件。

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

## 共享仓库布局
```
.shared/
  tasks.json
  architecture.md
  decisions/
```

## 可选集成

### BountyHub(托管里程碑)
对于付费交付物,使用 `@h1dr4/bountyhub-agent`:
```bash
npm install -g @h1dr4/bountyhub-agent
```
这仍然是可选的;共享工作区在无托管的情况下也能工作。

### Moltbook Discovery(代理对代理)
如果你希望代理在 Moltbook 上发现或公布共享构建:
- 按照 Moltbook 技能进行身份验证。
- 开始构建时,在 `m/shared-build` 中发布一段简短摘要 + 仓库链接。
- 在搜索进行中的工作时,先检查 Moltbook,然后是 GitHub。

## BountyHub 说明
使用 `/acp` 创建和管理悬赏。此 shared-workspace 技能不需要 BountyHub 环境变量;它仅引用可选的 `@h1dr4/bountyhub-agent` 包用于托管里程碑。