skilldb
CLI, TypeScript SDK, and MCP Server for SkillDB — discover, install, and manage AI agent skills.
5,000+ expert skills across 327 packs for Claude Code, Cursor, Windsurf, and any MCP-compatible AI tool.
MCP Server (NEW in v0.4.0)
Connect SkillDB directly to your AI coding tool via the Model Context Protocol:
npm install -g skilldb
claude mcp add skilldb -- skilldb-mcp --api-key sk_live_YOUR_KEY
⚠️ Without an API key, you can search and browse skills (metadata only).
With a free API key, you get full skill content — the actual markdown instructions your agent uses.
Get your key in 30 seconds at skilldb.dev/api-access.
Cursor — add to .cursor/mcp.json:
{
"mcpServers": {
"skilldb": {
"command": "skilldb-mcp"
}
}
}
Windsurf — add to mcp_config.json:
{
"mcpServers": {
"skilldb": {
"command": "skilldb-mcp",
"args": ["--api-key", "sk_live_xxx"]
}
}
}
Once connected, your AI assistant can search and load skills natively. Just ask:
- "Search SkillDB for React performance patterns"
- "Load the code review skill"
- "What skills should I use for this project?"
5 tools exposed: skilldb_search, skilldb_get, skilldb_list, skilldb_suggest, skilldb_recommend
Quick Start (CLI)
npx skilldb search "code review"
npx skilldb add software-skills
npx skilldb use frontend
npx skilldb use auto
Install
npm install -g skilldb
Or use npx skilldb without installing.
The Memory Problem (And How We Solve It)
Loading 500 skills into your agent's context is worse than loading the right 5. SkillDB uses a 3-layer architecture to manage this:
.skilldb/
├── skills/ ← Full cache (everything downloaded)
├── active/ ← Active profile (what your agent sees — 5-15 focused skills)
├── slim/ ← Compressed cheat sheets (10x smaller)
├── config.json ← Profile + budget settings
└── manifest.json ← What's installed
Your CLAUDE.md or .cursorrules points at .skilldb/active/, not the full cache. The agent gets focused, relevant skills — not noise.
CLI Commands
Core
skilldb init
Detect your IDE (Claude Code, Cursor, Codex CLI, OpenClaw), create .skilldb/, and add integration config.
skilldb init
skilldb search <query>
Search skills by keyword. Shows inline slim preview so you know what you're getting before downloading.
skilldb search "debugging"
skilldb search "api design" --category "Technology & Engineering"
skilldb search "testing" --limit 10
skilldb add <pack>
Download a skill pack to local cache. Idempotent — skips already-cached skills.
skilldb add software-skills
skilldb add autonomous-agent-skills
skilldb add vibe-coding-security-skills
skilldb get <id>
Download a single skill.
skilldb get software-skills/code-review
skilldb info <id>
Show metadata, slim summary, and full preview for a skill.
skilldb info software-skills/code-review
skilldb list
List available categories, packs, and skills.
skilldb list
skilldb list --category "Autonomous Agents"
skilldb list --pack software-skills
skilldb login
Save your API key for authenticated access.
skilldb login
Smart Loading
skilldb use <profile>
Activate a focused profile — only loads relevant skills into .skilldb/active/.
skilldb use frontend
skilldb use backend
skilldb use devops
skilldb use security
skilldb use data
skilldb use fullstack
skilldb use ai-agent
skilldb use auto
skilldb use --list
skilldb use --current
skilldb use none
auto mode scans your package.json, file extensions, and imports to recommend the right profile.
skilldb budget
Set a maximum context budget so your agent doesn't get overloaded.
skilldb budget
skilldb budget set 5000
skilldb budget set 50k
skilldb budget optimize
skilldb slim
Generate compressed cheat-sheet versions of skills (~30 lines instead of 300).
skilldb slim
skilldb slim software-skills
skilldb slim --ratio 0.3
Management
skilldb update
Check for newer versions of installed skills and update them.
skilldb update
skilldb update software-skills
skilldb remove
Uninstall skills from local cache.
skilldb remove software-skills/code-review
skilldb remove software-skills
skilldb remove --unused
skilldb doctor
Health check and audit of your skill setup.
skilldb doctor
Shows: outdated skills, unused skills, missing dependencies, budget status, coverage gaps.
skilldb stats
Local statistics dashboard.
skilldb stats
Shows: installed count, total lines, tokens, active profile, categories covered.
skilldb diff <id>
Compare your local (possibly customized) version with the latest remote.
skilldb diff software-skills/code-review
skilldb diff
Sharing & Export
skilldb export
Export your setup for sharing or IDE integration.
skilldb export claude
skilldb export cursor
skilldb export profile
skilldb export inject <id>
skilldb recommend
Scan your project and get personalized skill recommendations.
skilldb recommend
skilldb recommend --install
SDK Usage
import { createClient } from 'skilldb';
const db = createClient();
const results = await db.search('code review');
for (const skill of results.skills) {
console.log(skill.title);
console.log(skill.slim);
}
const skill = await db.get('software-skills/code-review.md');
console.log(skill.content);
const listing = await db.list({ category: 'Autonomous Agents', limit: 10 });
Authentication
The SDK and CLI resolve your API key in order:
SKILLDB_API_KEY environment variable (CI-friendly)
.skilldbrc in project root (project-specific)
~/.skilldbrc in home directory (user-wide)
Browsing and searching works without authentication. Full skill content requires a Pro or Studio key.
Profiles
Built-in profiles map to curated skill sets:
frontend | react-patterns, web-polish, testing, accessibility | React/Vue/Angular apps |
backend | api-design, databases, security, performance | Node/Python/Go services |
devops | kubernetes, docker, ci-cd, monitoring, cloud | Infrastructure & deployment |
security | trust-audit, input-validation, credentials, hardening | Security review & hardening |
data | sql, pipelines, analytics, visualization | Data engineering & analysis |
fullstack | frontend + backend combined | Full-stack applications |
ai-agent | autonomous-agent-skills, task-decomposition, planning | Building AI agents |
auto | Detected from project | Any project |
Requirements
License
MIT