todome / client
AGENTS.md1 starsChanged 7 months agoMITView on GitHub
client/ 配下を編集するときの追加ルール。 変更後は最低限これを通す。 UI を変えた場合は ./start.sh を起動し、ブラウザで実際に触って golden path を確認してから完了にする。
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-view-transitions/AGENTS.mdAGENTS.md
- server/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- todome-e2e-runnerSkill
- todome-frontend-implementationSkill
- todome-server-implementationSkill
- todome-server-navigatorSkill
- todome-type-lint-runnerSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- vercel-react-view-transitionsSkill
- web-design-guidelinesSkill
The file
Files
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 lintUI を変えた場合は ./start.sh を起動し、ブラウザで実際に触って golden path を確認してから完了にする。
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
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.

