Skip to content
Back to skills

Update Openapi

ASecurity

Brings your OpenAPI spec in line with changed routes and validates the file, so the spec matches what the server does.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 15, 2026
ai-agentsgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill update-openapi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Update Openapi?

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

Security grade badge for Update Openapi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-update-openapi-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-update-openapi-ai-agent-templates)

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: update-openapi
description: Brings your OpenAPI spec in line with changed routes and validates the file, so the spec matches what the server does.
disable-model-invocation: true
---

Update the OpenAPI spec for these changes: $ARGUMENTS (if empty, use `git diff main --stat` to find changed routes).

1. Locate the spec (openapi.yaml, openapi.json, swagger.*) and whether it is hand-written or generated. If generated, run the project's generate command instead of editing by hand.
2. For each changed route, compare the code with the spec: path, method, parameters, request body, response codes, response schemas, security.
3. Edit only the differing parts. Reuse `components/schemas` and `$ref` rather than copying objects. Keep operationIds unique and follow the file's existing style.
4. Mark deprecated routes with `deprecated: true`, not by deleting them.
5. Validate with the tool in the repo or `npx @redocly/cli lint <file>` (or `npx swagger-cli validate <file>`). Fix every error.
6. Classify each change as breaking (removed or renamed field, new required field, changed type) or compatible.

Show a summary table of changes with the breaking ones first, plus the diff. Ask before writing the file if more than five operations change.

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.