Skip to content
Back to skills

Forge Openapi Contracts

ASecurity

Keep an OpenAPI spec as the API contract: generated or validated, linted, and used for clients, mocks and tests

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsfastapispringapifrontend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-openapi-contracts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Openapi Contracts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Openapi Contracts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-openapi-contracts/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-openapi-contracts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-openapi-contracts
description: "Keep an OpenAPI spec as the API contract: generated or validated, linted, and used for clients, mocks and tests"
---

<!-- Generated from catalog/skills/openapi-contracts/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# OpenAPI contracts

A spec that drifts from the code is worse than none.

## Single source
- Either generate the spec from code (FastAPI, NestJS, springdoc, tsoa) or generate server stubs from the spec — pick one direction.
- Commit the spec; review its diff in PRs.

## Quality
- Lint with Spectral or Redocly: operationIds, descriptions, error schemas, examples.
- Document error responses (4xx/5xx) with a shared error schema, not just 200.

## Use it
- Generate typed clients; validate requests/responses against the spec in tests; run a mock server for frontend work.

## Verify
Spec lint passes, and a contract test validates real responses from the changed endpoints against the spec.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.