pnpm-workspace
pnpm workspace monorepo management with filtering, catalogs, and shared configs. Use when setting up monorepos, managing workspace dependencies, filtering package commands, or sharing configuration across packages.
What this skill does
# pnpm Workspace ## Overview pnpm workspaces provide built-in monorepo support through `pnpm-workspace.yaml`, the `workspace:` protocol for local package linking, and powerful filtering to run commands across specific packages. Catalogs enforce consistent dependency versions across all workspace packages. **When to use:** Multi-package repositories, shared libraries with consuming apps, consistent dependency management across packages, running commands on subsets of packages. **When NOT to use:** Single-package projects, projects already using npm/yarn workspaces (migration required), projects that need floating dependency versions per package. ## Quick Reference | Pattern | API / Config | Key Points | | ------------------------ | ---------------------------------------------- | ------------------------------------------------------- | | Define workspace | `pnpm-workspace.yaml` with `packages` globs | Globs match directories containing `package.json` | | Link local package | `"dep": "workspace:*"` | Always resolves to local workspace package | | Link with version range | `"dep": "workspace:^1.0.0"` | Fails install if local version does not satisfy range | | Default catalog | `catalog:` key in `pnpm-workspace.yaml` | Single source of truth for dependency versions | | Named catalog | `catalogs:` key with named groups | Multiple version sets (e.g., `react18`, `react17`) | | Use catalog in package | `"dep": "catalog:"` or `"dep": "catalog:name"` | Resolved to actual version on `pnpm publish` | | Filter by name | `--filter <name>` or `-F <name>` | Exact name or glob pattern (`@scope/*`) | | Filter with dependencies | `--filter "foo..."` | Package and all its dependencies | | Filter with dependents | `--filter "...foo"` | Package and all packages that depend on it | | Filter by directory | `--filter "./packages/app"` | All packages under a directory path | | Filter by git changes | `--filter "[origin/main]"` | Packages changed since a commit or branch | | Exclude from filter | `--filter "!foo"` | Remove matching packages from selection | | Run script in package | `pnpm --filter <pkg> <script>` | Runs script only in matched packages | | Recursive run | `pnpm -r run <script>` | Runs script in all workspace packages | | Install all | `pnpm install` | Single lockfile for entire workspace | | Publish workspace pkg | `pnpm publish` | Replaces `workspace:` and `catalog:` with real versions | | Inject workspace deps | `inject-workspace-packages=true` in `.npmrc` | Hard-links instead of symlinks; required for deploy | | Script security (v10+) | `allowBuilds` in `package.json` | Lifecycle scripts blocked by default; opt-in per dep | ## Common Mistakes | Mistake | Correct Pattern | | ------------------------------------------------------- | ----------------------------------------------------------------------- | | Using `workspace:*` then publishing as-is | pnpm automatically replaces `workspace:*` with real versions on publish | | Forgetting to list directory in `packages:` | Every package directory must match a glob in `pnpm-workspace.yaml` | | Using `npm install` in workspace packages | Always use `pnpm install` from the workspace root | | Hardcoding versions duplicated across packages | Use `catalog:` to centralize version definitions | | Running `pnpm install` inside a sub-package | Run from workspace root; use `--filter` to target packages | | Expecting `--filter` to match directory names | `--filter` matches `package.json` `name` field, not directory names | | Not escaping `!` in zsh for exclude filters | Use `\!` or quote the filter: `--filter="!foo"` | | Using `workspace:` for non-workspace deps | `workspace:` protocol only works for packages defined in the workspace | | Lifecycle scripts failing after pnpm 10 upgrade | pnpm 10 blocks scripts by default; add deps to `allowBuilds` in config | | Using `pnpm deploy` without `inject-workspace-packages` | Set `inject-workspace-packages=true` in `.npmrc` (required in pnpm 10) | ## Delegation - **Workspace scaffolding**: Use `Explore` agent to discover existing package structure - **Dependency auditing**: Use `Task` agent to check version consistency across packages > If the `turborepo` skill is available, delegate build orchestration, task caching, and CI optimization to it. > If the `changesets` skill is available, delegate versioning, changelog generation, and npm publishing to it. ## References - [Workspace setup, workspace protocol, and catalogs](references/workspace-setup.md) - [Filtering packages for targeted commands](references/filtering.md) - [Shared configuration across workspace packages](references/shared-configs.md) - [Monorepo integration: pnpm + Turborepo + Changesets pipeline](references/monorepo-integration.md)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.