Learn-skills.dev elysia-core-backend
Scaffold a Bun + Elysia backend with Better Auth, Drizzle ORM, Postgres, MCP endpoint, OpenAPI docs, CORS, and security defaults. Use when asked to create or regenerate this backend scaffold, or to add these components to a new or empty Elysia server project.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/ahmed-lotfy-dev/elysia-core-backend/elysia-core-backend" ~/.claude/skills/neversight-learn-skills-dev-elysia-core-backend && rm -rf "$T"
manifest:
data/skills-md/ahmed-lotfy-dev/elysia-core-backend/elysia-core-backend/SKILL.mdsource content
Elysia Core Backend
Overview
Create a minimal, production-ready Elysia backend skeleton with auth, database, MCP, and security defaults. Follow the official generator workflow and then apply the standardized file structure and contents.
Workflow
- Confirm the target location and whether this is a brand-new scaffold or an existing Elysia server. If files already exist, avoid clobbering without explicit user approval.
- Use the official Elysia generator with latest templates and Bun installs:
. Do not hand-roll the project or keep stale generated dependencies.bun create elysia@latest <target> - Apply the exact folder structure, file contents, and package scripts from the reference guide.
- Add required environment variables to
and call out secrets that must be user-provided..env - If the user requests, run migration commands and start the dev server.
- Verify security defaults: CORS allowlist, CSRF protection on non-auth routes, security headers. Ensure MCP is wired via
plugin and not a rawelysia-mcp
.McpServer
References
- Read
for the full scaffold steps, file contents, and required notes.references/elysia-core-backend.md