Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add devctllabs/mockapi --skill mockapigit clone --depth 1 https://github.com/devctllabs/mockapiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/devctllabs/mockapi/mockapi)<a href="https://agentmods.dev/skills/devctllabs/mockapi/mockapi"><img src="https://agentmods.dev/badge/skills/devctllabs/mockapi/mockapi/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/devctllabs/mockapi/mockapi"><img src="https://agentmods.dev/badge/skills/devctllabs/mockapi/mockapi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00072 | $0.01354 |
| Opus 5.5 | $0.00029 | $0.00542 |
| Sonnet 5.5 | $0.00014 | $0.00271 |
| Haiku 4.5 | $0.00007 | $0.00135 |
Grade A, and why
mockapi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
mockapi
Use this skill to create stateful mock API servers from OpenAPI contracts. The
agent owns behavior analysis and sidecar authoring; bundled scripts only perform
structural validation and deterministic typed scaffolding. Generated operation
services are TODOs; the agent completes wiring and behavior from
.mockapi/behavior.md anchors.
Command Router
Route invocations:
- No argument: show a short menu with
profile,generate, and freeform examples. Ask what the user wants to do. - First word
profile: readreference/profile.mdand follow that workflow. Everything afterprofileis the target or context. - First word
generate: before any OpenAPI search or repo-wide file scan, readreference/generate.mdand run the generate sidecar preflight from that workflow. Everything aftergenerateis the target or context. After the profile and sidecars are present and validation succeeds, always run<python> <skill-root>/scripts/generate.py; do not satisfy ageneratecommand by only describing, planning, or hand-writing the scaffold. - Any other first word: treat the entire argument as a general mockapi request. Do not reject unknown first words merely because they are not commands.
General mockapi request routing:
- Mock-server creation requests such as "make", "build", "create", "generate",
"scaffold", or "use this OpenAPI" route to
reference/generate.md.generateauto-runs the profile workflow when sidecars are missing. - Profile, analyze, describe, or sidecar-only requests route to
reference/profile.md. - Validate, check, repair, or diagnose sidecar requests run
scripts/validate_profile.py, readreference/sidecars.md, and repair or report blockers as needed. The validator checksprofile.tomlandbehavior.mdunless--profile-onlyis used. - Questions about existing generated mock-server code read
reference/generated-server.md,reference/mock-server-structure.md, andreference/mock-server-examples.md, then inspect the relevant files. When finishing or reviewing LLM-owned generated server code, also readreference/mock-server-quality.md.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 177 B
- assets/templates/mock-server/.gitignore 24 B
- assets/templates/mock-server/package.json 959 B
- assets/templates/mock-server/README.md 647 B
- assets/templates/mock-server/scripts/build.mjs 542 B runs code
- assets/templates/mock-server/scripts/codegen-admin-openapi.ts 7.6 KB runs code
- assets/templates/mock-server/scripts/lib/mockRuntimeCodegen.ts 13 KB runs code
- assets/templates/mock-server/src/browser.ts 539 B runs code
- assets/templates/mock-server/src/config.ts 1.0 KB runs code
- assets/templates/mock-server/src/dependencies.ts 313 B runs code
- assets/templates/mock-server/src/generated/mock-admin/state/controller.ts 806 B runs code
- assets/templates/mock-server/src/generated/mock-admin/state/service.ts 925 B runs code
- assets/templates/mock-server/src/lib/browserStateStore.ts 1.4 KB runs code
- assets/templates/mock-server/src/lib/clone.ts 134 B runs code
- assets/templates/mock-server/src/lib/errors.ts 1.1 KB runs code
- assets/templates/mock-server/src/lib/honoMockRuntime.ts 3.2 KB runs code
- assets/templates/mock-server/src/lib/ids.ts 280 B runs code
- assets/templates/mock-server/src/lib/nodeStateStore.ts 1.8 KB runs code
- assets/templates/mock-server/src/lib/requestContext.ts 331 B runs code
- assets/templates/mock-server/src/lib/softDelete.ts 235 B runs code
- assets/templates/mock-server/src/lib/sort.ts 426 B runs code
- assets/templates/mock-server/src/server.ts 668 B runs code
- assets/templates/mock-server/tsconfig.json 318 B
- assets/templates/mock-server/vitest.config.ts 179 B runs code
- reference/generate.md 12 KB
- reference/generated-server.md 8.4 KB
- reference/mock-server-examples.md 18 KB
- reference/mock-server-quality.md 5.5 KB
- reference/mock-server-structure.md 5.1 KB
- reference/profile.md 7.6 KB
- reference/seed-data.md 3.3 KB
- reference/sidecars.md 5.9 KB
- reference/testing.md 1.9 KB
- scripts/_python_bootstrap.py 1.1 KB runs code
- scripts/check_generated_quality.py 1.3 KB runs code
- scripts/detect_package_manager.py 1015 B runs code
- scripts/generate.py 1.3 KB runs code
- scripts/mockapi_runtime/__init__.py 46 B runs code
- scripts/mockapi_runtime/admin_openapi.yaml 2.7 KB
- scripts/mockapi_runtime/behavior_policy.py 1.8 KB runs code
- scripts/mockapi_runtime/context.py 1.0 KB runs code
- scripts/mockapi_runtime/diagnostics.py 2.1 KB runs code
- scripts/mockapi_runtime/files.py 2.1 KB runs code
- scripts/mockapi_runtime/filesystem.py 1.1 KB runs code
- scripts/mockapi_runtime/generate.py 13 KB runs code
- scripts/mockapi_runtime/key_path.py 6.0 KB runs code
- scripts/mockapi_runtime/models.py 6.4 KB runs code
- scripts/mockapi_runtime/package_manager.py 17 KB runs code
- scripts/mockapi_runtime/paths.py 809 B runs code
- scripts/mockapi_runtime/profile.py 24 KB runs code
- scripts/mockapi_runtime/quality.py 22 KB runs code
- scripts/mockapi_runtime/render_features.py 3.9 KB runs code
- scripts/mockapi_runtime/render_project.py 20 KB runs code
- scripts/mockapi_runtime/render_utils.py 2.1 KB runs code
- scripts/mockapi_runtime/schema_ref.py 2.3 KB runs code
- scripts/mockapi_runtime/templates.py 1.7 KB runs code
- scripts/mockapi_runtime/templates/app.ts.tpl 863 B
- scripts/mockapi_runtime/templates/codegen-mock-runtime.ts.tpl 439 B
- scripts/mockapi_runtime/templates/controllers.ts.tpl 1.4 KB
- scripts/mockapi_runtime/templates/feature-seed.ts.tpl 288 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 132 lines · 72 tokens per session scan A 7e39f1964dfc
mockapi is a skill published in the GitHub repository devctllabs/mockapi (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 72 tokens to every session and 1,354 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
mockapi compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mockapidevctllabs/mockapi | Skill | 3 | 1mo ago | Apache-2.0 | A | 72 | Codex |
| skmtc-lang-kotlinskmtc/skmtc | Skill | 20 | yesterday | Apache-2.0 | A | 120 | Claude Code |
| ocli-apiEvilFreelancer/openapi-to-cli | Skill | 268 | 2mo ago | MIT | A | 38 | Claude Code |
| migrate-mcp-between-projectsspeakeasy-api/gram | Skill | 281 | today | AGPL-3.0 | A | 64 | Claude Code, Codex |
| api-documentation-generatorcuriositech/windags-skills | Skill | 21 | 3d ago | none | A | 129 | Claude Code |
| skmtc-cliskmtc/skmtc | Skill | 20 | yesterday | Apache-2.0 | C | 136 | Claude Code |
| mock-serverJansenAnalytics/claudex | Skill | 5 | 5mo ago | MIT | A | 28 | Claude Code, Codex |