Skip to content
Back to skills

Generate Api

ASecurity

Regenerate the frontend TypeScript API client after backend API changes (FastAPI endpoints, request/response models). Exports the OpenAPI schema and runs orval.

  • 30 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 8, 2026
developmenttypescriptbashfastapigitapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill generate-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Api?

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

Security grade badge for Generate Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-generate-api/badge)](https://www.skillsdirectory.com/skills/majiayu000-generate-api)

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: generate-api
description: Regenerate the frontend TypeScript API client after backend API changes (FastAPI endpoints, request/response models). Exports the OpenAPI schema and runs orval.
---

After any change to backend REST endpoints or their request/response models:

1. Run `bash scripts/generate-api.sh` from the repo root (exports `openapi.json` via `scripts/export_openapi.py`, then runs orval → `frontend/src/lib/api/index.ts`).
2. Check `git diff frontend/src/lib/api/` — confirm the generated changes match the backend change you made.
3. Run `cd frontend && bun run check` to catch type breakage in frontend code that consumes the regenerated client.
4. Fix any frontend call sites broken by the API change.

Note: `frontend/src/lib/api/index.ts` is generated — never edit it by hand (it is also excluded from eslint/prettier). The custom fetch wrapper lives in `frontend/src/lib/api/fetcher.ts` and is hand-maintained.

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 development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.