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 1mo 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.
- 1mo 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 13d 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.
Other skills, from other repositories
ocli-api
Turn any OpenAPI, Swagger, or OpenRPC API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.
skmtc-lang-kotlin
The Kotlin target-language layer for Skmtc generators (@skmtc/lang-kotlin): base factories, KtSnippet, the seven entity kinds, packages-from-paths imports, the head+value render model, KtAnnotation and the composition classes, sanitization and @SerialName placement, plus the current-API worked example (the shipped…
skmtc-cli
Use the Skmtc CLI to scaffold projects, install or clone generators from JSR, configure schema sources and enrichments, and produce code artifacts from an OpenAPI v3 or GraphQL SDL schema. Teaches the workspace mental model ( /.skmtc/ /, client.json, bundle, manifest) and the agent contract (strict text / strict JSON…
skmtc-graphql
The GraphQL pipeline for SKMTC generators — authoring generators whose input schema is GraphQL SDL rather than OpenAPI. Covers toGqlOperationEntry, GqlOperation, synthesizeArgsObject (mutation args -> object schema), the GQL enrichment routing ([id][rootKind][fieldName][variant] — two nested subject keys where OAS has…
migrate-mcp-between-projects
Redeploy one Platform-managed MCP server from an explicit source AICP project to an explicit target project in the same organization, complete secure setup there, verify readiness, distribute it, and optionally retire the source with a safe cutover through the Speakeasy AI Control Plane Platform MCP.
mock-server
Spin up mock API servers for frontend development and testing: static responses, record/replay real API calls, dynamic response generation.