skill-depot replaces the "dump all skill frontmatter into context" approach with selective, semantic retrieval. Agent skills are stored as Markdown files and indexed with vector embeddings — only the relevant skills are loaded when needed, keeping context lean. - Semantic Search — Find skills by meaning, not just keywords, using embedded vector search - Fully Local — No API keys, no cloud. U
Add this skill
npx mdskills install Ruhal-Doshi/skill-depotWell-architected RAG-based skill retrieval with semantic search, fully local embedding, and comprehensive CLI tools.
RAG-based skill retrieval system for AI agents. Scalable long-term storage with semantic search via MCP.
skill-depot replaces the "dump all skill frontmatter into context" approach with selective, semantic retrieval. Agent skills are stored as Markdown files and indexed with vector embeddings — only the relevant skills are loaded when needed, keeping context lean.
~/.skill-depot/) available everywhere, project skills (.skill-depot/) synced via gitnpx skill-depot init
This will:
~/.skill-depot/ global directoryAdd skill-depot to your agent's MCP configuration:
Claude Code (~/.claude/mcp.json):
{
"mcpServers": {
"skill-depot": {
"command": "npx",
"args": ["skill-depot", "serve"]
}
}
}
Codex / OpenClaw / Cursor: Add the same MCP server config in your agent's settings.
Your agent now has access to these tools:
| Tool | Description |
|---|---|
skill_search | Semantic search — returns metadata + snippets |
skill_read | Load the full content of a skill |
skill_save | Save a new skill and index it |
skill_update | Update an existing skill |
skill_delete | Remove a skill |
skill_reindex | Rebuild the search index |
skill_list | List all indexed skills |
Traditional agent skill systems load all skill file frontmatter into the agent's context window every session. With a large skill library, this wastes precious context on irrelevant information.
skill-depot acts as a RAG layer for agent skills:
Agent → skill_search("deploy nextjs to vercel")
← [{ name: "deploy-vercel", score: 0.92, snippet: "..." }, ...]
Agent → skill_read("deploy-vercel")
← Full markdown content of the skill
~/.skill-depot/ # Global (all projects)
├── config.json
├── models/ # Embedding model cache
├── skills/ # Global skill files
└── index.db # SQLite + vector index
/.skill-depot/ # Project-level (git-synced)
├── skills/ # Project-specific skills
└── index.db # Project vector index (gitignored)
# Setup
skill-depot init # Interactive setup + agent discovery
skill-depot init --auto # Non-interactive, import everything
# Server
skill-depot serve --project . # Start MCP server (foreground/stdio)
skill-depot start --project . # Start as background daemon
skill-depot stop # Stop daemon
skill-depot status # Check daemon status
skill-depot restart # Restart daemon
# Skill Management
skill-depot add # Add a skill file (project scope)
skill-depot add --global # Add as global skill
skill-depot remove # Remove a skill
skill-depot list # List all skills
skill-depot list --global # List global skills only
skill-depot search # Search skills from CLI
# Maintenance
skill-depot reindex # Rebuild all indexes
skill-depot doctor # Health check
Skills use standard YAML frontmatter + Markdown — the same format used by Claude Code, Codex, and other agents:
---
name: deploy-to-vercel
description: How to deploy a Next.js application to Vercel
tags: [deployment, vercel, nextjs]
keywords: [vercel cli, production build, environment variables]
---
## Steps
1. Install the Vercel CLI: `npm i -g vercel`
2. Run `vercel` in the project root
3. Follow the prompts to link your project
...
| Component | Technology |
|---|---|
| Language | TypeScript (ESM) |
| Database | SQLite via better-sqlite3 |
| Vector Search | sqlite-vec extension |
| Embeddings | @xenova/transformers (all-MiniLM-L6-v2) |
| Fallback | BM25 term-frequency hashing |
| Protocol | MCP via @modelcontextprotocol/sdk |
| CLI | commander + inquirer + chalk + ora |
Contributions are welcome! This is an open-source project.
# Clone and install
git clone https://github.com/your-username/skill-depot.git
cd skill-depot
pnpm install
# Development
pnpm dev # Watch mode build
pnpm test # Run tests
pnpm lint # Type check
pnpm build # Production build
MIT
Install via CLI
npx mdskills install Ruhal-Doshi/skill-depotSkill Depot is a free, open-source AI agent skill. skill-depot replaces the "dump all skill frontmatter into context" approach with selective, semantic retrieval. Agent skills are stored as Markdown files and indexed with vector embeddings — only the relevant skills are loaded when needed, keeping context lean. - Semantic Search — Find skills by meaning, not just keywords, using embedded vector search - Fully Local — No API keys, no cloud. U
Install Skill Depot with a single command:
npx mdskills install Ruhal-Doshi/skill-depotThis downloads the skill files into your project and your AI agent picks them up automatically.
Skill Depot works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.