[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DVM24Q7KQBP3ZF1R0Z2BPQ":3,"skill-same:01M6DVM24Q7KQBP3ZF1R0Z2BPQ":66},{"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":65},"01M6DVM24Q7KQBP3ZF1R0Z2BPQ","ts-security",null,"ACTIVATE when conducting security assessments, code review for vulnerabilities, or CVSS scoring in TypeScript\u002FNode.js\u002FNestJS projects. ACTIVATE for 'security audit', 'vulnerability', 'injection', 'XSS', 'OWASP' in a TS context. Provides TS\u002FNestJS-specific security patterns (Drizzle parameterized queries, JWT setup, bcrypt rounds, execFile over exec, path traversal, Zod env validation, CSRF). Loads alongside security-audit:security-audit (comprehensive baseline) and audit:security-overrides (personal conventions). DO NOT use for: general code quality, performance optimization, authentication flow design.","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\u002Faudit\u002Fskills\u002Fts-security\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ts security","security","security-audit","scoring","activate","node","zod","projects","vulnerability","security audit","csrf","code review","xss","cvss","audit","authentication","code","performance","review","design","2026-11-10 10:12:30",false,"---\nname: ts-security\ndescription: \"ACTIVATE when conducting security assessments, code review for vulnerabilities, or CVSS scoring in TypeScript\u002FNode.js\u002FNestJS projects. ACTIVATE for 'security audit', 'vulnerability', 'injection', 'XSS', 'OWASP' in a TS context. Provides TS\u002FNestJS-specific security patterns (Drizzle parameterized queries, JWT setup, bcrypt rounds, execFile over exec, path traversal, Zod env validation, CSRF). Loads alongside security-audit:security-audit (comprehensive baseline) and audit:security-overrides (personal conventions). DO NOT use for: general code quality, performance optimization, authentication flow design.\"\n---\n\n# Security — TypeScript \u002F Node.js Examples\n\n> Part of the audit overlay pattern. Companion skills:\n> - `security-audit:security-audit` (upstream baseline — OWASP\u002FCWE\u002FCVSS, 61 references)\n> - `audit:security-overrides` (personal conventions: stack scope, FP filters, output format)\n>\n> This skill provides TS-specific code examples for the patterns the upstream covers conceptually.\n\n## Standards\n\n- **OWASP Top 10** (2021)\n- **CWE Top 25** (2025)\n- **CVSS v3.1 \u002F v4.0** for risk scoring\n\n## SQL Injection Prevention\n\n**Always use Drizzle parameterized queries.** Never interpolate user input into SQL.\n\n```typescript\n\u002F\u002F ❌ AVOID - String interpolation in SQL\nconst result = await db.execute(\n  `SELECT * FROM tenants WHERE email = '${email}'`\n);\n\n\u002F\u002F ✅ CORRECT - Drizzle parameterized query\nconst result = await db\n  .select()\n  .from(tenants)\n  .where(eq(tenants.email, email));\n\n\u002F\u002F ✅ CORRECT - Raw SQL with placeholder\nimport { sql } from 'drizzle-orm';\nconst result = await db.execute(\n  sql`SELECT * FROM tenants WHERE email = ${email}`\n);\n```\n\n## XSS Prevention\n\n```typescript\n\u002F\u002F ✅ React\u002FJSX auto-escapes by default — safe\nreturn \u003Cp>{userInput}\u003C\u002Fp>;\n\n\u002F\u002F ❌ AVOID - Bypasses auto-escaping\nreturn \u003Cdiv dangerouslySetInnerHTML={{ __html: userInput }} \u002F>;\n\n\u002F\u002F ✅ CORRECT - If HTML rendering needed, sanitize first\nimport DOMPurify from 'dompurify';\nconst clean = DOMPurify.sanitize(userInput);\nreturn \u003Cdiv dangerouslySetInnerHTML={{ __html: clean }} \u002F>;\n```\n\n## JWT Security\n\n```typescript\n\u002F\u002F ❌ AVOID - No expiration, weak secret\nconst token = jwt.sign(payload, 'secret');\n\n\u002F\u002F ✅ CORRECT - Strong secret, expiration, algorithm specified\nconst token = jwt.sign(payload, process.env.JWT_SECRET, {\n  expiresIn: '1h',\n  algorithm: 'HS256',\n});\n\n\u002F\u002F ✅ CORRECT - Validate with explicit algorithms\nconst decoded = jwt.verify(token, process.env.JWT_SECRET, {\n  algorithms: ['HS256'],\n});\n```\n\n## Password Hashing\n\n```typescript\nimport * as bcrypt from 'bcrypt';\n\n\u002F\u002F ✅ CORRECT - bcrypt with sufficient rounds\nconst SALT_ROUNDS = 12;\nconst hash = await bcrypt.hash(password, SALT_ROUNDS);\nconst isValid = await bcrypt.compare(password, hash);\n\n\u002F\u002F ❌ AVOID - MD5, SHA-1, SHA-256 without salt\nimport { createHash } from 'crypto';\nconst hash = createHash('sha256').update(password).digest('hex');\n```\n\n## Command Injection Prevention\n\n```typescript\n\u002F\u002F ❌ AVOID - Shell injection via child_process.exec\n\u002F\u002F exec(`convert ${userInput} output.png`);\n\u002F\u002F exec() spawns a shell, allowing injection via metacharacters\n\n\u002F\u002F ✅ CORRECT - execFile prevents shell injection (no shell involved)\nimport { execFile } from 'child_process';\n\nexecFile('convert', [userInput, 'output.png'], (error, stdout) => {\n  \u002F\u002F Arguments are passed as array, not interpolated into a shell command\n});\n```\n\n## Path Traversal Prevention\n\n```typescript\nimport { resolve, normalize } from 'path';\n\n\u002F\u002F ❌ AVOID - User input directly in path\nconst filePath = `.\u002Fuploads\u002F${req.params.filename}`;\n\n\u002F\u002F ✅ CORRECT - Normalize and verify containment\nconst UPLOAD_DIR = resolve('.\u002Fuploads');\nconst requested = resolve(UPLOAD_DIR, req.params.filename);\n\nif (!requested.startsWith(UPLOAD_DIR)) {\n  throw new ForbiddenException('Path traversal detected');\n}\n```\n\n## Environment & Secrets\n\n```typescript\n\u002F\u002F ❌ AVOID - Secrets hardcoded\nconst API_KEY = 'sk-1234567890abcdef';\n\n\u002F\u002F ✅ CORRECT - From environment, validated at startup\nimport { z } from 'zod';\n\nconst EnvSchema = z.object({\n  JWT_SECRET: z.string().min(32),\n  DATABASE_URL: z.string().url(),\n  API_KEY: z.string().min(16),\n});\n\nconst env = EnvSchema.parse(process.env);\n```\n\n## CSRF Protection\n\n```typescript\n\u002F\u002F ✅ NestJS - Use CSRF middleware for state-changing endpoints\n\u002F\u002F For API-only (JWT auth): CSRF is not needed (no cookies)\n\u002F\u002F For session-based auth: enable CSRF tokens\n\n\u002F\u002F ✅ SameSite cookies\nresponse.cookie('session', token, {\n  httpOnly: true,\n  secure: true,\n  sameSite: 'strict',\n});\n```\n\n## Security Tooling\n\n```bash\n# Dependency audit\npnpm audit\n\n# ESLint security rules\npnpm add -D eslint-plugin-security\n\n# Snyk scanning\nnpx snyk test\n```\n\n## Security Checklist\n\n- [ ] bcrypt (12+ rounds) for passwords\n- [ ] Drizzle parameterized queries everywhere (no string interpolation)\n- [ ] JWT with expiration, strong secret, explicit algorithm\n- [ ] No `dangerouslySetInnerHTML` without DOMPurify\n- [ ] `execFile` instead of `exec` for system commands\n- [ ] Path traversal check on all file operations\n- [ ] Secrets in environment variables, validated with Zod at startup\n- [ ] `httpOnly`, `secure`, `sameSite: 'strict'` on cookies\n- [ ] `pnpm audit` in CI pipeline\n- [ ] Security headers (HSTS, CSP, X-Content-Type-Options) via Helmet\n\n## Quick Reference\n\n| Vulnerability | Mitigation |\n|--------------|------------|\n| SQL Injection | Drizzle queries, `sql` template tag |\n| XSS | JSX auto-escaping, DOMPurify if needed |\n| JWT flaws | Expiration, strong secret, explicit algorithm |\n| Weak passwords | bcrypt 12+ rounds |\n| Command injection | `execFile` (no shell) |\n| Path traversal | `resolve` + `startsWith` check |\n| Secrets in code | Env vars + Zod validation |\n| CSRF | SameSite cookies, CSRF tokens for sessions |\n","# Security — TypeScript \u002F Node.js Examples\n\n> Part of the audit overlay pattern. Companion skills:\n> - `security-audit:security-audit` (upstream baseline — OWASP\u002FCWE\u002FCVSS, 61 references)\n> - `audit:security-overrides` (personal conventions: stack scope, FP filters, output format)\n>\n> This skill provides TS-specific code examples for the patterns the upstream covers conceptually.\n\n## Standards\n\n- **OWASP Top 10** (2021)\n- **CWE Top 25** (2025)\n- **CVSS v3.1 \u002F v4.0** for risk scoring\n\n## SQL Injection Prevention\n\n**Always use Drizzle parameterized queries.** Never interpolate user input into SQL.\n\n```typescript\n\u002F\u002F ❌ AVOID - String interpolation in SQL\nconst result = await db.execute(\n  `SELECT * FROM tenants WHERE email = '${email}'`\n);\n\n\u002F\u002F ✅ CORRECT - Drizzle parameterized query\nconst result = await db\n  .select()\n  .from(tenants)\n  .where(eq(tenants.email, email));\n\n\u002F\u002F ✅ CORRECT - Raw SQL with placeholder\nimport { sql } from 'drizzle-orm';\nconst result = await db.execute(\n  sql`SELECT * FROM tenants WHERE email = ${email}`\n);\n```\n\n## XSS Prevention\n\n```typescript\n\u002F\u002F ✅ React\u002FJSX auto-escapes by default — safe\nreturn \u003Cp>{userInput}\u003C\u002Fp>;\n\n\u002F\u002F ❌ AVOID - Bypasses auto-escaping\nreturn \u003Cdiv dangerouslySetInnerHTML={{ __html: userInput }} \u002F>;\n\n\u002F\u002F ✅ CORRECT - If HTML rendering needed, sanitize first\nimport DOMPurify from 'dompurify';\nconst clean = DOMPurify.sanitize(userInput);\nreturn \u003Cdiv dangerouslySetInnerHTML={{ __html: clean }} \u002F>;\n```\n\n## JWT Security\n\n```typescript\n\u002F\u002F ❌ AVOID - No expiration, weak secret\nconst token = jwt.sign(payload, 'secret');\n\n\u002F\u002F ✅ CORRECT - Strong secret, expiration, algorithm specified\nconst token = jwt.sign(payload, process.env.JWT_SECRET, {\n  expiresIn: '1h',\n  algorithm: 'HS256',\n});\n\n\u002F\u002F ✅ CORRECT - Validate with explicit algorithms\nconst decoded = jwt.verify(token, process.env.JWT_SECRET, {\n  algorithms: ['HS256'],\n});\n```\n\n## Password Hashing\n\n```typescript\nimport * as bcrypt from 'bcrypt';\n\n\u002F\u002F ✅ CORRECT - bcrypt with sufficient rounds\nconst SALT_ROUNDS = 12;\nconst hash = await bcrypt.hash(password, SALT_ROUNDS);\nconst isValid = await bcrypt.compare(password, hash);\n\n\u002F\u002F ❌ AVOID - MD5, SHA-1, SHA-256 without salt\nimport { createHash } from 'crypto';\nconst hash = createHash('sha256').update(password).digest('hex');\n```\n\n## Command Injection Prevention\n\n```typescript\n\u002F\u002F ❌ AVOID - Shell injection via child_process.exec\n\u002F\u002F exec(`convert ${userInput} output.png`);\n\u002F\u002F exec() spawns a shell, allowing injection via metacharacters\n\n\u002F\u002F ✅ CORRECT - execFile prevents shell injection (no shell involved)\nimport { execFile } from 'child_process';\n\nexecFile('convert', [userInput, 'output.png'], (error, stdout) => {\n  \u002F\u002F Arguments are passed as array, not interpolated into a shell command\n});\n```\n\n## Path Traversal Prevention\n\n```typescript\nimport { resolve, normalize } from 'path';\n\n\u002F\u002F ❌ AVOID - User input directly in path\nconst filePath = `.\u002Fuploads\u002F${req.params.filename}`;\n\n\u002F\u002F ✅ CORRECT - Normalize and verify containment\nconst UPLOAD_DIR = resolve('.\u002Fuploads');\nconst requested = resolve(UPLOAD_DIR, req.params.filename);\n\nif (!requested.startsWith(UPLOAD_DIR)) {\n  throw new ForbiddenException('Path traversal detected');\n}\n```\n\n## Environment & Secrets\n\n```typescript\n\u002F\u002F ❌ AVOID - Secrets hardcoded\nconst API_KEY = 'sk-1234567890abcdef';\n\n\u002F\u002F ✅ CORRECT - From environment, validated at startup\nimport { z } from 'zod';\n\nconst EnvSchema = z.object({\n  JWT_SECRET: z.string().min(32),\n  DATABASE_URL: z.string().url(),\n  API_KEY: z.string().min(16),\n});\n\nconst env = EnvSchema.parse(process.env);\n```\n\n## CSRF Protection\n\n```typescript\n\u002F\u002F ✅ NestJS - Use CSRF middleware for state-changing endpoints\n\u002F\u002F For API-only (JWT auth): CSRF is not needed (no cookies)\n\u002F\u002F For session-based auth: enable CSRF tokens\n\n\u002F\u002F ✅ SameSite cookies\nresponse.cookie('session', token, {\n  httpOnly: true,\n  secure: true,\n  sameSite: 'strict',\n});\n```\n\n## Security Tooling\n\n```bash\n# Dependency audit\npnpm audit\n\n# ESLint security rules\npnpm add -D eslint-plugin-security\n\n# Snyk scanning\nnpx snyk test\n```\n\n## Security Checklist\n\n- [ ] bcrypt (12+ rounds) for passwords\n- [ ] Drizzle parameterized queries everywhere (no string interpolation)\n- [ ] JWT with expiration, strong secret, explicit algorithm\n- [ ] No `dangerouslySetInnerHTML` without DOMPurify\n- [ ] `execFile` instead of `exec` for system commands\n- [ ] Path traversal check on all file operations\n- [ ] Secrets in environment variables, validated with Zod at startup\n- [ ] `httpOnly`, `secure`, `sameSite: 'strict'` on cookies\n- [ ] `pnpm audit` in CI pipeline\n- [ ] Security headers (HSTS, CSP, X-Content-Type-Options) via Helmet\n\n## Quick Reference\n\n| Vulnerability | Mitigation |\n|--------------|------------|\n| SQL Injection | Drizzle queries, `sql` template tag |\n| XSS | JSX auto-escaping, DOMPurify if needed |\n| JWT flaws | Expiration, strong secret, explicit algorithm |\n| Weak passwords | bcrypt 12+ rounds |\n| Command injection | `execFile` (no shell) |\n| Path traversal | `resolve` + `startsWith` check |\n| Secrets in code | Env vars + Zod validation |\n| CSRF | SameSite cookies, CSRF tokens for sessions |\n",{"name":5,"description":7},"main","479b264ec17cc5fafbf36287a1087472d3a386d3","plugins\u002Faudit\u002Fskills\u002Fts-security",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":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add FabienSalles\u002Fclaude-marketplace --skill ts-security",{"tool":58,"command":59},"bunx","bunx skills add FabienSalles\u002Fclaude-marketplace --skill ts-security",{"tool":61,"command":62},"pnpm","pnpm dlx skills add FabienSalles\u002Fclaude-marketplace --skill ts-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Faudit\u002Fskills\u002Fts-security\u002FSKILL.md",true,[],[67,93,109,128,150,166],{"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":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",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,23,87,88,89,90,91,92],"test","vitest","conventions","vitest test conventions","testing","writing","tdd","workflow","file","testing patterns","use","files","nestjs","do","project","tests","module","fn","testing principles",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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",[],[80,81,100,75,101,79,102,82,103,104,84,105,85,23,87,106,88,89,107,108],"tdd workflow","vitest tdd workflow","dev","examples","fix","red-green-refactor","green","feature","app",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"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",[],[116,117,79,118,35,103,119,120,121,24,122,84,123,124,125,86,126,23,87,127],"refactoring","ts refactoring","typescript","refactor","simplify","Rules","redesign","up","general","clean","craft","patterns",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"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",[],[135,136,137,74,138,139,84,140,141,86,142,23,87,143,144,145,146,147,148,149],"ports","ts ports adapters","memory","ddd","Composition","container","functions","Literal","dependency-injection","domain","tokens","as","type","id","adapter",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"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",[],[157,158,38,118,138,103,159,160,116,121,161,84,162,126,23,87,163,164,165,146],"oop","ts oop","methodology","immutable","ask","refactoring methodology","objects","record","collections",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"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",[],[173,137,138,174,175,139,135,84,176,177,178,23,87,179,144,180,181,147,149,182],"ts layer boundaries","controller","boundary","router","only","endpoints","structure","cqrs","worker","import"]