Agent skill · Backend & API

api-framework-elysia

Bun-native HTTP framework — routing, TypeBox validation, Eden Treaty, plugins, lifecycle hooks

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/api/api-framework-elysia/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. CRITICAL: Before Using This Skill
  2. Philosophy
  3. Core Patterns
  4. Pattern 1: Route Setup with Method Chaining
  5. Pattern 2: Plugin Architecture
  6. Pattern 3: Scoping with Guard
  7. Pattern 4: Error Handling with status()
  8. Pattern 5: Eden Treaty Client
  9. RED FLAGS
  10. CRITICAL REMINDERS
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going