backend-standards

majiayu000 的头像作者 majiayu000

Hono/Bun patterns and backend best practices for this project. Use when implementing API endpoints, WebSocket handlers, services, or server-side logic in packages/server.

📖 中文导读:Hono/Bun patterns and backend best practices for this project. Use when implementing API endpoints, WebSocket handlers, services, or server-side logic in packages/server. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: backend-standards description: Hono/Bun patterns and backend best practices for this project. Use when implementing API endpoints, WebSocket handlers, services, or server-side logic in packages/server.

Backend Standards

Key Principles

  • Server is the source of truth - Backend manages all session/worker state
  • Structured logging - Use Pino with context objects
  • Resource cleanup - Always clean up PTY processes and connections
  • Type safety - Define types in shared package, validate at boundaries

Tech Stack

  • Bun, Hono, bun-pty, Pino, Valibot

Detailed Documentation