Backend Standards (Procedural Guide)
Note: Declarative rules (conventions, directory structure, naming) are in
.claude/rules/backend.mdand auto-loaded forpackages/server/**. This skill provides detailed code examples and patterns.
Detailed Documentation
- backend-standards.md — procedural detail and code patterns beyond the rule: Dependency Injection Policy, Hono framework patterns (routes, Valibot validation, error handling), structured logging examples, async patterns (route handlers, callbacks, process-level), callback lifecycle, resource cleanup worked example, PTY output buffering, async-over-sync exceptions and examples, WebSocket message typing.
- websocket-patterns.md — WebSocket implementation details: dual architecture setup, message protocol types, broadcast implementation, output buffering.
- webhook-receiver-patterns.md — webhook receiver implementation: always-200 pattern, async processing, signature verification, error handling strategy.