{"enrichment":{"faq":[{"a":"Pnpm Workspace enables you to manage multiple packages within a single repository using pnpm's efficient monorepo approach. Start by creating a pnpm-workspace.yaml file at your repository root that defines which directories contain packages (typically using glob patterns like 'packages/*'). Then run pnpm install to link all packages together. Pnpm automatically handles dependency hoisting and creates symbolic links between local packages, allowing them to reference each other as if they were published on npm.","q":"How do I use pnpm workspaces?"},{"a":"Pnpm Workspace setup begins with creating a pnpm-workspace.yaml configuration file that specifies your workspace structure. Define package locations using glob patterns\u2014for example, packages/* for all subdirectories in a packages folder. You can also exclude specific directories with negation patterns. Once configured, Pnpm Workspace manages your monorepo's dependency resolution, ensuring that internal package references are resolved locally while external dependencies are deduplicated across the workspace, saving disk space and improving installation speed.","q":"What is pnpm workspace setup and how do I configure it?"},{"a":"Pnpm Workspace allows you to organize projects by defining multiple packages in your pnpm-workspace.yaml file. Each package maintains its own package.json with dependencies. Pnpm Workspace automatically links local packages together, so when package-a depends on package-b (both in your workspace), Pnpm Workspace creates a symbolic link instead of downloading from npm. Use pnpm add to install dependencies, and pnpm Workspace will intelligently determine whether to link locally or fetch from the registry. This structure scales efficiently as your monorepo grows.","q":"How do I organize projects with pnpm and manage dependencies across packages?"},{"a":"Pnpm Workspace best practices include organizing packages into logical directories (commonly 'packages/' for libraries and 'apps/' for applications), using consistent versioning strategies across related packages, and leveraging pnpm's filtering commands to run scripts across specific packages. Keep your pnpm-workspace.yaml simple and maintainable. Use .npmrc files to configure workspace-wide settings. Pnpm Workspace's hoisting mechanism automatically optimizes your node_modules structure, but you should still review your dependency declarations to avoid circular dependencies and ensure clear package boundaries.","q":"What are the best practices for pnpm workspace configuration?"},{"a":"Pnpm Workspace provides powerful commands for managing multiple packages efficiently. Use pnpm -r (recursive) to run scripts across all packages, or combine it with --filter to target specific packages. The pnpm list command shows your workspace structure, while pnpm install handles dependency resolution across the entire workspace. Pnpm Workspace's filtering syntax lets you run commands on packages matching certain criteria, making it easy to build, test, or deploy subsets of your monorepo without affecting unrelated packages.","q":"How do pnpm workspace commands help manage multiple packages?"},{"a":"When troubleshooting Pnpm Workspace issues, first verify your pnpm-workspace.yaml syntax and ensure glob patterns correctly match your package directories. Run pnpm list to inspect the workspace structure and confirm all packages are recognized. Check that each package has a valid package.json with a unique name field. If packages aren't linking correctly, clear your node_modules and .pnpm-store, then run pnpm install fresh. Use pnpm why to trace dependency resolution, and review .npmrc settings that might affect workspace behavior. Pnpm Workspace's strict resolution can help catch configuration errors early.","q":"How do I troubleshoot pnpm workspace configuration and package resolution issues?"}],"shadow_tags":["monorepo-management","package-linking","dependency-hoisting","workspace-orchestration","multi-package-projects","node-package-manager","workspace-filtering","symlink-dependencies"],"summary_rewrite":"This skill teaches you how to build and manage pnpm workspaces, enabling efficient monorepo development across multiple interconnected packages. You'll master workspace configuration, dependency management, and best practices for scaling projects with pnpm's lightweight approach."},"gist":{"api_url":"https://skillfed.io/api/skills/oakoss/agent-skills/pnpm-workspace.json","as_of":"2026-03-02","description":"Pnpm Workspace enables you to manage multiple packages within a single repository using pnpm's efficient. npx skillfed install oakoss/agent-skills/pnpm-workspace","install":{"manual":["git clone https://github.com/oakoss/agent-skills","cp -r agent-skills ~/.claude/skills/pnpm-workspace"],"primary":"npx skillfed install oakoss/agent-skills/pnpm-workspace","version":"31262b40"},"kind":"skill","mirror_url":"https://skillfed.io/oakoss/agent-skills/pnpm-workspace.md","similar":[{"id":"hairyf/skills/pnpm","name":"pnpm","publisher":"hairyf/skills","url":"https://skillfed.io/hairyf/skills/pnpm"},{"id":"curiositech/some_claude_skills/monorepo-management","name":"monorepo-management","publisher":"curiositech/some_claude_skills","url":"https://skillfed.io/curiositech/some_claude_skills/monorepo-management"},{"id":"antfu/skills/pnpm","name":"pnpm","publisher":"antfu/skills","url":"https://skillfed.io/antfu/skills/pnpm"},{"id":"patricio0312rev/skills/monorepo-setup","name":"monorepo-setup","publisher":"patricio0312rev/skills","url":"https://skillfed.io/patricio0312rev/skills/monorepo-setup"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/monorepo-management","name":"monorepo-management","publisher":"HermeticOrmus/LibreUIUX-Claude-Code","url":"https://skillfed.io/HermeticOrmus/LibreUIUX-Claude-Code/monorepo-management"}],"title":"Pnpm Workspace by oakoss: Set up and configure a pnpm workspace for monorepo projects \u2014 SkillFed","use":{"when":["Pnpm Workspace setup begins with creating a pnpm-workspace.yaml configuration file that specifies your workspace structure.","Pnpm Workspace allows you to organize projects by defining multiple packages in your pnpm-workspace.yaml file."]},"what":{"lead":"Pnpm Workspace enables you to manage multiple packages within a single repository using pnpm's efficient monorepo approach. Start by creating a pnpm-workspace.yaml file at your repository root that defines which directories contain packages (typically using glob patterns like 'packages/*'). Then run pnpm install to link all packages together. Pnpm automatically handles dependency hoisting and creates symbolic links between local packages, allowing them to reference each other as if they were published on npm."}},"id":"oakoss/agent-skills/pnpm-workspace","install":{"mode":"external","repo":"https://github.com/oakoss/agent-skills"},"links":{"html":"https://skillfed.io/oakoss/agent-skills/pnpm-workspace","md":"https://skillfed.io/oakoss/agent-skills/pnpm-workspace.md","repo":"https://github.com/oakoss/agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":5,"language":"Python","last_updated":"2026-03-02","license":null,"name":"Pnpm Workspace","publisher":"oakoss","stars":13},"relations":{"similar":[{"id":"hairyf/skills/pnpm"},{"id":"curiositech/some_claude_skills/monorepo-management"},{"id":"antfu/skills/pnpm"},{"id":"patricio0312rev/skills/monorepo-setup"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/monorepo-management"},{"id":"grafana/skills/check-npm"},{"id":"Mindrally/skills/pnpm"},{"id":"oakoss/agent-skills/changesets"},{"id":"TheBeardedBearSAS/claude-craft/monorepo"},{"id":"sanity-io/next-sanity/pnpm"}]},"slug":{"owner":"oakoss","repo":"agent-skills","skill":"pnpm-workspace"},"version":"31262b40"}
