Skip to content
Agentmart
Submit a tool

openapi-sync

Enforces OpenAPI spec discipline when working on REST API endpoints in this project.

Skill by cedricziel

IndexedMIT★ 6
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/cedricziel-openapi-sync

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Enforces OpenAPI spec discipline when working on REST API endpoints in this project. Triggers whenever adding, modifying, or removing HTTP routes, request/response types, or API handlers in the Rust web-ui crate (`crates/web-ui`). Reminds the agent to (1) update the committed `openapi.json` spec, (2) run `make dump-openapi` to re-export the spec from the running server, and (3) run `make generate-flutter-client` to regenerate the Dart/dio client in `app/packages/assistant_api/`. Also applies when changing route parameters, status codes, or authentication on existing endpoints.

Use cases: design, backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/openapi-sync

What's inside

Skill name
openapi-sync
Description
Enforces OpenAPI spec discipline when working on REST API endpoints in this project. Triggers whenever adding, modifying, or removing HTTP routes, request/response types, or API handlers in the Rust web-ui crate (`crates/web-ui`). Reminds the agent to (1) update the committed `openapi.json` spec, (2) run `make dump-openapi` to re-export the spec from the running server, and (3) run `make generate-flutter-client` to regenerate the Dart/dio client in `app/packages/assistant_api/`. Also applies when changing route parameters, status codes, or authentication on existing endpoints.
License
MIT
Instructions
42 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# OpenAPI Sync Discipline

Any change to the REST API **must** keep `openapi.json` and the generated Flutter client in sync. The Flutter app's `app/packages/assistant_api/` package is **generated code — never edit it manually**.

## Mandatory Steps After Any API Change

1. **Make the server compile and run** so the spec can be exported.

2. **Re-export the OpenAPI spec:**

   ```sh
   make dump-openapi
   ```

   Calls the running server to produce a fresh `openapi.json` at the repo root.

3. **Regenerate the Flutter Dart/dio client:**

   ```sh
   make generate-flutter-client
   ```

   Requires `openapi-generator` (`brew install openapi-generator`).

4. **Commit both** `openapi.json` and the regenerated files in `app/packages/assistant_api/` together with the API change in the same commit (or a follow-up commit in the same PR).

## What Counts as an API Change

- Adding, removing, or renaming a route
- Changing request body or query parameter types
- Changing response body types or status codes
- Adding or removing authentication/authorization on an endpoint
- Changing streaming vs. non-streaming behavior

## Checklist Before Committing

- [ ] `openapi.json` at repo root reflects the new/changed endpoint
- [ ] `app/packages/assistant_api/` has been regenerated via `make generate-flutter-client`
- [ ] `flutter analyze` passes (`cd app && flutter analyze`)
- [ ] No manual edits inside `app/packages/assistant_api/`

From cedricziel/assistant, MIT.

More from cedricziel/assistant

Signals

Stars
6
Forks
1
Open issues
14
Last commit (this folder)
Apr 15, 2026 (6 months ago)
Last release
May 26, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from cedricziel

Cite this page

openapi-sync skill. Agent Mart. https://agentmart.dev/skills/cedricziel-openapi-sync (last updated 2026-10-24)