openapi-to-mcp-skill
Skill3 starsChanged 7 months agoMITView on GitHub
Convert OpenAPI/Swagger APIs into Codex-friendly MCP/tool workflows and generated skills. Use when the user wants to expose an API to agents, create a skill from API docs, use toolcast-style conversion, or design safe API tool schemas. Triggers: OpenAPI to MCP, Swagger to tools, API tool plan, generate MCP server from API spec. Skip when there is no stable spec or the user only needs one ad-hoc HTTP request.
In this repository30 other files it gives its agents.
- agent-memory-ledgerSkill
- agent-observabilitySkill
- automation-skill-forgeSkill
- auto-skill-audit-codex-supercharge-installed-driftSkill
- auto-skill-build-agent-reliability-loopSkill
- auto-skill-build-agent-run-ledger-dashboardSkill
- auto-skill-build-mcp-conformance-harnessSkill
- auto-skill-build-memsearch-codex-memorySkill
- auto-skill-build-source-pattern-synthesisSkill
- auto-skill-build-sources-inventorySkill
- auto-skill-build-supercharge-feedback-loopSkill
- auto-skill-ops-supercharge-maintenance-passSkill
- auto-skill-safety-external-skill-intakeSkill
- auto-skill-safety-mcp-secret-guardSkill
- auto-skill-trend-github-discovery-radarSkill
- codebase-graph-scoutSkill
- codex-prompt-template-builderSkill
- codex-supercharge-routerSkill
- experiment-loop-runnerSkill
- low-token-contextSkill
- mcp-safety-reviewSkill
- mcp-server-labSkill
- model-cost-routerSkill
- open-design-ui-librarySkill
- repo-intelligence-briefSkill
- repo-to-wikiSkill
- sandbox-source-intakeSkill
- skill-pack-factorySkill
- skill-quality-gateSkill
- workflow-launchpadSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this to turn an API into a narrow, safe agent tool surface.
- Distinctive: line 18
Prefer a local OpenAPI/Swagger spec file.
- Distinctive: line 20
Run the read-only surface audit when a local spec is available:
- Distinctive: line 36
Create a Codex skill that teaches when and how to use the API.
- Very specific: line 37
Add safety confirmations for write/destructive/admin operations.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
OpenAPI To MCP Skill
Use this to turn an API into a narrow, safe agent tool surface.
Workflow
- Prefer a local OpenAPI/Swagger spec file. If the spec must be fetched, record the URL and do not send credentials.
Run the read-only surface audit when a local spec is available:
python3 plugins/codex-supercharge/scripts/openapi_surface_audit.py path/to/openapi.json- Inspect auth, servers, paths, schemas, request bodies, response shapes, rate limits, and write methods.
- Group endpoints into workflows, not raw endpoint dumps.
- Mark each operation:
- read-only
- write
- destructive
- admin
- credential-sensitive
- Generate a minimal MCP/tool plan or capability manifest.
- Create a Codex skill that teaches when and how to use the API.
- Add safety confirmations for write/destructive/admin operations.
Tool Plan Template
# API Tool Plan
## Auth
## Read Tools
## Write Tools
## Destructive Tools
## Admin And Credential-Sensitive Tools
## Rate Limits
## Error Handling
## Required Confirmations
## Example PromptsSkill Rule
The skill should describe business workflows, not every endpoint. Keep endpoint details in a reference file.
References
references/openapi-tool-surface.mdreferences/mcp-server-catalog.md- Source inspiration only, code not executed:
sources/toolcast - Capability-manifest inspiration:
sources/roam-code/src/roam/capability.py
Skip When
- The API has no spec or stable docs to inspect.
- The user only needs a one-off HTTP call, not an agent/tool surface.
- The task is only MCP conformance/release gating; use
$auto-skill-build-mcp-conformance-harness.
Validation
- Auth, rate limits, write/destructive operations, and confirmations are explicit.
- Generated tool groups map to workflows rather than raw endpoint dumps.
- Credential-sensitive operations route through
$mcp-safety-review. openapi_surface_audit.pywas run or the reason it could not run is stated.
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
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.

