Skill Coordinator
# Skill Coordinator
An MCP server that lazy-loads Claude Code skills to dramatically reduce context token consumption.
## The Problem
Claude Code loads all skills from `.claude/skills/` into your context window at startup. With a typical skill library:
| Skill | Tokens |
|-------|--------|
| content-research-writer | 3,600 |
| stripe-integration | 3,200 |
| nextjs-stripe-integration | 2,600 |
| systematic-debugging | 2,400 |
| webapp-testing | 1,600 |
| ... (10+ more skills) | ... |
| **Total** | **~20,600 tokens** |
You pay this ~20k token tax on **every conversation**, whether you use skills or not.
## The Solution
Skill Coordinator applies the same lazy-loading pattern as [MCP Coordinator](https://github.com/CyberClash/mcp_coordinator) but for skills:
| Scenario | Before | After | Savings |
|----------|--------|-------|---------|
| Baseline (no skills used) | ~20,600 tokens | ~1,000 tokens | **95%** |
| Using 1 skill | ~20,600 tokens | ~3,400 tokens | **83%** |
| Using 3 skills | ~20,600 tokens | ~8,000 tokens | **61%** |
**Key insight:** Most conversations don't use most skills. Pay only for what you use.
## Quick Start
### 1. Install
```bash
npm install -g skill-coordinator
```
Or use directly with npx:
```bash
npx skill-coordinator
```
### 2. Move Your Skills
Move skills from `.claude/skills/` to `~/.claude/managed-skills/`:
```bash
# Create the managed skills directory
mkdir -p ~/.claude/managed-skills
# Move your skills
mv ~/.claude/skills/* ~/.claude/managed-skills/
```
See [Migration Guide](docs/MIGRATION.md) for detailed instructions.
### 3. Configure Claude Code
Add to your `.mcp.json`:
```json
{
"mcpServers": {
"skill-coordinator": {
"command": "npx",
"args": ["-y", "skill-coordinator"]
}
}
}
```
### 4. Use Skills On-Demand
Instead of skills being auto-loaded, use the coordinator tools:
```
list_skills → See available skills
get_skill_metadata → Preview a skill before loading
invoke_skill → Load and execute a skill
search_skills → Find skills by keyword
```
## Configuration
Create `~/.claude/skill_coordinator.json`:
```json
{
"skill_directories": [
"~/.claude/managed-skills",
"~/my-project/.claude/skills"
],
"cache": {
"enabled": true,
"ttl_seconds": 300
}
}
```
## Tools
| Tool | Purpose | Token Cost |
|------|---------|------------|
| `list_skills` | List all available skills | ~50 tokens |
| `get_skill_metadata` | Preview skill metadata | ~100 tokens |
| `get_skill_content` | Load full skill content | Varies |
| `invoke_skill` | Load skill with arguments | Varies |
| `search_skills` | Find skills by keyword | ~50-200 tokens |
## Skill Format
Skills use the standard Claude Code format:
```markdown
---
name: my-skill
description: One-line description
when_to_use: When this skill should be invoked
version: 1.0.0
---
# Skill Content
Your skill instructions here...
```
## Documentation
- [Usage Guide](docs/USAGE.md) - Detailed usage with Claude Code
- [Migration Guide](docs/MIGRATION.md) - Moving skills to managed directory
- [Token Savings](docs/TOKEN-SAVINGS.md) - Detailed metrics and calculations
## How It Works
```
┌─────────────────────────────────────────────────────────┐
│ Claude Code │
│ ┌─────────────────────────────────────────────────┐ │
│ │ Context Window │ │
│ │ ┌──────────────────┐ │ │
│ │ │ skill-coordinator │ ← 5 tools (~800 tokens) │ │
│ │ │ MCP Server │ │ │
│ │ └────────┬─────────┘ │ │
│ └───────────┼─────────────────────────────────────┘ │
└──────────────┼──────────────────────────────────────────┘
│ On-demand loading
▼
┌─────────────────────────────────────────────────────────┐
│ Managed Skills Directory │
│ ~/.claude/managed-skills/ │
│ ├── brainstorming/SKILL.md │
│ ├── systematic-debugging/SKILL.md │
│ └── ... │
└─────────────────────────────────────────────────────────┘
```
## License
MIT
TDQS
Scored across 5 tools
Each tool has a documented distinct role: discovery (list/search), preview (metadata), read (content), and execute (invoke). The closest pair is get_skill_content vs invoke_skill, which both return markdown content, but the descriptions make the difference (plain read vs load-and-apply-with-args) clear enough. Minor residual overlap prevents a 5.
All names follow a strict verb_noun snake_case pattern (list_, get_, invoke_, search_). The two get_ prefixed tools differ by a clear noun suffix (metadata vs content), so the convention is predictable and readable.
Five tools is well scoped for a skill coordination server: discover, preview, read, execute, and search each earn their place with no padding. Nothing feels redundant enough to remove.
The consumption lifecycle is fully covered: search/list to find, metadata to preview, content to read, invoke to apply. The only gap is authoring/management (no create/update/delete/register skill), which may be out of scope but leaves the surface read-only.