Inferensys

Prompts

OpenAPI and API Specification Authoring

Prompt playbooks for drafting, validating, and extending OpenAPI specifications from code, design documents, or existing documentation. Useful for API designers and backend engineers because spec-first workflows require strict schema compliance, example payloads, and consistent endpoint descriptions that downstream tools consume.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
Prompts

OpenAPI and API Specification Authoring

Prompt playbooks for drafting, validating, and extending OpenAPI specifications from code, design documents, or existing documentation. Useful for API designers and backend engineers because spec-first workflows require strict schema compliance, example payloads, and consistent endpoint descriptions that downstream tools consume.

OpenAPI Specification Scaffold from Code Annotations Prompt Template

For API engineers extracting OpenAPI paths, parameters, and schemas from framework annotations and docstrings. Produces a draft spec with operation IDs, summaries, and request/response stubs. Includes validation checks for missing status codes and schema references.

OpenAPI Schema Generation from Database DDL Prompt Template

For backend engineers converting SQL DDL, ORM models, or schema migrations into OpenAPI component schemas. Produces typed schemas with nullable, readOnly, and writeOnly annotations. Harness must verify enum mappings and default value preservation.

OpenAPI Request Body Example Generation Prompt Template

For API designers generating realistic, valid example payloads from OpenAPI request body schemas. Produces multiple examples covering happy path, edge cases, and error scenarios. Evaluation checks schema conformance and boundary value coverage.

OpenAPI Error Schema Standardization Prompt Template

For platform teams standardizing error response schemas across an API surface. Produces consistent error objects with machine-readable codes, human-readable messages, and trace IDs. Includes linting checks for missing error documentation on endpoints.

OpenAPI Security Scheme Documentation Prompt Template

For security engineers documenting OAuth2 flows, API key schemes, and mutual TLS requirements in OpenAPI format. Produces complete security scheme objects with scopes, grant types, and token URL references. Validates scope-to-endpoint mapping consistency.

OpenAPI Deprecation Field Annotation Prompt Template

For API governance teams adding deprecation metadata to existing OpenAPI specs. Produces annotated paths, operations, and schemas with sunset dates, migration links, and replacement operation IDs. Harness checks that every deprecated surface has a documented alternative.

OpenAPI Polymorphic Schema oneOf/anyOf Generation Prompt Template

For API designers modeling inheritance, union types, and discriminated payloads. Produces oneOf/anyOf schemas with discriminator mappings, example payloads per variant, and validation rules. Evaluation verifies that all variants are documented and distinguishable.

OpenAPI Specification Validation Against 3.0/3.1 Rules Prompt

For API platform engineers validating OpenAPI specs against version-specific structural rules. Produces a categorized error and warning report with fix suggestions. Harness must check for missing required fields, invalid $ref targets, and schema keyword misuse.

OpenAPI Breaking Change Detection Prompt Template

For release managers comparing two OpenAPI spec versions to identify breaking changes. Produces a categorized diff with severity ratings, affected consumers, and migration notes. Includes checks for removed paths, changed parameter requirements, and narrowed response schemas.

OpenAPI Spec Diff Summary Prompt Template

For API product managers generating human-readable changelogs from OpenAPI spec diffs. Produces a structured summary of added, changed, deprecated, and removed endpoints with impact assessment. Harness validates that every diff entry links to the affected operation.

OpenAPI Example vs Schema Conformance Check Prompt

For documentation engineers auditing whether example payloads in an OpenAPI spec conform to their declared schemas. Produces a per-example conformance report with specific mismatch locations. Evaluation flags type errors, missing required fields, and enum violations.

OpenAPI Pagination Parameter Standardization Prompt Template

For API designers enforcing consistent pagination patterns across endpoints. Produces standardized parameter definitions for cursor-based, offset-based, and page-based pagination with Link header documentation. Harness checks that every list endpoint declares pagination parameters.

OpenAPI Spec to TypeScript Type Definition Prompt Template

For frontend engineers generating TypeScript interfaces and type guards from OpenAPI component schemas. Produces types with accurate nullability, enum literals, and discriminated unions. Validation checks compilation success and round-trip compatibility with the source spec.

OpenAPI Spec to Markdown API Reference Prompt Template

For technical writers generating static API reference documentation from an OpenAPI spec. Produces Markdown with endpoint tables, parameter details, example requests/responses, and error code references. Harness verifies that every operation, parameter, and schema is rendered.

OpenAPI Spec to Spectral Linting Ruleset Prompt Template

For API governance engineers generating custom Spectral rules from organizational API standards. Produces a ruleset file that enforces naming conventions, security requirements, pagination standards, and error format consistency. Evaluation tests rules against compliant and non-compliant specs.

OpenAPI Spec-Driven Developer Portal Content Prompt Template

For DevRel teams generating getting-started guides, authentication walkthroughs, and use-case narratives from an OpenAPI spec. Produces tutorial content that references real endpoints, schemas, and error codes. Harness checks that all referenced operations exist in the spec.

OpenAPI Spec cURL Command Generation Prompt Template

For documentation engineers generating copy-pasteable cURL examples for every endpoint in an OpenAPI spec. Produces commands with placeholder variables, authentication headers, and representative request bodies. Validation verifies that generated cURL commands match the spec's method, path, and content-type.

OpenAPI Spec Health Check Endpoint Standardization Prompt Template

For SRE and platform teams documenting health, readiness, and liveness endpoints with consistent response schemas. Produces standardized health check path definitions with dependency status objects and version metadata. Harness checks for required fields like status, timestamp, and checks array.

OpenAPI Spec PII Data Field Annotation Prompt Template

For privacy engineers marking schema properties that contain personally identifiable information. Produces annotated schemas with x-pii extension properties indicating data category, retention policy, and encryption requirements. Evaluation verifies that all PII fields are flagged and categorized.

OpenAPI Spec Review Checklist for API Designers Prompt Template

For API design reviewers generating a tailored review checklist from an OpenAPI spec. Produces a prioritized list of issues covering naming consistency, security coverage, error handling, pagination, and schema design. Harness checks that every checklist item references a specific path or schema.

OpenAPI Spec Migration Guide from v2 to v3 Prompt Template

For platform migration teams converting Swagger 2.0 specs to OpenAPI 3.0/3.1 with a step-by-step migration guide. Produces a converted spec plus a change log documenting every transformation applied. Validation checks for correct translation of body parameters, security definitions, and path-level servers.

OpenAPI Spec Consistency Check Across Services Prompt

For microservice platform teams auditing multiple OpenAPI specs for inconsistent patterns. Produces a cross-service report flagging divergent error formats, pagination styles, auth schemes, and naming conventions. Harness checks that every flagged inconsistency includes spec references and a recommended standard.