Agent skill

Tsed Controllers

by tsedio in tsedio/tsed

Write Ts.ED v8 HTTP controllers and routes - @Controller paths and nested children, mounting through the mount configuration, verb decorators from @tsed/schema, parameter decorators from…

MITAuto-check passedBackend & APIs

Install Tsed Controllers

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

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

GitHub CLI
$ gh skill install tsedio/tsed tsed-controllers --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-controllers .claude/skills/tsed-controllers && 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-controllers
GitHub stars
3.1k
Token cost
~2.3k tokens
SKILL.md length
757 words
Files
2
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

Write Ts.ED v8 HTTP controllers and routes - @Controller paths and nested children, mounting through the mount configuration, verb decorators from @tsed/schema, parameter decorators from…

  • Works in 5 steps: Declare and mount the controller → Bind inputs → Shape the response → …
  • Fixing a REST endpoint
  • SKILL.md covers 1. Declare and mount the…, 2. Bind inputs, 3. Shape the response and 4. Order and write paths, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Tsed Controllers is an agent skill from tsedio/tsed. Write Ts.ED v8 HTTP controllers and routes - @Controller paths and nested children, mounting through the mount configuration, verb decorators from @tsed/schema, parameter decorators from @tsed/platform-params, typed inputs, response decorators and custom endpoint decorators. Use when adding or fixing a REST endpoint, when a route returns 404 or is shadowed by another route, when @BodyParams/@QueryParams/@PathParams receive a plain object or the wrong type, or when working with @Returns, @Status, @Redirect, @View…

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Backend & APIs, covering REST APIs. 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 a REST endpoint
  • A route returns 404
  • Is shadowed by another route
  • @BodyParams/@QueryParams/@PathParams receive a plain object

Example prompts

  • “/tsed-controllers”

Workflow steps

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

  1. Declare and mount the controller
  2. Bind inputs
  3. Shape the response
  4. Order and write paths
  5. Build a custom endpoint decorator

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    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 Controllers loads about 2.3k tokens when it runs. Until then it costs about 144 tokens; SKILL.md has 757 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.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). 757 words, ~2,305 tokens.

Download SKILL.mdSave it as .claude/skills/tsed-controllers/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
tsed-controllers
description
Write Ts.ED v8 HTTP controllers and routes - @Controller paths and nested children, mounting through the `mount` configuration, verb decorators from @tsed/schema, parameter decorators from @tsed/platform-params, typed inputs, response decorators and custom endpoint decorators. Use when adding or fixing a REST endpoint, when a route returns 404 or is shadowed by another route, when @BodyParams/@QueryParams/@PathParams receive a plain object or the wrong type, or when working with @Returns, @Status, @Redirect, @View, @Hidden, @Req/@Res or useDecorators.

Ts.ED Controllers and Routing

Declare endpoints with decorators and let Ts.ED map, validate and serialize. Keep controllers thin: inputs in, service call, value out.

Package map (never import from @tsed/common):

SymbolPackage
Controller, Configuration, Inject@tsed/di
Get, Post, Put, Patch, Delete, Head, Options, All, Returns, Status, Redirect, Location, ContentType, Header, View, Hidden@tsed/schema
PathParams, QueryParams, BodyParams, HeaderParams, Cookies, Session, Locals, Context, RawBodyParams, RawPathParams, RawQueryParams, UsePipe@tsed/platform-params
Req, Res, Next, PlatformRequest, PlatformResponse, PlatformContext@tsed/platform-http
useDecorators, StoreSet@tsed/core

1. Declare and mount the controller

typescript
import {Controller, Inject} from "@tsed/di";
import {NotFound} from "@tsed/exceptions";
import {BodyParams, PathParams, QueryParams} from "@tsed/platform-params";
import {Get, Post, Returns} from "@tsed/schema";
import {Calendar} from "../models/Calendar.js";
import {CalendarsService} from "../services/CalendarsService.js";

@Controller("/calendars")
export class CalendarsController {
  @Inject()
  protected service: CalendarsService;

  @Get("/")
  @(Returns(200, Array).Of(Calendar))
  list(@QueryParams("limit") limit: number = 20) {
    return this.service.list(limit);
  }

  @Get("/:id")
  @Returns(200, Calendar)
  @Returns(404, NotFound)
  async get(@PathParams("id") id: string) {
    const calendar = await this.service.get(id);
    if (!calendar) throw new NotFound("Calendar not found");
    return calendar;
  }

