A universal MCP skill runtime executing in a secure Docker sandbox.
Project description
"Open Skills" was born to solve the dependency hell where Claude Code's Skills functionality might fail in various differentiated environments, and the security risks of running unknown community Skill code directly on the local machine. I have perfectly replicated Anthropic's powerful Skills protocol as a plug-and-play MCP mode and encapsulated it in a secure, isolated, out-of-the-box Docker sandbox, allowing you to enjoy the power of Skills in any AI application that supports MCP.
🚀 Mission
Open Skills is a generic skills runtime based on the Model Context Protocol (MCP). It aims to enable any MCP-supported AI application (such as Google Antigravity, Cursor, Windsurf) to quickly access popular Skills capabilities and securely execute complex tasks, while addressing two major pain points:
-
Dependency Hell: No more need to configure complex Python environments for every script, or have an agent install a massive amount of unknown dependency packages on your local machine due to execution failures. The sandbox comes pre-installed with necessary dependencies and grants the agent temporary permission to install packages, purifying your local environment.
-
Security Risks: Completely eliminate the risk of AI modifying system files or executing malicious code. The sandbox environment mounts your /skills (read-only) directory and workspace /share (read-write) directory. Malicious code runs within the sandbox environment and cannot modify or read important files outside of the local workspace.
✨ Features
| Feature | Description |
|---|---|
| 📦 Out of the Box | Copy-Paste Compatibility. Simply copy folders from anthropics/skills or community Skills without modifying a single line of code. The smart adapter handles path mapping automatically. |
| 🛡️ Sandbox Security | All code runs inside a Docker Container that is disposed of after use. Agents can only access the mounted /skills and /share directories, keeping your host system absolutely safe. |
| 🔋 Batteries Included | Pre-installed with mainstream dependencies like Python, Node, Pandas, Numpy, LibreOffice, etc. Say goodbye to pip/npm install troubles and focus on the task. |
🔐 Architecture & Design
Open Skills is carefully designed to balance security and usability:
1. The Agent Model
The Agent runs as a agent (uid=1000) user inside the container, not Root.
- Permission Boundary: The capability to destroy the system (e.g., apt-get, rm -rf /bin) is stripped, but all permissions for creative work (code read/write, script execution, pip/npm install) are retained.
- File Ownership: The agent user has full read/write access to the /share workspace via Docker mounting. This ensures files generated by the Agent are owned by a regular user on the host, preventing "root user only" file locking issues.
2. Smart Node.js Setup
To solve the classic deadlock where "Agent wants to install a package but lacks permission", we used an Environment Injection design:
- Seamless Installation: Configured NPM_CONFIG_PREFIX="/share/.npm-global". When the Agent executes npm install package, the package is automatically installed under /share where it has write permissions. The Agent thinks it's installing globally, but it's actually installing locally—Zero Config, Zero Error.
📂 Directory & Architecture
open-skills/
├── open_skills/ # [Core] Core logic package
│ ├── cli.py # MCP Server entry point
│ ├── sandbox.py # Docker container manager
│ ├── Dockerfile # Batteries-included image definition
│ └── skills/ # Skills library (Put your Skills here)
├── docs/ # [Docs] Documentation & Guides
│ ├── EN/ # English Documentation
│ └── ZH/ # Chinese Documentation
├── README.md # English Documentation
├── README_zh.md # Chinese Documentation
└── LICENSE # MIT License
🛠️ Toolbox
Once connected to the Open Skills MCP service, your Agent gains the following superpowers:
- 📚
manage_skills: Skills Librarian. List and view detailed documentation for available skills (with automatic sandbox path injection). - 💻
execute_command: Execution Engine. Run Bash commands (Python, Node, Shell, etc.) inside the secure container. - 📂
read_file/write_file: File Operations. Securely read and write files in the workspace. - ☁️
upload_to_s3/download_from_s3: Cloud Transfer. After configuring .env, the agent can automatically transfer files to and from S3. - 👀
list_directory: Environment Perception. Securely list directory contents in the workspace, needed for non-IDE environments.
💡 Best Practices
Adapting Agents to the Sandbox Environment
Since we have completely decoupled the system-level execution environment of Skills and redesigned the sandbox mechanism, I suggest adding a Prompt Secret to your Agent Prompt to help it better master skills and the sandbox environment. (Optional, enable if you feel MCP service performance is suboptimal)
Agent Guide (MD) > Insert this prompt into your original System Prompt.
This solves:
- Spatial Awareness: Clarifies that /share corresponds to the current directory.
- Standard Procedure: Enforces the SOP of "Read Docs -> Write Code -> Run Tests".
- Permission Confidence: Gives the Agent confidence to execute commands within the sandbox.
⚠️ About "Meta-Skills"
Please test in the sandbox environment before transferring. Tools like skill-creator that let AI write skills generate Skills , That you need to manually transfer from the workspace to the /skills directory.
- Risk: AI-generated scripts have uncertainties; running them directly on the local machine may pose risks.
- Recommendation: Human reviews code, AI executes operations.
⚡ Quick Start
1. Prerequisites
Since Open Skills runs in a secure, isolated Docker sandbox, this is a mandatory step:
-
Install and start Docker Desktop.
-
Prepare the Image (Choose One):
-
Option A: Pull Official Image (Recommended)
docker pull forever17/open-skills:latest
-
Option B: Build Manually (For Developers)
Manually modify the Dockerfile to pre-install your most used dependency packages, then rebuild the image.
# Run in the source code directory docker build -t open-skills:latest open_skills/
-
2. Configuration
We strongly recommend using uvx (no need to manually install Python environment) to run directly.
🚀 Recommended Configuration (via uvx)
Add to your mcp_config.json (Google Antigravity) or any AI tool that supports the MCP protocol:
{
"mcpServers": {
"open-skills": {
"command": "uvx",
"args": [
"--from", "open-skills-mcp", "open-skills",
"--skills-dir", "E:\\Your_Projects\\skills", // [Required] Mount local Skills directory
"--work-dir", "E:\\Your_Projects\\workspace" // [Required] Specify workspace directory
],
"env": {
// [Optional] If S3 features are needed
"S3_BUCKET": "your_bucket",
"S3_REGION": "default",
"S3_ENDPOINT": "https://***.com",
"S3_CUSTOM_DOMAIN": "https://***.com",
"S3_ACCESS_KEY": "your_key",
"S3_SECRET_KEY": "your_secret"
}
}
}
}
Note: You must configure these two parameters: "--skills-dir" (Mount local Skills directory) is Required, "--work-dir" (Manually specify your workspace directory) is Required.
🔧 Development Installation
If you are a developer and want to run or debug from source code:
Running Modes
Mode A: SSE (Recommended for Development/Debugging)
Start the HTTP service:
uvicorn open_skills.cli:mcp.sse_app --port 8000
SSE Client Configuration:
{
"mcpServers": {
"open-skills": {
"serverUrl": "http://localhost:8000/sse"
}
}
}
Mode B: Stdio (Local Source Run)
If you don't use uvx and want to run the source code directly:
Install
git clone https://github.com/justForever17/open-skills.git
cd open-skills
pip install -e .
Windows:
{
"mcpServers": {
"open-skills": {
"command": "python",
"args": ["-m", "open_skills.cli"],
"cwd": "E:\\Projects\\open-skills" // Source code directory
}
}
}
macOS / Linux:
{
"mcpServers": {
"open-skills": {
"command": "python3",
"args": ["-m", "open_skills.cli"],
"cwd": "/path/to/open-skills"
}
}
}
📄 License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file open_skills_mcp-0.1.8.tar.gz.
File metadata
- Download URL: open_skills_mcp-0.1.8.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95699482aecddea41154b2f1496db39f0dbe02f301c4c1bd3c27134a9770614b
|
|
| MD5 |
71ebda8319780153ab39e6d916d9d28e
|
|
| BLAKE2b-256 |
66cfc99d53147a0d5a7c66067ada3ed421bd85eb21ac1f2a4cf1af5e9aa46c95
|
File details
Details for the file open_skills_mcp-0.1.8-py3-none-any.whl.
File metadata
- Download URL: open_skills_mcp-0.1.8-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30d598f36466c535e6effeaaf1ad106e2da48d97867e0ed2953947472e779d84
|
|
| MD5 |
eb115328dbeab94cf3a29281b178d452
|
|
| BLAKE2b-256 |
fa0d47136064815c0f6affd571b833f62cb177435c11738c16532f05bd788e77
|