navori-owl / patient
CLAUDE.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…
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- patient/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- author-skillSkill
- context-intakeSkill
- debug-failureSkill
- dominioSkill
- follow-up-prsSkill
- locate-codeSkill
- master-planSkill
- plan-advancedSkill
- plan-simpleSkill
- pytestSkill
- quality-attributesSkill
- resolve-ticketSkill
- review-diffSkill
- scoped-gateSkill
- secure-by-designSkill
- security-invariantsSkill
- solution-designSkill
- spec-bootstrapSkill
- verify-before-doneSkill
- author-skillSkill
- context-intakeSkill
- debug-failureSkill
- dominioSkill
- follow-up-prsSkill
- locate-codeSkill
- master-planSkill
- plan-advancedSkill
- plan-simpleSkill
- pytestSkill
- quality-attributesSkill
- resolve-ticketSkill
- review-diffSkill
- scoped-gateSkill
- secure-by-designSkill
- security-invariantsSkill
- solution-designSkill
- spec-bootstrapSkill
- verify-before-doneSkill
The file
We split this CLAUDE.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
- Distinctive: line 12
Follow these on every change you make.
- Very specific: line 14
M1 — Logging: Use log.event(name, fields) from @opsdesk/core.
- Very specific: line 16
M2 — Errors: Every error thrown in packages/api/src must be a subclass of AppError (@opsdesk/core).
- Very specific: line 20
M4 — Changelog: Every user-visible change adds a line to CHANGELOG.md under ## Unreleased.
- Very specific: line 25
M6 — API docs: Every new HTTP route is documented in docs/api.md.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
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. Neverconsole.loginsrc/. - M2 — Errors. Every error thrown in
packages/api/srcmust be a subclass ofAppError(@opsdesk/core). Neverthrow 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.mdunder## Unreleased. - M5 — Time. New code reads the current time only through the injected
Clock(@opsdesk/core), neverDate.now()ornew Date().packages/legacy-sdkis an exception — it predatesClockand 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 fullnode:testsuite across all packages.npm run typecheck— type-checks the workspace withtsc --noEmit.node packages/cli/src/index.ts --help— theopsdeskCLI, 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 foropsdesk stats.
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.

