agentleFS
jpoehneltjpoehnelt/skills/eng-monorepo/SKILL.md

eng-monorepo

Skill23 starsChanged 7 days agoMITView on GitHub

Maintain pnpm workspaces, Turborepo task graphs and caching, shared TypeScript configs, and Changesets release wiring. Use when adding a package, editing manifests or catalogs, changing turbo.json or tsconfig files, or debugging broken caching or affected selection.

  • Installs packages

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 1 is distinctive, and 7 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.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep internal dependencies explicit with workspace:* so pnpm and Turborepo see the same graph.

    line 14
  2. Very specific:

    Put repeated external versions in pnpm-workspace.yaml under catalog and reference them with catalog:.

    line 15
  3. Very specific:

    Update pnpm-lock.yaml with every manifest change.

    line 17
  4. Very specific:

    Use ^build so dependencies build before dependents.

    line 26
  5. Very specific:

    Keep development servers persistent and uncached, and keep deploy uncached.

    line 29
  6. Very specific:

    Keep private packages in the ignore list of .changeset/config.json.

    line 34
  7. Very specific:

    Run pnpm install and pnpm install --frozen-lockfile.

    line 39
  8. Distinctive:

    Run the repo's verify command.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Monorepo

Inspect current workspace manifests, turbo.json, and tsconfig files before changing the graph.

Repo facts (from AGENTS.md): workspace directories, package scope and public package names, shared base tsconfig, pnpm catalog and supply-chain rules, Turbo task names (build, check, test, verify), and the Changesets ignore list.

Workspace dependencies

  • Keep internal dependencies explicit with workspace:* so pnpm and Turborepo see the same graph.
  • Put repeated external versions in pnpm-workspace.yaml under catalog and reference them with catalog:. Keep tightly coupled framework families (such as Effect packages and companions) on one exact version, using overrides and a repo version check where needed.
  • Allow dependency build scripts only through pnpm's allowlist (allowBuilds or onlyBuiltDependencies). When a supply-chain age policy blocks a needed install, add an exact name@version exclusion and remove it once the version ages in.
  • Update pnpm-lock.yaml with every manifest change. CI installs with --frozen-lockfile.

TypeScript configuration

  • Extend the shared strict base tsconfig. Package tsconfig.json files add only what their runtime needs, such as types, lib, or module. Fix new strictness errors in code rather than relaxing the base.
  • Build library packages with declarations through a dedicated build config and import their built exports. Keep strict type checking separate from source emission.

Turborepo task graph

  • Use ^build so dependencies build before dependents. Use ^transit to carry changes through packages that have no build task.
  • Declare generated outputs (such as dist/**) and every build-affecting variable in env or passThroughEnv on the owning task.
  • List cross-package inputs (such as migration directories or schemas read by tests) explicitly on the task that reads them.
  • Keep development servers persistent and uncached, and keep deploy uncached. Keep framework startup sync steps (such as svelte-kit sync) uncached and outside the watch graph.
  • For non-JS crates (such as Rust) wired into Turbo, wrap each crate with a package.json calling its build tool, declare internal path dependencies as workspace:* devDependencies with transit (dependsOn: ["^transit"]), and list lockfiles and toolchain files in inputs. Keep release builds that embed credentials uncached.

Changesets

  • Keep private packages in the ignore list of .changeset/config.json.
  • A new public package requires a changeset and an explicit decision on that list. A public surface change requires a changeset for the package and each affected consumer.

Verify

  • Run pnpm install and pnpm install --frozen-lockfile.
  • Inspect the selected graph with pnpm turbo run check test build --affected --dry=json (checking TURBO_SCM_BASE and TURBO_SCM_HEAD when set).
  • Run the repo's verify command.
  • To test caching, run a cached task twice and confirm a cache hit. Use --force when fresh execution matters.

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.