[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQV0497SS3T59ZRV48MQHV":3,"skill-same:01M6HQV0497SS3T59ZRV48MQHV":70},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6HQV0497SS3T59ZRV48MQHV","typescript-strict",null,"TypeScript strict mode patterns with interfaces, type guards, generics, and utility types. Use when defining types, creating type-safe functions, handling nullable values, or implementing generic components.","BlackBeltTechnology\u002Fpi-agent-dashboard","BlackBeltTechnology","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8101592?v=4","01M6HQDX7QAJA0QP4NYRYBMJ8A","BlackBelt Technology","01M6HQDXCC7719N9YDMQVH9JS6",348,"MIT","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Ftypescript-strict\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"typescript","typescript strict","when","safe","generic","implementing","values","mode","with","types","utility","type","nullable","patterns","functions","use","components","2026-11-10 10:12:30",false,"---\nname: typescript-strict\ndescription: TypeScript strict mode patterns with interfaces, type guards, generics, and utility types. Use when defining types, creating type-safe functions, handling nullable values, or implementing generic components.\n---\n\n# TypeScript Strict Patterns\n\n## Strict Configuration\n\n```json\n\u002F\u002F tsconfig.json essentials\n{\n  \"compilerOptions\": {\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"exactOptionalPropertyTypes\": true\n  }\n}\n```\n\n## Interface vs Type\n\n```tsx\n\u002F\u002F Use interface for objects that may be extended\ninterface Service {\n  slug: string;\n  name: string;\n  price: number;\n}\n\ninterface PremiumService extends Service {\n  benefits: string[];\n}\n\n\u002F\u002F Use type for unions, primitives, tuples\ntype Locale = 'pt-PT' | 'en' | 'tr' | 'es' | 'fr' | 'de';\ntype DeliveryMode = 'in-person' | 'online' | 'both';\ntype Coordinates = [number, number];\n```\n\n## Type Guards\n\n```tsx\n\u002F\u002F Custom type guard\nfunction isService(value: unknown): value is Service {\n  return (\n    typeof value === 'object' &&\n    value !== null &&\n    'slug' in value &&\n    'name' in value\n  );\n}\n\n\u002F\u002F Discriminated unions\ntype Result\u003CT> = \n  | { success: true; data: T }\n  | { success: false; error: string };\n\nfunction handleResult\u003CT>(result: Result\u003CT>) {\n  if (result.success) {\n    console.log(result.data); \u002F\u002F TypeScript knows data exists\n  } else {\n    console.error(result.error); \u002F\u002F TypeScript knows error exists\n  }\n}\n```\n\n## Generic Patterns\n\n```tsx\n\u002F\u002F Generic data fetcher\nasync function fetchData\u003CT>(url: string): Promise\u003CT> {\n  const res = await fetch(url);\n  if (!res.ok) throw new Error('Failed to fetch');\n  return res.json() as Promise\u003CT>;\n}\n\n\u002F\u002F Generic component props\ninterface ListProps\u003CT> {\n  items: T[];\n  renderItem: (item: T, index: number) => React.ReactNode;\n  keyExtractor: (item: T) => string;\n}\n\nfunction List\u003CT>({ items, renderItem, keyExtractor }: ListProps\u003CT>) {\n  return (\n    \u003Cul>\n      {items.map((item, i) => (\n        \u003Cli key={keyExtractor(item)}>{renderItem(item, i)}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n## Utility Types\n\n```tsx\n\u002F\u002F Partial - all properties optional\ntype ServiceUpdate = Partial\u003CService>;\n\n\u002F\u002F Required - all properties required\ntype RequiredService = Required\u003CService>;\n\n\u002F\u002F Pick - select specific properties\ntype ServicePreview = Pick\u003CService, 'slug' | 'name'>;\n\n\u002F\u002F Omit - exclude properties\ntype ServiceWithoutPrice = Omit\u003CService, 'price'>;\n\n\u002F\u002F Record - key-value mapping\ntype LocaleMessages = Record\u003CLocale, Record\u003Cstring, string>>;\n\n\u002F\u002F Extract\u002FExclude for unions\ntype OnlineDelivery = Extract\u003CDeliveryMode, 'online' | 'both'>;\n```\n\n## Nullable Handling\n\n```tsx\n\u002F\u002F Non-null assertion (use sparingly)\nconst element = document.getElementById('root')!;\n\n\u002F\u002F Optional chaining + nullish coalescing\nconst name = user?.profile?.name ?? 'Anonymous';\n\n\u002F\u002F Type narrowing\nfunction processValue(value: string | null | undefined) {\n  if (value == null) return; \u002F\u002F Handles both null and undefined\n  console.log(value.toUpperCase()); \u002F\u002F value is string\n}\n```\n\n## Component Props Patterns\n\n```tsx\n\u002F\u002F Props with children\ninterface ContainerProps {\n  children: React.ReactNode;\n  className?: string;\n}\n\n\u002F\u002F Props extending HTML elements\ninterface ButtonProps extends React.ButtonHTMLAttributes\u003CHTMLButtonElement> {\n  variant?: 'primary' | 'secondary';\n  loading?: boolean;\n}\n\n\u002F\u002F Polymorphic component\ninterface BoxProps\u003CT extends React.ElementType> {\n  as?: T;\n  children: React.ReactNode;\n}\n\ntype BoxPropsWithRef\u003CT extends React.ElementType> = BoxProps\u003CT> &\n  Omit\u003CReact.ComponentPropsWithoutRef\u003CT>, keyof BoxProps\u003CT>>;\n```\n\n## Const Assertions\n\n```tsx\n\u002F\u002F Immutable arrays and objects\nconst LOCALES = ['pt-PT', 'en', 'tr', 'es', 'fr', 'de'] as const;\ntype Locale = typeof LOCALES[number]; \u002F\u002F 'pt-PT' | 'en' | ...\n\nconst THEME_CONFIG = {\n  studio: { bg: '#ffffff', accent: '#000000' },\n  earth: { bg: '#faf9f6', accent: '#8b7355' },\n} as const;\n```\n\n## Zod Integration\n\n```tsx\nimport { z } from 'zod';\n\n\u002F\u002F Infer types from Zod schemas\nconst ServiceSchema = z.object({\n  slug: z.string(),\n  name: z.string(),\n  price: z.number().positive(),\n});\n\ntype Service = z.infer\u003Ctypeof ServiceSchema>;\n```\n","# TypeScript Strict Patterns\n\n## Strict Configuration\n\n```json\n\u002F\u002F tsconfig.json essentials\n{\n  \"compilerOptions\": {\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"exactOptionalPropertyTypes\": true\n  }\n}\n```\n\n## Interface vs Type\n\n```tsx\n\u002F\u002F Use interface for objects that may be extended\ninterface Service {\n  slug: string;\n  name: string;\n  price: number;\n}\n\ninterface PremiumService extends Service {\n  benefits: string[];\n}\n\n\u002F\u002F Use type for unions, primitives, tuples\ntype Locale = 'pt-PT' | 'en' | 'tr' | 'es' | 'fr' | 'de';\ntype DeliveryMode = 'in-person' | 'online' | 'both';\ntype Coordinates = [number, number];\n```\n\n## Type Guards\n\n```tsx\n\u002F\u002F Custom type guard\nfunction isService(value: unknown): value is Service {\n  return (\n    typeof value === 'object' &&\n    value !== null &&\n    'slug' in value &&\n    'name' in value\n  );\n}\n\n\u002F\u002F Discriminated unions\ntype Result\u003CT> = \n  | { success: true; data: T }\n  | { success: false; error: string };\n\nfunction handleResult\u003CT>(result: Result\u003CT>) {\n  if (result.success) {\n    console.log(result.data); \u002F\u002F TypeScript knows data exists\n  } else {\n    console.error(result.error); \u002F\u002F TypeScript knows error exists\n  }\n}\n```\n\n## Generic Patterns\n\n```tsx\n\u002F\u002F Generic data fetcher\nasync function fetchData\u003CT>(url: string): Promise\u003CT> {\n  const res = await fetch(url);\n  if (!res.ok) throw new Error('Failed to fetch');\n  return res.json() as Promise\u003CT>;\n}\n\n\u002F\u002F Generic component props\ninterface ListProps\u003CT> {\n  items: T[];\n  renderItem: (item: T, index: number) => React.ReactNode;\n  keyExtractor: (item: T) => string;\n}\n\nfunction List\u003CT>({ items, renderItem, keyExtractor }: ListProps\u003CT>) {\n  return (\n    \u003Cul>\n      {items.map((item, i) => (\n        \u003Cli key={keyExtractor(item)}>{renderItem(item, i)}\u003C\u002Fli>\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n## Utility Types\n\n```tsx\n\u002F\u002F Partial - all properties optional\ntype ServiceUpdate = Partial\u003CService>;\n\n\u002F\u002F Required - all properties required\ntype RequiredService = Required\u003CService>;\n\n\u002F\u002F Pick - select specific properties\ntype ServicePreview = Pick\u003CService, 'slug' | 'name'>;\n\n\u002F\u002F Omit - exclude properties\ntype ServiceWithoutPrice = Omit\u003CService, 'price'>;\n\n\u002F\u002F Record - key-value mapping\ntype LocaleMessages = Record\u003CLocale, Record\u003Cstring, string>>;\n\n\u002F\u002F Extract\u002FExclude for unions\ntype OnlineDelivery = Extract\u003CDeliveryMode, 'online' | 'both'>;\n```\n\n## Nullable Handling\n\n```tsx\n\u002F\u002F Non-null assertion (use sparingly)\nconst element = document.getElementById('root')!;\n\n\u002F\u002F Optional chaining + nullish coalescing\nconst name = user?.profile?.name ?? 'Anonymous';\n\n\u002F\u002F Type narrowing\nfunction processValue(value: string | null | undefined) {\n  if (value == null) return; \u002F\u002F Handles both null and undefined\n  console.log(value.toUpperCase()); \u002F\u002F value is string\n}\n```\n\n## Component Props Patterns\n\n```tsx\n\u002F\u002F Props with children\ninterface ContainerProps {\n  children: React.ReactNode;\n  className?: string;\n}\n\n\u002F\u002F Props extending HTML elements\ninterface ButtonProps extends React.ButtonHTMLAttributes\u003CHTMLButtonElement> {\n  variant?: 'primary' | 'secondary';\n  loading?: boolean;\n}\n\n\u002F\u002F Polymorphic component\ninterface BoxProps\u003CT extends React.ElementType> {\n  as?: T;\n  children: React.ReactNode;\n}\n\ntype BoxPropsWithRef\u003CT extends React.ElementType> = BoxProps\u003CT> &\n  Omit\u003CReact.ComponentPropsWithoutRef\u003CT>, keyof BoxProps\u003CT>>;\n```\n\n## Const Assertions\n\n```tsx\n\u002F\u002F Immutable arrays and objects\nconst LOCALES = ['pt-PT', 'en', 'tr', 'es', 'fr', 'de'] as const;\ntype Locale = typeof LOCALES[number]; \u002F\u002F 'pt-PT' | 'en' | ...\n\nconst THEME_CONFIG = {\n  studio: { bg: '#ffffff', accent: '#000000' },\n  earth: { bg: '#faf9f6', accent: '#8b7355' },\n} as const;\n```\n\n## Zod Integration\n\n```tsx\nimport { z } from 'zod';\n\n\u002F\u002F Infer types from Zod schemas\nconst ServiceSchema = z.object({\n  slug: z.string(),\n  name: z.string(),\n  price: z.number().positive(),\n});\n\ntype Service = z.infer\u003Ctypeof ServiceSchema>;\n```\n",{"name":5,"description":7},"develop","fb9a5af356f540de4839ef851ebbe14bcce64c0f","packages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Ftypescript-strict",56,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard","https:\u002F\u002Fpi-dashboard.dev\u002F","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology","https:\u002F\u002Fwww.blackbelt.hu","2026-11-12 23:37:37",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill typescript-strict",{"tool":56,"command":57},"bunx","bunx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill typescript-strict",{"tool":59,"command":60},"pnpm","pnpm dlx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill typescript-strict","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Ftypescript-strict\u002FSKILL.md",true,[64],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"SKILL.md.AGENTS.md","REFERENCE","参考文档",597,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Ffrontend-patterns\u002F.pi\u002Fskills\u002Ftypescript-strict\u002FSKILL.md.AGENTS.md",[71,98,123,146,167,189],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":36},"01M6HQYQ5B82AM5T9Y299S9CFY","youtube-srt","Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on \"download the srt of this video\", \"transcripts of channel X for the last N months\", \"catalog the models AI Search talked about\", \"update docs\u002Fmodels\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fyoutube-srt\u002FSKILL.md",[],[78,79,80,81,82,83,84,85,86,87,88,34,89,90,91,92,93,94,95,96,97],"youtube","srt","youtube srt","update","search","subtitles","dlp","Video","Media","open","catalog","update docs","yt-dlp","local","mine","via","ai models","last","for","media download",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":36},"01M6HQYJBKSXR55T5RSYNJQG4D","video-transcription","Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on \"\u002Ftranscribe\", \"transcribe my meetings\", \"transcribe videos in ~\u002FMovies\", or any request to convert audio\u002Fvideo to text.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fvideo-transcription\u002FSKILL.md",[],[85,105,106,107,83,108,109,110,111,112,113,34,114,115,116,117,27,118,119,79,120,121,122,21],"transcription","video transcription","transcribe","api","Audio","convert","mp4","text","meetings","files","default","mp3","triggers","videos","assemblyai","my","srt subtitles","request",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":36},"01M6HQYECMVDC5TDHHW22VC5RX","speaker-id","Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers \"who is speaker 2\", \"put names on the transcript\", \"label the meeting SRT\", \"the diarization split one person into three\", \"enroll my voice\". Backed by the pi-voiceid CLI.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fspeaker-id\u002FSKILL.md",[],[130,131,132,133,108,134,135,136,137,138,139,91,117,140,141,142,143,79,144,145],"id","speaker id","cli","transcript","voice","pi","only","three","drift","repair","name","CPU","meeting","anonymous","split","person",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":36},"01M6HQYAZWDXE9QJEG592E5PXK","veo-showreel-production-kit","Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-showreel-production-kit\u002FSKILL.md",[],[153,154,155,156,157,158,159,85,160,161,162,163,27,164,165,166],"Production","veo","kit","veo showreel production kit","package","Reproducible","timeline","prompt","voiceover","storyboard","anchor","consistency","veo 3","2026",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":36},"01M6HQY6TJ0X1ADDKYPMVJY6NV","veo-generator","Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots\u002F*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on \"render the Veo video for \u003Cproject>\", \"generate the videos from the shot scripts\", \"make the clips with Veo\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-generator\u002FSKILL.md",[],[154,174,175,176,177,157,108,85,111,160,34,178,136,179,180,181,182,183,163,184,185,186,187,27,188,96,165],"generator","veo generator","google","generate","clip","sketch","camera","world","seed","project","cut","scripts","make","render","google veo",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":36},"01M6HQY1K2NZJ3B2YHSJJPPVAF","hyperframes-showreel","Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on \"make a showreel from these recordings\", \"build the HyperFrames video\", \"assemble the footage edit\", \"render and QA the showreel\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fhyperframes-showreel\u002FSKILL.md",[],[196,197,198,85,199,200,201,34,202,203,204,136,205,206,207,208,209,187,27,210],"hyperframes","hyperframes showreel","qa","Composition","edit","generated","assemble","export","sampling","build","delivery","as","fx","screen","script"]