ai-maxxing-skills / template
AGENTS.md32 starsChanged 24 days agoMITView on GitHub
The owner's personal dashboard, next to their Hermes agent. It ships with no module on purpose: the owner asks for the modules they want ("a morning report", "my sales of the day", "my Instagram stats") and the agent builds them here. Build only what was asked, one module at a time. One part is built in for admins: System monitoring (see below). The gate signs people in by email code and tells the dashboard who is there. Users and roles…
- Reads credentials
- Commits and pushes
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 31,542 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 repository42 other files it gives its agents.
- audit-safetySkill
- betterSkill
- cleanupSkill
- create-projectSkill
- doneSkill
- dreamSkill
- projectsSkill
- setup-brainSkill
- cloudflareSkill
- code-debugSkill
- codex-imagesSkill
- connect-googleSkill
- connect-instagram-developer-platformSkill
- connect-toolSkill
- connect-vpsSkill
- connect-youtube-developer-platformSkill
- convexSkill
- create-internal-appSkill
- create-landingSkill
- create-softwareSkill
- dev-browserSkill
- grill-meSkill
- initializeSkill
- install-skillsSkill
- lumailSkill
- safe-shipSkill
- setup-cloudflareSkill
- setup-convexSkill
- setup-dev-browserSkill
- setup-githubSkill
- setup-lumailSkill
- dashboardSkill
- setup-my-hermes-dashboardSkill
- setup-nodeSkill
- setup-stripeSkill
- setup-vpsSkill
- show-meSkill
- skill-managerSkill
- stripe-checkoutSkill
- use-styleSkill
- verifySkill
- wait-whatSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Never print a key, a token or the Hermes session token.
- Very specific: line 49
Agent API (only when something must push data in): When a cron or the agent writes to the module, add src/routes/api/v1/<name>.ts with …
- Very specific: line 50
Test: Add a test next to the code you wrote: a server test (src/server//*.test.ts) for new data code, a UI test (*.test.tsx) when the page …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
The owner's personal dashboard, next to their Hermes agent. It ships with no module on purpose: the owner asks for the modules they want ("a morning report", "my sales of the day", "my Instagram stats") and the agent builds them here. Build only what was asked, one module at a time. One part is built in for admins: System monitoring (see below).
- Stack: TanStack Start (React 19, file routes, server functions), Vite, Tailwind 4, Radix, lucide icons, sonner toasts, zod, SQLite through better-sqlite3 and drizzle. Tests with vitest. Node 24, pnpm.
- Runs on the server as the
dashboardservice on127.0.0.1:8794, published at itsurl(seedashboard status) behind the server's sign-in gate. Never bind another address, never open a port. - Data:
$DATA_DIR/dashboard.sqlite3(~/.local/share/dashboardon the server). Settings:/etc/dashboard.env. - Never print a key, a token or the Hermes session token. Never delete the database or
key-pepper.
Who is signed in
The gate signs people in by email code and tells the dashboard who is there. Users and roles live on the server (expose user list, expose user add <email> member --invite).
getViewer()from@/server/viewerreturns{ email, role }.roleis"admin"or"member";emailis null on a saved IP or for a call from the server itself (both count as admin).- Admins see everything. Members see every module, but not System monitoring (Conversations, Infra, Models, the Hermes link), the API keys page or the Team page.
- Team (
/team, built in,src/server/gate.ts): the list of who can sign in, with their role. An admin adds a member (with or without an invite email) or removes one. Admins never change from there, and nobody removes themself: to make someone an admin, the owner asks Hermes.exposeruns as root only; when the service cannot run it, the page says the list is unavailable and to ask Hermes.GATE_COMMANDSin/etc/dashboard.env:on(the default in production),dry-run(the default elsewhere: it only says what it would run) oroff. - API keys and Team sit in the account menu at the bottom of the rail (
KEYSandTEAMinsrc/components/hub/sidebar.tsx), with the theme and sign out. Modules never go there (they go inITEMS). - A module or action that only admins should have: call
requireAdmin()at the top of its server function (it throws for a member), and hide its sidebar line or button whenRoute.useLoaderData()or the root loader'sviewer.roleis not"admin". Hiding alone is not enough: always check on the server too. - A module whose data is per person (my tasks, my notes): store
getViewer().emailwith each row and filter on it.
System monitoring (built in)
A folding group at the bottom of the sidebar, admins only: Conversations, Infra, Models, then the link to Hermes's own dashboard. Its lines are MONITORING in src/components/hub/sidebar.tsx; modules never go there (they go in ITEMS).
- Conversations (
/conversations,src/server/conversations.ts): the latest Hermes sessions, from/api/sessions. - Models (
/models,src/server/models.ts): the model in use, every connected provider with its models (a "Use" button changes the main model through/api/model/set, from the next conversation on; Hermes's warning before an expensive model is shown and asked again), and the providers not connected yet with what they need (a key or a sign-in). Connecting a provider stays in Hermes: the owner asks it ("connect OpenRouter").
Infra
/infra, also a card on the home. Code in src/server/infra/ and src/routes/infra.*.tsx.
- Health: the dashboard checks the server every 15 minutes (Hermes chat, crons, Hermes update, key services, disk, memory, load, pending restart, system updates, out-of-memory kills, SSH, firewall, open ports) and keeps 7 days of history. A stopped
caddy,vps-gate,vps-tunnelorhermes-dashboardis restarted on its own, once an hour at most. Nothing else is ever changed by a check. - Daily audit: a Hermes cron named
infra-audit(07:00, created once; if the owner deletes it, it stays deleted). It only looks and writes a report; the page reads it from~/.hermes/cron/output/<job id>/. - Fix: each problem and each audit action has a "Fix" button. It sends an editable task to the Hermes board (
hermes kanban create), one open task per problem, and the page follows its status. - Add a check: a function in
src/server/infra/checks.tsthat returns aCheck(tonegood,warn,bad, oridlewhen it could not check), listed inrunChecks, with a test ininfra.test.ts. A check reads throughSystem(neverchild_processdirectly) and never changes the server; anything to change becomes afixdraft (checkFix). - Settings in
/etc/dashboard.env:INFRA_CHECKS=offstops the timed checks,INFRA_AUDIT=offstops creating the audit cron,HERMES_BINandHERMES_HOMEwhen Hermes is not in~/.local/bin/hermesand~/.hermes. dashboard-cli get /api/v1/infra: the last check, the last audit and the open fixes, as JSON.
Add a module
A module is a page, its line in the sidebar and its mark. The home shows a card for every module on its own.
- Mark. In
src/components/brand.tsx, add the module key toSection(kebab-case, e.g."sales"), a drawing inDRAWINGS(white shapes on the indigo tile,viewBox 0 0 32 32, same style ashermes) and its name inSECTION_NAMES. - Sidebar. In
src/components/hub/sidebar.tsx, add the path toItem["to"]and a line toITEMS:{ to: "/sales", label: "Sales", hint: "Today's orders", section: "sales" }. The order ofITEMSis the order of the sidebar and of the home. - Data. In
src/server/functions.ts, add acreateServerFn({ method: "GET" })that returns exactly what the page shows. Validate any input with.validator(z.object(...)). Wrap reads that can fail (Hermes stopped, an outside API down) inorNull(...)so the page shows<Unavailable what="..." />instead of breaking.- From Hermes:
getApp().hermes.api<T>(path)(the session token is handled for you). Useful paths:/api/status,/api/model/info,/api/sessions?limit=20&order=recent,/api/cron/jobs,/api/skills,/api/analytics/usage?days=7. Look at a real answer first withdashboard hermes <path>. Times may be seconds or ISO strings: convert withtoMsfrom@/server/hermes. - Its own data: add the table to
BOOTSTRAPinsrc/server/db/client.ts(CREATE TABLE IF NOT EXISTS, never drop or rewrite a table) and the same table tosrc/server/db/schema.ts, then read and write it with drizzle ongetApp().db.
- From Hermes:
- Page. Add
src/routes/<path>.tsxwithcreateFileRoute("/<path>")({ loader: () => getX(), head: () => ({ meta: [{ title: "Sales · Hermes" }] }), component }). Wrap it in<Page section="sales" hint="...">from@/components/hub/pageand reuse what is there:Table,Empty,Unavailable,Dot, theButton,Input,BadgeandSheetofsrc/components/ui,ago/until/count/dateTimeof@/lib/format. Colours only through the tokens ofsrc/styles.css(text-muted-foreground,bg-card,text-good,text-warn,text-bad,text-brand), so the dark theme keeps working. It must read well at phone width. - Agent API (only when something must push data in). When a cron or the agent writes to the module, add
src/routes/api/v1/<name>.tswithwithKey("dashboard:write", handler)from@/server/api, read the body withreadJsonand validate it with zod. The agent calls it withdashboard-cli post /api/v1/<name> '<json>'; reads usedashboard:read. - Test. Add a test next to the code you wrote: a server test (
src/server/**/*.test.ts) for new data code, a UI test (*.test.tsx) when the page has logic. The home test passes its ownitems, so a new module never needs to change it. - Ship.
dashboard deploy. It installs, typechecks, tests and builds before it restarts the service, and stops at the first error with the old version still online. Thengit add -A && git commit -m "<module>: <what it shows>" && git push.
Tell the owner the module is online at <url>/<path> and what it shows, in one or two lines.
Change or remove a module
Change it in place. To remove one, delete its route and its lines in ITEMS, Section, DRAWINGS and SECTION_NAMES; keep its table (the data stays). System monitoring (Conversations, Infra, Models) is not a module: keep it. Then dashboard deploy, commit and push.
Commands
dashboard deploy: install, typecheck, test, build, restart, health check. The service runs a copy of each build in.releases/, through the.livelink, so a new build never breaks the page online; the 3 newest copies are kept.dashboard status: service state, health, publicurl, local address.dashboard logs: the last lines of the service log.dashboard hermes <path>: a Hermes API answer as JSON.dashboard key: a new key fordashboard-cli, saved in~/.config/dashboard/env(the old one stops working).dashboard-cli get|post|delete <path> [json]: call the dashboard API with that key.dashboard-cli get /api/v1/whoamichecks the key.- Local work:
pnpm dev(port 3000),pnpm typecheck,pnpm test.
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.

