skillcurator-mcp
by apexhive-hq
README.md
# skillcurator
[](https://github.com/apexhive-hq/skillcurator/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/skillcurator)
[](LICENSE)
Human-gated distillation, cold edge-case vault, and swarm governance for [`agentskills.io`](https://agentskills.io) `SKILL.md` skills.
Most agent memory tools either auto-inject past notes (causing context bloat) or auto-rewrite team skills without review. `skillcurator` puts a strict fail-closed **Inbox Ledger** between agent discovery and production rules: agents stage drafts into `.skillcurator/inbox/`, a built-in linter blocks leaked secrets, personal paths, and duplicates, and humans promote approved items into three clean tiers:
- **`active`** (`skills/<slug>/SKILL.md`) — Standard `agentskills.io` `SKILL.md` modules for recurring workflows
- **`vault`** (`vault/<slug>/SKILL.md`) — **Cold Edge-Case Vault** for rare or one-off troubleshooting fixes (zero startup context tax; searchable on demand via CLI or MCP)
- **`policy`** (`policies/<slug>.md`) — Multi-agent swarm coordination, write-lock boundaries, and QA gates
## Requirements
- Node.js 24 or later (uses built-in `node:sqlite`; zero external runtime dependencies)
## Quick Start
Run the offline sandbox demo directly from any directory:
```bash
npx -y skillcurator --demo
npx -y skillcurator --help
```
Or install globally:
```bash
npm install -g skillcurator
```
Initialize a skill hub in your project (or clone this repo to try the bundled `./examples/*.md` fixtures — `export --out` resolves relative to `--hub`, so the example below writes `./agent-hub/AGENTS.md`):
```bash
npx -y skillcurator init --hub ./agent-hub
git clone https://github.com/apexhive-hq/skillcurator.git
npx -y skillcurator stage ./skillcurator/examples/docker-cache-fix.md --hub ./agent-hub
npx -y skillcurator stage ./skillcurator/examples/cold-vault-crlf.md --hub ./agent-hub
npx -y skillcurator promote docker-layer-cache-fix --approve --hub ./agent-hub
npx -y skillcurator promote windows-crlf-markdown-fence --approve --hub ./agent-hub
npx -y skillcurator search "crlf windows" --tier vault --hub ./agent-hub
npx -y skillcurator export --out AGENTS.md --hub ./agent-hub
```
## CLI
```
skillcurator v1.0.0 - Human-gated curation, cold edge-case vault, and swarm governance for SKILL.md
Usage:
skillcurator <command> [options]
Commands:
init Initialize .skillcurator/, skills/, vault/, policies/, and English prompt pack
stage <file> Lint and stage a candidate draft into .skillcurator/inbox/
lint <file> Validate frontmatter, secrets, personal paths, and duplicate overlap
promote <slug> Promote a pending draft into skills/, vault/, or policies/ (requires --approve)
reject <slug> Reject and archive a pending draft (requires --approve)
status Show pending inbox queue and curated counts
search <query> Search curated active, cold vault, and policy entries on demand
export Generate AGENTS.md summary (active + policies; keeps cold vault out of prompt)
prompts [destDir] Export the English extraction, swarm-dispatch, and refiner prompts
demo Run offline sandbox walkthrough with clean fixtures
mcp Start the stdio MCP server
Options:
--hub <dir> Hub root directory (default: current directory)
--tier <tier> Filter search or override tier on promote (active | vault | policy)
--approve Explicit human sign-off required for promote and reject
--note <text> Reviewer audit note recorded in ledger
--include-pending Include pending inbox drafts in search results
--out <file> Write export output to a file instead of stdout
--format <fmt> Output format: human | json (default: human)
--json Shorthand for --format json
--help, -h Show this help
--version, -v Show package version
--demo Alias for demo
Examples:
skillcurator --demo
skillcurator init --hub ./agent-hub
skillcurator lint ./examples/docker-cache-fix.md
skillcurator stage ./examples/docker-cache-fix.md
skillcurator promote docker-layer-cache-fix --approve
skillcurator search "crlf windows" --tier vault
skillcurator export --out AGENTS.md
skillcurator mcp
```
## Prompt Pack Included
Running `skillcurator init` or `skillcurator prompts ./dest` writes clean English templates ready for Claude Code, Cursor, Codex, or Gemini CLI:
- `curator-charter.md` — Subagent-isolated extraction rules, cold-vault criteria, and reality checks
- `swarm-dispatch.md` — Prompt instructing main agents/coordinators to spawn an isolated extractor subagent without polluting working memory
- `refiner-review.md` — Clean Refiner audit workflow for triaging and deduplicating `.skillcurator/inbox/`
- `draft-template.md` — Canonical YAML frontmatter + `Guardrails` + `Verification` skeleton
## stdio MCP Server
Expose five bounded tools to coding agents over stdio (`skillcurator mcp` or `skillcurator-mcp`):
- `curator_status` — Inspect pending inbox and tier counts
- `curator_search` — Query the cold `vault`, `active` skills, and `policy` rules on demand
- `curator_lint` — Validate and secret-scan a candidate Markdown draft
- `curator_stage` — Submit a sanitized draft to `.skillcurator/inbox/` (never bypasses human `--approve`)
- `curator_export_index` — Render a compact `AGENTS.md` overview
## Verification
```bash
pnpm run typecheck
pnpm run build:prod
pnpm test
pnpm run test:e2e
pnpm pack --dry-run
```
## License
MIT. See [LICENSE](LICENSE). Vulnerability disclosure policy: [SECURITY.md](SECURITY.md). Release history: [CHANGELOG.md](CHANGELOG.md).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues