An enterprise-grade, distributed swarm registry and execution environment natively implementing the Model Context Protocol (MCP). Replaces traditional slow, context-stuffed prompts with isolated, secure sandboxing and structural Abstract Syntax Tree (AST) routing.
Quick Start β’ MCP Connection β’ Architecture β’ HTTP API Reference β’ MCP Tools β’ Subsystems β’ API Reference β’ Comparison Matrix β’ Roadmap
Traditional LLM agent frameworks fail at scale. By "slurping" entire codebases and APIs into prompt context windows, they suffer from
Skillbrary solves this.
We provide a dedicated execution gateway utilizing a Write-Ahead Log (WAL) mutation ledger, custom cross-process concurrency file locks, and surgical Abstract Syntax Tree (AST) extractions. Your Swarm interacts with structural topologyβnot raw text.
| Feature | Description | Latency Bound |
|---|---|---|
| WAL-Driven Execution | Guarantees atomic file appending and state isolation across multiple agents using custom lock_manager protocols. |
< 10ms |
| Lightweight AST Parsing | Parses class and function topologies directly via AST to eliminate context bloat. Includes a FAST_REJECT_REGEX pre-filter. |
< 21ms |
| Topological DAG Execution | Built-in capability router automatically resolves tags and sorts tasks into a strict Directed Acyclic Graph (DAG) for isolated routing. | < 50ms |
| Secure Sandbox Runtimes | Executes tasks in natively branched workspaces with full environmental purges post-execution to prevent context leaks. | Isolated |
- Python 3.11+
- uv (recommended for rapid dependency syncing)
git clone https://github.com/axtontc/The-Skillbrary.git
cd The-Skillbrary
# Sync virtual environment using uv (fastest)
uv syncEnsure the registry works out-of-the-box (including HTTP API client tests):
# Run unit and integration tests
uv run python -m pytest tests/test_integration.py -vThe Skillbrary exposes a unified FastMCP server that runs over standard I/O (stdio) and lazily spawns the registry API server in the background.
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"skillbrary": {
"command": "uv",
"args": [
"--directory",
"C:/absolute/path/to/The-Skillbrary",
"run",
"python",
"skillbrary_mcp.py"
]
}
}
}- Navigate to Settings β Features β MCP.
- Click + Add New MCP Server.
- Fill out the configuration:
- Name:
skillbrary - Type:
command - Command:
uv --directory "C:/path/to/The-Skillbrary" run python skillbrary_mcp.py
- Name:
- Click Save.
graph TD
A[MCP Client / Swarm Agent] --> B(Capability Router)
B --> C{AST Topology Gate}
C -->|Valid Code Topology| D[Write-Ahead Log Mutation]
C -->|Malicious / Invalid Code| E["Fast Reject <21ms"]
D --> F[Skill Sandbox Workspace]
F --> G[Execution Result Captured]
G --> H[Return JSON Response]
style A fill:#1a1a2e,stroke:#3776AB,color:#fff
style B fill:#16213e,stroke:#3776AB,color:#fff
style C fill:#0f3460,stroke:#2ea043,color:#fff
style D fill:#0f3460,stroke:#2ea043,color:#fff
style F fill:#1a1a2e,stroke:#F5A800,color:#fff
When started (or lazy-loaded by the MCP client), Skillbrary hosts a local REST API server at http://localhost:8080 exposing the following:
GET /skills/search?intent={query}&limit={n}: Returns all available local and external skills matching the intent or tags.POST /skills/install: Registers a new skill in the index.- JSON payload:
{"intent": "...", "skill_id": "..."}
- JSON payload:
POST /skills/execute: Executes the specified skill dynamically in the sandbox.- JSON payload:
{"intent": "...", "skill_id": "...", "script_path": "...", "args": []}
- JSON payload:
Skillbrary automatically registers these tools with your agent:
search_skills: Searches external registries for agentic capabilities.install_skill: Installs a skill to the local agent toolbox to make it permanently available.execute_skill: Dynamically runs a skill's execution scripts inside the secure Sandbox runtime.
| Subsystem | Folder / File | Responsibility |
|---|---|---|
| FastMCP Server wrapper | skillbrary_mcp.py |
Command line entry point and FastMCP standard tool registration |
| REST Registry API Server | src/api.py |
FastAPI server hosting /skills/search, /skills/install, and /skills/execute routes |
| WAL Mutation Logger | src/wal_manager.py |
Concurrency lock manager implementing cross-platform locking (msvcrt / fcntl fallback) |
| Sandbox Runtime | src/runtime/sandbox.py |
Py sandbox executor checking AST nodes and enforcing run boundaries |
These functions manage concurrent state reads/writes on index databases:
| Function / Routine | Parameters | Description |
|---|---|---|
acquire_exclusive_lock(file_path) |
str / Path |
Cross-platform lock wrapper returning an active lock file handle. |
release_exclusive_lock(lock_handle) |
object |
Releases the platform lock and closes the file descriptor. |
These routines execute and validate dynamic code scripts:
| Function / Routine | Parameters | Description |
|---|---|---|
validate_ast_rules(code_string) |
str |
Checks AST imports, decorators, and classes for structural anomalies. |
execute_isolated_script(script_path, args) |
Path, list[str] |
Runs script under an isolated subprocess, returning stdout logs. |
| Registry Feature | Standard MCP | Custom Scripts | The Skillbrary |
|---|---|---|---|
| Dynamic Skill Execution | β | β Yes (FastAPI Sandbox) | |
| Cross-Process WAL Locks | β | β | β Yes (msvcrt/fcntl) |
| Fast-Reject AST filtering | β | β | β Yes (<21ms check) |
| CLI & REST API Access | β | β | β Yes (Dual interface) |
| Auto Path Translation | β | β | β Yes (Workspace auto-resolve) |
- Web Framework: FastAPI, Uvicorn
- MCP SDK: FastMCP Python SDK
- Locking mechanisms: fcntl (Unix), msvcrt (Windows)
- Verification tools: pytest, httpx TestClient, Ruff, mypy
- FastMCP stdio interface wrapping
- Multi-process file lock safety (Windows/Linux fallback)
- FastAPI REST search, install, and execute registry server
- Pytest HTTP API mock verification tests
- Decentralized Swarm P2P Registry Syncing β Synchronize installed skills across nodes using a peer-to-peer gossip protocol
- Docker Execution Backend β Run user-installed skills inside ephemeral Docker containers instead of native subprocesses
- AST Visual Topology Graph β Visual browser explorer for skill dependencies
Skillbrary is the capability store of the Antigravity Swarm ecosystem:
| Project | Description |
|---|---|
| AUI | Zero-latency cross-process UI automation for Windows and Web |
| MemMCP | Deterministic memory server with SQLite WAL and FAISS RRF |
| Multiverse-Planner | Brute-forces optimal plans via timeline expansion and pruning |
| The-Nexus | Monolithic API gateway and orchestrator for local LLMs |
| Fractal-Swarm-v2 | Mathematically optimal state-machine agent swarm orchestration |
| AntiMem | Memory daemon and compactor for Antigravity swarms |
| OmniMem | PostgreSQL hybrid memory system for large enterprise swarms |
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details. Copyright (c) 2026 Axton Carroll.
β If The Skillbrary helps distribute your agent skills, consider giving it a star!
Built by Axton Carroll β "Nothing is impossible, we merely don't know how to do it yet."