regenerate-api

regenerate-api is a skill for Claude Code from bravodev-hub/appointme. It costs 136 tokens per session (1,475 once invoked), scanned A, original, MIT.

A procedure for regenerating a frontend API client and TypeScript data definitions from a backend’s OpenAPI document, a machine-readable description of its web API.

In plain words
What is it for?
Updating generated frontend files after changing routes, HTTP methods, permissions, request or response objects, or other API contract details.
Why use it?
It keeps frontend requests and data shapes aligned after backend endpoints or exchanged data change.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bravodev-hub/appointme/regenerate-api
Any agent
npx skills add bravodev-hub/appointme --skill regenerate-api
Clone the repo
git clone --depth 1 https://github.com/bravodev-hub/appointme

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for regenerate-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/bravodev-hub/appointme/regenerate-api.svg)](https://agentmods.dev/skills/bravodev-hub/appointme/regenerate-api)
Your own site
<a href="https://agentmods.dev/skills/bravodev-hub/appointme/regenerate-api"><img src="https://agentmods.dev/badge/skills/bravodev-hub/appointme/regenerate-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.01475
Opus 5 $0.00068 $0.00737
Sonnet 5 $0.00027 $0.00295
Haiku 4.5 $0.00014 $0.00147

Measured 6d ago against content hash d1ae8b6853c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

regenerate-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -k -s -o /dev/null -w "%{http_code}" https://localhost:7233/openapi/v1.json
.claude/skills/regenerate-api/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

regenerate-api

Regenerate src/AppointMe.Frontend/src/api/appointme.ts and appointme.schemas.ts from the live backend OpenAPI document. The frontend uses orval with clean: true, so the generated files are fully overwritten on each run.

When to use

Invoke this skill after any change that alters the OpenAPI contract:

  • New / renamed / removed endpoint (*Endpoint.cs, anything implementing IEndpoint)
  • Changed request or response shape (*Request.cs, *Response.cs, DTOs)
  • Changed route, HTTP verb, status codes, or auth attributes on an endpoint
  • Changes to value objects exposed through DTOs (e.g. PersonName, Email)
  • Permission attribute changes that affect the generated metadata

Do not invoke it for backend-only changes that don't touch the contract (internal handlers, domain events, EF config, migrations, tests).

Preconditions

  • Aspire (or at least the AppointMe.Api project) must be running and serving the new code.
  • The OpenAPI endpoint is https://localhost:7233/openapi/v1.json (self-signed cert, that's expected).
  • npm is available in src/AppointMe.Frontend/. This project is npm-based (package-lock.json, no yarn.lock) — never invoke yarn here, it would write a competing lockfile.

The orval script in package.json sets NODE_TLS_REJECT_UNAUTHORIZED=0 for the self-signed cert — don't add -k flags anywhere else.

Procedure

Run these steps in order. Do not skip the readiness check — running orval against a stale backend silently produces a stale client.

1. Verify the backend is up and serving fresh code

The backend must be restarted after the contract change for orval to see it. Aspire's default project setup does not hot-reload new endpoint signatures.

Check reachability:

curl -k -s -o /dev/null -w "%{http_code}" https://localhost:7233/openapi/v1.json

Interpret:

  • 200 — backend is reachable. Continue, but verify with the user that they restarted the API since the contract change (or restart it yourself if you own the terminal). A reachable-but-stale backend is the #1 cause of confusing diffs from this skill.
  • 000 / connection refused — backend is not running. Stop and ask the user to start (or restart) Aspire:
    cd src/AppointMe.Aspire && dotnet run
    
    Or, if Aspire is already running, restart the appointme-api resource from the Aspire dashboard.

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 111 lines · 136 tokens per session scan A d1ae8b6853c9

Subscribe to this mod's changes

regenerate-api is a skill published in the GitHub repository bravodev-hub/appointme (46 stars, last pushed 12d ago), licensed MIT. It adds 136 tokens to every session and 1,475 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ultracite

Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects. Use when: (1) Setting up or initializing Ultracite in a project (ultracite init), (2) Running linting or formatting commands (check, fix, doctor), (3) Writing or reviewing JS/TS code in a project that uses Ultracite — to…

agustinusnathaniel/nextarter-tailwind · 142 tokens

next-upgrade

Upgrade Next.js to the latest version following official migration guides and codemods.

agustinusnathaniel/nextarter-tailwind · 19 tokens

sentry

Use when adding error tracking, performance monitoring, and release health to .NET applications — ASP.NET Core, MAUI, WPF, Blazor, EF Core integration. Sentry .NET SDK: cross-platform error and performance monitoring with source map support, breadcrumbs, and alerting.

znlgis/opengis-skills · 60 tokens

prepare-release

Manual only. Invoked by the owner to cut a MailFathom release — composes the changelog, raises the declared version, settles the milestones and the next release's tracking issue, and states the order the two pull requests and the tag have to land in.

Krzysztof318/MailFathom · 58 tokens

check-docs-licenses

Use when a change is nearing completion or affects behavior, configuration, operations, documentation, dependencies, tools, services, protocol APIs, container images, models, generated assets, or copied code.

Krzysztof318/MailFathom · 44 tokens

start-task

Use when beginning repository work that may edit files, change dependencies, or require roadmap, documentation, or ADR context.

Krzysztof318/MailFathom · 26 tokens