agentleFS
mcissedevmcissedev/ai-maxxing-skills/skills/setup-my-hermes-dashboard/template/AGENTS.md

ai-maxxing-skills / template

AGENTS.md0 starsChanged 43 days agoMITView on GitHub

The owner's personal dashboard, next to their Hermes agent. It ships empty on purpose: the owner asks for the modules they want ("show my latest conversations", "a morning report", "my sales of the day") and the agent builds them here. Build only what was asked, one module at a time. A module is a page, its line in the sidebar and its mark. The home shows a card for every module on its own. Tell the owner the modul

  • Reads credentials
  • Commits and pushes

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
  1. Very specific:

    Never print a key, a token or the Hermes session token.

    line 8
  2. Very specific:

    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 …

    line 20
  3. Very specific:

    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 …

    line 21

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

The owner's personal dashboard, next to their Hermes agent. It ships empty on purpose: the owner asks for the modules they want ("show my latest conversations", "a morning report", "my sales of the day") and the agent builds them here. Build only what was asked, one module at a time.

  • 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 dashboard service on 127.0.0.1:8794, published at its url (see dashboard status) behind the server's sign-in gate. Never bind another address, never open a port.
  • Data: $DATA_DIR/dashboard.sqlite3 (~/.local/share/dashboard on the server). Settings: /etc/dashboard.env.
  • Never print a key, a token or the Hermes session token. Never delete the database or key-pepper.

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.

  1. Mark. In src/components/brand.tsx, add the module key to Section (kebab-case, e.g. "sales"), a drawing in DRAWINGS (white shapes on the indigo tile, viewBox 0 0 32 32, same style as hermes) and its name in SECTION_NAMES.
  2. Sidebar. In src/components/hub/sidebar.tsx, add the path to Item["to"] and a line to ITEMS: { to: "/sales", label: "Sales", hint: "Today's orders", section: "sales" }. The order of ITEMS is the order of the sidebar and of the home.
  3. Data. In src/server/functions.ts, add a createServerFn({ 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) in orNull(...) 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 with dashboard hermes <path>. Times may be seconds or ISO strings: convert with toMs from @/server/hermes.
    • Its own data: add the table to BOOTSTRAP in src/server/db/client.ts (CREATE TABLE IF NOT EXISTS, never drop or rewrite a table) and the same table to src/server/db/schema.ts, then read and write it with drizzle on getApp().db.
  4. Page. Add src/routes/<path>.tsx with createFileRoute("/<path>")({ loader: () => getX(), head: () => ({ meta: [{ title: "Sales · Hermes" }] }), component }). Wrap it in <Page section="sales" hint="..."> from @/components/hub/page and reuse what is there: Table, Empty, Unavailable, Dot, the Button, Input, Badge and Sheet of src/components/ui, ago / until / count / dateTime of @/lib/format. Colours only through the tokens of src/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.
  5. 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 withKey("dashboard:write", handler) from @/server/api, read the body with readJson and validate it with zod. The agent calls it with dashboard-cli post /api/v1/<name> '<json>'; reads use dashboard:read.
  6. 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 own items, so a new module never needs to change it.
  7. 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. Then git 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). Then dashboard deploy, commit and push.

Commands

  • dashboard deploy: install, typecheck, test, build, restart, health check.
  • dashboard status: service state, health, public url, 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 for dashboard-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/whoami checks the key.
  • Local work: pnpm dev (port 3000), pnpm typecheck, pnpm test.

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.