docs(agents): slim AGENTS.md to essentials and move deep guides to skills/docs

Merged
SA
4mo ago
+199-185

What

Root AGENTS.md had grown to 171 lines of always-on context. This cuts it to the things an agent genuinely can't infer from the code, and relocates the long-form material to places that load on demand.

Moved, not deleted:

ContentNew homeWhy
CDP UI verification (evidence rules, from root) + CDP mechanics (port/worktree matching, auth repair, from apps/desktop/AGENTS.md).agents/skills/cdp-verification/SKILL.mdOnly relevant when actually verifying UI; a skill loads on description match
Cross-agent-CLI config notes (Codex, Cursor, OpenCode, Vibe, Kimi, Grok)docs/agent-tooling.mdOnly matters when editing .agents/ or a tool config
iOS-only scopeapps/mobile/AGENTS.mdBelongs with the app it constrains

Cut:

  • The MCP config rule. It was factually wrong: .mcp.json, .cursor/mcp.json, and .vibe/ don't exist in this repo. Current state is recorded in docs/agent-tooling.md instead.
  • "Avoid any" and "read the ticket-format skill" — generic, and that skill self-triggers on its description.
  • Release/canary prose, compressed to a pointer at scripts/release/README.md, keeping only the canary-vs-stable distinction that's easy to confuse.

Fixed:

  • The desktop localStorage guardrail pointed entity-scoped data at createElectronSQLitePersistence, deleted in #6328. It now names the real destination (host-side SQLite via @superset/local-db over electronTrpc) and notes that since #6328 every CollectionsProvider collection is localStorage-backed, so withQuotaGuard/notifyQuotaExhausted/evictInactiveOrgs are pressure absorption rather than headroom.

Added:

  • A short "Orchestrating agents and workspaces" section pointing agents at the superset CLI for isolated workspaces and parallel agents rather than hand-rolling git worktrees.

Kept (verified still load-bearing, not just assumed): Bun-only; Next 16 proxy.ts (5 apps use it, zero middleware.ts); root-level Biome with warnings-as-errors; the useLiveQuery cache-first rule (TanStack DB is not removed — 68 call sites in apps/desktop/src, and CollectionsProvider still builds @tanstack/db collections); conventional-commit PR titles; no em dashes; prod-DB and drizzle/ prohibitions; ask_user; plan/doc placement; and the full Project Structure tree, restored verbatim.

Sizes

FileBeforeAfter
AGENTS.md171116
apps/desktop/AGENTS.md5818

Inbound references in CONTRIBUTING.md and both AGENTS.md files repointed to the new locations.

Test plan

  • bun run lint exits 0
  • CDP mechanics diffed byte-identical against the original, except one intentionally repathed script reference (scripts/… → apps/desktop/scripts/…, no longer read from inside apps/desktop)
  • Project Structure section diffed byte-identical against the original
  • Verified every symbol/path the surviving rules mention still exists (persisted-key-registry.test-data.ts, DEAD_KEYS, proxy.ts, scripts/release/README.md, .agents/skills/db-migrations/SKILL.md)
  • Every superset CLI invocation in the new section checked against superset --help output

Docs-only; no code paths touched.


Summary by cubic

Slims AGENTS.md to essentials and moves deep guides to on-demand docs/skills to reduce always-on context. Clarifies CDP auth repair with the single valid ./.superset/setup.sh --force exception and updates workspace/agent CLI examples to use explicit placeholders. No code paths changed.

  • Moved deep guides: CDP UI verification to .agents/skills/cdp-verification/SKILL.md; per-tool CLI config to docs/agent-tooling.md; iOS-only scope to apps/mobile/AGENTS.md.
  • Fixed desktop guardrail: entity-scoped data now points to host-side SQLite via @superset/local-db over electronTrpc; since #6328 all CollectionsProvider collections are localStorage-backed, so quota helpers absorb pressure rather than expand headroom.
  • Added: short “Orchestrating agents and workspaces” section recommending the superset CLI for isolated workspaces and parallel agents.

Review and rollout

  • Validate references resolve: CONTRIBUTING.md → .agents/skills/cdp-verification/SKILL.md; AGENTS.md and apps/desktop/AGENTS.md link to new homes.
  • Required actions: for UI verification, follow .agents/skills/cdp-verification/SKILL.md; use the superset CLI instead of hand-rolled worktrees for new/parallel workspaces.
  • Update any external docs that deep-link to removed AGENTS.md sections.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive guidance for reliable end-to-end UI verification of desktop applications.
    • Clarified agent tooling locations, command and skill discovery, and supported development tools.
    • Simplified repository, database, release, and workspace guidance.
    • Updated desktop storage recommendations and verification references.
    • Documented mobile app project structure and iOS-only conventions.
    • Refreshed contribution guidance for screenshot-based verification workflows.