generate-microcks-openapi-samples

generate-microcks-openapi-samples is a skill for Claude Code, Codex from SebastienDegodez/copilot-instructions. It costs 37 tokens per session (2,454 once invoked), scanned A, original, Apache-2.0.

A guide for creating realistic request and response examples for Microcks, a tool that simulates APIs for testing, from an OpenAPI description.

In plain words
What is it for?
Use it to build happy-path, error, and edge-case examples, route requests to different mock responses, and create repeatable API test fixtures.
Why use it?
It avoids placeholder test data and keeps mock examples consistent with the API's defined format and behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build happy-path, error, and edge-case examples, route requests to different mock responses, and create repeatable API test fixtures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples
Install

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.

Any agent
npx skills add SebastienDegodez/copilot-instructions --skill generate-microcks-openapi-samples
Clone the repo
git clone --depth 1 https://github.com/SebastienDegodez/copilot-instructions

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for generate-microcks-openapi-samples

README.md
[![agentmods](https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples/github.svg)](https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples)
Your own site
<a href="https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples"><img src="https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples/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.

agentmods 80×15 button for generate-microcks-openapi-samples

Your own site · 80×15
<a href="https://agentmods.dev/skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples"><img src="https://agentmods.dev/badge/skills/sebastiendegodez/copilot-instructions/generate-microcks-openapi-samples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02454
Opus 5.5 $0.00015 $0.00982
Sonnet 5.5 $0.00007 $0.00491
Haiku 4.5 $0.00004 $0.00245

Measured 1mo ago against content hash 5b0dcc8e67bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-microcks-openapi-samples 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.

skills/generate-microcks-openapi-samples/SKILL.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Microcks OpenAPI Examples

Generate realistic, schema-compliant OpenAPI examples (request/response pairs) for Microcks mocks. All examples must be concrete and directly usable—no placeholders or generic values.

When to Use

Use when:

  • Building mock APIs with Microcks using realistic request/response examples
  • Creating test data that matches real-world API behavior (not generic placeholders)
  • Setting up multiple response scenarios for API testing (happy path, errors, edge cases)
  • Configuring smart request routing (dispatching) based on request content
  • Migrating from live APIs to mock endpoints while maintaining realistic behavior
  • Creating reproducible test fixtures with concrete data

Don't use when:

  • Modifying the OpenAPI contract file itself (examples go in separate metadata files)
  • Creating mock data without an OpenAPI schema as source of truth
  • Using generic/placeholder values (defeats purpose of realistic mocking)
  • Static mock responses without routing logic

Core Pattern

1. Start with OpenAPI contract (what API operations exist?)
2. Design realistic scenarios (happy path, errors, edge cases)
3. Create request/response example pairs (concrete data, no placeholders)
4. Define smart routing rules (which scenario matches which request?)
5. Deploy both example data + routing rules to Microcks

Quick Reference

Decision Option
Few scenarios? Use JSON_BODY dispatcher (fast, simple field matching)
Complex routing logic? Use JS dispatcher (modern, recommended for Microcks 1.13+)
Existing Groovy code? Use GROOVY dispatcher (only if explicitly needed or migrating legacy)
Starting fresh? See examples/README.md for complete copy-paste workflows
All dispatcher details? See references/dispatchers-reference.md for syntax & operators

Implementation Steps

Step 1: Understand Your API from OpenAPI Contract

Read the full file on GitHub · 290 lines

Files

What ships with it

5 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.

Changes

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.

  1. 1mo ago First seen · 290 lines · 37 tokens per session scan A 5b0dcc8e67bc

Subscribe to this mod's changes

generate-microcks-openapi-samples is a skill published in the GitHub repository SebastienDegodez/copilot-instructions (199 stars, last pushed 15d ago), licensed Apache-2.0. It adds 37 tokens to every session and 2,454 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

contract-testing

Use when authoring OpenAPI/AsyncAPI contracts, generating Microcks samples, setting up Testcontainers mocks, verifying provider contracts, or bridging API contracts across DESIGN → DISTILL → DELIVER phases.

SebastienDegodez/skraft-plugin · 43 tokens

contract-testing-dotnet

Use when the contract-testing-roster resolved a .NET stack for a provider-side contract test. Always provides the baseline WebApplicationFactory + HttpClient integration test recipe; when the Microcks opt-in is enabled, additionally provides the MicrocksContainer + TestEndpointAsync(OPENAPISCHEMA) layer that replays…

SebastienDegodez/skraft-plugin · 103 tokens

contract-testing-python

Use when the contract-testing-roster resolved a Python stack for a provider-side contract test. Always provides the baseline FastAPI TestClient integration test through the app factory; when the Microcks opt-in is enabled, additionally boots the service on a real port with uvicorn and has a MicrocksContainer…

SebastienDegodez/skraft-plugin · 104 tokens

contract-testing-roster

Use when an agent must produce a provider-side contract test for THIS service's API and needs to know the stack adapter and whether the optional Microcks verification layer is enabled. Resolves the stack and reads the Microcks opt-in (off by default), then points to the concrete contract-testing- adapter. Loaded by…

SebastienDegodez/skraft-plugin · 96 tokens

migrate-xunit-to-mstest

Convert .NET tests from xUnit.net v2/v3 to MSTest v4 while preserving VSTest or MTP. Use for replacing xunit packages, Fact/Theory/InlineData/MemberData, assertions, IClassFixture/ICollectionFixture, ITestOutputHelper, TestContext cancellation, traits/Owner, skips, timeouts, and xUnit parallelization. Also use when a…

managedcode/dotnet-skills · 141 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

managedcode/dotnet-skills · 149 tokens