agentbrew 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
File without changes
package/README.md ADDED
@@ -0,0 +1,315 @@
1
+ # agentbrew
2
+
3
+ One source of truth for AI coding agent config. Sync skills, MCP servers, rules, and commands across **42 agents** — Claude Code, Cursor, Windsurf, Augment, Codex, Gemini CLI, Copilot, OpenCode, Kiro, Amp, Trae, Junie, Continue, Warp, and more.
4
+
5
+ ```bash
6
+ npx agentbrew init
7
+ ```
8
+
9
+ ## The Problem
10
+
11
+ Every AI coding agent wants its own config — `CLAUDE.md`, Cursor rules, Windsurf workflows, MCP server JSON, slash commands. When you use 2–4 agents (most developers do), keeping them in sync is manual, error-prone, and nobody's job. Config drifts silently.
12
+
13
+ ## What AgentBrew Does
14
+
15
+ 1. **Detects** your installed agents and discovers existing config
16
+ 2. **Syncs** MCP servers, rules, and commands to every agent in its native format
17
+ 3. **Repairs** drift automatically — a LaunchAgent checks every 30 minutes, with macOS notifications
18
+ 4. **Catalogs** 51 curated skills, 11 MCP servers, 4 rule sets — install with one command
19
+ 5. **Sources** any GitHub repo or local folder as a skill source
20
+ 6. **Dashboards** — web GUI and full-screen TUI for visual management
21
+
22
+ No other tool combines sync + drift repair + catalog + dashboard + sources in one CLI.
23
+
24
+ ## Quick Start
25
+
26
+ ```bash
27
+ npx agentbrew init # detect agents, discover config, install drift repair
28
+ npx agentbrew install --recommended # install curated skills + MCP servers + rules
29
+ npx agentbrew sync # deploy everything to all agents
30
+ ```
31
+
32
+ Or install globally: `npm i -g agentbrew` — then use `agentbrew` directly.
33
+
34
+ After this, drift repair runs in the background. You're done.
35
+
36
+ ## CLI Reference
37
+
38
+ ### Core
39
+
40
+ ```
41
+ agentbrew init [--force] Detect agents, discover config, set up drift repair
42
+ agentbrew status Show agents, MCP servers, sources, and skills
43
+ agentbrew status --usage Show usage analytics (last-used timestamps)
44
+ agentbrew sync Deploy MCP servers, rules, commands, skills, and instructions
45
+ agentbrew sync --only <modules> Run only specific modules (e.g. --only mcp,skills)
46
+ agentbrew sync --parallel Run all sync categories in parallel (faster)
47
+ agentbrew check [--no-fix] [--ci] Detect drift, broken symlinks, skill validity; auto-repair
48
+ agentbrew doctor Alias for check
49
+ agentbrew fix Force re-sync everything (all 6 modules)
50
+ agentbrew diff Preview what sync would change (all 6 modules)
51
+ agentbrew update Pull latest from all sources, re-sync
52
+ agentbrew log [-n N] View sync and drift history
53
+ agentbrew backup Snapshot current state
54
+ agentbrew rollback Revert to last snapshot
55
+ agentbrew discover Scan for unknown agents
56
+ agentbrew lock Generate lock file with SHA pins
57
+ agentbrew lock --verify Verify lock file integrity
58
+ agentbrew gui [-p PORT] [--no-open] Web dashboard with live health, sync, and fix (localhost:3141)
59
+ agentbrew dashboard Alias for gui
60
+ agentbrew tui Full-screen terminal dashboard
61
+ ```
62
+
63
+ ### Catalog & Install
64
+
65
+ ```
66
+ agentbrew catalog Browse skills, MCP servers, and rules
67
+ agentbrew catalog --skills|--mcp|--rules Filter by type
68
+ agentbrew catalog --search <term> Search by keyword
69
+ agentbrew search <query> Search mdskills.ai online marketplace
70
+ agentbrew search <query> --json Search online, output as JSON
71
+ agentbrew install <name> Install from catalog or any added source
72
+ agentbrew install --recommended Install the curated starter set
73
+ ```
74
+
75
+ ### Team Config
76
+
77
+ ```
78
+ agentbrew team init Create a shareable .agentbrew-team.yaml in cwd
79
+ agentbrew team set <repo-url> Clone a team config repo (MCP servers, rules, sources)
80
+ agentbrew team show Show current team config details
81
+ agentbrew team sync Pull latest team config from remote
82
+ agentbrew team unset Remove team config
83
+ ```
84
+
85
+ Team config merges as the base layer: **team → user → project**. User config overrides team, project overrides both.
86
+
87
+ ### Sources
88
+
89
+ ```
90
+ agentbrew add <source> Add a GitHub repo or local folder
91
+ agentbrew add <source> --skill <name> Install one skill from a source
92
+ agentbrew add <source> --list List available skills without installing
93
+ agentbrew sources Show tracked sources
94
+ agentbrew remove-source <url> Stop tracking a source
95
+ ```
96
+
97
+ ### MCP Servers
98
+
99
+ ```
100
+ agentbrew mcp list Show registered servers
101
+ agentbrew mcp add <name> -c <cmd> [-a args...] [-e KEY=VAL...]
102
+ agentbrew mcp remove <name> Remove from state + all agents
103
+ agentbrew mcp sync Deploy to all agents
104
+ agentbrew mcp run <name> Run a server locally over stdio
105
+ agentbrew mcp run <name> --dry-run Print resolved command without executing
106
+ agentbrew mcp share <name> Share a server via SSE + public tunnel
107
+ agentbrew mcp share <name> --no-tunnel Expose locally only (no tunnel)
108
+ agentbrew mcp search <query> Search the official MCP registry
109
+ agentbrew mcp install <name> Install a server from the registry
110
+ agentbrew mcp info <name> Show registry details for a server
111
+ ```
112
+
113
+ ### MCP Profiles
114
+
115
+ ```
116
+ agentbrew mcp profile create <name> --servers <names> Create a profile
117
+ agentbrew mcp profile list List all profiles
118
+ agentbrew mcp profile activate <name> Activate a profile (only its servers sync)
119
+ agentbrew mcp profile deactivate Deactivate (all servers sync)
120
+ agentbrew mcp profile delete <name> Delete a profile
121
+ ```
122
+
123
+ ### Per-Project MCP
124
+
125
+ ```
126
+ agentbrew mcp project init Import existing .mcp.json / .cursor/mcp.json into .agentbrew.yaml
127
+ agentbrew mcp project sync Deploy project MCP servers to native configs
128
+ agentbrew mcp project status Show project MCP server status
129
+ ```
130
+
131
+ ### Skill Scenarios
132
+
133
+ ```
134
+ agentbrew scenario create <name> Snapshot current skills as a scenario
135
+ agentbrew scenario list List all scenarios
136
+ agentbrew scenario activate <name> Activate (only its skills sync)
137
+ agentbrew scenario deactivate Deactivate (all skills sync)
138
+ agentbrew scenario delete <name> Delete a scenario
139
+ ```
140
+
141
+ ### Rules
142
+
143
+ ```
144
+ agentbrew rules init Create shared rules file
145
+ agentbrew rules show Show rules and deployment status
146
+ agentbrew rules sync Deploy to all agents (managed markers)
147
+ ```
148
+
149
+ ### Commands
150
+
151
+ ```
152
+ agentbrew commands init Create commands dir with starter
153
+ agentbrew commands list Show commands and deployment status
154
+ agentbrew commands add <file> Add a command file
155
+ agentbrew commands sync Deploy to all agents (auto-transforms)
156
+ ```
157
+
158
+ ### Auto-Sync
159
+
160
+ ```
161
+ agentbrew auto-sync watch Watch config dir, sync on changes
162
+ agentbrew auto-sync install Install macOS LaunchAgent
163
+ agentbrew auto-sync uninstall Remove LaunchAgent
164
+ agentbrew auto-sync status Show auto-repair status
165
+ ```
166
+
167
+ ### Skills
168
+
169
+ ```
170
+ agentbrew skill List all skills grouped by source
171
+ agentbrew skill <name> Show full info: metadata, capabilities, security, content
172
+ agentbrew capabilities <skill> List capabilities for a skill
173
+ agentbrew capabilities enable <skill> <cap> Enable a capability
174
+ agentbrew capabilities disable <skill> <cap> Disable a capability
175
+ agentbrew capabilities reset <skill> Reset overrides to defaults
176
+ agentbrew pin <skill> Pin a skill — preserve local edits
177
+ agentbrew unpin <skill> Unpin a skill
178
+ agentbrew pinned Show pinned skills and patch status
179
+ agentbrew validate Validate all skills against SKILL.md spec
180
+ agentbrew validate --verbose Include passing skills and info-level issues
181
+ ```
182
+
183
+ ### Clean & Usage
184
+
185
+ ```
186
+ agentbrew clean <name> Remove a skill or command from all agents
187
+ agentbrew clean --list List all cleanable items
188
+ agentbrew clean --unused Show items not used in 30+ days
189
+ agentbrew clean --unused --days 14 Custom unused threshold
190
+ ```
191
+
192
+ ## How Sync Works
193
+
194
+ ### MCP Servers
195
+
196
+ One registry → every agent gets the server in its native format:
197
+
198
+ | Agent | Method |
199
+ |-------|--------|
200
+ | Claude Code | `claude mcp add-json` CLI → `~/.claude.json` |
201
+ | Cursor | Write to `~/.cursor/mcp.json` |
202
+ | Windsurf | Write to `~/.codeium/mcp_config.json` |
203
+ | Kiro | Write to `~/.kiro/settings/mcp.json` |
204
+ | OpenCode | Write to `~/.config/opencode/opencode.json` (key: `mcp`) |
205
+ | Amp | Write to `~/.config/amp/settings.json` (key: `amp.mcpServers`) |
206
+ | Codex | Write to `~/.codex/config.toml` (TOML format) |
207
+ | Goose | Write to `~/.config/goose/config.yaml` (YAML format) |
208
+
209
+ ### Rules
210
+
211
+ One markdown file (`~/.config/agentbrew/shared-rules.md`) → injected between managed markers (`<!-- agentbrew:start/end -->`) into each agent's rules file. Content outside the markers is never touched.
212
+
213
+ | Agent | Rules file |
214
+ |-------|-----------|
215
+ | Claude Code | `~/.claude/CLAUDE.md` |
216
+ | Windsurf | `~/.codeium/windsurf/memories/global_rules.md` |
217
+ | Augment | `~/.augment/guidelines.md` |
218
+ | Codex | `~/.codex/AGENTS.md` |
219
+
220
+ ### Commands
221
+
222
+ One canonical format (Markdown + YAML frontmatter) → auto-transformed per agent:
223
+
224
+ | Agent | Transform | Location |
225
+ |-------|-----------|----------|
226
+ | Claude Code | Strip frontmatter | `~/.claude/commands/` |
227
+ | Cursor | Strip frontmatter, `<!-- turbo -->` → `// turbo` | `~/.cursor/commands/` |
228
+ | Windsurf | Keep as-is | `~/.codeium/global_workflows/` |
229
+ | OpenCode | Keep as-is | `~/.config/opencode/commands/` |
230
+
231
+ ### Drift Repair
232
+
233
+ `agentbrew init` installs a macOS LaunchAgent that runs `agentbrew check` (or `agentbrew doctor`) every 30 minutes. It detects MCP drift, missing rules, broken skill symlinks, and skill validation errors — shows what drifted, re-syncs automatically, and sends a macOS notification so you know it happened. View history with `agentbrew log`.
234
+
235
+ ## Supported Agents (42)
236
+
237
+ **Full config sync** (skills + MCP + rules + commands):
238
+
239
+ | Agent | Skills | MCP | Rules | Commands |
240
+ |-------|--------|-----|-------|----------|
241
+ | Claude Code | ✓ | ✓ | ✓ | ✓ |
242
+ | Cursor | ✓ | ✓ | — | ✓ |
243
+ | Windsurf | ✓ | ✓ | ✓ | ✓ |
244
+ | Augment | ✓ | — | ✓ | — |
245
+ | Codex | ✓ | ✓ | ✓ | — |
246
+ | OpenCode | ✓ | ✓ | — | ✓ |
247
+ | Kiro | ✓ | ✓ | — | — |
248
+ | Amp | ✓ | ✓ | — | — |
249
+ | Goose | ✓ | ✓ | — | — |
250
+ | Cline | ✓ | ✓ | — | — |
251
+ | Roo Code | ✓ | ✓ | — | — |
252
+
253
+ **Skills sync** (31 additional agents):
254
+
255
+ Gemini CLI, Copilot, Trae, Trae CN, Junie, Continue, Warp, Antigravity, Qwen Code, OpenHands, Kilo Code, Droid, OpenClaw, Pi, Crush, Kode, Qoder, Zencoder, Cortex, Mistral Vibe, Mux, CodeBuddy, Kimi CLI, Replit, Universal, Command Code, iFlow CLI, MCPJam, Neovate, Pochi, Adal
256
+
257
+ ## Catalog
258
+
259
+ 51 skills, 11 MCP servers, 4 rule sets — curated from [Vercel](https://github.com/vercel-labs/skills), [Anthropic](https://github.com/anthropics/skills), [obra/superpowers](https://github.com/obra/superpowers), [Supabase](https://github.com/supabase/agent-skills), [Trail of Bits](https://github.com/trailofbits/skills), [actionbook](https://github.com/actionbook/actionbook), [tasks.md](https://github.com/tasksmd/tasks.md), and more. ★ = installed with `--recommended`.
260
+
261
+ **Skills**
262
+
263
+ | Tier | Skills |
264
+ |------|--------|
265
+ | ★ Recommended (15) | find-skills, debug, plan, commit, review, taste, react-best-practices, web-design-guidelines, frontend-design, mcp-builder, skill-creator, next-task, agent-browser, project-audit, refactor |
266
+ | Strong (20) | pr, pr-fix, pr-comments, composition-patterns, fix-styles, screenshot, actionbook, doc-check, rfc, rfc-iterate, rfc-review, jira, jira-task, github-actions-debugging, cursor-bg, research-url, markdown-for-gdoc, webapp-testing, shadcn, next-best-practices |
267
+ | Specialized (16) | postgres-best-practices, playwright-best-practices, react-native-guidelines, remotion-best-practices, sync-agent-config, subagent-driven-development, executing-plans, search, static-analysis, supply-chain-risk-auditor, property-based-testing, security-best-practices, better-auth-best-practices, dotfiles-development, dotfiles-new-module, dotfiles-doctor-debug |
268
+
269
+ **MCP Servers**: context7 ★, playwright ★, tasks-mcp ★, github, filesystem, sentry, postgres, brave-search, notion, sequential-thinking, memory
270
+
271
+ **Rules**: conventional-commits ★, test-before-commit ★, minimal-changes ★, tasks-md-spec ★
272
+
273
+ Add any repo as a source to expand your catalog:
274
+
275
+ ```bash
276
+ agentbrew add vercel-labs/agent-skills # index available skills
277
+ agentbrew add ~/my-company/skills # local folder
278
+ agentbrew catalog # browse built-in + all sources
279
+ ```
280
+
281
+ ## State
282
+
283
+ All state lives in `~/.config/agentbrew/state.yaml` — detected agents, registered MCP servers, tracked sources, installed skills. Human-readable YAML.
284
+
285
+ ## Roadmap
286
+
287
+ See [TASKS.md](TASKS.md) for the prioritized backlog.
288
+
289
+ **Completed**: Web dashboard (GUI + TUI), tasks.md integration, auto-sync on all mutations, drift pre-fix reporting, macOS repair notifications, online catalog, team config, browsable web catalog, usage analytics, parallel sync, JSONC/TOML config support, GitHub Actions / CI integration, AgentAdapter pattern, pure diff/IO separation, MCP server sharing, skill patch system, per-project manifests, multi-registry search, structured error handling, security risk scoring, lock file with SHA pinning, per-project MCP configs, auth for remote MCP servers, format conversion for commands, automated agent discovery, feature flags / skill capabilities, skill preview / render
290
+
291
+ See [docs/COMPETITION.md](docs/COMPETITION.md) for competitive analysis vs MCPM, vsync, mdskills.ai.
292
+
293
+ > **Note**: The npm package is `agentbrew` (with hyphen). The CLI command is `agentbrew` (no hyphen) for ergonomics. Both `agentbrew` and `agentbrew` work as commands.
294
+
295
+ ## Contributing
296
+
297
+ Want to add a skill, MCP server, or rule to the catalog? See [CONTRIBUTING.md](CONTRIBUTING.md).
298
+
299
+ ## Development
300
+
301
+ ```bash
302
+ npm install
303
+ npm run dev -- status # run CLI in dev mode
304
+ npm test # vitest (69 test files, 1260 tests)
305
+ npm publish --access public # publish to npm
306
+ npm run generate:catalog-html # build browsable catalog → docs/catalog/
307
+ npm run typecheck # tsc --noEmit
308
+ npm run build # tsup → dist/
309
+ ```
310
+
311
+ Pure Node.js CLI — no external dependencies beyond npm. See [AGENTS.md](AGENTS.md) for the full repo layout and editing rules.
312
+
313
+ ## License
314
+
315
+ MIT
File without changes
File without changes
package/dist/cli.js ADDED
File without changes
File without changes
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "agentbrew",
3
+ "version": "0.1.0",
4
+ "description": "Skill manager and sync engine for AI coding tools — sync skills, MCP servers, rules, and commands across 42 agents",
5
+ "type": "module",
6
+ "main": "./dist/cli.js",
7
+ "bin": {
8
+ "agentbrew": "./dist/cli.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsup",
17
+ "dev": "tsx src/cli.ts",
18
+ "test": "vitest run",
19
+ "typecheck": "tsc --noEmit",
20
+ "generate:catalog": "tsx src/generate-catalog.ts",
21
+ "generate:catalog-html": "tsx src/generate-catalog-html.ts",
22
+ "prepublishOnly": "npm run build"
23
+ },
24
+ "keywords": [
25
+ "ai",
26
+ "agent",
27
+ "skills",
28
+ "mcp",
29
+ "sync",
30
+ "claude",
31
+ "cursor",
32
+ "windsurf",
33
+ "augment",
34
+ "codex",
35
+ "cli"
36
+ ],
37
+ "license": "MIT",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/fivanishche/agentbrew"
41
+ },
42
+ "engines": {
43
+ "node": ">=20"
44
+ },
45
+ "dependencies": {
46
+ "@inquirer/prompts": "7.10.1",
47
+ "@types/react": "19.2.14",
48
+ "chalk": "^5.6.2",
49
+ "chokidar": "5.0.0",
50
+ "commander": "^14.0.3",
51
+ "ink": "6.8.0",
52
+ "js-yaml": "^4.1.1",
53
+ "react": "19.2.4",
54
+ "smol-toml": "1.6.0",
55
+ "write-file-atomic": "7.0.1"
56
+ },
57
+ "devDependencies": {
58
+ "@types/js-yaml": "^4.0.9",
59
+ "@types/node": "^22.0.0",
60
+ "@vitest/coverage-v8": "4.0.18",
61
+ "tsup": "^8.5.1",
62
+ "tsx": "^4.21.0",
63
+ "typescript": "^5.9.3",
64
+ "vitest": "4.0.18"
65
+ }
66
+ }