界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

mcp-skill-gen

mcp-skill-gen

【开发与工程】Generate standalone skills from MCP servers. Use when users want to create a reusable skill for an MCP service. Triggers on "create skill for MCP", "generate MCP skill", "make skill from MCP server".

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: mcp-skill-gen description: Generate standalone skills from MCP servers. Use when users want to create a reusable skill for an MCP service. Triggers on "create skill for MCP", "generate MCP skill", "make skill from MCP server".

MCP Skill Generator

Generate reusable skills from any MCP server using mh CLI.

Prerequisites

  • mh CLI must be installed. If not available, install with:
    curl -fsSL https://raw.githubusercontent.com/vaayne/mcphub/main/scripts/install.sh | sh
    

Workflow

1. Gather Input

ParameterRequiredDefaultExample
URLNo-https://mcp.exa.ai
ConfigNo-./mcp.json
TransportNohttphttp or sse
NameNofrom URL or configexa-search
OutputNo./<name>/SKILL.md./skills/exa-search/SKILL.md

Notes:

  • --url/-u and --config/-c are mutually exclusive
  • Config mode uses the tool names returned by mh list, with JS-style name mapping and collision checks

2. Discover Tools

URL mode:

mh -u <url> -t <transport> list

Stdio mode:

mh --stdio list -- cmd args ...

Config mode:

mh -c <config> list

3. Generate Skill

Read references/skill-template.md, fill placeholders: {skill-name}, {description}, {Title}, {url}, {transport}, {tool-count}, {tools-list}, {usage-block}, {notes-block}.

Usage blocks:

URL mode:

List tools: `mh -u {url} -t {transport} list`
Get tool details: `mh -u {url} -t {transport} inspect <tool-name>`
Invoke tool: `mh -u {url} -t {transport} invoke <tool-name> '{"param": "value"}'`

Config mode (use local config file name):

List tools: `mh -c {config-file} list`
Get tool details: `mh -c {config-file} inspect <tool-name>`
Invoke tool: `mh -c {config-file} invoke <tool-name> '{"param": "value"}'`

Notes blocks:

URL mode:

- Run `inspect` before invoking unfamiliar tools to get full parameter schema
- Timeout: 30s default, use `--timeout <seconds>` to adjust

Config mode:

- Run `inspect` before invoking unfamiliar tools to get full parameter schema
- Timeout: 30s default, use `--timeout <seconds>` to adjust

4. Write Output

Save to output path, create directories if needed.

If input is a config file, copy it into the generated skill folder as config.json and set {config-file} in the usage block to ./config.json, relative to the generated SKILL.md location.

Naming Guidelines

Name: Focus on capability, not source. Pattern: {source}-{capability} (kebab-case, 2-3 words)

URLToolsGoodBad
https://mcp.exa.aiwebSearchExa, getCodeContextExamcp-exa-searchexa
https://api.example.com/weathergetWeather, getForecastmcp-weather-apiweather

Description: {Action + capability}. Use when {conditions}. Triggers on "{phrase1}", "{phrase2}".

  • Start with action verb (Search, Fetch, Get, Create, Analyze)
  • Include 3-5 trigger phrases, mention service name, keep under 200 chars

Error Handling

ErrorAction
Connection timeoutVerify URL, check network, increase --timeout
No tools returnedServer may require auth or have no tools
Transport mismatchTry http first, fall back to sse
我的收藏