AGENTS.md
+31 −200
https://raw.githubusercontent.com/livediagram-app/livediagram.app/HEAD/AGENTS.md
− # livediagram− Monorepo for the livediagram product. Multiple apps share code through internal packages.− ## Before you start− - `git fetch` latest from origin− ## Organisation process− This section describes the process of organising and layering empirical information.− It guides the engineering efforts by having agents specify with sufficient detail.− The goal is for agents to become increasingly self-sufficient when working on systems they already know.− This is achieved by iteratively capturing contextual information about the domain and documenting intentions from humans.− This section is exclusively human-hand-written; agents MUST NOT edit this section directly.− ### Structure− Use the following structure and rationale.− - `AGENTS.md` instructs us about **how we work**.− - `plans/` contains plans; **exhaustive list of checkboxed steps**.− - `docs/` holds all **documentation** files.− - `docs/README.md` is the entry point.− Within `docs/` are the following special categories:− - `specs/` contains **specifications**: _what a thing IS_.− - `specs/[...]/blueprints/` contains **blueprints**: _exhaustively documented implementation details_.− - `instructions/` contains **instruction sets**: _empirically built repeatable processes_.− **Indexes** are held inside `README.md` files. Entries look like: `- ./<file>.md - when <trigger>`.− `README.md` files open with `Follow the references below only as needed; never upfront.`− Further details below.− ### Docs− - Docs are structured as `docs/<category>/<topic>.md`− - They are indexed under `docs/README.md`.− - The docs index includes entry points to `specs` and `instructions`.− - Docs convey information in scope of the project.− - All docs SHOULD be treated as persistent documents that can be iterated on.− - Stay cognizant of the deltas of each change.− - Reuse documents where it makes sense.− - Folders of substance SHOULD hold a `README.md` with an index.− - Docs, indexes and references **MUST be continuously kept-up-to-date** throughout all work.− ### Plans− - Plans live as a single Markdown file in the main checkout's `plans/` folder, numbered `0001-<topic>.md`.− - They live inside the `plans/` folder, which MAY be **gitignored** (recommended).− - Plans describe **work**, split into sequenced **phases** of checkboxed **steps**:.− - **work** includes research, specification, building, testing, verification, definition of done, and anything else that's needed.− - **phases** are logical increments, warranting a commit each.− - **steps** MUST be performed with full focus, and in the highest qualitative and idiomatic way.+ # AGENTS.md+ The liveworkspace monorepo. Read README.md and docs/structure.md first.+ - Each product folder (`livediagram/`, `liveplanner/`, `livedocuments/`, `livedesign/`) and+ `liveworkspace/` has its own AGENTS.md with its rules. They apply, but read their `apps/…` and `packages/…` paths as relative+ to the product folder.+ - One pnpm workspace and lockfile at the root. Add dependencies with+ `corepack pnpm --filter <package> add …`, never with a nested install.+ - Never push without the owner's explicit say-so. Every Worker, the platform's and every product's,+ runs on the liveworkspace Cloudflare account (`851be7d244b76a6557bcbe6c4ded80f5`); each+ `wrangler.toml` pins it as `account_id`. Deploys, and the remote D1 migrations they apply, run only+ through CI (docs/ci.md "Deploys").+ - Specs first, everywhere. A product change updates that product's `docs/specs/` first; a platform change+ (anything under `liveworkspace/` or a service's contract in `packages/`) updates+ [liveworkspace/docs/specs](liveworkspace/docs/specs/README.md) first, then its blueprint, then the code.+ - Code two or more products need goes in `packages/` as `@liveworkspace/*`. Don't copy it into a+ product, and don't add another copy of something that already exists in two. Follow the+ order in docs/structure.md.+ - When asked to run the apps locally, run each in its own port block, the same on every+ machine, so they never collide and their links to each other line up:+ | Product | Ports |+ | ----------------------------- | ----------- |+ | liveworkspace | 3000 onward |+ | livediagram | 3100 onward |+ | liveplanner | 3200 onward |+ | livedocuments (was livepages) | 3300 onward |+ | livedesign | 3400 onward |+ Each product's router (or the liveworkspace site) takes the first port of its block, and its+ other apps the next ones. If a port is taken, find what holds it rather than shifting into+ another product's block.+ - This monorepo is the one home of every product: their work, CI and deploys happen here. The product+ folders came in with `git subtree add` and keep their history; their own `.github/` folders are inert.
Showing the first 40 of each.