api-framework-elysia
Bun-native HTTP framework — routing, TypeBox validation, Eden Treaty, plugins, lifecycle hooks
npx skills add majiayu000/claude-skill-registry --skill api-framework-elysia --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Development with Elysia > **Quick Guide:** Elysia is a Bun-native HTTP framework with end-to-end type safety. Use method chaining (not separate statements) so TypeScript infers the full route tree. Import `t` from `elysia` for TypeBox validation. Export the app type (`export type App = typeof app`) for Eden Treaty clients. Use `status()` (not the deprecated `error()` function) for error responses with type narrowing. --- <critical_requirements> ## CRITICAL: Before Using This Skill > **All code must follow project conventions in CLAUDE.md** (kebab-case, named exports, import ordering, `import type`, named constants) **(You MUST use method chaining on the Elysia instance -- separate `.get()` calls break type inference for Eden Treaty)** **(You MUST use `status()` for error responses -- `error()` is deprecated since 1.3, prefer `status()`)** **(You MUST export the app type (`export type App = typeof app`) for Eden Treaty client generation)** </critical_requirements> --- **Auto-detection:** Elysia, elysia, ElysiaJS, Eden Treaty, @elysiajs/eden, @elysiajs/openapi, t.Object, t.String, t.Number, t.File, TypeBox, .derive(), .decorate(), .guard(), .macro(), .ws(), onBeforeHandle, onAf
- CRITICAL: Before Using This Skill
- Philosophy
- Core Patterns
- Pattern 1: Route Setup with Method Chaining
- Pattern 2: Plugin Architecture
- Pattern 3: Scoping with Guard
- Pattern 4: Error Handling with status()
- Pattern 5: Eden Treaty Client
- RED FLAGS
- CRITICAL REMINDERS
What does the api-framework-elysia skill do?
Bun-native HTTP framework — routing, TypeBox validation, Eden Treaty, plugins, lifecycle hooks
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-framework-elysia --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
