[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DW1MPAFTXWGJZ0ZV2EB0NG":3,"skill-same:01M6DW1MPAFTXWGJZ0ZV2EB0NG":71},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":6,"updatedAt":51,"install":52,"resources":64},"01M6DW1MPAFTXWGJZ0ZV2EB0NG","pnpm-workspace",null,"ACTIVATE when configuring monorepo structure, cross-package imports, workspace scripts, or pnpm workspace protocol. ACTIVATE for 'pnpm workspace', 'workspace:*', 'monorepo', 'pnpm --filter', 'packages\u002Fshared'. Covers: workspace structure (packages\u002Fshared + apps\u002Fapi + apps\u002Fweb), workspace:* protocol, build order (shared first), filtering commands, shared vs per-package dependencies. DO NOT use for: individual package configuration, npm\u002Fyarn workspaces.","FabienSalles\u002Fclaude-marketplace","FabienSalles","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F937901?v=4","01M6DVJBD31CJKRB382FQFZ5FH","Fabien Salles","01M6DVJBQNY8Q18KJD1ESAD6TX",9,"MIT","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftooling\u002Fskills\u002Fpnpm-workspace\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"pnpm workspace","pnpm","workspace","build","filter","apps","shared","structure","dependencies","do","activate","web","workspaces","use","filtering","monorepo","api","first","package","packages","2026-11-10 10:12:30",false,"---\nname: pnpm-workspace\ndescription: \"ACTIVATE when configuring monorepo structure, cross-package imports, workspace scripts, or pnpm workspace protocol. ACTIVATE for 'pnpm workspace', 'workspace:*', 'monorepo', 'pnpm --filter', 'packages\u002Fshared'. Covers: workspace structure (packages\u002Fshared + apps\u002Fapi + apps\u002Fweb), workspace:* protocol, build order (shared first), filtering commands, shared vs per-package dependencies. DO NOT use for: individual package configuration, npm\u002Fyarn workspaces.\"\n---\n\n# pnpm Workspace Conventions\n\n## Structure\n\n```\napp\u002F\n├── pnpm-workspace.yaml\n├── package.json              # Root scripts, devDependencies\n├── packages\u002F\n│   └── shared\u002F               # DTOs Zod, enums, types partages\n│       ├── package.json\n│       └── src\u002F\n├── apps\u002F\n│   ├── api\u002F                  # NestJS backend\n│   │   ├── package.json\n│   │   └── src\u002F\n│   └── web\u002F                  # Astro frontend\n│       ├── package.json\n│       └── src\u002F\n```\n\n```yaml\n# pnpm-workspace.yaml\npackages:\n  - 'packages\u002F*'\n  - 'apps\u002F*'\n```\n\n## workspace:* Protocol\n\n**Use `workspace:*`** for cross-package dependencies:\n\n```jsonc\n\u002F\u002F apps\u002Fapi\u002Fpackage.json\n{\n  \"dependencies\": {\n    \"@app\u002Fshared\": \"workspace:*\"\n  }\n}\n```\n\nThis resolves to the local package, never fetches from npm.\n\n## Build Order\n\n**`packages\u002Fshared` must build before `apps\u002F*`** because apps import from it.\n\n```jsonc\n\u002F\u002F package.json (root)\n{\n  \"scripts\": {\n    \"build\": \"pnpm -r --filter=@app\u002Fshared build && pnpm -r --filter=.\u002Fapps\u002F* build\",\n    \"dev\": \"pnpm -r --parallel dev\",\n    \"test\": \"pnpm -r test\",\n    \"typecheck\": \"pnpm -r typecheck\"\n  }\n}\n```\n\n## Filtering\n\n```bash\n# Run in a specific package\npnpm --filter @app\u002Fshared build\npnpm --filter api test\n\n# Run in all apps\npnpm --filter '.\u002Fapps\u002F*' build\n\n# Run in all packages except one\npnpm --filter '!web' test\n```\n\n## Shared Dependencies\n\n**Root `package.json`** for devDependencies shared across all packages (TypeScript, ESLint, Prettier, Vitest):\n\n```jsonc\n\u002F\u002F package.json (root)\n{\n  \"devDependencies\": {\n    \"typescript\": \"^5.7\",\n    \"vitest\": \"^3.0\",\n    \"eslint\": \"^9.0\"\n  }\n}\n```\n\nPackage-specific dependencies go in each package's `package.json`.\n\n## Imports from Shared\n\n```typescript\n\u002F\u002F In apps\u002Fapi or apps\u002Fweb\nimport { CreateReceiptSchema, type CreateReceiptDto } from '@app\u002Fshared';\n```\n\n> **See also**: `zod-conventions` for how schemas are structured in `packages\u002Fshared`.\n\n## Quick Reference\n\n| Rule | Convention |\n|------|-----------|\n| Workspace config | `pnpm-workspace.yaml` |\n| Internal deps | `workspace:*` protocol |\n| Build order | `packages\u002Fshared` first, then `apps\u002F*` |\n| Dev tools | Root devDependencies |\n| App-specific deps | Per-package `package.json` |\n| Filtering | `pnpm --filter \u003Cpackage>` |\n| Parallel dev | `pnpm -r --parallel dev` |\n","# pnpm Workspace Conventions\n\n## Structure\n\n```\napp\u002F\n├── pnpm-workspace.yaml\n├── package.json              # Root scripts, devDependencies\n├── packages\u002F\n│   └── shared\u002F               # DTOs Zod, enums, types partages\n│       ├── package.json\n│       └── src\u002F\n├── apps\u002F\n│   ├── api\u002F                  # NestJS backend\n│   │   ├── package.json\n│   │   └── src\u002F\n│   └── web\u002F                  # Astro frontend\n│       ├── package.json\n│       └── src\u002F\n```\n\n```yaml\n# pnpm-workspace.yaml\npackages:\n  - 'packages\u002F*'\n  - 'apps\u002F*'\n```\n\n## workspace:* Protocol\n\n**Use `workspace:*`** for cross-package dependencies:\n\n```jsonc\n\u002F\u002F apps\u002Fapi\u002Fpackage.json\n{\n  \"dependencies\": {\n    \"@app\u002Fshared\": \"workspace:*\"\n  }\n}\n```\n\nThis resolves to the local package, never fetches from npm.\n\n## Build Order\n\n**`packages\u002Fshared` must build before `apps\u002F*`** because apps import from it.\n\n```jsonc\n\u002F\u002F package.json (root)\n{\n  \"scripts\": {\n    \"build\": \"pnpm -r --filter=@app\u002Fshared build && pnpm -r --filter=.\u002Fapps\u002F* build\",\n    \"dev\": \"pnpm -r --parallel dev\",\n    \"test\": \"pnpm -r test\",\n    \"typecheck\": \"pnpm -r typecheck\"\n  }\n}\n```\n\n## Filtering\n\n```bash\n# Run in a specific package\npnpm --filter @app\u002Fshared build\npnpm --filter api test\n\n# Run in all apps\npnpm --filter '.\u002Fapps\u002F*' build\n\n# Run in all packages except one\npnpm --filter '!web' test\n```\n\n## Shared Dependencies\n\n**Root `package.json`** for devDependencies shared across all packages (TypeScript, ESLint, Prettier, Vitest):\n\n```jsonc\n\u002F\u002F package.json (root)\n{\n  \"devDependencies\": {\n    \"typescript\": \"^5.7\",\n    \"vitest\": \"^3.0\",\n    \"eslint\": \"^9.0\"\n  }\n}\n```\n\nPackage-specific dependencies go in each package's `package.json`.\n\n## Imports from Shared\n\n```typescript\n\u002F\u002F In apps\u002Fapi or apps\u002Fweb\nimport { CreateReceiptSchema, type CreateReceiptDto } from '@app\u002Fshared';\n```\n\n> **See also**: `zod-conventions` for how schemas are structured in `packages\u002Fshared`.\n\n## Quick Reference\n\n| Rule | Convention |\n|------|-----------|\n| Workspace config | `pnpm-workspace.yaml` |\n| Internal deps | `workspace:*` protocol |\n| Build order | `packages\u002Fshared` first, then `apps\u002F*` |\n| Dev tools | Root devDependencies |\n| App-specific deps | Per-package `package.json` |\n| Filtering | `pnpm --filter \u003Cpackage>` |\n| Parallel dev | `pnpm -r --parallel dev` |\n",{"name":5,"description":7},"main","479b264ec17cc5fafbf36287a1087472d3a386d3","plugins\u002Ftooling\u002Fskills\u002Fpnpm-workspace",2,"https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace","https:\u002F\u002Fgithub.com\u002FFabienSalles","https:\u002F\u002Ffabiensalles.com","2026-10-13 04:33:22",{"source":8,"skillName":5,"commands":53,"prompt":62,"zipAvailable":63},[54,57,60],{"tool":55,"command":56},"npx","npx skills add FabienSalles\u002Fclaude-marketplace --skill pnpm-workspace",{"tool":58,"command":59},"bunx","bunx skills add FabienSalles\u002Fclaude-marketplace --skill pnpm-workspace",{"tool":20,"command":61},"pnpm dlx skills add FabienSalles\u002Fclaude-marketplace --skill pnpm-workspace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftooling\u002Fskills\u002Fpnpm-workspace\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"index.json","REFERENCE","参考文档",518,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-triage-malware\u002Findex.json",[72,101,120,141,164,181],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":83,"publishedAt":39},"01M6DW2YS1MGF65JNS1QQ15QHS","vitest-test-conventions","ACTIVATE when writing Vitest tests, creating test files, using vi.fn()\u002Fvi.mock()\u002Fvi.spyOn(), or test factories. ACTIVATE for 'Vitest', 'it.each', 'NestJS testing module', 'supertest', 'vi.fn', 'vi.mock', 'spyOn'. Provides Vitest\u002FNestJS-specific testing patterns; cross-language testing principles (DAMP, AAA, spy over mock, what NOT to test) live in craft:testing-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), TDD workflow\u002Fiterations (see vitest:vitest-tdd-workflow), PHP\u002FPHPUnit tests (see phpunit:php-test-conventions).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvitest\u002Fskills\u002Fvitest-test-conventions\u002FSKILL.md",[78],{"categoryNo":79,"categoryName":80,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[84,85,86,87,88,89,90,91,92,93,32,94,95,29,28,96,97,98,99,100],"test","vitest","conventions","vitest test conventions","testing","writing","tdd","workflow","file","testing patterns","files","nestjs","project","tests","module","fn","testing principles",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":110,"publishedAt":39},"01M6DW2VFE6NPFCGQKQ68P1MVZ","vitest-tdd-workflow","ACTIVATE when building new features, endpoints, or user stories using TDD with Vitest in a TypeScript\u002FNestJS context. ACTIVATE for '\u002Ffeature-tdd-dev', 'TDD', 'red-green-refactor' in TS context. Provides Vitest\u002FNestJS-specific TDD examples and commands; cross-language TDD workflow (cross-layer iterations, RED-GREEN-REFACTOR, working app, bug-fix-first-test, mocks-hiding-bugs) lives in craft:tdd-workflow-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), test writing conventions (see vitest:vitest-test-conventions), PHP TDD (see phpunit:php-tdd-workflow).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvitest\u002Fskills\u002Fvitest-tdd-workflow\u002FSKILL.md",[107],{"categoryNo":108,"categoryName":109,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000023","Skill与智能体开发",[90,91,111,85,112,89,113,92,114,115,32,116,94,29,28,117,96,97,118,119],"tdd workflow","vitest tdd workflow","dev","examples","fix","red-green-refactor","green","feature","app",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M6DW2RGMQE10D8C5Z5MA2RMY","ts-refactoring","ACTIVATE when refactoring TypeScript code. ACTIVATE for 'refactor', 'extract', 'redesign', 'simplify', or 'clean up' in a TypeScript \u002F Node \u002F NestJS context. This skill provides TS-specific examples for the cross-language refactoring rules defined in craft:refactoring-principles. DO NOT use for: writing new features from scratch, general OOP patterns (see ts-oop).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-refactoring\u002FSKILL.md",[],[127,128,89,129,130,114,131,132,133,134,135,32,136,137,138,95,139,29,28,140],"refactoring","ts refactoring","typescript","code","refactor","simplify","Rules","node","redesign","up","general","clean","craft","patterns",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":148,"publishedAt":39},"01M6DW2MHYXNBBVYEGB058Y48J","ts-ports-adapters","ACTIVATE when a TypeScript codebase with no dependency-injection container has to declare a port and wire its adapter — a repository, a clock, an id generator, an event dispatcher the domain depends on. ACTIVATE for 'port', 'adapter', 'SPI', 'dependency inversion' or 'composition root' in a codebase that wires its dependencies by hand. Covers: the port as a type of functions in the domain layer, the adapter as an object literal annotated with it, the handler that takes its dependencies first and its data second, the composition root in the infrastructure layer, and the in-memory stub that substitutes for the adapter in a unit test. DO NOT use for: NestJS, or any container-based DI with decorators and tokens (see nest-ddd-conventions), aggregate operations and smart constructors (see ddd-ts-fp), the Result type itself (see ts-functional).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-ports-adapters\u002FSKILL.md",[147],{"categoryNo":79,"categoryName":80,"taxonomyType":81,"taxonomyTypeDesc":82},[149,150,151,84,152,153,32,154,155,95,156,29,28,157,158,159,160,161,162,163],"ports","ts ports adapters","memory","ddd","Composition","container","functions","Literal","dependency-injection","domain","tokens","as","type","id","adapter",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":39},"01M6DW2GRXZFYT05HEDB26C9B8","ts-oop","ACTIVATE when designing TypeScript classes, and the value objects or collections modelled as classes, or when the user asks about object design, encapsulation, Tell Don't Ask, or Symbol.iterator. Provides TS-specific examples for the cross-language OOP rules defined in craft:oop-principles, plus TS-specific patterns (Symbol.iterator, branded types for primitive identifiers). DO NOT use for: a value object or an aggregate modelled as an immutable record rather than a class (see ddd-ts-fp), refactoring methodology (see ts-refactoring).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-oop\u002FSKILL.md",[],[171,172,173,129,152,114,174,175,127,133,176,32,177,139,29,28,178,179,180,160],"oop","ts oop","design","methodology","immutable","ask","refactoring methodology","objects","record","collections",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":39},"01M6DW2D26XG5MJMTP9MSE43S2","ts-layer-boundaries","ACTIVATE when wiring a Worker entry point, a Router, a controller, or a domain event consumer in a TypeScript CQRS codebase, or when deciding where a port belongs. ACTIVATE for 'composition root', 'layer boundary', 'ESLint zones', 'domain must not import infrastructure'. Covers: the *Worker.ts composition root, the curried consumer, Router wiring of command endpoints, the five-gesture controller, the domain-to-infrastructure import boundary enforced by ESLint, infrastructure-only ports, in-memory doubles for every port, the read-can-reach-write asymmetry, and read endpoints going through a domain handler. DO NOT use for: the port's own shape and adapter binding (see ts-ports-adapters), the Result type (see ts-functional), domain event structure (see ts-ddd-events).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-layer-boundaries\u002FSKILL.md",[],[188,151,152,189,190,153,149,32,191,192,193,29,28,26,158,194,195,161,163,196],"ts layer boundaries","controller","boundary","router","only","endpoints","cqrs","worker","import"]