Balsm-AI
Shared AI toolkit for all Balsm repos — skills, slash commands, subagents, MCP servers, and hooks in one place.
Packaged as both a Claude Code plugin marketplace and a Cursor Plugin. One source tree; two manifests.
Layout
Balsm-AI/
├── .claude-plugin/
│ └── marketplace.json # Claude marketplace (lists the plugin)
├── .cursor-plugin/
│ └── marketplace.json # Cursor marketplace (same plugin)
├── adapters/cursor/ # Cursor-only files copied into sibling repos
├── init-cursor.mjs # symlink/copy .claude → .cursor per repo
├── sync.mjs # generate AGENTS.md (+ Cursor init on --distribute)
└── plugin/ # the plugin itself
├── .claude-plugin/plugin.json # Claude plugin manifest
├── .cursor-plugin/plugin.json # Cursor plugin manifest
├── mcp.json # Cursor MCP (GitHub, Sentry, Supabase)
├── .mcp.json # Claude MCP (same servers)
├── skills/ # Agent Skills (SKILL.md)
├── commands/ # slash commands (e.g. /balsm-context)
├── agents/ # subagents (e.g. balsm-reviewer)
└── hooks/
├── hooks.json # Claude hook events
└── cursor-hooks.json # Cursor hook events
Install — Claude Code
claude plugin marketplace add .
claude plugin install balsm-ai@balsm-ai --scope user
After push to GitHub, others install with the repo slug:
claude plugin marketplace add <org>/Balsm-AI
claude plugin install balsm-ai@balsm-ai --scope user
Install — Cursor
Docs: Plugins · MCP · Skills · Hooks · Rules
Local (this machine)
mkdir -p ~/.cursor/plugins/local
ln -sfn "$(git rev-parse --show-toplevel)/plugin" ~/.cursor/plugins/local/balsm-ai
Then Developer: Reload Window. Confirm skills, /balsm-context, balsm-reviewer, and the GitHub / Sentry / Supabase MCP servers in Customize.
Also enable Cursor Settings → Rules, Skills, Subagents → Include third-party Plugins, Skills, and other configs so .claude/skills and .claude/agents still load if a repo has not been initialized yet.
Team marketplace
Import this repo in Dashboard → Plugins → Add Marketplace (source: .cursor-plugin/marketplace.json). Set the plugin to Default On or Required.
Per-repo Cursor files (commands, MCP, hooks, ignore, rules) are created by:
node init-cursor.mjs # write Cursor adapters into every Balsm repo
node init-cursor.mjs --check # CI: fail if Cursor files are stale
node sync.mjs --distribute runs the same Cursor init after regenerating AGENTS.md.
Add capabilities
- Skill →
plugin/skills/<name>/SKILL.md with frontmatter (name, description). Cursor: skill format.
- Command →
plugin/commands/<name>.md → /<name>. Claude $ARGUMENTS; Cursor slash commands. Then node init-cursor.mjs to copy /balsm-context into sibling .cursor/commands/.
- Agent →
plugin/agents/<name>.md with frontmatter (name, description). Cursor: subagents.
- MCP → edit
plugin/mcp.json and plugin/.mcp.json together. Cursor project override: <repo>/.cursor/mcp.json. Interpolation: ${env:NAME} (docs).
- Hook → Claude:
plugin/hooks/hooks.json. Cursor: plugin/hooks/cursor-hooks.json (pointed at by .cursor-plugin/plugin.json). Shared scripts in plugin/hooks/*.sh.
Edit, commit, reload Cursor (or claude plugin update balsm-ai).
Cross-tool sharing
canonical/rules/ # shared rules → AGENTS.md
plugin/skills/ # skills; indexed on-demand into AGENTS.md
plugin/commands/ # listed in AGENTS.md; copied to .cursor/commands/
sync.mjs # AGENTS.md generator
init-cursor.mjs # Cursor plugin + per-repo .cursor/ adapters
AGENTS.md # generated universal baseline (do not hand-edit)
The skill index in AGENTS.md is on-demand. Paths assume Balsm repos sit side-by-side under one workspace folder.
node sync.mjs # regenerate Balsm-AI/AGENTS.md
node sync.mjs --distribute # AGENTS.md into sibling repos + Cursor init
node sync.mjs --check # CI: AGENTS.md stale?
node init-cursor.mjs --check # CI: Cursor adapters stale?
Claude .claude/ → Cursor .cursor/