Agent skill

Tsed Openapi

by tsedio in tsedio/tsed

Document a Ts.ED v8 API with OpenAPI. An agent skill from tsedio/tsed.

MITAuto-check passedBackend & APIs

Install Tsed Openapi

skills CLI
$ npx skills add tsedio/tsed --skill tsed-openapi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tsedio/tsed tsed-openapi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tsedio/tsed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/tsed/skills/tsed-openapi .claude/skills/tsed-openapi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tsed-openapi
GitHub stars
3.1k
Token cost
~2.1k tokens
SKILL.md length
880 words
Files
4 (incl. references)
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

Document a Ts.ED v8 API with OpenAPI. An agent skill from tsedio/tsed.

  • Works in 6 steps: Install and register a UI → Describe the document → Document operations → …
  • Fixing the swagger
  • SKILL.md covers 1. Install and register a UI, 2. Describe the document, 3. Document operations and 4. Split controllers across…, plus 5 more sections
  • Calls npm

What it does

Tsed Openapi is an agent skill from tsedio/tsed. Document a Ts.ED v8 API with OpenAPI. Configures @tsed/swagger (Swagger UI) and @tsed/scalar, annotates operations and models with @tsed/schema decorators, splits controllers across several documents, and exports the spec to a file. Use when adding or fixing the swagger or scalar configuration, writing @Returns, @Summary, @Description, @Tags, @Security, @OperationId, @Hidden, @Docs, @Consumes, @Produces or @Example, generating swagger.json/openapi.json in CI, or when a route, model, property or response schema is…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/configuration.md` and `references/decorators.md`).

It sits in Backend & APIs, covering OpenAPI specifications. It works with OpenAPI. The repository describes itself as: :triangularruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline… The licence is MIT.

When your agent uses it

  • Fixing the swagger
  • Scalar configuration
  • Writing @Returns
  • Generating swagger.json/openapi.json in CI

Example prompts

  • “/tsed-openapi”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Install and register a UI
  2. Describe the document
  3. Document operations
  4. Split controllers across documents
  5. Export the spec without serving it
  6. Diagnose a missing route or model

What it can do on your machine

Read from SKILL.md and the folder at commit cebcc11. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • tsed.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tsed Openapi loads about 2.1k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 144 tokens; SKILL.md has 880 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~144
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tsedio/tsed at commit cebcc11, republished under its MIT licence (© tsedio). 880 words, ~2,134 tokens.

Download SKILL.mdSave it as .claude/skills/tsed-openapi/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
tsed-openapi
description
Document a Ts.ED v8 API with OpenAPI. Configures @tsed/swagger (Swagger UI) and @tsed/scalar, annotates operations and models with @tsed/schema decorators, splits controllers across several documents, and exports the spec to a file. Use when adding or fixing the `swagger` or `scalar` configuration, writing @Returns, @Summary, @Description, @Tags, @Security, @OperationId, @Hidden, @Docs, @Consumes, @Produces or @Example, generating swagger.json/openapi.json in CI, or when a route, model, property or response schema is missing or wrong in the generated spec.

Ts.ED OpenAPI

Ts.ED generates the OpenAPI document from the same @tsed/schema metadata that drives validation and serialization. Fix the metadata, never hand-edit the generated JSON.

Read the configuration reference for every swagger / scalar option and the decorator reference for operation and response patterns. Model decorators belong to the sibling skill tsed-models; routes and parameters to tsed-controllers.

1. Install and register a UI

  1. Install one or both UIs: npm install @tsed/swagger and/or npm install @tsed/scalar.
  2. Import the package once in Server.ts for its side effect. Without the import the module is not registered and neither the UI nor the JSON route exists.
  3. Declare swagger and/or scalar as an array of documents.
typescript
import "@tsed/platform-express";
import "@tsed/swagger";
import "@tsed/scalar";
import {Configuration} from "@tsed/di";
import * as rest from "./controllers/rest/index.js";

@Configuration({
  mount: {"/rest": [...Object.values(rest)]},
  swagger: [{path: "/doc", specVersion: "3.0.3"}],
  scalar: [{path: "/scalar", specVersion: "3.1.0"}]
})
export class Server {}
  • mount takes controller classes only (imported one by one or through a barrel as above). Do not pass glob strings: they are silently dropped, so the server and the spec expose no route.

  • The UI is served on path; the JSON on <path>/<fileName> (swagger.json for Swagger, openapi.json for Scalar).

  • specVersion accepts "2.0", "3.0.1", "3.0.2", "3.0.3", "3.1.0". Always set it: when omitted (and spec.openapi is absent) Ts.ED emits Swagger 2.0.

  • Do not give two documents the same path: the generated spec is cached by path.

2. Describe the document

Put static metadata in spec and let controllers contribute paths and schemas.

typescript
swagger: [
  {
    path: "/doc",
    specVersion: "3.0.3",
    spec: {
      info: {title: "Orders API", version: "1.2.0"},
      components: {
        securitySchemes: {bearer: {type: "http", scheme: "bearer", bearerFormat: "JWT"}}
      }
    },
    operationIdPattern: "%c_%m",
    sortPaths: true
  }
];
  • info.version falls back to the root version configuration key.
  • Use operationIdPattern (%c class name, %m method name) or operationIdFormatter: (name, propertyKey, path) => string. The default is camelCase of %c.%m; duplicates get a suffix.
  • Use specPath to merge a base JSON file, and the $alterOpenSpec(spec, conf) hook on Server for last-mile edits.

3. Document operations

Import every decorator below from @tsed/schema.

typescript
import {Controller} from "@tsed/di";
import {NotFound} from "@tsed/exceptions";
import {PathParams} from "@tsed/platform-params";
import {Description, Get, Returns, Security, Summary, Tags} from "@tsed/schema";
import {Order} from "../models/Order.js";

@Controller("/orders")
@Tags("Orders")
export class OrdersController {
  @Get("/:id")
  @Summary("Get an order")
  @Description("Returns one order by its identifier")
  @Security("bearer")
  @(Returns(200, Order).Description("The order").Groups("read"))
  @(Returns(404, NotFound).Description("Order not found"))
  get(@PathParams("id") id: string) {}
}
  1. Declare one @Returns(status, Model) per status code. Wrap chained calls in parentheses: @(Returns(...).X()).
  2. Describe collections with @(Returns(200, Array).Of(Order)); a TypeScript Promise<Order[]> return type is not read.
  3. Describe generics with @Generics("T") on the model and .Of(Model) / .Nested(Model) on the response.
  4. Add @Deprecated(), @OperationId("name"), @Consumes(...), @Produces(...) or .ContentType(...) only when the default is wrong.
  5. Add examples on models with @Example(value); on responses with .Examples({...}).
  6. Every @Security(name) must match a key of spec.components.securitySchemes (OS3) or spec.securityDefinitions (OS2).

4. Split controllers across documents

  • By decorator: set doc: "admin" on a document and @Docs("admin") on controllers. Import Docs from @tsed/swagger or @tsed/scalar.
  • By route: set pathPatterns: ["/rest/admin/**"] (micromatch, negation with !). Patterns are tested against the controller's mounted route, not individual method paths.
  • A document with neither doc nor pathPatterns includes every non-hidden controller. A document with either one includes only matching controllers.
  • Use @Hidden() on a controller or a method to remove it from every document.

5. Export the spec without serving it

Pick one; details and a full script in the configuration reference.

  1. outFile: "./spec/openapi.json" on a document: written at $onReady on every start.
  2. A script that calls PlatformExpress.bootstrap(Server) (no listen()), resolves SwaggerService from @tsed/swagger and calls getOpenAPISpec(conf).
  3. The Ts.ED CLI plugin @tsed/cli-generate-swagger (tsed run generate-swagger --output <dir>); see the sibling skill tsed-cli.
  4. getSpec(Controller) or generateSpec({tokens, ...}) from @tsed/schema for a DI-free unit test.
Show full SKILL.md (378 more words)Show less

6. Diagnose a missing route or model

Check in this order:

  1. The UI package is imported in Server.ts and the configuration key is an array.
  2. The controller is reachable from mount (or imports); the spec is built from mounted controllers only.
  3. No @Hidden() on the class or method.
  4. The document's doc / pathPatterns filter matches the controller (step 4).
  5. The response has @Returns(status, Model); without it the operation has no response schema.
  6. Each model property carries a schema decorator (@Property(), @Required(), ...); undecorated properties are absent.
  7. .Groups(...) on @Returns or @Groups on properties is not filtering the field out.
  8. disableSpec: true removes the JSON route; viewPath: false removes the UI.

Do not

  • Do not import decorators from @tsed/common; use @tsed/schema, @tsed/di, @tsed/platform-params.
  • Do not write swagger: {...} as an object; it must be an array.
  • Do not add @Docs() to some controllers and expect the others to stay in a document that sets doc.
  • Do not hand-write paths in spec for routes Ts.ED already serves; decorate the controller.
  • Do not expose the UI publicly by accident: gate the configuration by environment when the API is private.

Pitfalls

  • A blank Swagger UI or Scalar page behind helmet is a CSP problem, not a spec problem. See https://tsed.dev/tutorials/swagger.md.
  • hidden: true on a Swagger document only hides it from the UI dropdown; the route stays served.
  • outFile is written after the server is ready, not at build time; a CI job needs option 2 or 3 of step 5.
  • @Returns(Model) without a status documents 200. The second argument must be a class: write @(Returns(404).Description("Not found")), not @Returns(404, {description: "Not found"}).
  • Scalar UI options go under options; cdn overrides the default jsDelivr bundle URL.
  • SwaggerService is an alias of OpenAPIService from @tsed/openapi-utils; @tsed/scalar does not re-export it.

Checklist

  • The UI package is imported and swagger / scalar is an array with unique path values.
  • spec.info and security schemes are declared; every @Security name resolves.
  • Every operation has @Summary, and one @Returns per status code with a model.
  • Arrays and generics use .Of(); no response relies on the TypeScript return type.
  • Multi-document filters (doc + @Docs, or pathPatterns) were checked against the served JSON.
  • The exported spec was regenerated and diffed after the change.

Further reading: https://tsed.dev/tutorials/swagger.md, https://tsed.dev/tutorials/scalar.md, https://tsed.dev/docs/controllers.md, https://tsed.dev/docs/model.md.

© tsedio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in plugins/tsed/skills/tsed-openapi of tsedio/tsed.

  • SKILL.md
  • agents/openai.yaml
  • references/configuration.md
  • references/decorators.md

Open the folder on GitHubat commit cebcc11

Compare with similar skills

Tsed Openapi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tsed Openapi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tsed Openapi this skilltsedio/tsed3.1k—~2.1kAutomated safety check: PassMIT
ToolJet Marketplace Plugin BuilderToolJet/ToolJet41k—~2.1kAutomated safety check: PassAGPL-3.0
Step Partsearthtojake/text-to-cad18k1 repos~1.5kAutomated safety check: PassMIT
API DesignerJeffallan/claude-skills12k2 repos~2kAutomated safety check: PassMIT
OpenAPI to MCP Servermcp-use/mcp-use11k—~5.2kAutomated safety check: PassApache-2.0
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT

Similar skills

  • Turns an API description, such as an OpenAPI file or a Postman collection, into a connector plugin for ToolJet's marketplace and checks it with the repo's validator.

    41k GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Step Parts

    earthtojake/text-to-cad

    Find, evaluate, and download common purchasable CAD parts from step.parts, including named off-the-shelf actuators, servos, motors, electronics boards, connectors, screws, bolts, nuts, washers…

    18k GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed
  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • OpenAPI to MCP Server

    mcp-use/mcp-use

    Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.

    11k GitHub stars~5.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Old Coder API Design

    AmazingAng/old-coder

    Reviews or designs an HTTP/JSON API's endpoints, auth, pagination, versioning and deprecations, guarding against inventing a bespoke interface or silently breaking consumers.

    749 GitHub starsUsed in 1 repo~3.4k tokens
    Backend & APIsAuto-check passed

More from tsedio/tsed

All 19 skills in this repo
  • Create a production-ready Ts.ED platform adapter for a new HTTP framework or runtime, such as Hono, Elysia, Bun.serve, or a Node framework.

    3.1k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Tsed CLI

    tsedio/tsed

    Scaffolds Ts.ED v8 projects and generates files with the Ts.ED CLI v7, through its MCP server (tools set-workspace, init-project, list-templates, get-template, generate-file) or the tsed binary…

    3.1k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Configure and bootstrap a Ts.ED v8 server - the @Configuration decorator or configuration() on the Server class, PlatformExpress/PlatformKoa/PlatformFastify.bootstrap, server options (mount…

    3.1k GitHub stars~2.1k tokensUpdated today
    Auto-check: notes
  • Tsed Di

    tsedio/tsed

    Declare, inject and scope Ts.ED v8 providers and wire lifecycle hooks - @Injectable, @Module, @Controller, @Inject, the functional API (inject, injectMany, lazyInject, constant, refValue…

    3.1k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Tsed Docs

    tsedio/tsed

    Locates authoritative Ts.ED v8 documentation and API reference instead of guessing framework APIs.

    3.1k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Tsed Logger

    tsedio/tsed

    Configure and use logging in a Ts.ED v8 application with @tsed/logger v8.

    3.1k GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Tsed Openapi

What does Tsed Openapi do?

Document a Ts.ED v8 API with OpenAPI. An agent skill from tsedio/tsed. Tsed Openapi is an agent skill from tsedio/tsed.ED v8 API with OpenAPI.

When should I use Tsed Openapi?

Tsed Openapi fits situations like: fixing the swagger; scalar configuration; writing @Returns; generating swagger.json/openapi.json in CI.

How do I install Tsed Openapi in Claude Code?

Run `npx skills add tsedio/tsed --skill tsed-openapi -a claude-code`. Or copy the skill folder (plugins/tsed/skills/tsed-openapi in tsedio/tsed) into .claude/skills/tsed-openapi in your project. Claude Code loads it when a task matches its description.

How do I install Tsed Openapi in Codex?

Run `npx skills add tsedio/tsed --skill tsed-openapi -a codex`. Or copy the skill folder (plugins/tsed/skills/tsed-openapi in tsedio/tsed) into .agents/skills/tsed-openapi in your project. Codex loads it when a task matches its description.

Can I use Tsed Openapi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tsedio/tsed --skill tsed-openapi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tsed-openapi, .gemini/skills/tsed-openapi, .github/skills/tsed-openapi and .opencode/skills/tsed-openapi in your project.

What does Tsed Openapi need to run?

Going by SKILL.md and its folder, Tsed Openapi needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Tsed Openapi access the network?

SKILL.md names 1 domain. As links in the text: tsed.dev. This is read from the text; nothing was executed.

Is Tsed Openapi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tsed Openapi use?

Tsed Openapi is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tsed Openapi use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.2k tokens, read only when the agent opens those files.

What are the alternatives to Tsed Openapi?

Skills that share tags, products or a category with Tsed Openapi: ToolJet Marketplace Plugin Builder (ToolJet/ToolJet, 41k stars), Step Parts (earthtojake/text-to-cad, 18k stars), API Designer (Jeffallan/claude-skills, 12k stars) and OpenAPI to MCP Server (mcp-use/mcp-use, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tsed Openapi?

tsedio (a GitHub organization) maintains it in tsedio/tsed, which has 3,088 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 7, 2026.

Source: tsedio/tsed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.