Back to list
ms2sato

frontend-standards

by ms2sato

Web console for managing multiple AI coding agents across git worktrees

2🍴 0📅 Jan 14, 2026

SKILL.md


name: frontend-standards description: React patterns and frontend best practices for this project. Use when implementing React components, hooks, routes, styling, or client-side logic in packages/client.

Frontend Standards

Key Principles

  • Avoid useEffect - Use TanStack Query, useSyncExternalStore, or event handlers instead
  • Prefer Suspense - For loading states and async boundaries
  • useSyncExternalStore - For external state subscriptions (WebSocket, global stores)
  • Server is the source of truth - Don't maintain conflicting client state

Tech Stack

  • React 18, TanStack Router, TanStack Query, Tailwind CSS, xterm.js, Valibot

React Best Practices

  • Suspense Usage - Prefer Suspense for async operations over manual isLoading flags
  • useEffect Discipline - Challenge every useEffect: could it be derived value, event handler, or useMemo?
  • Icon Components - SVG icons belong in Icons.tsx, not inline in View components
  • External State - Use useSyncExternalStore for singleton/global state, not useEffect subscriptions
  • Query Key Management - Use consistent key factories, ensure complete invalidation

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