IN

integration-test-gen

Automatically generates integration test specs from concept definitions and scenario fixtures.

Install

mkdir -p .claude/skills/integration-test-gen && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15469" && unzip -o skill.zip -d .claude/skills/integration-test-gen && rm skill.zip

Installs to .claude/skills/integration-test-gen

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Generate a ProcessSpec from concept spec fixtures for integration testing against real external APIs . Walks fixture after chains , emits a ProcessSpec where each fixture becomes a step with type external-call , $ fixture . field references become step output bindings , and -> error / -> notfound annotations become CheckVerification assertions on the expected variant outcome
377 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Generate ProcessSpec integration tests from concept spec fixtures
  • Bind fixture field references to step output bindings
  • Convert expected variant annotations into CheckVerification assertions
  • Order steps based on fixture after chains
  • Handle different settlement modes for scenarios
  • Store generation records for ProcessSpec documents

How it works

The skill parses a concept spec to extract fixtures, builds a dependency graph from after chains, and topologically sorts to produce ordered steps. It then emits a ProcessSpec JSON document where each fixture becomes an external-call step.

Inputs & outputs

You give it
concept spec string and ingest manifest string
You get back
ProcessSpec JSON document and total step count

When to use integration-test-gen

  • Generate API integration tests
  • Create test spec from fixtures
  • Map scenario invariants to steps

About this skill

<!-- Auto-generated by Clef Bind — claude-skills target --> <!-- Concept: IntegrationTestGen --> <!-- Do not edit manually; regenerate with: clef interface generate -->

IntegrationTestGen

Generate a ProcessSpec integration test for $ARGUMENTS.

When to use: Use when you need to exercise an external-API concept against the real API. Generates a ProcessSpec integration test from fixture chains AND scenario invariants in the concept spec.

Design Principles

  • Spec-Driven Test Generation: The concept spec is the single source of truth — fixtures define happy and error paths; scenario invariants define end-to-end behavioral claims. Regeneration is always safe.
  • Settlement Mode → Step Primitive: Synchronous scenarios emit a plain external-call step. async-eventually scenarios emit pollUntil with a CheckVerification predicate. async-with-anchor scenarios emit waitForCompletion pinned to the completion of the preceding action.
  • Binding over Hardcoding: $fixture.field references must resolve to step output bindings — never copy values between fixtures. The ProcessSpec runtime substitutes at execution time.

Step-by-Step Process

Step 1: Register Generator

Self-register with PluginRegistry so KindSystem can track (ConceptSpec + IngestManifest) → ProcessSpec transformations.

Examples: Register the integration test generator

const result = await integrationTestGenHandler.register({}, storage);

Step 2: Preview Test Steps

Parse the concept spec and compute the ordered step list without creating a ProcessSpec or storing a generation record . Returns the steps as a JSON array so the caller can inspect the generated plan before committing to a full generate call .

Arguments: $0 conceptSpec (string), $1 source (string)

Step 3: Generate ProcessSpec Integration Test

Parse the concept spec string to extract all fixtures . Walk the after chains among fixtures to build a dependency graph , then perform a topological sort to produce ordered steps . Emit a ProcessSpec JSON document where each fixture becomes a step of type external-call . Step inputs come from the fixture s field values ; $ fixture . field output references become step output bindings resolved at run time . Each step s expected variant annotation ( ok , error , notfound , etc . ) is emitted as a CheckVerification assertion . Stores the resulting generation record and returns the ProcessSpec JSON and total step count .

Arguments: $0 conceptSpec (string), $1 ingestManifest (string), $2 source (string)

Checklist:

  • Concept spec parses without error?
  • No after cycles among fixtures?
  • Every $fixture.field reference resolves to a known prior fixture?
  • Ingest manifest JSON parses?
  • Each fixture emits exactly one step?
  • Scenario invariants emit a step sequence with the correct settlement mode?
  • settlement: async-eventually scenarios become pollUntil steps?
  • settlement: async-with-anchor scenarios become waitForCompletion steps?
  • Expected variants emitted as CheckVerification assertions?

Examples: Generate a ProcessSpec from a concept spec + ingest manifest

clef generate integration-test --concept-spec ./specs/app/charge.concept --ingest-manifest ./ingest.json --source payments

Step 4: Run the Generated Test

Execute the generated ProcessSpec by invoking each step in dependency order . Each step dispatches an external call to the handler registered for the concept action . CheckVerification evaluates the actual response variant against the expected variant declared in the fixture annotation . Tallies pass and fail counts across all steps and returns a results summary JSON alongside the pass / fail totals .

Arguments: $0 processSpec (string)

Quick Reference

FlagTypePurpose
--concept-specpathPath to the .concept file
--ingest-manifestpathPath to the ingest manifest JSON
--sourcestringSource name under which to run steps

Output: ProcessSpec JSON on stdout (or to --output path). Run with clef generate integration-test run --process-spec <file>.

Validation

Generate a ProcessSpec from a concept spec + manifest:

clef generate integration-test --concept-spec ./specs/app/charge.concept --ingest-manifest ./ingest.json --source payments

Run the generated ProcessSpec:

clef generate integration-test run --process-spec ./out/charge.process.json

Related Skills

SkillWhen to Use
/create-external-concept-implGenerate the external concept implementation the integration test exercises.

When not to use it

  • When the goal is not to test an external API concept
  • When a ProcessSpec integration test is not required

Limitations

  • Requires a concept spec to parse without error
  • Requires no 'after' cycles among fixtures
  • Requires every $fixture.field reference to resolve to a known prior fixture

How it compares

This skill automates the creation of ProcessSpec integration tests from concept specs, whereas a manual approach would require writing the ProcessSpec JSON directly.

Compared to similar skills

integration-test-gen side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
integration-test-gen (this skill)02moReviewIntermediate
swapper-integration65moCautionIntermediate
run-api-e2e-tests76moReviewBeginner
langfuse-ci-integration229dReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

swapper-integration

shapeshift

Integrate new DEX aggregators, swappers, or bridge protocols (like Bebop, Portals, Jupiter, 0x, 1inch, etc.) into ShapeShift Web. Activates when user wants to add, integrate, or implement support for a new swapper. Guides through research, implementation, and testing following established patterns.

696

run-api-e2e-tests

novuhq

Run e2e tests for the API service. Use when the user wants to run API E2E tests.

711

langfuse-ci-integration

jeremylongshore

Configure Langfuse CI/CD integration with GitHub Actions and automated testing. Use when setting up automated testing, configuring CI pipelines, or integrating Langfuse tests into your build process. Trigger with phrases like "langfuse CI", "langfuse GitHub Actions", "langfuse automated tests", "CI langfuse", "langfuse pipeline".

212

api-test-generator

mikopbx

Генерация полных Python pytest тестов для REST API эндпоинтов с валидацией схемы. Использовать при создании тестов для новых эндпоинтов, добавлении покрытия для CRUD операций или валидации соответствия API с OpenAPI схемами.

16

http-generate

spring-ai-alibaba

Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories

16

openapi-analyzer

mikopbx

Извлечение и анализ OpenAPI 3.1.0 спецификации из MikoPBX для валидации эндпоинтов. Использовать при проверке соответствия API, генерации тестов, проверке схем эндпоинтов или интеграции с навыками endpoint-validator и api-test-generator.

25

Search skills

Search the agent skills registry