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.
- agy-delegateSkill
- multi-agent-orchestratorSkill
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
- Very specific: line 8
Never add <style> elements, dangerouslySetInnerHTML, inline <script>, or style="" in static HTML.
- Very specific: line 11
Offline: no CDN, no Google Fonts, no external requests.
- Very specific: line 12
Dependencies: do not add or upgrade any.
- Very specific: line 13
Types: use the shared zod schemas through @shared (../src/schemas.mjs) and z.infer.
- Very specific: line 14
Data access: only through the hooks in src/lib/queries.ts and the functions in src/lib/api.ts.
- Very specific: line 15
Search params: read them with the route's schema from src/routes/search.ts, and update them by navigating (so deep links work).
- Very specific: line 19
Custom triggers: use render, not asChild. Items always sit inside their Group (SelectItem in SelectGroup, DropdownMenuItem in …
- Very specific: line 26
Tables: use DataTable from src/components.
- Very specific: line 27
Accessibility: every icon-only button has aria-label, and inputs have labels (Field + FieldLabel).
- Distinctive: line 35
Git: do not commit or push.
≈ “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.
Files
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>, orstyle=""in static HTML. - The React
style={{...}}prop is allowed; it writes through CSSOM.
- Never add
- Banned packages:
sonner,next-themes, CSS-in-JS runtimes, anything that injects<style>. Toasts use the shadcn Base UItoastcomponent. - Offline: no CDN, no Google Fonts, no external requests. Only same-origin
/api/*and/events. - Dependencies: do not add or upgrade any;
package.jsonand 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) andz.infer. Never redeclare API types by hand. - Data access: only through the hooks in
src/lib/queries.tsand the functions insrc/lib/api.ts. No rawfetchin 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, notasChild. Items always sit inside their Group (SelectIteminSelectGroup,DropdownMenuIteminDropdownMenuGroup). - Layout classes:
classNameis for layout only. Useflex flex-col gap-*, neverspace-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 manualdark:overrides. - Status: status is never color-only. Use
StatusBadgefromsrc/components, which renders text + icon. - Composition:
CardusesCardHeader/CardTitle/CardDescription/CardContent/CardFooter. Callouts useAlert, empty statesEmpty(orEmptyState), loadingSkeleton, dividersSeparator. - Overlays:
Dialog/Sheet/AlertDialogalways have a Title (usesr-onlyif hidden). Destructive or quota-spending actions go throughConfirmDialog. - Icons: from
lucide-react. In buttons usedata-icon="inline-start", with no size classes. - Tables: use
DataTablefromsrc/components. Rows are keyboard focusable, and a row click opens detail in aSheet. - 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.tsxnext to the files). - Entry point: the placeholder
index.tsxmust keep exporting<Name>View. - Tests: strict TDD with Vitest + Testing Library + happy-dom. Mock
src/lib/api.tsor wrap in aQueryClientProviderwith seeded data built fromtest/fixtures/v2/*.jsonshapes. - Verification before reporting:
npm run -w dashboard test,npm run -w dashboard typecheck,npm run build, and thenrg -n '<style|style="|data:font' dashboard/dist, which must print nothing. - Git: do not commit or push.
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.