  @Post("/")
  @Returns(201, Calendar)
  create(@BodyParams() payload: Calendar) {
    return this.service.create(payload);
  }
}
  1. Mount it explicitly in the server configuration. A controller that is neither mounted nor listed as a child is never routed.
typescript
import {Configuration} from "@tsed/di";
import {CalendarsController} from "./controllers/CalendarsController.js";

@Configuration({mount: {"/rest": [CalendarsController]}})
export class Server {}
  1. Pass controller classes (or Object.values() of a barrel). Do not pass glob strings to mount.
  2. Version an API by mounting different class lists on /rest/v1, /rest/v2.
  3. Nest with @Controller({path: "/rest", children: [CalendarsController, EventsController]}); mount only the parent. A child can be reused under several parents.
  4. Share handlers through class inheritance: put endpoints on an undecorated base class and add @Controller on the subclass only.

2. Bind inputs

  1. Give every parameter a decorator: @PathParams("id"), @QueryParams("q"), @BodyParams(), @BodyParams("field"), @HeaderParams("x-token"), @Cookies("sid"), @Session("user"), @Locals("key"), @Context() $ctx.
  2. Type parameters with model classes, not interfaces or type aliases. An interface, a union or any is emitted as Object: no mapping, no property validation. Use @Any() from @tsed/schema when any type must be accepted.
  3. Pass the item class for collections, because TypeScript erases generics: @BodyParams(Product) products: Product[], @QueryParams("ids", String) ids: string[].
  4. Use a class for a whole query string: @QueryParams() query: SearchQuery.
  5. Add inline constraints with schema decorators on the parameter: @PathParams("id") @Pattern(/^[0-9a-f]{24}$/) id: string.
  6. Only @BodyParams, @PathParams and @QueryParams run the json-mapper and validation by default. @HeaderParams, @Cookies, @Session, @Locals do not; opt in with the options form @HeaderParams({expression: "x-id", useValidation: true, useMapper: true}).
  7. Use the Raw* variants to bypass mapping and validation (for example before @UsePipe, see tsed-middlewares).
  8. Prefer @Context() $ctx: PlatformContext ($ctx.request, $ctx.response, $ctx.logger, $ctx.endpoint) over @Req()/@Res(). Do not type @Req()/@Res() as Express objects in portable code; use PlatformRequest/PlatformResponse.

Model, validation and group rules belong to tsed-models.

