agentleFS
UlisesCmUlisesCm/navori-owl/patient/AGENTS.md

navori-owl / patient

AGENTS.md1 starsChanged 36 days agoMITView on GitHub

opsdesk is an internal incident-tracking tool. It is a small npm-workspaces monorepo: packages/core (domain types, Clock, errors, logging, CSV), packages/db (persistence on node:sqlite), packages/api (HTTP endpoints), packages/cli (the opsdesk command-line tool) and packages/legacy-sdk (published, frozen — see below). Follow these on every change you make; they are checked mechanically, not just by review. - M1 — Logging. Use log.event(name, fields) from @opsdesk/core. Never console.log in src/. - M2 — Errors. Every error thrown in packages/api/src must be a subclass of…

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
  1. Distinctive:

    Follow these on every change you make.

    line 12
  2. Very specific:

    M1 — Logging: Use log.event(name, fields) from @opsdesk/core.

    line 14
  3. Very specific:

    M2 — Errors: Every error thrown in packages/api/src must be a subclass of AppError (@opsdesk/core).

    line 16
  4. Very specific:

    M4 — Changelog: Every user-visible change adds a line to CHANGELOG.md under ## Unreleased.

    line 20
  5. Very specific:

    M6 — API docs: Every new HTTP route is documented in docs/api.md.

    line 25

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

opsdesk — agent instructions

opsdesk is an internal incident-tracking tool. It is a small npm-workspaces monorepo: packages/core (domain types, Clock, errors, logging, CSV), packages/db (persistence on node:sqlite), packages/api (HTTP endpoints), packages/cli (the opsdesk command-line tool) and packages/legacy-sdk (published, frozen — see below).

<!-- opsdesk-conventions-sentinel-f96c2e -->

Conventions

Follow these on every change you make; they are checked mechanically, not just by review.

  • M1 — Logging. Use log.event(name, fields) from @opsdesk/core. Never console.log in src/.
  • M2 — Errors. Every error thrown in packages/api/src must be a subclass of AppError (@opsdesk/core). Never throw new Error(...) there.
  • M3 — Migrations. New SQL goes in a new, numbered file under packages/db/migrations/. Existing migration files are never edited once merged.
  • M4 — Changelog. Every user-visible change adds a line to CHANGELOG.md under ## Unreleased.
  • M5 — Time. New code reads the current time only through the injected Clock (@opsdesk/core), never Date.now() or new Date(). packages/legacy-sdk is an exception — it predates Clock and is frozen (see below); do not "fix" it as a drive-by change.
  • M6 — API docs. Every new HTTP route is documented in docs/api.md.

packages/legacy-sdk is frozen

It is published and pinned by external consumers. Do not change its public API or behavior unless a task explicitly asks you to. Internal packages may depend on it for compatibility shims only.

Running things

  • npm test — runs the full node:test suite across all packages.
  • npm run typecheck — type-checks the workspace with tsc --noEmit.
  • node packages/cli/src/index.ts --help — the opsdesk CLI, run directly (no build step; Node strips TypeScript types natively).

Docs

  • docs/api.md — HTTP routes.
  • docs/permissions.md — the tenant/role permission matrix.
  • docs/sla.md — severity and response-time policy.
  • docs/runbooks/stats.md — on-call runbook for opsdesk stats.

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.