# Shared Workspace

> Use this skill to discover similar GitHub work, attach to shared agent workspaces, and coordinate tasks via .shared files.

- Skill: `modbender/shared-workspace` (Agent Skill)
- Install (CLI): `npx skillmds@latest add modbender/shared-workspace`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/shared-workspace/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/modbender/shared-workspace

---


# 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.

