Back to list
ms2sato

backend-standards

by ms2sato

Web console for managing multiple AI coding agents across git worktrees

2🍴 0📅 Jan 14, 2026

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

Backend Best Practices

  • Resource Cleanup - PTY processes, WebSocket connections, file handles must be cleaned up
  • Callback Detachment - Detach callbacks when resources are destroyed (memory leak prevention)
  • WebSocket Message Types - Define and validate server→client and client→server types explicitly
  • Output Buffering - Buffer rapid PTY output before WebSocket send to reduce message frequency
  • Structured Logging - Use Pino with structured data: logger.info({ sessionId }, 'message')

Detailed Documentation

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon