contract-generation

Generate API contracts, TypeScript types, and infrastructure definitions from Gherkin scenarios.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/EmeaAppGbb/spec2cloud-microhack-greenfield --skill contract-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-generation
Source: https://github.com/EmeaAppGbb/spec2cloud-microhack-greenfield/tree/main/.github/skills/contract-generation
Command: npx skills add https://github.com/EmeaAppGbb/spec2cloud-microhack-greenfield --skill contract-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Streamlines the process of generating API contracts, shared TypeScript types, and infrastructure definitions, ensuring parallel frontend and backend implementation without conflicts.

Core Features & Use Cases

  • Automated Contract Generation: Creates API contracts, shared types, and infrastructure definitions from Gherkin scenarios and test files.
  • Feature Increment Alignment: Ensures that contracts are generated for all features scoped to the current increment, facilitating parallel work.
  • Output Stability: Generates the stable foundation that frontend and backend slices use to work together seamlessly.

Quick Start

Execute the contract-generation skill to start generating contracts for your next feature increment.

Frequently Asked Questions about contract-generation

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

FAQPage Schema
How do I generate API contracts and shared TypeScript types from Gherkin scenarios?

You can generate API contracts and shared TypeScript types from Gherkin scenarios by executing an automated contract generation workflow that parses feature increment specifications to output stable contract sets for parallel development.

What is automated API contract generation used for in feature-based development?

Automated API contract generation is used to create shared types and infrastructure definitions from feature specifications, providing a stable foundation that enables parallel frontend and backend implementation without integration conflicts.

Can I use this contract generation approach for parallel frontend and backend development?

Yes, you can use automated contract generation for parallel frontend and backend development because it produces comprehensive, increment-aligned shared types and infrastructure definitions that ensure both slices work together seamlessly.

Do I need Gherkin scenarios to generate infrastructure definitions and shared types?

Yes, you need Gherkin scenarios and other specification documents as input because the automated contract generation operates within a feature-based workflow to derive infrastructure definitions and shared types from those exact specifications.

What is the best way to align API contracts with a specific feature increment?

The best way to align API contracts with a feature increment is to automate contract generation from the increment's Gherkin scenarios, ensuring that all generated shared types and infrastructure definitions match the scoped features exactly.