station / src-ui
AGENTS.md2 starsChanged 59 days agoApache-2.0View on GitHub
Read the module map and the relevant design document before changing a surface. Keep UI state and navigation contract-driven; use canonical state primitives and the unsaved-changes guard where a view owns dirty state. Do not introduce a product claim the backing runtime cannot prove. Use React Query for remote data fetching; do not add bespoke fetch lifecycle state. Project layout navigation must flow through canonical setLayout; a Project entry without a layout uses canonical setProject. Do not mutate local routes…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src-desktop/AGENTS.mdAGENTS.md
- src-server/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- src-desktop/CLAUDE.mdCLAUDE.md
- src-server/CLAUDE.mdCLAUDE.md
- src-ui/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- deslopSkill
- documentation-auditSkill
- security-triageSkill
- tauri-v2-buildSkill
- test-auditSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Read the module map and the relevant design document before changing a surface.
- Very specific: line 7
Run the exact focused UI tests selected by npm run gate:for and cover changed user-visible behavior at the narrowest appropriate layer.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI scope
Read the module map and the relevant design document before changing a surface. Keep UI state and navigation contract-driven; use canonical state primitives and the unsaved-changes guard where a view owns dirty state. Do not introduce a product claim the backing runtime cannot prove.
Use React Query for remote data fetching; do not add bespoke fetch lifecycle state. Project layout navigation must flow through canonical setLayout; a Project entry without a layout uses canonical setProject. Do not mutate local routes to bypass either seam. useUnsavedGuard registers dirty state with the navigation store: call canonical navigate directly for route changes, and reserve its explicit guard callback for local state changes. Wrapping a registered route in that same guard asks twice and can lose the pending action.
Run the exact focused UI tests selected by npm run gate:for and cover changed user-visible behavior at the narrowest appropriate layer.
For performance or test cleanup, use the journey profiling and mutation route. Measure actual mounted behavior before changing memoization or adding caches. Prefer canonical identity keys, bounded collections, and batched I/O; preserve authority/freshness when sharing a snapshot. DOM/source-string assertions do not establish CSS layout, hit testing, or writability.
For compact value pickers, reuse .choice-trigger, .choice-caret, and ArrowDownGlyph; keep picker behavior in its existing owner. Use Button for standard actions and Dialog for standard dialog chrome. ResponsiveDialogSurface supplies behavior and geometry only; a custom consumer must own its overlay, background, and foreground styles. Preserve visible keyboard focus and 44px mobile targets. Validate shared-style changes in each affected surface, including narrow widths and both themes.
Design system
UI, brand, and product-copy rules live in DESIGN.md in @kontourai/ui (https://github.com/kontourai/ui/blob/main/DESIGN.md; also shipped at node_modules/@kontourai/ui/DESIGN.md from 1.13.0). Style with the --k-* tokens instead of hard-coded colors, spacing, radii or font sizes, and don't resolve anything the doc marks OPEN.
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.

