api-spec-import

Register external API specs from OpenAPI, gRPC, or GraphQL sources into the pinky-promise registry.

10|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/superluminar-io/pinky-promise --skill api-spec-import
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-spec-import
Source: https://github.com/superluminar-io/pinky-promise/tree/main/skills/api-spec-import
Command: npx skills add https://github.com/superluminar-io/pinky-promise --skill api-spec-import

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Import external API specifications (OpenAPI, gRPC, GraphQL) into the pinky-promise registry as a declared dependency so api-contract-check can validate consumer code against the external API.

Core Features & Use Cases

  • Detect and classify input formats (OpenAPI 3.x/2.x, gRPC proto, GraphQL SDL) from a URL or local file.
  • Derive a stable service identity and external version, create or update registry entries, and produce the IDL contract and bindings.
  • Apply security mappings to the IDL bindings and enable downstream tooling like mocks and contract tests.

Quick Start

Run /api-spec-import with a source URL or local file to register an external API spec for contract validation.

Frequently Asked Questions about api-spec-import

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

FAQPage Schema
How do I import external API specs into a registry for contract validation?

You can import API specs by providing a URL or local file path. The tool detects the format, registers the OpenAPI, gRPC, or GraphQL spec into the pinky-promise registry, and generates IDL JSON with bindings for contract validation.

Can I import both OpenAPI and GraphQL specs from a local file?

Yes, you can import OpenAPI 3.x/2.x, gRPC proto, and GraphQL SDL specifications from either a local file or a URL. The Skill automatically detects and classifies the input format before converting it to IDL JSON.

What happens when I register an external API specification?

Registering an external API spec derives a stable service identity and external version, creates or updates registry entries, converts the spec to pinky-promise IDL JSON, and generates a bindings file with security mappings for downstream contract checks.

Does importing an API spec support security mappings for downstream mocks?

Yes, the import process applies security mappings to the generated IDL bindings file. This enables downstream tooling, including mocks and contract tests, to properly authenticate and validate consumer code against the external API.

Why do I need to import external API specs for contract checks?

Importing external API specs declares them as a dependency in the registry so api-contract-check can validate consumer code against the external API. Without importing, the registry lacks the IDL contract needed to verify consumer interactions.

What's the best way to validate consumer code against an external gRPC API?

The best way is to import the gRPC proto file into the pinky-promise registry using the API spec importer. This registers the service identity, generates IDL JSON, and enables contract checks to validate your consumer code automatically.