# elysiajs

This skill helps build, debug, and migrate Elysia v2 TypeScript backends. Use it for routes, schemas, plugins, typed clients, and deployment work.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 14000 installs · ★ 68
- Author: elysiajs
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/elysiajs/skills/tree/HEAD/elysia/SKILL.md
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/skills/elysiajs

## What it does

The skill inspects `package.json`, the lockfile, runtime, and project structure before helping with an Elysia v2 backend. It covers schema validation, hooks, plugins, typed clients, OpenAPI, WebSockets, tests, migration work, and deployment.

Its references cover the core API, lifecycle, composition, errors, project structure, Eden, databases, and runtimes. For a new project, it advises Bun with `t` schemas. Testing includes the affected route and its rejection path, along with the project’s type check.

Node work needs `@elysia/node` and Node 22.18 or newer, while WebSockets need `elysia/websocket`. Check the runtime and package versions before a migration because the skill targets Elysia v2 and does not treat an upgrade as automatic.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add elysiajs/skills --skill elysiajs -a claude-code
```
```bash
npx skills add elysiajs/skills --skill elysia -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/elysia/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/elysia/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add elysiajs/skills --skill elysia -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/elysia/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add elysiajs/skills --skill elysia -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/elysia/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install elysiajs/skills elysia
```

2. **Manually: put the files in place**
- File: `.github/skills/elysia/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add elysiajs/skills --skill elysia -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/elysiajs/skills --path elysia
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/elysia/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add elysiajs/skills --skill elysia -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/elysiajs/skills/tree/HEAD/elysia/SKILL.md

## When to use it
- build a TypeScript backend with Elysia v2
- test a route and its rejection path
- define request data with `t` schemas
- add a plugin or typed client
- migrate an Elysia v1 project to v2

## Example prompts
- Inspect `src/app.ts` and `package.json`, find the Elysia v2 route issues, and add tests for a valid request and a rejected request.
- Build a new Elysia backend on Bun with `t` schemas, an Eden typed client, and tests in `test/app.test.ts`.
- Migrate this Elysia v1 route to v2, keep the current package versions, and run `bun test` plus the project type check.

## Similar
- [bun-hono-integration](https://affpapa.org/en/nevibecode/skills/bun-hono-integration.md) — skill · 452 installs
- [microservices-patterns](https://affpapa.org/en/nevibecode/skills/microservices-patterns.md) — skill · 13176 installs
- [backend-development](https://affpapa.org/en/nevibecode/skills/moizibnyousaf-backend-development.md) — skill · 868 installs
- [dotnet](https://affpapa.org/en/nevibecode/skills/dotnet.md) — skill · 724 installs
- [bun-runtime](https://affpapa.org/en/nevibecode/skills/bun-runtime.md) — skill · 4700 installs
- [bun](https://affpapa.org/en/nevibecode/skills/bun.md) — skill · 2800 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
