• SlayTheDragons's avatar
    Add AGENTS.md for Claude Code, Gemini CLI and Codex (#1638) · beb777bd
    SlayTheDragons 提交于
    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. -->
    beb777bd
AGENTS.md 1.7 KB