agentleFS
kontouraikontourai/station/src-ui/AGENTS.md

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…

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
  1. Distinctive:

    Read the module map and the relevant design document before changing a surface.

    line 3
  2. Very specific:

    Run the exact focused UI tests selected by npm run gate:for and cover changed user-visible behavior at the narrowest appropriate layer.

    line 7

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.