All examples

Monorepo root

Root AGENTS.md for a pnpm and Turborepo workspace: commands, package boundaries, scope limits, and Changesets.

Composed from the monorepo rules pack. Same file from the CLI: aibysitter init --packs monorepo --format agents

Written for this site, CC0, scored by this linter, not tested against any agent.

File
AGENTS.md, 28 lines
Format
AGENTS.md
Save as
AGENTS.md
Category
General
Tags
License
CC0 1.0, public domain. No attribution needed.

Download AGENTS.md Lint a copy

Aibysitter lint score

100 / 100 — A

Ruleset v4

No deductions.

Badge

Aibysitter lint score: A 100

Markdown for a README:

[![Aibysitter lint score: A 100](https://aibysitting.net/gallery/monorepo-root/badge.svg)](https://aibysitting.net/Gallery/monorepo-root)

AGENTS.md

View rendered

  1. # pnpm and Turborepo monorepo
  2. pnpm workspaces with Turborepo. Apps live in `apps/`, shared packages in `packages/`. A package can have its own `AGENTS.md`. The file closest to the code being edited takes precedence over this one.
  3. ## Commands (from the repo root)
  4. - Install: `pnpm install --frozen-lockfile`
  5. - Build everything: `pnpm turbo run build`
  6. - Test one package: `pnpm turbo run test --filter=<package-name>`
  7. - Test packages changed on this branch: `pnpm turbo run test --filter=...[origin/main]`
  8. - Lint and type check: `pnpm turbo run lint typecheck`
  9. ## Workspace
  10. - Packages import each other by package name (`@<scope>/ui`). No relative imports across package folders.
  11. - Every package lists the dependencies it imports in its own `package.json`.
  12. - Shared TypeScript settings come from `packages/tsconfig`. Package configs extend it and do not copy compiler options.
  13. - Add dependencies with `pnpm add <dep> --filter <package-name>`. `pnpm-lock.yaml` is not edited by hand.
  14. ## Scope
  15. - Change only the packages the task names. When another package needs a change, stop and describe the change instead of making it.
  16. - `turbo.json`, root `package.json` scripts, and CI workflows change only on explicit request.
  17. ## Versioning
  18. - Packages under `packages/` are versioned with Changesets. A change to a published package includes a changeset from `pnpm changeset`.
  19. - Apps are not versioned.
  20. ## Pull requests
  21. - Title format: `<package-name>: <summary>`.
  22. - The description lists every package the PR touches.