OpenAPI to MCP Server
mcp-use/mcp-use
Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.
Modify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees.
$ npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install counterfact/api-simulator counterfact-generator-internals --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/counterfact/api-simulator.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/counterfact-generator-internals .claude/skills/counterfact-generator-internals && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "counterfact-generator-internals" agent skill from https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internals into .claude/skills/counterfact-generator-internals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "counterfact-generator-internals", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internalsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install counterfact/api-simulator counterfact-generator-internals --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/counterfact/api-simulator.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/counterfact-generator-internals .agents/skills/counterfact-generator-internals && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "counterfact-generator-internals" agent skill from https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internals into .agents/skills/counterfact-generator-internals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "counterfact-generator-internals", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install counterfact/api-simulator counterfact-generator-internals --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/counterfact/api-simulator.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/counterfact-generator-internals .cursor/skills/counterfact-generator-internals && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "counterfact-generator-internals" agent skill from https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internals into .cursor/skills/counterfact-generator-internals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "counterfact-generator-internals", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/counterfact/api-simulator.git --path .github/skills/counterfact-generator-internals--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install counterfact/api-simulator counterfact-generator-internals --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/counterfact/api-simulator.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/counterfact-generator-internals .gemini/skills/counterfact-generator-internals && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "counterfact-generator-internals" agent skill from https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internals into .gemini/skills/counterfact-generator-internals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "counterfact-generator-internals", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install counterfact/api-simulator counterfact-generator-internalsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/counterfact/api-simulator.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/counterfact-generator-internals .github/skills/counterfact-generator-internals && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "counterfact-generator-internals" agent skill from https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internals into .github/skills/counterfact-generator-internals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "counterfact-generator-internals", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install counterfact/api-simulator counterfact-generator-internals --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/counterfact/api-simulator.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/counterfact-generator-internals .opencode/skills/counterfact-generator-internals && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "counterfact-generator-internals" agent skill from https://github.com/counterfact/api-simulator/tree/main/.github/skills/counterfact-generator-internals into .opencode/skills/counterfact-generator-internals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "counterfact-generator-internals", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
counterfact-generator-internalsModify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees.
Counterfact Generator Internals is an agent skill from counterfact/api-simulator. Modify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees.
Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering OpenAPI specifications. It works with OpenAPI and TypeScript. The repository describes itself as: Turn an OpenAPI spec into a local API in one command. Build and test your frontend with custom responses, shared state, and simulated failures, without waiting for the backend. The licence is MIT.
Read from SKILL.md and the folder at commit fc1c7f8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
yarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Counterfact Generator Internals loads about 648 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 199 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from counterfact/api-simulator at commit fc1c7f8, republished under its MIT licence (© counterfact). 199 words, ~648 tokens.
.claude/skills/counterfact-generator-internals/SKILL.md (or your agent's skills folder).Use this skill when changing OpenAPI loading/bundling, schema-to-type generation, operation/type coders, repository/script writing, or generated versions typing.
packages/counterfact/src/typescript-generator/README.mdpackages/counterfact/src/typescript-generator/code-generator.tspackages/counterfact/src/typescript-generator/specification.tspackages/counterfact/src/typescript-generator/requirement.tspackages/counterfact/src/typescript-generator/repository.tspackages/counterfact/src/typescript-generator/schema-type-coder.tsSpecification/Requirement -> coders -> Script -> Repository.@counterfact/openapi source classification: watch every unique local contributing input (base document plus overlays), exclude remote inputs and _, and regenerate from the complete ordered input set after any change. Do not infer URL-ness from a string prefix.Repository.writeFiles.types/versions.ts per group).yarn lint, yarn build, yarn test.packages/counterfact/test/typescript-generator/).packages/counterfact/docs/reference.md, packages/counterfact/docs/faq.md).© counterfact, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/counterfact-generator-internals of counterfact/api-simulator.
Open the folder on GitHubat commit fc1c7f8
Counterfact Generator Internals next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Counterfact Generator Internals this skillcounterfact/api-simulator | 170 | — | ~648 | Automated safety check: Pass | MIT | |
| OpenAPI to MCP Servermcp-use/mcp-use | 11k | — | ~5.2k | Automated safety check: Pass | Apache-2.0 | |
| Api2clialexknowshtml/api2cli | 454 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Projectsamchon/nestia | 2.2k | — | ~3k | Automated safety check: Pass | MIT | |
| API ContractChenyCHENYU/Robot_Admin | 1k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Typescriptscalar/scalar | 16k | — | ~1.1k | Automated safety check: Pass | MIT |
mcp-use/mcp-use
Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.
alexknowshtml/api2cli
Generate a working CLI from any API, then wrap it in a Claude Code skill.
samchon/nestia
Defines the nestia product contract, workspace layout, package boundaries, the Go plugin composition model, and canonical commands.
ChenyCHENYU/Robot_Admin
A skill your agent uses when: generating TypeScript API layer (type definitions + request functions) from page-spec JSON or Swagger/OpenAPI docs.
scalar/scalar
Write clear, predictable TypeScript and Vue TypeScript code with strong typing, maintainability, and consistent documentation conventions.
remorses/spiceflow
Spiceflow is a super simple, fast, and type-safe API and React Server Components framework for TypeScript.
counterfact/api-simulator
Create Counterfact pull requests with the required agent-authored acceptance and repository-learning notes; do not use to review another PR.
counterfact/api-simulator
Interact with Counterfact mock API server programmatically. An agent skill from counterfact/api-simulator.
counterfact/api-simulator
Build a fully simulated API from an OpenAPI spec using Counterfact.
counterfact/api-simulator
Keep contributor changes aligned with repository test patterns, diagnostics, black-box test boundaries, release/versioning workflow, documentation requirements, and compatibility.
counterfact/api-simulator
Provide Counterfact repository orientation, high-level architecture, and the canonical command reference for install/build/test/lint workflows.
counterfact/api-simulator
Edit Counterfact route files to add endpoint behavior while keeping handlers thin and delegating business logic to context classes.
Works with
Categories
Modify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees. Counterfact Generator Internals is an agent skill from counterfact/api-simulator. Modify TypeScript generator internals, OpenAPI parsing/schema handling, and generated file writing behavior without regressing regeneration guarantees.
Counterfact Generator Internals fits situations like: tasks that involve OpenAPI specifications.
Run `npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a claude-code`. Or copy the skill folder (.github/skills/counterfact-generator-internals in counterfact/api-simulator) into .claude/skills/counterfact-generator-internals in your project. Claude Code loads it when a task matches its description.
Run `npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a codex`. Or copy the skill folder (.github/skills/counterfact-generator-internals in counterfact/api-simulator) into .agents/skills/counterfact-generator-internals in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add counterfact/api-simulator --skill counterfact-generator-internals -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/counterfact-generator-internals, .gemini/skills/counterfact-generator-internals, .github/skills/counterfact-generator-internals and .opencode/skills/counterfact-generator-internals in your project.
Going by SKILL.md and its folder, Counterfact Generator Internals needs the command-line tools its instructions call (yarn).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Counterfact Generator Internals is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 648 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Counterfact Generator Internals: OpenAPI to MCP Server (mcp-use/mcp-use, 11k stars), Api2cli (alexknowshtml/api2cli, 454 stars), Project (samchon/nestia, 2.2k stars) and API Contract (ChenyCHENYU/Robot_Admin, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
counterfact (a GitHub organization) maintains it in counterfact/api-simulator, which has 170 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 10, 2026.
Source: counterfact/api-simulator on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.