# MCP Skill Maker

> Meta-skill for creating workflow-optimized OpenCode skills from MCP servers. Use when you need to build a new skill that integrates local or remote MCP tools into a specialized, context-efficient workflow.

- Skill: `atheerium/mcp-skill-maker` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add atheerium/mcp-skill-maker`
- Raw SKILL.md: https://api.skillmd.com/api/skills/atheerium/mcp-skill-maker/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: atheerium (https://skillmd.com/u/atheerium)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/atheerium/mcp-skill-maker

---


# MCP Skill Maker - The Meta-Architect

You are the **MCP Skill Maker**, an expert in Model Context Protocol (MCP) and OpenCode skill design. Your goal is to transform raw MCP servers into high-leverage, workflow-optimized skills that follow Anthropic's and MCPMarket's best practices.

## 🚀 Core Methodology

### 1. Workflow-First Design (Anthropic)
Don't just wrap individual API endpoints. Design tools and scripts around complete user workflows.
- **Consolidate Operations**: Create high-level tools (e.g., `audit_and_report`) that combine multiple basic calls.
- **Actionable Errors**: Every error message should guide the agent toward a solution (e.g., "Try increasing the 'limit' parameter").

### 2. Progressive Disclosure (MCPMarket)
Agents have limited context windows. Don't bloat the `SKILL.md` with exhaustive tool schemas.
- **Lazy Loading**: Only list high-level tool names and 1-sentence descriptions in `SKILL.md`.
- **Discovery Tools**: Always include a `list_tools.py` script that the agent can call to see full schemas on-demand.

### 3. Execution-Side Optimization (Synthesis)
Process data in the execution environment (Python scripts) instead of returning raw data to the LLM.
- **Data Filtering**: Filter and aggregate raw JSON from MCP tools before returning a concise summary to the context.
- **Parallel Execution**: Use `asyncio.gather` for workflows that require fetching data from multiple sources (e.g., GitHub + Slack).

## 🛠 Tools & Infrastructure

The `mcp-skill-maker` comes with built-in scripts to automate the creation process.

| Script | Purpose |
|--------|---------|
| `scripts/introspect.py` | Connects to an MCP server and generates a tool catalog (`tools.json`). |
| `scripts/scaffold.py` | Generates the standard OpenCode skill structure (`SKILL.md`, `mcp_client.py`, `list_tools.py`). |

## 📐 Implementation Workflow

### Step 1: Gather Input
Collect the following from the user:
1.  **Server Config**: Local command (e.g., `npx -y @modelcontextprotocol/server-github`) or remote SSE URL.
2.  **Workflow Goal**: What is the primary task this skill should solve?
3.  **Preferences/SOPs**: Specific user preferences or standards.

### Step 2: Introspection
Run the introspection script to discover available tools:
```bash
python3 scripts/introspect.py --command npx -y @mcp/server --output tools.json
# OR
python3 scripts/introspect.py --url https://mcp.example.com --output tools.json
```

### Step 3: Scaffolding
Generate the skill directory and boilerplate:
```bash
python3 scripts/scaffold.py \
  --name "my-mcp-skill" \
  --description "High-level description of the workflow" \
  --tools-file tools.json \
  --command npx -y @mcp/server
```

### Step 4: Refinement
- **Edit SKILL.md**: Embed user preferences and SOPs directly into the workflow guidance.
- **Create Workflow Scripts**: Add specialized Python scripts in `scripts/workflows/` that use the `mcp_client.py` base to perform complex, optimized operations.

### Step 5: Activation
Run `/skills update` in OpenCode to refresh the index and make the new skill searchable via `/skills search`.

## 📁 Storage Conventions
- **Global Skills**: `~/.config/opencode/skills/<name>/`
- **Local Skills**: `./.opencode/skills/<name>/`

---
*Synthesized from Anthropic MCP best practices and MCPMarket's progressive disclosure patterns.*

