Bump version

From datagouv/apistration · View interactive version

Bump version is an AI agent skill from the GitHub repository datagouv/apistration. Bump an API endpoint fiche from one version to the next (e.g. v3 → v4) in the admin_api_entreprise catalog. Use when the user mentions "bump version", "nouvelle version", "v4", "ajouter une fiche v4", or needs to create a new versioned endpoint entry while keeping the previous one as legacy. Applies

How to use this skill

Skill file

Bump Version

Create a new version of an API endpoint fiche while preserving the previous version as legacy.

Workflow

  1. Identify the source fiche — Read the current YAML file in config/endpoints/api_entreprise/ or config/endpoints/api_particulier/.
  1. Understand the changes — Ask the user for a PR or issue URL as référence (e.g. siade PR, Linear issue). Read it to understand what the new version adds/modifies. Reference it in the commit message.
  1. Apply the pattern — See references/pattern.md for the full before/after structure. In short:
  1. Validate — Run the relevant endpoint spec:

```bash

bundle exec rspec spec/models/api_entreprise/endpoint_spec.rb

bundle exec rspec spec/models/api_particulier/endpoint_spec.rb

```

  1. Verify loading — Confirm both entries load:

```bash

bundle exec rails runner "

klass = APIParticulier::Endpoint # or APIEntreprise::Endpoint

klass.all.select { |e| e.uid.include?('provider') }.each { |e| puts e.uid }

"

```

Important

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.