Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/emmanuelperu/microcks-skillsnpx agentmods add skills/emmanuelperu/microcks-skills/microcks-openapi-mockingWrote 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/emmanuelperu/microcks-skills/microcks-openapi-mocking)<a href="https://agentmods.dev/skills/emmanuelperu/microcks-skills/microcks-openapi-mocking"><img src="https://agentmods.dev/badge/skills/emmanuelperu/microcks-skills/microcks-openapi-mocking/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/emmanuelperu/microcks-skills/microcks-openapi-mocking"><img src="https://agentmods.dev/badge/skills/emmanuelperu/microcks-skills/microcks-openapi-mocking.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.00047 | $0.02734 |
| Opus 5.5 | $0.00019 | $0.01094 |
| Sonnet 5.5 | $0.00009 | $0.00547 |
| Haiku 4.5 | $0.00005 | $0.00273 |
Grade A, and why
microcks-openapi-mocking scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X POST http://localhost:8080/api/mocks/User%20API/1.0.0/users \ How it starts
The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Microcks OpenAPI Mocking
Help write and configure OpenAPI specifications with examples that work correctly in Microcks.
When to Use This Skill
Use this skill when:
- Writing or editing named examples in an OpenAPI spec for Microcks mocking
- Adding a new endpoint to an OpenAPI spec with multiple example scenarios (success, errors)
- Configuring a dispatcher to control how Microcks routes requests to different responses
- Debugging a mock response that isn't returning the expected data
- Setting up example pairing between request and response examples in OpenAPI
Core Rules
Microcks mocking depends on correct example pairing and dispatcher configuration. Here are the key rules:
Rule 1: Example Names Must Match Across Locations
Every named example in path/query parameters and request body must have a corresponding response example with the same name.
paths:
/pets/{petId}:
get:
parameters:
- name: petId
examples:
success: # ← example name
value: 1
not_found: # ← example name
value: 999
responses:
'200':
content:
application/json:
examples:
success: # ← same name
value: { id: 1, name: Fluffy }
'404':
content:
application/json:
examples:
not_found: # ← same name
value: { error: Not found }
Details: See example-pairing.md
Rule 2: No-Body Responses Need Content Block with value: null
Responses with no body (204, 304) must still have a content block with explicit value: null:
delete:
responses:
'204':
description: Deleted
content:
application/json:
examples:
success:
value: null # ← Required for no-body responses
Rule 3: All Error Examples Need Input Examples
What ships with it
4 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.
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 · 405 lines · 47 tokens per session scan A 13c4f11afc08
microcks-openapi-mocking is a skill published in the GitHub repository emmanuelperu/microcks-skills (4 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 2,734 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
microcks-openapi-mocking compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| microcks-openapi-mockingemmanuelperu/microcks-skills | Skill | 4 | 8mo ago | Apache-2.0 | A | 47 | Claude Code, Codex |
| API Test Suite GeneratorPramodDutta/qaskills | Skill | 253 | 1mo ago | MIT | A | 29 | Claude Code, Codex |
| diff-specserraggy/oastools | Skill | 7 | today | MIT | A | 19 | Claude Code |
| explore-apierraggy/oastools | Skill | 7 | today | MIT | A | 16 | Claude Code |
| fix-specerraggy/oastools | Skill | 7 | today | MIT | A | 16 | Claude Code |
| validate-specerraggy/oastools | Skill | 7 | today | MIT | A | 18 | Claude Code |
| generate-codeerraggy/oastools | Skill | 7 | today | MIT | A | 17 | Claude Code |