Skip to main content
Glama

✨ 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

Related MCP server: mcp_coordinator

πŸš€ 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"]
    }
  }
}
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_DIR and SKILLFORGE_BACKUP_DIR environment 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.


Available Tools

10 tools
delete_skillA

Delete a skill permanently. Auto-backs up before deletion.

This is a destructive operation β€” the skill will be removed from the active library. A backup is always created so it can be restored later if needed.

Args: name: Skill identifier to delete. confirm: Must be True to actually delete. This two-step confirmation prevents accidental deletions.

Inputs: name (required), confirm. Returns: result

get_optimization_historyA

View the optimization history for a skill.

Use this to understand how a skill has evolved over time and what feedback drove each change. Helpful before making further edits to avoid reverting previous improvements.

Args: skill_name: The skill to check.

Inputs: skill_name (required). Returns: result

get_skillA

Read the full content of a skill.

Call this to load a skill's complete instructions before executing a task in that skill's domain. The returned body contains actionable guidelines β€” treat them as project-level requirements, not suggestions.

Args: name: The skill identifier (directory name).

Inputs: name (required). Returns: result

get_skill_guideA

Get the Skill Writing & Optimization Guide.

Call this BEFORE creating or modifying any skill. It covers: file format, writing principles, description optimization, and iterative improvement.

WHY: Skills that ignore the guide tend to be either too rigid (walls of MUST/NEVER) or too vague (no actionable instructions). The guide teaches how to write skills that actually help.

Inputs: no named parameters. Returns: result

list_backupsA

List all backups for a skill, newest first.

Use this to inspect version history before restoring or to verify that a backup was created after a save/delete operation.

Args: name: The skill identifier.

Inputs: name (required). Returns: result

list_skillsA

πŸ”΄ MANDATORY FIRST CALL β€” Call this before starting ANY task.

Returns all available skills with name and description. Review each description β€” if relevant to your current task, call get_skill to load full instructions.

WHY: Skills encode hard-won conventions and user preferences. Skipping this step means you will miss domain-specific guidance and repeat mistakes that have already been corrected.

Inputs: no named parameters. Returns: result

request_skill_optimizationA

Prepare and return a structured optimization plan for a skill.

Call this when user feedback indicates a skill needs improvement or a new skill should be created. Returns a step-by-step plan that you can follow directly β€” no sub-agent required.

Recommended workflow:

  1. Call triage_skill_request first to check for existing skills

  2. Call this tool to get the optimization plan

  3. Call get_skill_guide to understand writing best practices

  4. Draft the skill content following the plan and guide

  5. Call save_skill β€” it will validate and reject if quality is insufficient

Trigger signals to watch for:

  • User corrects your approach β†’ existing skill may need updating

  • User states a preference ('always X', 'never Y') β†’ skill candidate

  • Repeated pattern across conversation β†’ new skill candidate

  • User explicitly mentions skills β†’ act immediately

Args: skill_name: Which skill to optimize (or create if it doesn't exist). feedback: The user feedback that triggered this optimization. context: Optional additional context about what went wrong or what the user expects.

Inputs: skill_name (required), feedback (required), context. Returns: result

restore_skillA

Restore a skill from a specific backup. Current version is backed up first.

Use this when a skill optimization went wrong and you need to roll back. The current version is always saved before overwriting, so no data is lost.

Args: name: The skill identifier. timestamp: Backup timestamp (from list_backups output).

Inputs: name (required), timestamp (required). Returns: result

save_skillA

Create or update a skill. Validates before saving, auto-backs up before overwrite.

This tool enforces quality gates β€” if the skill fails validation, it will be REJECTED with specific error messages explaining what to fix. Fix the issues and call save_skill again.

Validation checks:

  • Description must be >= 50 chars and explain WHAT + WHEN

  • Body must be 3-500 lines of actionable instructions

  • Description should include trigger conditions

  • Body should avoid overly rigid language (explain WHY instead)

Args: name: Skill identifier (lowercase, hyphens, max 64 chars). description: What the skill does and when to trigger (>= 50 chars). Front-load the key use case. Include trigger conditions like 'Use this skill when...' or 'Activate whenever...'. body: Markdown body (3-500 lines). Follow the skill writing guide. extra_frontmatter: Optional JSON of additional frontmatter fields.

Inputs: name (required), description (required), body (required), extra_frontmatter. Returns: result

triage_skill_requestA

Analyze intent against existing skills to decide the best action.

Call this BEFORE creating or optimizing a skill. It returns all existing skills with their descriptions so you can determine:

  • REUSE: An existing skill already covers this need (match >= 80%). β†’ Just call get_skill to load it.

  • IMPROVE: An existing skill partially covers this (match 50-79%). β†’ Call request_skill_optimization with the existing skill name.

  • CREATE: No existing skill is relevant (match < 50%). β†’ Call request_skill_optimization with a new skill name.

You (the LLM) make the routing decision β€” this tool provides the information you need to decide.

Args: intent: What the user wants or the feedback that triggered this. Be specific β€” include the domain, task type, and context.

Inputs: intent (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clear, unique purpose. For example, get_skill retrieves full skill content, get_skill_guide provides the writing guide, triage_skill_request analyzes intent, and request_skill_optimization creates an optimization plan. No two tools overlap in function.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (e.g., delete_skill, get_optimization_history, list_skills). The naming style is uniform and predictable across the entire set.

    Tool Count5/5

    With 10 tools, the server covers the full skill management lifecycle without being excessive. Each tool earns its place, and the count feels balanced for the domain.

    Completeness5/5

    The tool set covers the complete lifecycle: listing, reading, creating/updating (save), deleting, restoring, triaging, optimizing, and reviewing history/backups. There are no obvious gaps for a skill management system.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers