CLAUDE SKILLBun & Elysia / Hono Claude Skill (.md) | Free & Offline
Production-grade architectural rulebook for Bun & Elysia / Hono. Engineered to eliminate LLM hallucinations, enforce strict deterministic conventions, and prevent architectural drift across Cursor IDE, Claude Code CLI, and autonomous multi-agent pipelines.
.claude/skills/bun-elysia/SKILL.mdFailure Patterns Prevented for Bun & Elysia / Hono
Bun and Elysia provide blazingly fast HTTP backends with TypeBox runtime validation and end-to-end type safety. Outdated AI models frequently hallucinate Node.js core modules, slow express-style middlewares, and redundant JSON serialization.
- Invokes deprecated or removed APIs from older model training weights
- Generates conflicting configuration files and invalid imports
- Silently drops type-safety, boundaries, or transaction isolation
Code Standards: Anti-Pattern vs Verified Implementation
// Discouraged: Node.js bcrypt imports, unvalidated body, and Express paradigms
import bcrypt from "bcrypt";
app.post("/users", async (req: any, res: any) => {
const hash = await bcrypt.hash(req.body.password, 10);
res.json({ success: true });
});import { Elysia, t } from "elysia";
export const app = new Elysia()
.onError(({ code, set }) => {
if (code === "NOT_FOUND") {
set.status = 404;
return { ok: false, error: "Resource not found" };
}
})
.post(
"/api/users",
async ({ body, set }) => {
const hash = await Bun.password.hash(body.password);
set.status = 201;
return { ok: true, email: body.email };
},
{
body: t.Object({
email: t.String({ format: "email" }),
password: t.String({ minLength: 8 }),
}),
}
);How to Install Bun & Elysia / Hono Claude Code Skills (SKILL.md) via Terminal
Step 1: Open Project Directory & Verify Target Placement
Open your terminal and navigate to your project root folder where the .claude/skills/bun-elysia/SKILL.md file will reside. Ensure the file is placed at the exact path below relative to your project root so the AI engine automatically loads it:
Step 2: Fetch Rule File via Terminal Command
Run curl, PowerShell, or wget to stream the rule directly from the DevScratchpad raw API endpoint and write it to .claude/skills/bun-elysia/SKILL.md:
Terminal One-Liner Install
Run directly in your project root to stream and write this rule file with one command.
mkdir -p ".claude/skills/bun-elysia" && curl -fsSL "https://www.devscratchpad.tech/api/raw/claude-skills/bun-elysia" -o ".claude/skills/bun-elysia/SKILL.md"Step 3: Verify and Activate with AI Agent
Launch your AI coding assistant (Claude Code CLI & Desktop). The assistant will automatically discover .claude/skills/bun-elysia/SKILL.md in your repository and apply the architectural guardrails, type constraints, and verification protocols during code generation.
Claude Code Skills (SKILL.md) Directory
Inspect the complete specification manual, glob patterns, directory rules, and all available presets in our central directory.
Technical FAQ: Bun & Elysia / Hono AI Rulebooks
Why use TypeBox instead of Zod with Elysia?
Elysia is tightly integrated with TypeBox through its t builder, which compiles to high-performance JavaScript validators that are orders of magnitude faster than runtime reflection.
Is this rulebook compatible with Hono on Bun?
Yes, the conventions for native Bun APIs, context extractors, and edge TypeScript performance apply smoothly to Hono as well.