agentleFS
tanitaka-techtanitaka-tech/todome/client/AGENTS.md

todome / client

AGENTS.md1 starsChanged 7 months agoMITView on GitHub

client/ 配下を編集するときの追加ルール。 変更後は最低限これを通す。 UI を変えた場合は ./start.sh を起動し、ブラウザで実際に触って golden path を確認してから完了にする。

The file

Files
AGENTS.md

Frontend Rules

client/ 配下を編集するときの追加ルール。

状態管理

  • グローバルストアは導入しない。App.tsx を起点に props で流す既存方針を保つ。
  • WebSocket 経由の同期を正とする。サーバーから *_sync を受けた時点で React 側の状態を上書きし、独自の楽観的更新は増やさない。

型

  • client/src/types.ts はフロントとサーバーで共有する型の基準。変更したら対応する server/ 側の payload 形も同時に合わせる。
  • any は使わない。Record、union、既存の型定義を優先する。

スタイリング

  • CSS-in-JS は導入しない。スタイル追加は client/src/style.css に寄せる。
  • Tailwind、MUI、styled-components は導入しない。

コンポーネント構成

  • 新規コンポーネントは client/src/components/ 直下に置く。原則として 1 ファイル = 1 コンポーネント、サブディレクトリは増やさない。
  • ファイル名は PascalCase.tsx を使い、default export ではなく named export を使う。

チェック

変更後は最低限これを通す。

cd client && npx tsc -b
cd client && npm run lint

UI を変えた場合は ./start.sh を起動し、ブラウザで実際に触って golden path を確認してから完了にする。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.