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 agentmods add skills/devctllabs/mockapi/mockapinpx skills add devctllabs/mockapi --skill mockapigit clone --depth 1 https://github.com/devctllabs/mockapiWhat 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 | $0.00072 | $0.01354 |
| Opus 5 | $0.00036 | $0.00677 |
| Sonnet 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 yesterday.
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.
- yesterday 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.0004 per session on Opus 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 API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.
skmtc-architecture
Understand what SKMTC is, how its engine works, and the architectural invariants — for agents building or extending infrastructure around SKMTC rather than authoring generators or running the CLI. Covers the three-phase pipeline, the host/Worker boundary, cross-generator coordination, the manifest, the attribution /…
skmtc-debug
Diagnose failures in SKMTC sessions — no output, wrong output, error messages, bundle freshness, parseIssues, "Registered definition mismatch", ref cycles, "Module not found" in generated code, or any other broken behavior. Applies across both CLI usage and generator authoring contexts. Use this skill when the user…
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-retro-review
Aggregate friction log files across a time period to identify recurring patterns, classify each cluster by intervention type, produce a prioritized action plan with success criteria, and calculate convergence metrics. Complements skmtc-retro (which captures per-session signal) by acting as the system's actuator…
skmtc-retro
Run a self-retrospective on a SKMTC-related session — generator authoring, CLI configuration, debugging, or any sustained interaction involving @skmtc/core, @skmtc/cli, or @skmtc/gen- packages. Captures three distinct outputs: (1) friction entries (mistakes, surprises, overridden defaults, multi-cycle struggles), (2)…