elysia
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, test, migrate, secure, or deploy Elysia and ElysiaJS applications with current documentation. Use for Bun or Node Elysia servers, routes, schemas and validation, lifecycle hooks, plugins and scope, guards, macros, context extension, error handling, Eden Treaty, OpenAPI, WebSocket, SSE, runtime adapters, and production readiness.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- FelipeAngeli/skillstheir own version, first seen Apr 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- FelipeAngeli/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the work touches Elysia or ElysiaJS.
- Distinctive: line 25
Verify behavior at the narrowest useful boundary, then verify the assembled application.
- Distinctive: line 29
Treat schemas as executable HTTP contracts.
- Distinctive: line 30
Keep route handlers thin. Prefer feature-scoped Elysia instances for HTTP concerns and ordinary functions/modules for business logic that …
- Very specific: line 34
Prefer resolve over derive when a value depends on validated request data.
- Very specific: line 36
Use named plugins, plus seed when configuration changes identity, when lifecycle deduplication matters.
- Distinctive: line 37
Treat OpenAPI security declarations as documentation only.
- Very specific: line 38
Do not assume Bun-only APIs on other adapters.
- Distinctive: line 39
Do not quote benchmark numbers as general application performance guarantees.
- Distinctive: line 43
Prefer repository-owned commands.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Elysia
Use this skill when the work touches Elysia or ElysiaJS.
Workflow
- Inspect the application before proposing changes:
- Installed versions of
elysiaand relevant@elysia/*packages. - Runtime and adapter: Bun,
@elysia/node, Deno, Cloudflare Worker, Vercel, Netlify, or another Web Standard host. - Root instance, export/listen shape, route plugins, prefixes, guards, macros, schemas, error hooks, and tests.
- Registration order and plugin scope for every cross-cutting hook.
- Installed versions of
- Refresh current official docs when the task depends on latest APIs, adapters, package compatibility, experimental support, or version-specific behavior. Start from source-map.md.
- Route the work to the focused references:
- Setup, routing, handlers, streaming, and project layout: setup-routing.md.
- Schemas, lifecycle order, status responses, and errors: validation-lifecycle-errors.md.
- Plugins, scope, guards, macros, dependencies, and context: plugins-context.md.
- Tests, Eden, OpenAPI, WebSocket, and SSE: testing-clients-realtime.md.
- Runtimes, deployment, security, observability, and production checks: production-runtime-security.md.
- Preserve the repository's existing architecture and commands unless the user explicitly asks for a migration.
- Verify behavior at the narrowest useful boundary, then verify the assembled application.
Core Judgment
- Treat schemas as executable HTTP contracts. Define request and per-status response schemas where the boundary matters; do not duplicate them with hand-written interfaces.
- Keep route handlers thin. Prefer feature-scoped Elysia instances for HTTP concerns and ordinary functions/modules for business logic that does not need request context.
- Let Elysia infer handler context. Do not pass a broad manually typed
Contextthrough controllers or services when destructured values or schema-derived types are sufficient. - Respect chain order. Interceptor hooks apply to routes and plugins registered after them, except
onRequest, which is global to incoming requests. - Respect plugin encapsulation. A plugin's lifecycle hooks and schemas do not automatically protect parent routes. Choose
local,scoped, orglobaldeliberately and test the boundary. - Prefer
resolveoverderivewhen a value depends on validated request data.deriveruns before validation;resolveruns after validation. - Return
status(code, value)for expected HTTP outcomes when type-safe response narrowing matters. Throw only when the outcome should pass throughonError. - Use named plugins, plus
seedwhen configuration changes identity, when lifecycle deduplication matters. - Treat OpenAPI security declarations as documentation only. Enforce authentication and authorization in guards, macros, hooks, or handlers.
- Do not assume Bun-only APIs on other adapters.
serverandserver.requestIPare Bun-specific; adapter and platform limitations must shape the implementation. - Do not quote benchmark numbers as general application performance guarantees. Profile the actual app and runtime.
Verification
Prefer repository-owned commands. For meaningful Elysia changes, cover the relevant subset:
- Typecheck and production build with the actual runtime/adapter.
- Direct
app.handle(new Request('http://localhost/...'))tests for success, validation failures, auth failures, error mapping, headers, and status-specific response bodies. - Scope/order regression tests when changing hooks, guards, macros, or plugin composition.
await app.modulesbefore testing deferred or lazy-loaded plugins.- Eden contract tests when the application exports its type to clients.
- Generated OpenAPI inspection when schemas, response status maps, tags, security metadata, or type generation changes.
- Real HTTP smoke test for listen/export, proxy headers, cookies, CORS preflight, streaming, and runtime-specific behavior.
- WebSocket connection, invalid-message, close, timeout, and backpressure checks when realtime behavior changes.
- Deployment-target smoke test when changing adapters, bundling, binary compilation, serverless exports, environment variables, or platform bindings.
Report which checks ran, which did not, and any version-sensitive assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

