Skip to main content
Glama
README.md
<div align="center">

<img src="assets/logo.svg" width="128" height="128" alt="skillwell logo: a stone well with a glowing star being drawn up in its bucket">

# skillwell

**Every agent skill you own. Almost none of the context.**

One library for all your skills, served over MCP. Your agent sees a handful,
finds the rest the moment it needs them, and loads each one as a real skill.

[![npm](https://img.shields.io/npm/v/skillwell?color=cb3837&logo=npm)](https://www.npmjs.com/package/skillwell)
[![CI](https://github.com/manojlds/skillwell/actions/workflows/ci.yml/badge.svg)](https://github.com/manojlds/skillwell/actions/workflows/ci.yml)
[![node](https://img.shields.io/node/v/skillwell?logo=node.js&logoColor=white)](package.json)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)

</div>

---

## Why

Every skill an agent lists costs context in **every** session, used or not. In Claude Code
that's about 170 tokens a skill, so a modest 24-skill library is ~4k tokens gone before you
type, and it grows with every skill you add.

skillwell lists only a router (~50 tokens), plus the skills you pin. When a task comes up, the
agent calls `find_skill`, and the best match becomes a **real skill** on the spot: it shows in
`/skills`, loads through the Skill tool, asks for approval, and runs its bundled scripts.

```mermaid
flowchart LR
    U(["β€œMerge these two PDFs”"]) --> A[Agent]
    A -- "find_skill('merge pdf')" --> S[(skillwell<br/>library)]
    S -- "pdf is now listed" --> A
    A -- "Skill: skillwell:pdf" --> D["Done, using the<br/>pdf skill's scripts"]
```

In testing, with prompts that never mentioned skillwell, Claude found and loaded
`internal-comms` for a team update and `brand-guidelines` for a styling question on its own.

## Quick start

```bash
npx skillwell init                                         # create ~/.skillwell
npx skillwell add anthropics/skills                        # add a pack of skills
claude mcp add -s user skillwell -- npx -y skillwell serve # serve it to Claude Code
```

Start a new Claude Code session and just work. `/skills` shows `skillwell:skillwell`; ask for
something a skill covers ("make a slide deck", "fill in this PDF form") and watch it appear.

> [!NOTE]
> MCP skills are a public beta: Claude Code v2.1.331 or later, in interactive sessions.
> Elsewhere (`claude -p`, the Agent SDK, other MCP clients) the same library works through the
> `find_skill` and `get_skill` tools.

## ✨ Features

| | |
|---|---|
| πŸ”Ž **Find on demand** | BM25 search over names, descriptions and skill bodies; the top match is listed mid-session. |
| 🧠 **Learns per project** | Optionally remember what a project uses; least recently used skills drop back out. |
| πŸ“Œ **Pins and profiles** | Always list a skill here, or switch on a named set like `web` or `docs`. |
| πŸ“¦ **Any source** | GitHub repos, folders, single skills, browser links, skills.sh links, any git URL, local folders. |
| πŸ”’ **Locked** | Every pack is pinned to a commit and a tree hash; `doctor` spots hand edits, `update` restores. |
| 🚚 **Bring your skills** | `import` pulls in `~/.claude/skills` and `~/.agents/skills`, with undo. |
| πŸ› οΈ **Scripts just work** | `${CLAUDE_SKILL_DIR}` is filled in, so bundled scripts run from the library. |

## Add skills

```bash
skillwell add anthropics/skills                      # a whole GitHub repo
skillwell add anthropics/skills@pdf                  # one skill from it
skillwell add anthropics/skills --skill pdf --skill docx --as office
skillwell add https://github.com/anthropics/skills/tree/main/skills/pdf   # paste from the browser
skillwell add https://skills.sh/anthropics/skills/pdf                     # or from skills.sh
skillwell add git@github.com:acme/skills.git --ref v2 --path skills --as acme
skillwell add ~/my-skills --as mine                  # a local folder
```

Your own skills live in `~/.skillwell/skills/<name>/SKILL.md`. Already have some?

```bash
skillwell import --dry-run   # see what it would take from ~/.claude/skills and ~/.agents/skills
skillwell import --move      # bring them in, and stop agents listing them natively
```

## Everyday commands

```bash
skillwell find merge pdf          # what find_skill would return
skillwell list                    # every skill, tagged [pinned] / [profile x] / [disabled]
skillwell pin skills/pdf          # always list it in this project
skillwell profile set web agent-browser/agent-browser skills/webapp-testing
skillwell profile use web         # list that set here
skillwell promotion remember      # remember what this project finds
skillwell update                  # fetch packs again
skillwell doctor                  # check everything
```

The full command list, every source form, how listing and search work, and the on-disk layout
are in **[docs/reference.md](docs/reference.md)**.

## Claude Code permissions

Claude Code asks before it calls an MCP tool, and before it reads or runs files outside your
project, which includes a skill's scripts in `~/.skillwell`. To skip those prompts, add to
`~/.claude/settings.json`:

```json
{
  "permissions": {
    "allow": [
      "mcp__skillwell__find_skill",
      "mcp__skillwell__get_skill",
      "Read(~/.skillwell/**)"
    ],
    "deny": ["Read(~/.skillwell/**/.env)", "Read(~/.skillwell/**/.env.*)"],
    "additionalDirectories": ["/home/you/.skillwell"]
  }
}
```

Put your real home folder in `additionalDirectories`. The `deny` rules keep secrets that a skill's setup may leave in the library out of reach.
Loading a skill still asks for approval the first time, as it does for any skill.

## Develop

```bash
git clone https://github.com/manojlds/skillwell.git && cd skillwell && npm install
npm link                          # `skillwell` on your PATH, running src/ directly
npm test && npm run typecheck
```

A checkout runs `src/` through tsx, so edits apply at once; the published package ships the
compiled `dist/` and needs Node 22 or later. The research and experiments behind the design
are in [docs/research.md](docs/research.md) and [docs/spike-results.md](docs/spike-results.md).

**Releases** come only from GitHub Actions: Actions β†’ **Release** β†’ *Run workflow*, pick a
bump. It tests, publishes to npm with [trusted publishing](https://docs.npmjs.com/trusted-publishers)
and provenance, tags, and writes the GitHub release.

## License

[Apache-2.0](LICENSE)