One-click install
npx skills add https://github.com/SebastienDegodez/copilot-instructions --skill generate-microcks-openapi-samples
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-microcks-openapi-samples
Source: https://github.com/SebastienDegodez/copilot-instructions/tree/main/skills/generate-microcks-openapi-samples
Command: npx skills add https://github.com/SebastienDegodez/copilot-instructions --skill generate-microcks-openapi-samples

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill converts OpenAPI contracts into ready-to-use Microcks mock artifacts by generating concrete APIExamples and APIMetadata that drive mock routing and responses.

Core Features & Use Cases

  • Generate end-to-end Microcks mocks from an OpenAPI contract, including multiple response scenarios and routing rules
  • Produce concrete, non-placeholder data for request/response examples aligned to the API schema
  • Automatically prepare APIMetadata with dispatcher configurations for JSON_BODY, JavaScript, and GROOVY as needed to support realistic mocking

Quick Start

Provide an OpenAPI contract and this skill will output ready-to-use Microcks APIExamples and APIMetadata for your mock services.

Frequently Asked Questions about generate-microcks-openapi-samples

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Microcks mock samples from an OpenAPI contract?

To generate Microcks mock samples, provide an OpenAPI contract and the skill outputs ready-to-use APIExamples and APIMetadata containing realistic request/response pairs and routing rules.

What dispatcher types are supported for Microcks APIMetadata generation?

Microcks APIMetadata generation supports dispatcher configurations for JSON_BODY, JavaScript, and Groovy, enabling flexible routing across multiple operation scenarios aligned with example names.

Can I create realistic Microcks API mocks with non-placeholder data from OpenAPI?

Yes, generating Microcks API mocks from OpenAPI produces concrete, non-placeholder data for request and response examples that strictly aligns with your API schema definitions.

How do I configure multiple response scenarios for Microcks API mocks?

Configuring multiple response scenarios for Microcks API mocks involves generating APIExamples with distinct operations and aligning dispatcher rules across APIMetadata to route requests accurately.

What is the best way to set up JSON_BODY dispatcher rules in Microcks?

Setting up JSON_BODY dispatcher rules in Microcks requires generating APIMetadata that aligns example names with dispatcher configurations, ensuring flexible request routing for mock endpoints.

Do I need any dependencies to generate Microcks OpenAPI mock artifacts?

No dependencies are required to generate Microcks OpenAPI mock artifacts; you only need to provide a valid OpenAPI contract to produce ready-to-use APIExamples and APIMetadata.