SponsoredSkillry: Agent Skills with taste. Designed and tested in-house, so one prompt gives you polished slides, web pages and launch videos.Skillry: Agent Skills with taste Try free Skills
Agent Skills
  • Skills
  • Picks
  • ShopSoon
  • Solutions
  • Specification
  • Submit
Agent Skills
Agent Skills

Discover and share powerful Agent Skills for AI assistants

GitHubX (Twitter)
Skills
  • View All
  • Install Guide
  • Documentation
  • Solutions
  • Product Launch Video
  • Submit
Tools
  • Claude Code
  • Cursor
  • OpenCode
  • Codex CLI
  • Gemini CLI
Resources
  • anthropics/skills
  • awesome-claude-skills
  • vercel-labs/agent-skills
  • kepano/obsidian-skills
Company
  • About
  • Blog
  • Authors
  • Changelog
  • Privacy Policy
  • Terms of Service

Sponsored by Vectrust @ OpenDev Org & NextRouter Alliance

© 2026 EvergreenAI. Built with JimmyLv
elysiajs - Agent Skill - Agent Skills
Home/Skills/elysiajs

elysiajs

32

Build, debug, or migrate Elysia v2 TypeScript backends with validation, plugins, typed clients, and deployment. Use for Elysia projects or explicit Elysia requests.

Download Folder
View on GitHub

CLI Install

Recommended

Use the skills CLI to install this skill with one command. Auto-detects all installed AI assistants.

Method 1 - skills CLI

npx skills i elysiajs/skills/elysia

Method 2 - openskills (supports sync & update)

npx openskills install elysiajs/skills

Auto-detects Claude Code, Cursor, Codex CLI, Gemini CLI, and more. One install, works everywhere.

Installation Path

Download and extract to one of the following locations:

~/.claude/skills/elysiajs/
SKILL.md

Skill Instructions

Back

Run with Cloud Agent

No setup needed. Let our cloud agents run this skill for you.

Select Provider

Select Model

ClaudeClaude Sonnet 5.5
$0.20/task

Best for coding tasks

Join Cloud Agent Waitlist

No setup required

Before you install

Read from this skill's files on GitHub on 2026-11-09. These are facts about the files, not a review of how well the skill works.

Files
25 files, 0 scripts, SKILL.md is 706 words
Needs on your machine
Node.js, Bun, Docker
Environment variables it reads
COOKIE_SECRET, JWT_SECRET
Web addresses in its scripts
No URLs in its scripts
Worth a look before running
No sudo, rm -rf, curl | sh or shell=True in its scripts
Agent Skills spec
name differs from the folder name
Last upstream change
2026-10-19

Elysia v2

Start here
  1. Inspect package.json, the lockfile, runtime, and app structure. Keep existing versions and conventions unless the user requests a migration.
  2. This skill describes 2.0.0-rc.0 or newer. For v1, use migration to recognize differences, not as permission to upgrade. Check installed types when a different beta disagrees.
  3. Read only the references the task needs. Versions lists the source revision, package baselines, and verification limits.
  4. Check types and exercise the affected route, including its rejection path. See testing.
Essential rules
  • Options precede the handler. .get(path, options, handler), .get(path, handler), and .get(path, staticValue) are valid.
  • Keep the returned type. Chain calls or bind the result to a new variable. Reassigning let app = new Elysia() does not widen its inferred type.
  • Order hooks before routes. Parent hooks before .use(child) reach the child's routes. onRequest runs before routing and is the exception to registration order. See lifecycle.
  • Declare typed dependencies. Each independently defined instance should .use() its providers. Parent runtime inheritance does not give a child those static types. See composition.
  • Name shared plugins. name and seed deduplicate hooks. Plugin factories still execute on each call.
  • Return expected failures. status() and problem() send ordinary responses. A returned Error enters error hooks and contributes to the route's return type. Thrown errors are absent from that inferred type. Explicit error details can remain public in production. See errors.
  • Infer types from schemas. Use UnwrapSchema or UnwrapModels. TypeBox 1.x has no schema .static. Keep handlers inline and pass plain values to services.
  • Choose context lifetime. decorate and state are shared. derive runs per request after validation, in the beforeHandle queue.
  • Guard schemas override by default. A route replaces the corresponding inherited schema. Use schema: 'merge' on the guard when both must apply.
  • Register optional capabilities. File MIME validation needs a detector. WebSockets need elysia/websocket. Node needs @elysia/node and Node 22.18 or newer.
  • Always consult with an actual documentation for the latest features, examples, and references. The skill is a guide to the documentation, not a replacement.

For Elysia 1 use: https://elysiajs.com/llms.txt For Elysia 2 use: https://next.elysiajs.com/llms.txt

Minimal app and test

Use the project's test runner. This Bun example opens no port.

// src/app.ts
import { Elysia, t } from 'elysia'
 
export const app = new Elysia()
	.get('/users/:id', {
		params: t.Object({ id: t.Number() })
	}, ({ params }) => ({ id: params.id }))
 
export type App =
// test/app.test.ts
import { expect, test } from 'bun:test'
import { app } from '../src/app'
 
test('coerces the id and rejects nonnumeric input', async () => {
	const response = await app.handle('/users/42')
	expect(response.status).toBe


Run bun test and the project's type check. For new projects, see runtime setup. Keep .listen() in the process entry. See project structure.

Choose a reference
TaskRead
Versions, peer dependencies, source versus docsVersions
Configuration, routing, context, files, streamsCore API
Hooks, parsing, derived context, disposalLifecycle
Plugins, hook scope, guards, macrosComposition
Schemas, coercion, uploads, inferred typesValidation
Expected errors, exception mapping, production responsesErrors
Defaults for a new project

Default to Bun and t schemas. Keep small apps in one file; split by feature as needed. Add Eden for typed clients and OpenAPI for API documentation.

typeof
app
(
200
)
expect(await response.json()).toEqual({ id: 42 })
expect((await app.handle('/users/nope')).status).toBe(422)
})
Folders, services, models, dependency injection
Project structure
Cookie values, validation, signingCookies
WebSocket routesWebSockets
Route tests, type checks, lazy pluginsTesting
Typed client callsEden
OpenAPI schemas and documentationOpenAPI
Bun, Node, Deno, Workers, frontend framework integrationRuntimes
Bundles, AOT, binaries, Docker, deploymentDeployment
Traces, spans, request timingObservability
CORS, JWT, static files, cron, HTML, GraphQLOfficial plugins
Databases and external librariesDrizzle, Prisma, Better Auth, AI SDK, React Email
v1 syntax and migrationMigration
Find an example by patternPattern index