3. Shape the response

  1. Return the value. Promises, Observable, Buffer and readable streams are resolved and sent by the platform. Do not call res.send()/res.json() and also return a value.
  2. Declare each status with @Returns(status, Model). It drives OpenAPI and the serialization options of that status: .Of(Item), .Nested(Sub), .Groups("read"), .ContentType("text/xml"), .Header("x-total", ...), .Description("..."), .Binary().
  3. Wrap chained decorators in parentheses: @(Returns(200, Pagination).Of(Product)).
  4. Set a fixed status and headers with @Status(201, Model), @Header("x-version", "1"), @ContentType("text/csv"). Use $ctx.response.status(...), .setHeaders(...), .attachment(...) for dynamic values.
  5. Redirect with @Redirect("/new") or @Redirect(301, "/new"); add a Location header with @Location("/items/1").
  6. Render templates with @View("calendar.ejs") and return the view data (engine setup: https://tsed.dev/docs/templating.md).
  7. Hide an endpoint or controller from OpenAPI with @Hidden(). Documentation details belong to tsed-openapi.
Show full SKILL.md (285 more words)Show less

4. Order and write paths

  1. Routes register in method declaration order. Put static paths (/search) above parametric ones (/:id).
  2. Stack verb decorators to alias one handler: @Get("/:id") @Get("/alias/:id").
  3. Supported path tokens: /:id, optional /:id? or Express 5 /{:id}, named wildcard /:path* read with @PathParams("path"). Adapters convert these for Express 4/5, Koa and Fastify.
  4. Do not embed RegExp groups in string paths (/:id(\\d+)); Express 5 rejects them and Ts.ED does not convert them. Validate with @Pattern instead.

5. Build a custom endpoint decorator

Compose existing decorators with useDecorators; store options with StoreSet and read them through $ctx.endpoint.get(Key).

typescript
import {StoreSet, useDecorators} from "@tsed/core";
import {UseBefore} from "@tsed/platform-middlewares";
import {Returns} from "@tsed/schema";
import {QuotaMiddleware} from "../middlewares/QuotaMiddleware.js";

export function Quota(limit: number) {
  return useDecorators(StoreSet(QuotaMiddleware, {limit}), UseBefore(QuotaMiddleware), Returns(429));
}

Middlewares, auth decorators, interceptors and pipes: tsed-middlewares. Thrown errors and error payloads: tsed-exceptions.

Pitfalls

  • 404 on every route: the controller is not in mount, or the mount prefix was forgotten in the URL.
  • /calendars/search hits get(":id"): reorder the methods.
  • Body arrives as a plain object: the parameter type is an interface, or the collection item type was not given.
  • Model properties missing from input or output: the property has no schema decorator (see tsed-models).
  • @Returns does not convert the returned value to another class; it selects serialization options (groups, generics) and documents the response.
  • Relative imports without the .js extension fail at runtime in ESM projects.
  • Routes added through an injected PlatformRouter are not part of the OpenAPI document.

Checklist

  • Controller decorated, exported, and mounted or listed in a parent's children.
  • Every parameter decorated and typed with a class or primitive; collections pass the item class.
  • Each success and error status declared with @Returns.
  • Static routes declared before parametric routes; no RegExp in string paths.
  • No @tsed/common import; relative imports end with .js.
  • Endpoint covered by a test (see tsed-testing).

Depth: https://tsed.dev/docs/controllers.md, https://tsed.dev/docs/routing.md, https://tsed.dev/docs/custom-endpoint-decorators.md, https://tsed.dev/docs/request-context.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 1 other file in plugins/tsed/skills/tsed-controllers of tsedio/tsed.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit cebcc11

Compare with similar skills

Tsed Controllers 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 Controllers compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tsed Controllers this skilltsedio/tsed3.1k—~2.3kAutomated safety check: PassMIT
API DesignerJeffallan/claude-skills12k2 repos~2kAutomated safety check: PassMIT
Paperclippaperclipai/paperclip99k—~9.6kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works15818 repos~4kAutomated safety check: PassAGPL-3.0
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

  • 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
  • Paperclip

    paperclipai/paperclip

    Interact with the Paperclip control plane API for task coordination and governance.

    99k GitHub stars~9.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    158 GitHub starsUsed in 18 repos~4k 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
  • Covers the RuView `wifi-densepose` command line binary, its Axum REST API and the WebAssembly builds for browsers and ESP32, for embedding or scripting RuView.

    97k GitHub stars~1.2k tokensUpdated today
    Backend & APIsAuto-check: notes

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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    Auto-check passed

Categories

Questions about Tsed Controllers

What does Tsed Controllers do?

Write Ts.ED v8 HTTP controllers and routes - @Controller paths and nested children, mounting through the mount configuration, verb decorators from @tsed/schema, parameter decorators from…. Tsed Controllers is an agent skill from tsedio/tsed.ED v8 HTTP controllers and routes - @Controller paths and nested children, mounting through the mount configuration, verb decorators from @tsed/schema, parameter decorators from @tsed/platform-params, typed inputs, response decorators and custom endpoint decorators.

When should I use Tsed Controllers?

Tsed Controllers fits situations like: fixing a REST endpoint; A route returns 404; is shadowed by another route; @BodyParams/@QueryParams/@PathParams receive a plain object.

How do I install Tsed Controllers in Claude Code?

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

How do I install Tsed Controllers in Codex?

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

Can I use Tsed Controllers 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-controllers -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-controllers, .gemini/skills/tsed-controllers, .github/skills/tsed-controllers and .opencode/skills/tsed-controllers in your project.

What does Tsed Controllers need to run?

SKILL.md names no scripts, command-line tools or credentials: Tsed Controllers is instructions for the agent only.

Does Tsed Controllers 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 Controllers 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 Controllers use?

Tsed Controllers 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 Controllers use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tsed Controllers?

Skills that share tags, products or a category with Tsed Controllers: API Designer (Jeffallan/claude-skills, 12k stars), Paperclip (paperclipai/paperclip, 99k stars), Nodejs Backend Patterns (ever-works/ever-works, 158 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 Controllers?

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.