Skip to content
Back to skills

Quickstart

ASecurity

Use this skill when the user wants to generate Go server stubs, clients, or types from an OpenAPI 3 spec with oapi-codegen.

  • 58 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 8, 2026
toolsgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

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

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-d9508c8b/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-d9508c8b)

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: oapi-codegen
description: Use this skill when the user wants to generate Go server stubs, clients, or types from an OpenAPI 3 spec with oapi-codegen.
---

# oapi-codegen Plugin

oapi-codegen turns an OpenAPI 3 spec into Go code: model types, server interfaces
(chi, echo, gin, fiber, std lib), strict handlers, client code, and embedded-spec
helpers. The config-file mode is the recommended way to wire it into a repo.

## Commands

### Generation
- `oapi-codegen spec generate <spec>` — Generate via CLI flags
- `oapi-codegen config generate <cfg> <spec>` — Generate via config file
- `oapi-codegen templates list` — Show targets/options
- `oapi-codegen _ _` — Passthrough

## Usage Examples

- "Generate a chi server from this OpenAPI spec"
- "Generate just the model types"
- "Set up oapi-codegen config for this repo"
- "Generate a typed API client"

## Installation

```bash
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
```

## Examples

```bash
# Types only
oapi-codegen -generate types -o api/types.gen.go openapi.yaml

# Chi server + types
oapi-codegen -generate types,chi-server -o api/server.gen.go openapi.yaml

# Client
oapi-codegen -generate types,client -o api/client.gen.go openapi.yaml

# Config file (checked into repo, used via go:generate)
# cfg.yaml: package, output, generate: {chi-server: true, strict-server: true, models: true}
oapi-codegen --config cfg.yaml openapi.yaml
```

## Key Features

- Targets: types, chi-server, echo-server, gin, fiber, std-http-server, strict-server, client, client-with-responses, embedded-spec, spec, skip-fmt, skip-prune
- Config-file mode records all options for reproducible `go generate`
- `strict-server` wraps handlers with automatic request decoding/validation
- Supports spec embedding (`-generate embedded-spec`) for runtime validation

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

Comments

Loading comments…

Newsletter

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