agentleFS
vaaynevaayne/mcphub/skills/mcp-skill-gen/SKILL.md

mcp-skill-gen

Skill2 starsChanged 11 months agoMITView on GitHub

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".

  • Pipes a download into a shell

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 56
  2. Very specific:

    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 …

    line 96
  3. Distinctive:

    Start with action verb (Search, Fetch, Get, Create, Analyze)

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 list -u <url> -t <transport>

Stdio mode:

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

Config mode:

mh list -c <config>

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 list -u {url} -t {transport}`
Get tool details: `mh inspect -u {url} -t {transport} <tool-name>`
Invoke tool: `mh invoke -u {url} -t {transport} <tool-name> '{"param": "value"}'`

Config mode (use local config file name):

List tools: `mh list -c {config-file}`
Get tool details: `mh inspect -c {config-file} <tool-name>`
Invoke tool: `mh invoke -c {config-file} <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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.