/eng:monorepofrom Engineering Skills
Use when setting up or working in a pnpm + Turborepo monorepo — the workspace layout, pnpm 11 settings, one version per dependency through the pnpm catalog with recorded exceptions, build-script allowlists, serverless workers that pin resolved versions, peer dependencies for shared packages, the house turbo.json shape, dev through pnpm, and CI with --affected. Turborepo's own mechanics come from the official `turborepo` skill; code layout inside packages is `code-structure`'s.
Ships in Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The house monorepo is pnpm workspaces + Turborepo 2. This skill holds the house rules for the workspace — layout, versions, the shape of turbo.json, how dev and CI run. How Turborepo itself works — task syntax, the graph, caching, filters, prune, boundaries — is the official turborepo skill, which reads the docs that ship with the installed turbo.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
# pnpm-workspace.yaml
packages:
- "apps/*" # deployable apps
- "packages/*" # shared libraries and config
- "functions/*" # serverless workers, only when present
@org/<name>) and consumed with the workspace:* protocol.typescript-config, eslint-config, tailwind-config, ui, hooks, utils, a shared schemas package, and a testing package of shared fakes. What goes inside each, and when code moves into one, is code-structure's.packageManager names an exact version ("[email protected]") in the root package.json, so every machine and CI run the same pnpm; pnpm/action-setup reads it in CI. Node 25 and later no longer ship corepack, so nothing depends on it. engines.node states the minimum Node (">=24"), and .nvmrc holds the version CI and every machine run."<dep>": "catalog:", and the version lives once in pnpm-workspace.yaml. The catalog records what was resolved when the dependency was added — nothing gets re-picked per package.catalog: gets an exact version and a labelled syncpack versionGroup saying why, so syncpack lint (the deps:check script) passes and the reason sits beside the rule. The usual cases:
catalog: — some deploy adapters read a framework's exact version from each app's own package.json. Pin it there, and bump it in the same change as the catalog.npm install (see below).typescript).allowBuilds in pnpm-workspace.yaml, a name → boolean map (sharp: true, esbuild: true). onlyBuiltDependencies was the pnpm 10 form and is removed in 11, where an unreviewed build fails the install. Never switch scripts on for everything.minimumReleaseAgeExclude, named exactly ([email protected]), and comes out once it ages past the window.strictDepBuilds (an unallowed build script fails the install) and blockExoticSubdeps (transitive dependencies only from trusted sources) — and set trustPolicy: no-downgrade, which refuses a version whose publishing trust dropped.overrides) to silence an advisory; the fix is that dependency releasing it. How advisories are reported and which fail CI is devops'.A worker in functions/* is bundled — esbuild into a deploy/ folder with its own generated package.json — because the cloud build that installs it runs a plain npm install, which reads neither catalog: nor workspace:. So the generated manifest pins the resolved versions of its runtime dependencies, and the workers' production dependencies sit in an ignored syncpack group. Workspace packages are bundled in, never installed.
react, react-dom, next, firebase, a form library), so every app supplies one copy. Two copies of React or Firebase break hooks and auth state in ways no type check catches.turbo boundaries (experimental) checks undeclared imports and, with tags, the direction.dist/, and the module settings each needs, are code-structure's and typescript's.{
"$schema": "https://turborepo.com/schema.json",
"ui": "tui",
"globalEnv": ["NODE_ENV"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"env": ["APP_ENV", "NEXT_PUBLIC_*"],
"outputs": ["dist/**", "deploy/**", ".next/**", "!.next/cache/**", "storybook-static/**"]
},
"transit": { "dependsOn": ["^transit"] },
"lint": { "dependsOn": ["^build", "transit"] },
"check-types": { "dependsOn": ["^build", "transit"] },
"test": { "dependsOn": ["^build"], "outputs": ["coverage/**"] },
"dev": { "cache": false, "persistent": true }
}
}
env. Strict mode withholds an unlisted variable from the task and leaves it out of the cache key, so a build bakes in undefined, or a changed secret restores a stale cached build. Turn on turbo/no-undeclared-env-vars in the shared ESLint config so a missing entry fails lint.globalEnv stays minimal — a variable there re-hashes every task.outputs on every task that should cache, and exclude .next/cache/**.transit matches no script: it ties lint and check-types to the packages they depend on, so a change in a source-only package expires their cache, without making them wait for each other the way ^lint and ^check-types would.pnpm -r --parallel --filter <app> --filter <app> dev, plus a dev:<app> script per app. pnpm decides which apps start; turbo's dev task is only there to be persistent.turbo run test --concurrency=2), so parallel suites don't starve each other of memory and time out.turbo run <task> --affected, with TURBO_SCM_BASE=origin/<base branch> so a pull request compares against its real base rather than the previous commit. Remote caching is optional; a repo without it says so.--affected in CI with TURBO_SCM_BASE.package.json when the catalog has it; force a version inside someone else's dependency tree; give a persistent task dependents; chain lint or check-types with ^; let a package import an app; put a variable in globalEnv that only one task reads.prune, boundaries, troubleshooting → the official turborepo skill. It reads the docs bundled with the installed turbo; on a turbo too old to bundle them, upgrade first.dist/ packages → code-structure.typescript.devops.dependency-audit.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin eng20 skills in this plugin
/agents-mdWrites or updates a project's AGENTS.md and the short AGENTS.md notes in each app and package — what an agent can't work out from the code: commands, structure, conventions that differ from the defaults, workflow, recorded deviations from the house standards and hard constraints, under 200 lines. Use when starting a project, setting up AGENTS.md or CLAUDE.md, or bringing a project's agent instructions up to date./audit-allManually invoked. Runs the house audit suite across the eng, fe and be sets — detects what the repo has, runs every installed audit that applies (codebase, conventions, dependencies, env, security, accessibility, frontend, performance, SEO/AEO/GEO, Storybook, content, API, access control, Firestore, Redis), and rolls their reports into one health report with an overall score and cross-cutting priorities. Each audit still writes its own report./Other plugins' skills for the same job