xiaohongshu
xiaohongshu
name: mcp-to-skill description: Convert any MCP server into a Claude Skill with 90% context savings. Use this skill when converting an MCP server to a skill to reduce context usage and improve performance. version: 1.0.0 ---
Full skill instructions
Convert any MCP (Model Context Protocol) server into a Claude Skill using the progressive disclosure pattern for significant context savings and improved performance.
Traditional MCP approach:
Skill approach:
Use this converter when:
Stick with direct MCP when:
Apply the "progressive disclosure" pattern:
Create a JSON configuration file for your MCP server:
{
"name": "server-name",
"description": "Server description",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-name"],
"env": {"ENV_VAR": "value"}
}
Execute the converter script:
cd $SKILL_DIR
python scripts/convert_mcp_to_skill.py --mcp-config path/to/config.json --output-dir ./output-dir
cd ./output-dir
uv pip install mcp
cp -r ./output-dir ~/.claude/skills/skill-name
Transform MCP configurations into skills using this main converter script.
Usage:
python scripts/convert_mcp_to_skill.py --mcp-config CONFIG_FILE --output-dir OUTPUT_DIR
Parameters:
--mcp-config: Path to MCP server configuration JSON file--output-dir: Directory where the generated skill will be createdReference assets/examples/ for sample MCP configurations:
Generated skills follow this structure:
skill-name/
├── SKILL.md (instructions for Claude)
├── executor.py (handles MCP communication)
├── mcp-config.json (MCP server configuration)
└── package.json (dependencies)
Test generated skills after conversion:
cd skill-directory
# List tools
python executor.py --list
# Describe a tool
python executor.py --describe tool_name
# Call a tool
python executor.py --call '{"tool": "tool_name", "arguments": {...}}'
Install the mcp package:
uv pip install mcp
Verify the config file:
This error has been fixed in recent versions. The issue occurred with improper async context manager handling.
Solution: Ensure you're using the latest version of the converter:
cd mcp-to-skill
python scripts/convert_mcp_to_skill.py --mcp-config your-config.json --output-dir ./your-skill
For technical details about this fix, see references/async_context_manager_fix.md.
uv pip install mcp)Reference these files for additional information:
references/mcp_basics.md - MCP protocol fundamentalsreferences/converter_details.md - Technical details about the converterreferences/context_optimization.md - Context optimization strategiesReal example with GitHub MCP server (8 tools):
| Metric | MCP | Skill | Savings |
|---|---|---|---|
| Idle | 8,000 tokens | 100 tokens | 98.75% |
| Active | 8,000 tokens | 5,000 tokens | 37.5% |
mcp Python packageThis skill uses the mcp-to-skill-converter from https://github.com/GBSOSS/-mcp-to-skill-converter
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience