Skip to content
Back to skills

Codegen

ASecurity

Regenerate OpenAPI spec then frontend API client for Skoleoverblikket. USE when user says 'codegen', 'swagger gen', 'regenerate api', 'run codegen', 'generate api client', 'regenerate spec', 'regenerate openapi', or after controller/model/endpoint changes.

  • 30 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 8, 2026
ai-agentsbashapifrontend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Codegen?

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

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

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: codegen
description: Regenerate OpenAPI spec then frontend API client for Skoleoverblikket. USE when user says 'codegen', 'swagger gen', 'regenerate api', 'run codegen', 'generate api client', 'regenerate spec', 'regenerate openapi', or after controller/model/endpoint changes.
---

Run in order — openapi-ts depends on the spec being current:

1. `dotnet build api/Skoleoverblikket.Api/Skoleoverblikket.Api.csproj` — regenerates `openapi/Skoleoverblikket.Api.json` via `OpenApiGenerateDocumentsOnBuild`
2. `cd web && npm run api:generate` — generates typed client from the spec

Report success or paste errors verbatim.

## Never read or grep the generated files

`web/src/api/generated/*` barrel imports are single lines of 12,000–15,000
characters (every endpoint in the API on one line). One `grep` match dumps
~7k tokens into context; `Read` on the whole file is far worse.

Do not verify codegen output by reading it. The `npm run api:generate` exit
code and `npx tsc --noEmit` already prove the client is valid.

If you must confirm a specific symbol landed, truncate every line:

```bash
grep -n "MySymbol" web/src/api/generated/sdk.gen.ts | cut -c1-120 | head -5
```

Same signal, ~600 chars instead of ~27,000.

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 ai-agents →

Comments

Loading comments…

Newsletter

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