temps / web
AGENTS.md949 starsChanged 20 days agoApache-2.0View on GitHub
Rules for the Temps console in web/. They add to the repository-wide rules in ../AGENTS.md, which still apply (tests in the same PR, SPDX headers, Conventional Commits with sign-off, no real third-party names). React + TypeScript, TanStack Query, shadcn/ui, Tailwind CSS, Rsbuild; the package manager is bun. - Design: root DESIGN.md is authoritative for existing console UI: the route shell, not the page, picks the width (form, about 1024px and centered with its header, for settings and forms; full for…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- start-temps-clusterSkill
- start-tempsSkill
- temps-add-handlerSkill
- temps-add-migration-and-entitySkill
- temps-add-pluginSkill
- temps-design-systemSkill
- temps-split-moduleSkill
- add-custom-domainSkill
- add-error-trackingSkill
- add-node-sdkSkill
- add-react-analyticsSkill
- add-session-recordingSkill
- deploy-to-tempsSkill
- estimate-temps-savingsSkill
- temps-best-practicesSkill
- temps-cliSkill
- temps-mcp-setupSkill
- temps-platform-setupSkill
- temps-pluginSkill
- tempsSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
React: no IIFEs in JSX (extract a helper or component).
- Very specific: line 68
API calls: use the generated SDK in web/src/api/client/.
- Very specific: line 77
After a backend API change, regenerate the SDK with bun run openapi-ts against a restarted server (../AGENTS.md → OpenAPI clients).
- Very specific: line 82
Never use SettingsSection or SettingsGroup as a wrapper for a read-only record, resource list, grant table, or operational panel.
- Distinctive: line 93
Keep session records distinct from individual grants and internal proxy tokens.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
web/AGENTS.md
Rules for the Temps console in web/. They add to the repository-wide rules in
../AGENTS.md, which still apply (tests in the same PR, SPDX
headers, Conventional Commits with sign-off, no real third-party names).
React + TypeScript, TanStack Query, shadcn/ui, Tailwind CSS, Rsbuild; the package
manager is bun.
- Design: root
DESIGN.mdis authoritative for existing console UI: the route shell, not the page, picks the width (form, about 1024px and centered with its header, for settings and forms;fullfor lists, tables, dashboards and logs), with onePageContainerpadding owner and nomax-w-*/mx-autowrappers of a page's own; the pages of one entity share one column, so a service's settings keep thefullcolumn and only their body is capped; one row of tabs per page, never a strip under another (a service's views are in the sidebar, a tab with several pages opens a menu,PageTabStrip); compact empty states, shared tables and pagination, shadcn controls.web/packages/ds(@temps-sdk/ds) codifies it into page, record, list and settings templates and a status vocabulary (web/packages/ds/docs/RULES.md); migratingweb/srconto it is tracked inweb/packages/ds/docs/design-system-handoff.md, not assumed. Thetemps-design-systemskill says which applies. The "operator ink" prototype is retired and is no reference. - React: no IIFEs in JSX (extract a helper or component); no hooks after an
early return; no conditional mounting of stateful components (use
openprops). - State: React Query's
isPending/isLoading/isError, never auseStateloading flag; React Hook Form + Zod for every form; invalidate queries after mutations. - UI: visual feedback (toast, loading, error) for every user action;
CopyButtonfor copy-to-clipboard; cards over dropdowns for selections where practical;Skeletonplaceholders matching the real layout for content loading, never centredLoader2spinners (inline spinners on mutation buttons are fine);ServiceIconfor a project's icon anywhere one is listed, never a hand-built initial or a media lookup of a page's own. Pages don't explain themselves: no paragraph under a page or section title; at most one short line the user needs to act (DESIGN.md"Pages don't explain themselves"). - Button labels are a verb or a short noun, at most three words: "Add
domain", "Retry", "All databases", "Copy AI prompt". Never a phrase or a
sentence ("All databases on this server", "Add a domain to web", "Retry
databases") and never a record's name. Put the context in the section
heading, the surrounding line or the button's
titletooltip. - Interactions: minimise interactions to reach a goal. A primary action
does the whole job in one click, inline, and shows its result in place;
never turn a primary button into a "review"/"continue" link or send the user
to a configuration page to finish what the button promised. Ask only for
input that can't be inferred, inline. Advanced configuration stays reachable
as a secondary link. Reference: the reachability banner's Add domain
(
web/src/components/reachability/ReachabilityWarningBanner.tsx). - Mobile: nothing scrolls sideways at any width. Tables show columns by
priority with container queries (
hidden @xl:table-cell), keep the name, state and actions, and move what a hidden column says that is needed to act under the name (a column hides only if a detail view still shows it); seeDESIGN.md"No horizontal scrolling". Filter barsflex flex-col gap-2 sm:flex-row sm:flex-wrapwithw-full sm:w-[Npx]selects; gridsgrid-cols-1 md:grid-cols-2 lg:grid-cols-3(stat cardsgrid-cols-2 md:grid-cols-4); side panelsflex-col lg:flex-rowwithw-full lg:w-[Npx]; the sharedPageHeader(web/src/components/layout/PageContainer.tsx); icon-button labelsmax-sm:sr-only, neverhidden sm:inline; long identifiers break ([overflow-wrap:anywhere]) instead of setting amin-w-[Npx]that forces scrolling. - Pagination is the shared
ResponsivePagination(web/src/components/ui/responsive-pagination.tsx), never rebuilt per call site. It measures its own width, so a narrow card gets what a phone gets: below@xlone row with labelled Previous and Next around{page} / {totalPages}, no page-size, first/last or direct-page controls; at@xland up, "Showing X–Y of Z" and the advanced controls. - API calls use the generated SDK in
web/src/api/client/. Never write afetchshim underweb/src/lib/(one once silently dropped a new field on PATCH). A missing binding means the handler lacks#[utoipa::path]orApiDocregistration: fix it there, and ask for help rather than adding a shim. - Running Playwright or deployment tests needs credentials from a maintainer; none are stored in the repository.
- Tests are Bun tests beside the source they cover (
name.test.ts/.test.tsxin the same directory); never importbun:testinto a production module. - After a backend API change, regenerate the SDK with
bun run openapi-tsagainst a restarted server (../AGENTS.md→ OpenAPI clients).
The left/right heading-and-controls layout is reserved for full settings forms.
Never use SettingsSection or SettingsGroup as a wrapper for a read-only
record, resource list, grant table, or operational panel. Detail and collection
pages keep one consistent full-width content layout; link to a dedicated
settings route for extensive editing. Small inline forms use Field and
FormErrors in the surrounding layout without introducing settings columns.
Vault owns Services, Access bundles, and Sessions. Services hold provider
configuration and credentials; bundles define reusable service selections and
access limits; sessions authorize identified consumers for a bounded lifetime.
Session details expose the allowed consumers, effective restrictions, expiry,
and revocation state. Sandbox detail pages show only that sandbox's access and
link to the owning Vault sessions; a sandbox picker is not a Vault navigation tab.
Keep session records distinct from individual grants and internal proxy tokens.
Creation and editing use dedicated form pages; operational details use the
full-width record layout.
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.

