[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0PSNJ0QJTCG07J6Y66E31":3,"skill-same:01M7F0PSNJ0QJTCG07J6Y66E31":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F0PSNJ0QJTCG07J6Y66E31","monorepo-management",null,"Master monorepo management with pnpm workspaces, Turborepo, and Nx to build efficient, scalable multi-package repositories with shared dependencies, shared configs, and package publishing. Use when setting up monorepos, structuring packages, or managing shared dependencies.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fmonorepo-management\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: monorepo-management\ndescription: Master monorepo management with pnpm workspaces, Turborepo, and Nx to build efficient, scalable multi-package repositories with shared dependencies, shared configs, and package publishing. Use when setting up monorepos, structuring packages, or managing shared dependencies.\nlast_verified: 2026-10-27\n---\n\n# Monorepo Management\n\nBuild monorepos that share code, tooling and atomic changes across packages and\napplications. This skill covers layout, workspaces, internal packages and\npublishing. For task configuration and caching, use the `turborepo-caching`,\n`nx-workspace-patterns` or `bazel-build-optimization` skill.\n\n## When to Use This Skill\n\n- Setting up new monorepo projects\n- Migrating from multi-repo to monorepo\n- Managing shared dependencies\n- Implementing code sharing strategies\n- Setting up CI\u002FCD for monorepos\n- Versioning and publishing packages\n\n## Core Concepts\n\n### 1. Why Monorepos?\n\n**Advantages:** shared code and dependencies, atomic commits across projects,\nconsistent tooling, easier refactoring, better code visibility.\n\n**Challenges:** build performance at scale, CI complexity, access control,\nlarge Git history.\n\n### 2. Monorepo Tools\n\n**Package managers** (workspaces): pnpm (recommended), npm, Yarn Berry.\n\n**Task runners and build systems:**\n\n- Turborepo — simple task graph and caching on top of package scripts\n- Nx — task graph plus generators, inferred tasks and module boundaries\n- Bazel — hermetic, multi-language builds for very large repos\n- Lerna — now maintained by the Nx team; use it only for its publishing commands\n\n## Setup\n\n```bash\nnpx create-turbo@latest my-monorepo --package-manager pnpm\n# or: npx create-nx-workspace@latest my-org\n```\n\n```\napps\u002F\n  web\u002F          # Next.js app\n  docs\u002F         # Documentation site\npackages\u002F\n  ui\u002F           # Shared UI components\n  tsconfig\u002F     # Shared TypeScript configs\n  eslint-config\u002F\npnpm-workspace.yaml\nturbo.json      # or nx.json\npackage.json\n```\n\n```json\n\u002F\u002F package.json (root)\n{\n  \"name\": \"my-monorepo\",\n  \"private\": true,\n  \"scripts\": {\n    \"build\": \"turbo run build\",\n    \"dev\": \"turbo run dev\",\n    \"test\": \"turbo run test\",\n    \"lint\": \"turbo run lint\",\n    \"format\": \"prettier --write \\\"**\u002F*.{ts,tsx,md}\\\"\"\n  },\n  \"devDependencies\": {\n    \"prettier\": \"^3.6.0\",\n    \"turbo\": \"^2.11.0\",\n    \"typescript\": \"^7.0.0\"\n  },\n  \"packageManager\": \"pnpm@12.15.0\"\n}\n```\n\npnpm reads workspace packages and pnpm settings only from\n`pnpm-workspace.yaml` (see `references\u002Fdetails.md`); `.npmrc` holds registry\nauth only.\n\n### Internal Package\n\n```json\n\u002F\u002F packages\u002Fui\u002Fpackage.json\n{\n  \"name\": \"@repo\u002Fui\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"exports\": {\n    \".\": {\n      \"types\": \".\u002Fdist\u002Findex.d.ts\",\n      \"default\": \".\u002Fdist\u002Findex.js\"\n    },\n    \".\u002Fbutton\": {\n      \"types\": \".\u002Fdist\u002Fbutton.d.ts\",\n      \"default\": \".\u002Fdist\u002Fbutton.js\"\n    }\n  },\n  \"scripts\": {\n    \"build\": \"tsc -p tsconfig.build.json\",\n    \"dev\": \"tsc -p tsconfig.build.json --watch\",\n    \"lint\": \"eslint src\u002F\",\n    \"typecheck\": \"tsc --noEmit\"\n  },\n  \"devDependencies\": {\n    \"@repo\u002Ftsconfig\": \"workspace:*\",\n    \"typescript\": \"^7.0.0\"\n  },\n  \"peerDependencies\": {\n    \"react\": \"^19.0.0\"\n  }\n}\n```\n\n`types` must come first in each `exports` entry: TypeScript takes the first\ncondition that matches, so a `types` entry after `import` or `default` is never\nread. `tsc` emits one `.js` and one `.d.ts` per source file, so the paths\nabove are exact. To bundle or ship ESM and CJS together, use `tsdown`; `tsup`\nis no longer maintained.\n\n## Detailed patterns and worked examples\n\n`references\u002Fdetails.md` covers pnpm workspace settings and commands, shared\nTypeScript and ESLint configs, code-sharing patterns and CI.\n\n## Best Practices\n\n1. **Consistent versions**: one version per dependency, via pnpm catalogs\n2. **Shared configs**: centralize ESLint, TypeScript and Prettier configs\n3. **Acyclic graph**: no circular dependencies between packages\n4. **Correct cache inputs**: declare inputs, outputs and env vars per task\n5. **Shared types**: one package for types used by frontend and backend\n6. **Testing**: unit tests in packages, end-to-end tests in apps\n7. **Documentation**: a README in each package\n8. **Releases**: changesets for versioning and changelogs\n\n## Common Pitfalls\n\n- **Circular dependencies**: A depends on B, B depends on A\n- **Phantom dependencies**: importing a package not in your `package.json`\n- **Wrong cache inputs**: missing files or env vars in task inputs\n- **Over-sharing**: sharing code that should stay separate\n- **Under-sharing**: duplicating code across packages\n\n## Publishing Packages\n\n```bash\npnpm add -Dw @changesets\u002Fcli\npnpm changeset init\npnpm changeset          # describe a change\npnpm changeset version  # bump versions and changelogs (exits 1 if none pending)\npnpm changeset publish\n```\n\nChangesets 3 needs Node 22.11+ and no longer versions private packages unless\n`privatePackages` is set in `.changeset\u002Fconfig.json`.\n\n```yaml\n# .github\u002Fworkflows\u002Frelease.yml (step)\n- name: Create Release Pull Request or Publish\n  uses: changesets\u002Faction@v2\n  with:\n    publish: pnpm changeset publish\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n","# Monorepo Management\n\nBuild monorepos that share code, tooling and atomic changes across packages and\napplications. This skill covers layout, workspaces, internal packages and\npublishing. For task configuration and caching, use the `turborepo-caching`,\n`nx-workspace-patterns` or `bazel-build-optimization` skill.\n\n## When to Use This Skill\n\n- Setting up new monorepo projects\n- Migrating from multi-repo to monorepo\n- Managing shared dependencies\n- Implementing code sharing strategies\n- Setting up CI\u002FCD for monorepos\n- Versioning and publishing packages\n\n## Core Concepts\n\n### 1. Why Monorepos?\n\n**Advantages:** shared code and dependencies, atomic commits across projects,\nconsistent tooling, easier refactoring, better code visibility.\n\n**Challenges:** build performance at scale, CI complexity, access control,\nlarge Git history.\n\n### 2. Monorepo Tools\n\n**Package managers** (workspaces): pnpm (recommended), npm, Yarn Berry.\n\n**Task runners and build systems:**\n\n- Turborepo — simple task graph and caching on top of package scripts\n- Nx — task graph plus generators, inferred tasks and module boundaries\n- Bazel — hermetic, multi-language builds for very large repos\n- Lerna — now maintained by the Nx team; use it only for its publishing commands\n\n## Setup\n\n```bash\nnpx create-turbo@latest my-monorepo --package-manager pnpm\n# or: npx create-nx-workspace@latest my-org\n```\n\n```\napps\u002F\n  web\u002F          # Next.js app\n  docs\u002F         # Documentation site\npackages\u002F\n  ui\u002F           # Shared UI components\n  tsconfig\u002F     # Shared TypeScript configs\n  eslint-config\u002F\npnpm-workspace.yaml\nturbo.json      # or nx.json\npackage.json\n```\n\n```json\n\u002F\u002F package.json (root)\n{\n  \"name\": \"my-monorepo\",\n  \"private\": true,\n  \"scripts\": {\n    \"build\": \"turbo run build\",\n    \"dev\": \"turbo run dev\",\n    \"test\": \"turbo run test\",\n    \"lint\": \"turbo run lint\",\n    \"format\": \"prettier --write \\\"**\u002F*.{ts,tsx,md}\\\"\"\n  },\n  \"devDependencies\": {\n    \"prettier\": \"^3.6.0\",\n    \"turbo\": \"^2.11.0\",\n    \"typescript\": \"^7.0.0\"\n  },\n  \"packageManager\": \"pnpm@12.15.0\"\n}\n```\n\npnpm reads workspace packages and pnpm settings only from\n`pnpm-workspace.yaml` (see `references\u002Fdetails.md`); `.npmrc` holds registry\nauth only.\n\n### Internal Package\n\n```json\n\u002F\u002F packages\u002Fui\u002Fpackage.json\n{\n  \"name\": \"@repo\u002Fui\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"exports\": {\n    \".\": {\n      \"types\": \".\u002Fdist\u002Findex.d.ts\",\n      \"default\": \".\u002Fdist\u002Findex.js\"\n    },\n    \".\u002Fbutton\": {\n      \"types\": \".\u002Fdist\u002Fbutton.d.ts\",\n      \"default\": \".\u002Fdist\u002Fbutton.js\"\n    }\n  },\n  \"scripts\": {\n    \"build\": \"tsc -p tsconfig.build.json\",\n    \"dev\": \"tsc -p tsconfig.build.json --watch\",\n    \"lint\": \"eslint src\u002F\",\n    \"typecheck\": \"tsc --noEmit\"\n  },\n  \"devDependencies\": {\n    \"@repo\u002Ftsconfig\": \"workspace:*\",\n    \"typescript\": \"^7.0.0\"\n  },\n  \"peerDependencies\": {\n    \"react\": \"^19.0.0\"\n  }\n}\n```\n\n`types` must come first in each `exports` entry: TypeScript takes the first\ncondition that matches, so a `types` entry after `import` or `default` is never\nread. `tsc` emits one `.js` and one `.d.ts` per source file, so the paths\nabove are exact. To bundle or ship ESM and CJS together, use `tsdown`; `tsup`\nis no longer maintained.\n\n## Detailed patterns and worked examples\n\n`references\u002Fdetails.md` covers pnpm workspace settings and commands, shared\nTypeScript and ESLint configs, code-sharing patterns and CI.\n\n## Best Practices\n\n1. **Consistent versions**: one version per dependency, via pnpm catalogs\n2. **Shared configs**: centralize ESLint, TypeScript and Prettier configs\n3. **Acyclic graph**: no circular dependencies between packages\n4. **Correct cache inputs**: declare inputs, outputs and env vars per task\n5. **Shared types**: one package for types used by frontend and backend\n6. **Testing**: unit tests in packages, end-to-end tests in apps\n7. **Documentation**: a README in each package\n8. **Releases**: changesets for versioning and changelogs\n\n## Common Pitfalls\n\n- **Circular dependencies**: A depends on B, B depends on A\n- **Phantom dependencies**: importing a package not in your `package.json`\n- **Wrong cache inputs**: missing files or env vars in task inputs\n- **Over-sharing**: sharing code that should stay separate\n- **Under-sharing**: duplicating code across packages\n\n## Publishing Packages\n\n```bash\npnpm add -Dw @changesets\u002Fcli\npnpm changeset init\npnpm changeset          # describe a change\npnpm changeset version  # bump versions and changelogs (exits 1 if none pending)\npnpm changeset publish\n```\n\nChangesets 3 needs Node 22.11+ and no longer versions private packages unless\n`privatePackages` is set in `.changeset\u002Fconfig.json`.\n\n```yaml\n# .github\u002Fworkflows\u002Frelease.yml (step)\n- name: Create Release Pull Request or Publish\n  uses: changesets\u002Faction@v2\n  with:\n    publish: pnpm changeset publish\n  env:\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n    NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n",{"name":5,"description":7,"last_verified":24},1793059200000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fdeveloper-essentials\u002Fskills\u002Fmonorepo-management","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill monorepo-management",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill monorepo-management",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill monorepo-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fmonorepo-management\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdetails.md","REFERENCE","参考文档",5998,"https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fmonorepo-management\u002Freferences\u002Fdetails.md",[54,60,67,74,81,88],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]