Add AGENTS.md for Claude Code, Gemini CLI and Codex (#1638)
Adds AGENTS.md for Claude Code, Gemini CLI and Codex.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds AGENTS.md with clear guidelines for working in this Electron +
React repo. It standardizes IPC patterns and React/TanStack Query usage
to keep code consistent and secure.
- **New Features**
- Documents IPC architecture: renderer IpcClient, preload allowlist,
host handlers, and throwing errors on failure.
- Defines React integration: useQuery for reads, useMutation for writes,
invalidate related queries, optional global state sync.
- Notes security practices: avoid remote, validate/lock by appId on
mutations.
- Encourages descriptive names that mirror IPC channels and colocated
tests/stories.
<!-- End of auto-generated description by cubic. -->
正在显示
AGENTS.md
0 → 100644
请
注册
或者
登录
后发表评论