agentleFS
jalejandrov93jalejandrov93/agent-hub/dashboard/AGENTS.md

agent-hub / dashboard

AGENTS.md1 starsChanged 6 days agoMITView on GitHub

React 19 + TypeScript + Vite + Tailwind v4 + shadcn/ui on Base UI (@base-ui/react, not Radix), TanStack Router (hash history) and TanStack Query. Built to dashboard/dist/ and served by src/dashboard.mjs under a strict CSP.

  • 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 35,196 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 repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 1 is distinctive, and 9 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.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never add <style> elements, dangerouslySetInnerHTML, inline <script>, or style="" in static HTML.

    line 8
  2. Very specific:

    Offline: no CDN, no Google Fonts, no external requests.

    line 11
  3. Very specific:

    Dependencies: do not add or upgrade any.

    line 12
  4. Very specific:

    Types: use the shared zod schemas through @shared (../src/schemas.mjs) and z.infer.

    line 13
  5. Very specific:

    Data access: only through the hooks in src/lib/queries.ts and the functions in src/lib/api.ts.

    line 14
  6. Very specific:

    Search params: read them with the route's schema from src/routes/search.ts, and update them by navigating (so deep links work).

    line 15
  7. Very specific:

    Custom triggers: use render, not asChild. Items always sit inside their Group (SelectItem in SelectGroup, DropdownMenuItem in …

    line 19
  8. Very specific:

    Tables: use DataTable from src/components.

    line 26
  9. Very specific:

    Accessibility: every icon-only button has aria-label, and inputs have labels (Field + FieldLabel).

    line 27
  10. Distinctive:

    Git: do not commit or push.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

dashboard/ — rules for agents

React 19 + TypeScript + Vite + Tailwind v4 + shadcn/ui on Base UI (@base-ui/react, not Radix), TanStack Router (hash history) and TanStack Query. Built to dashboard/dist/ and served by src/dashboard.mjs under a strict CSP.

Hard constraints

  • CSP: script-src 'self'; style-src 'self'.
    • Never add <style> elements, dangerouslySetInnerHTML, inline <script>, or style="" in static HTML.
    • The React style={{...}} prop is allowed; it writes through CSSOM.
  • Banned packages: sonner, next-themes, CSS-in-JS runtimes, anything that injects <style>. Toasts use the shadcn Base UI toast component.
  • Offline: no CDN, no Google Fonts, no external requests. Only same-origin /api/* and /events.
  • Dependencies: do not add or upgrade any; package.json and the lockfile are owned by the orchestrator. If a shadcn component is missing, say so in your delivery; do not install it.
  • Types: use the shared zod schemas through @shared (../src/schemas.mjs) and z.infer. Never redeclare API types by hand.
  • Data access: only through the hooks in src/lib/queries.ts and the functions in src/lib/api.ts. No raw fetch in views.
  • Search params: read them with the route's schema from src/routes/search.ts, and update them by navigating (so deep links work). No local copies of filter state.

shadcn rules (Base UI variant)

  • Custom triggers: use render, not asChild. Items always sit inside their Group (SelectItem in SelectGroup, DropdownMenuItem in DropdownMenuGroup).
  • Layout classes: className is for layout only. Use flex flex-col gap-*, never space-y-*; size-* when width equals height; truncate; cn() for conditional classes.
  • Colors: semantic tokens only (bg-background, text-muted-foreground, text-destructive). No raw colors, no manual dark: overrides.
  • Status: status is never color-only. Use StatusBadge from src/components, which renders text + icon.
  • Composition: Card uses CardHeader/CardTitle/CardDescription/CardContent/CardFooter. Callouts use Alert, empty states Empty (or EmptyState), loading Skeleton, dividers Separator.
  • Overlays: Dialog/Sheet/AlertDialog always have a Title (use sr-only if hidden). Destructive or quota-spending actions go through ConfirmDialog.
  • Icons: from lucide-react. In buttons use data-icon="inline-start", with no size classes.
  • Tables: use DataTable from src/components. Rows are keyboard focusable, and a row click opens detail in a Sheet.
  • Accessibility: every icon-only button has aria-label, and inputs have labels (Field + FieldLabel). Live counts update without stealing focus.

Ownership and delivery

  • Scope: a view package edits only dashboard/src/views/<name>/** and its tests (*.test.tsx next to the files).
  • Entry point: the placeholder index.tsx must keep exporting <Name>View.
  • Tests: strict TDD with Vitest + Testing Library + happy-dom. Mock src/lib/api.ts or wrap in a QueryClientProvider with seeded data built from test/fixtures/v2/*.json shapes.
  • Verification before reporting: npm run -w dashboard test, npm run -w dashboard typecheck, npm run build, and then rg -n '<style|style="|data:font' dashboard/dist, which must print nothing.
  • Git: do not commit or push.

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.