An MCP server that makes your AI agent learn and evolve โ one skill at a time.
Project description
๐ ๏ธ SkillForge
An MCP server that makes your AI agent learn and evolve โ one skill at a time.
Skills are reusable instructions that get better with every conversation.
๐จ๐ณ ไธญๆๆๆกฃ ยท ๐ฆ PyPI ยท ๐ Issues
โจ What is SkillForge?
SkillForge is a Model Context Protocol (MCP) server that gives your AI agent a persistent, evolving skill library. Instead of repeating the same corrections and preferences every session, SkillForge captures them as skills โ structured instructions that the agent loads and follows automatically.
๐ก Think of it as muscle memory for your AI โ it learns your conventions once and applies them forever.
๐ The Feedback Loop
๐ค User gives feedback
โ
โผ
๐ Agent detects improvement signal
โ
โผ
๐ Triage: reuse / improve / create?
โ
โผ
โ๏ธ Draft skill following guide + plan
โ
โผ
๐ก๏ธ Validation gate (reject or pass)
โ
โผ
๐พ Skill saved (auto-backed up)
โ
โผ
โ
Next task uses improved skill
๐ Quick Start
๐ฆ Installation
# Install from PyPI (recommended)
pip install skillforge-mcp
# Or with uv
uv pip install skillforge-mcp
โก Run the Server
# Run directly
skillforge
# Or run without installing via uvx
uvx skillforge-mcp
๐ Connect to Claude Code
Add to your MCP config:
{
"mcpServers": {
"skillforge": {
"command": "uvx",
"args": ["skillforge-mcp"]
}
}
}
๐ก Alternative: install from source
git clone https://github.com/CatVinci-Studio/skillForge.git
cd skillForge
pip install -e .
๐งฉ Architecture
src/skillforge/
โโโ ๐ server.py # MCP server definition & prompts
โโโ ๐จ response.py # Response formatting & feedback monitor
โโโ ๐ก๏ธ validator.py # Hard validation gates for skill quality
โโโ ๐ skill_manager.py # Core CRUD, backup, restore logic
โโโ ๐ง tools/
โ โโโ ๐ discovery.py # list_skills, get_skill
โ โโโ โ๏ธ crud.py # save_skill (with validation), delete_skill
โ โโโ ๐พ backup.py # list_backups, restore_skill
โ โโโ ๐ triage.py # triage_skill_request
โ โโโ ๐ง optimization.py # get_skill_guide, request_skill_optimization
โโโ ๐ guide/
โโโ skill_writing_guide.md # Best practices for skill authoring
๐ Runtime Data
SkillForge stores its data in ~/.skillforge/:
| Directory | Purpose |
|---|---|
~/.skillforge/skills/ |
๐ Active skill library |
~/.skillforge/backups/ |
๐๏ธ Automatic version history |
๐ Override with
SKILLFORGE_SKILLS_DIRandSKILLFORGE_BACKUP_DIRenvironment variables.
๐ง Available Tools
| Tool | Description |
|---|---|
๐ list_skills |
List all skills โ mandatory first call before any task |
๐ get_skill |
Load full skill instructions by name |
๐ triage_skill_request |
Check existing skills before creating/improving โ prevents duplication |
๐ง request_skill_optimization |
Get a structured plan for skill improvement |
๐ get_skill_guide |
Load the skill writing best practices guide |
โ๏ธ save_skill |
Create or update a skill โ validates and rejects if quality is insufficient |
๐๏ธ delete_skill |
Remove a skill (two-step confirmation, auto-backup) |
๐ list_backups |
View version history for a skill |
โช restore_skill |
Roll back to a previous version |
๐ get_optimization_history |
View the feedback log that drove skill changes |
๐ก๏ธ Quality Gates (v0.2.0)
Unlike prompt-based quality control that depends on LLM compliance, SkillForge enforces quality through hard validation gates in save_skill:
| Check | Type | Rule |
|---|---|---|
| ๐ Description length | โ Error | Must be โฅ 50 characters |
| ๐ Body length | โ Error | Must be 3โ500 lines |
| ๐ Description โ name | โ Error | Description must explain, not repeat the name |
| ๐ฏ Trigger conditions | โ ๏ธ Warning | Should include "when/whenever/use this skill..." |
| ๐ฃ๏ธ Rigid language | โ ๏ธ Warning | Prefer reasoning over "YOU MUST ALWAYS" imperatives |
| ๐ Description too long | โ ๏ธ Warning | Keep under 1000 chars, move details to body |
๐ด Errors block the save โ fix them and retry. ๐ก Warnings allow the save but flag areas for improvement.
๐ Skill Triage
Before creating a new skill, triage_skill_request returns all existing skills so the LLM can decide:
| Decision | Condition | Action |
|---|---|---|
| REUSE | Existing skill covers the need | Load it with get_skill |
| IMPROVE | Existing skill partially covers it | Optimize with request_skill_optimization |
| CREATE | No relevant skill exists | Create via request_skill_optimization |
๐ Skill Format
Each skill lives in its own directory as a SKILL.md file with YAML frontmatter:
---
name: my-skill
description: >
What this skill does and when to trigger it.
Use this skill whenever the user asks for...
Also activate when...
---
# Skill Instructions
Your markdown instructions here...
๐ท๏ธ Frontmatter Fields
| Field | Required | Description |
|---|---|---|
name |
โ | Identifier (lowercase-with-hyphens, max 64 chars) |
description |
โ | Trigger conditions โ WHAT it does + WHEN to use it (โฅ 50 chars) |
disable-model-invocation |
โ | true = only user can invoke |
user-invocable |
โ | false = only LLM can invoke |
allowed-tools |
โ | Tools allowed without per-use approval |
context |
โ | fork = run in isolated sub-agent |
๐ง How Optimization Works
SkillForge continuously monitors conversations for improvement signals:
| Signal | Example | Action |
|---|---|---|
| ๐ด Correction | "No, don't mock the database" | Update relevant skill |
| ๐ก Preference | "Always use snake_case" | Create or update skill |
| ๐ต Pattern | Same structure used 3+ times | Bundle into new skill |
| ๐ข Explicit | "Add this to the review skill" | Direct skill edit |
๐ Safety Guarantees
- โ Auto-backup before every save and delete
- โ One-click restore from any backup timestamp
- โ Path traversal protection on all file operations
- โ Atomic writes with file locking for optimization logs
- โ Hard validation gates โ quality enforced at the tool boundary, not by prompt
๐ Why SkillForge?
| Without SkillForge | With SkillForge |
|---|---|
| ๐ค Repeat the same corrections every session | ๐ง Agent remembers and applies automatically |
| ๐ Conventions scattered across docs | ๐ฆ Single source of truth per topic |
| ๐ฒ Inconsistent agent behavior | โ Deterministic, skill-guided responses |
| ๐ No learning from feedback | ๐ Skills evolve with every interaction |
| ๐ค Hope the LLM follows quality guidelines | ๐ก๏ธ Hard validation rejects low-quality skills |
๐ฃ๏ธ Roadmap
- ๐ก๏ธ Hard validation gates for skill quality
- ๐ Skill triage to prevent duplication
- ๐ Skill sharing & import from remote repositories
- ๐ Analytics dashboard for skill usage & effectiveness
- ๐ Cross-skill dependency management
- ๐งช Skill testing framework with evaluation harness
- ๐ช Community skill marketplace
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
This project is licensed under the MIT License โ see the LICENSE file for details.
Built with โค๏ธ by CatVinci Studio
Forging better AI, one skill at a time. ๐จ
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 skillforge_mcp-0.2.0.tar.gz.
File metadata
- Download URL: skillforge_mcp-0.2.0.tar.gz
- Upload date:
- Size: 75.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9eb5f7aca94992f580628db72d9571d7a4cec3a494b3ba5ab2a99e6a4e0f9c
|
|
| MD5 |
b340e4ed6b6f9b8a7ab7da33561f318f
|
|
| BLAKE2b-256 |
64c3e4bacb76af8a8af6b7aab1261e0095127b60816172074fc5eca7f0abcfa0
|
Provenance
The following attestation bundles were made for skillforge_mcp-0.2.0.tar.gz:
Publisher:
publish.yml on CatVinci-Studio/skillForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skillforge_mcp-0.2.0.tar.gz -
Subject digest:
3b9eb5f7aca94992f580628db72d9571d7a4cec3a494b3ba5ab2a99e6a4e0f9c - Sigstore transparency entry: 1227968772
- Sigstore integration time:
-
Permalink:
CatVinci-Studio/skillForge@14ad101e9ef9079a2eebcdd97c41b34471fd3948 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/CatVinci-Studio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@14ad101e9ef9079a2eebcdd97c41b34471fd3948 -
Trigger Event:
release
-
Statement type:
File details
Details for the file skillforge_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: skillforge_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72be72d576a8cffbeba44e1ccc39752e379dffefa723374adc434d94c2481064
|
|
| MD5 |
961dd3306b18ee51af49b85f4c85d3cc
|
|
| BLAKE2b-256 |
3540908df8061e5aedb7eb2a23ac95d3a54230433de62d8ddd2474a89c2fa613
|
Provenance
The following attestation bundles were made for skillforge_mcp-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on CatVinci-Studio/skillForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skillforge_mcp-0.2.0-py3-none-any.whl -
Subject digest:
72be72d576a8cffbeba44e1ccc39752e379dffefa723374adc434d94c2481064 - Sigstore transparency entry: 1227968777
- Sigstore integration time:
-
Permalink:
CatVinci-Studio/skillForge@14ad101e9ef9079a2eebcdd97c41b34471fd3948 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/CatVinci-Studio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@14ad101e9ef9079a2eebcdd97c41b34471fd3948 -
Trigger Event:
release
-
Statement type: