Openapi

From varfish-org/mehari · View interactive version

Openapi is an AI agent skill from the GitHub repository varfish-org/mehari. Apply when changing the REST API surface — actix handlers, utoipa annotations, or request/response types under server/.

How to use this skill

Skill file

OpenAPI / REST schema

Hard rule

After ANY API-surface change (routes, handlers, #[utoipa::path], schema structs), regenerate and commit the schema in the same PR, or CI fails:

cargo run -p mehari --bin mehari -- server schema --output-file openapi.schema.yaml

Review the diff (the version: line doesn't matter — CI strips it).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.