[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75VEQBG6NEP2FV89CM1ARJ1":3,"skill-same:01M75VEQBG6NEP2FV89CM1ARJ1":52},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75VEQBG6NEP2FV89CM1ARJ1","typescript-coding-style",null,"Use when writing, reviewing, or changing TypeScript code in this repo, especially for TypeScript type-safety boundaries, exports, TSDoc, React Property Inspector code, and hub directory placement. Pair with coding-style for language-neutral naming, comments, tests, and ownership rules.","ShoMetrics\u002Fsho_metrics","ShoMetrics","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F286841904?v=4","01M75VDM9S89QVZQZG8P589MVS","Sho Metrics","01M75VDMAE77E47W94V8P60S84",21,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-coding-style\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: typescript-coding-style\ndescription: Use when writing, reviewing, or changing TypeScript code in this repo, especially for TypeScript type-safety boundaries, exports, TSDoc, React Property Inspector code, and hub directory placement. Pair with coding-style for language-neutral naming, comments, tests, and ownership rules.\n---\n\n# TypeScript Coding Style\n\nUse this skill for TypeScript-specific type-safety, exports, TSDoc, React Property Inspector, and hub directory decisions. Pair with `coding-style`, `coding-style` is the base guideline to follow.\n\nKeyword meaning within each section:\n\n* **DO**: Mandatory; almost never a valid reason to stray.\n* **DON'T**: Prohibited; almost never do.\n* **PREFER**: Default choice; follow unless justified.\n* **AVOID**: Discouraged; skip unless justified.\n* **CONSIDER**: Optional; use based on context.\n\n## 1. Type Safety Boundary\n\n* **DO: Enforce lintable safety rules with ESLint**: If a safety rule is important and ESLint can enforce it, add or rely on an ESLint rule instead of documenting it only in prose. Current lint blocks explicit `any`, TypeScript suppression comments, `var`, avoidable `let`, empty catches, `console`, `eval`, ordinary non-null assertions, and type-aware unsafe operations in production source.\n\n* **DO: Narrow `unknown` immediately before passing values into typed domain code**:\n  - Good: validate `rawSettings` once, then pass `WidgetStoredSettings`.\n  - Bad: pass `unknown` through several internal functions.\n\n* **DON'T: Use double assertions in production code**:\n  - Good: parse or narrow before use.\n  - Bad: `rawSettings as unknown as WidgetStoredSettings`\n\n* **PREFER: Keep test-only casts local to test fixtures**:\n  - Good: `createWillAppearEventForTest(...) as unknown as WillAppearEvent` inside a test helper.\n  - Bad: scattering SDK event casts through production code.\n\n## 2. TypeScript Contract Boundary\n\n* **DO: Choose `interface` or `type` by the shape being modeled**: Use `interface` for object contracts with fields, multiple methods, state, lifecycle, or domain object identity. Use `type` for unions, tuples, mapped types, and function aliases; prefer a function type for one-method callback contracts.\n  - Good: `interface LoggerSink { level: LogLevel; info(...data: LogEntryData): LoggerSink; }`\n  - Bad: `type LoggerSink = { level: LogLevel; info(...data: LogEntryData): LoggerSink; }`\n  - Good: `type MetricFormatter = (sample: MetricSample) => string`\n  - Bad: `interface MetricFormatter { format(sample: MetricSample): string; }`\n\n* **DO: Use named exports**:\n  - Good: `export function buildMetricView(...)`\n  - Bad: `export default buildMetricView`\n\n* **PREFER: Omit redundant `public` modifiers on members unless lint enforces them**: Keep access modifiers when they define parameter properties or non-public visibility.\n  - Good: `record(sample: Sample): Summary`\n  - Bad: `public record(sample: Sample): Summary`\n\n* **DO: Make the first sentence of TSDoc a concise summary when TSDoc is needed**:\n  - Good: `\u002F** Resolves stored settings into render-ready settings. *\u002F`\n  - Bad: `\u002F** This function takes the settings parameter and returns settings. *\u002F`\n\n* **DO: Start method or function TSDoc with a third-person verb phrase when a description is needed**:\n  - Good: `Writes one message after the level check.`\n  - Bad: `Write one message after the level check.`\n\n* **PREFER: Start boolean TSDoc with `Whether` when a boolean needs documentation**:\n  - Good: `\u002F** Whether the logger should write this entry. *\u002F`\n  - Bad: `\u002F** True if the logger should write this entry. *\u002F`\n\n## 3. Hub Directory Ownership Boundary\n\nDirectory ownership principles live in `coding-style`; these rules are TypeScript hub-specific placements.\n\n* **DO: Keep `actions\u002F` root for Stream Deck action entry files and their direct tests only**: Files in the root should correspond to an action button\u002Fclass or the shared action base.\n  - Good: `actions\u002Fcpu-usage.ts`, `actions\u002Fdisk.ts`, `actions\u002Fmetric-action.ts`\n  - Bad: `actions\u002Fupdate-queue.ts`, `actions\u002Fcolor-utils.ts`, `actions\u002Frender-plan.ts`\n\n* **DO: Put action-specific support code under an action domain subdirectory**:\n  - Good: `actions\u002Fdisk\u002Fmetric-subscriptions.ts`, `actions\u002Fnetwork\u002Fview-builder.ts`\n  - Bad: `actions\u002Fdisk-metric-subscriptions.ts`, `actions\u002Fnet-speed-display.ts`\n\n* **DO: Keep metric view update workflow outside `actions\u002F`**: Queueing, runner, dispatch, performance stats, and runner-facing update state belong under `view-updates\u002F`.\n  - Good: `view-updates\u002Frunner.ts`, `view-updates\u002Fupdate-queue.ts`, `view-updates\u002Fdispatch.ts`\n  - Bad: putting these files in `actions\u002F` because actions call them.\n\n* **PREFER: Keep React Property Inspector code under composition-oriented folders**: Use `controls`, `panels`, `previews`, `inspector`, `stream-deck`, `testing`, and similarly concrete folders. Do not restore schema-driven UI registries or generic field buckets.\n\n* **DO: Keep rendering layers separate**: SVG composition belongs in `view-rendering\u002F`; low-level widget primitives and icon catalogs belong in `widgets\u002F`; metric value formatting and `WidgetData` builders belong in `metrics\u002F`; polling, stores, registries, and source adapters belong in `runtime\u002F`; settings codec\u002Fresolver\u002Fdefaults belong in `settings\u002F`.\n","# TypeScript Coding Style\n\nUse this skill for TypeScript-specific type-safety, exports, TSDoc, React Property Inspector, and hub directory decisions. Pair with `coding-style`, `coding-style` is the base guideline to follow.\n\nKeyword meaning within each section:\n\n* **DO**: Mandatory; almost never a valid reason to stray.\n* **DON'T**: Prohibited; almost never do.\n* **PREFER**: Default choice; follow unless justified.\n* **AVOID**: Discouraged; skip unless justified.\n* **CONSIDER**: Optional; use based on context.\n\n## 1. Type Safety Boundary\n\n* **DO: Enforce lintable safety rules with ESLint**: If a safety rule is important and ESLint can enforce it, add or rely on an ESLint rule instead of documenting it only in prose. Current lint blocks explicit `any`, TypeScript suppression comments, `var`, avoidable `let`, empty catches, `console`, `eval`, ordinary non-null assertions, and type-aware unsafe operations in production source.\n\n* **DO: Narrow `unknown` immediately before passing values into typed domain code**:\n  - Good: validate `rawSettings` once, then pass `WidgetStoredSettings`.\n  - Bad: pass `unknown` through several internal functions.\n\n* **DON'T: Use double assertions in production code**:\n  - Good: parse or narrow before use.\n  - Bad: `rawSettings as unknown as WidgetStoredSettings`\n\n* **PREFER: Keep test-only casts local to test fixtures**:\n  - Good: `createWillAppearEventForTest(...) as unknown as WillAppearEvent` inside a test helper.\n  - Bad: scattering SDK event casts through production code.\n\n## 2. TypeScript Contract Boundary\n\n* **DO: Choose `interface` or `type` by the shape being modeled**: Use `interface` for object contracts with fields, multiple methods, state, lifecycle, or domain object identity. Use `type` for unions, tuples, mapped types, and function aliases; prefer a function type for one-method callback contracts.\n  - Good: `interface LoggerSink { level: LogLevel; info(...data: LogEntryData): LoggerSink; }`\n  - Bad: `type LoggerSink = { level: LogLevel; info(...data: LogEntryData): LoggerSink; }`\n  - Good: `type MetricFormatter = (sample: MetricSample) => string`\n  - Bad: `interface MetricFormatter { format(sample: MetricSample): string; }`\n\n* **DO: Use named exports**:\n  - Good: `export function buildMetricView(...)`\n  - Bad: `export default buildMetricView`\n\n* **PREFER: Omit redundant `public` modifiers on members unless lint enforces them**: Keep access modifiers when they define parameter properties or non-public visibility.\n  - Good: `record(sample: Sample): Summary`\n  - Bad: `public record(sample: Sample): Summary`\n\n* **DO: Make the first sentence of TSDoc a concise summary when TSDoc is needed**:\n  - Good: `\u002F** Resolves stored settings into render-ready settings. *\u002F`\n  - Bad: `\u002F** This function takes the settings parameter and returns settings. *\u002F`\n\n* **DO: Start method or function TSDoc with a third-person verb phrase when a description is needed**:\n  - Good: `Writes one message after the level check.`\n  - Bad: `Write one message after the level check.`\n\n* **PREFER: Start boolean TSDoc with `Whether` when a boolean needs documentation**:\n  - Good: `\u002F** Whether the logger should write this entry. *\u002F`\n  - Bad: `\u002F** True if the logger should write this entry. *\u002F`\n\n## 3. Hub Directory Ownership Boundary\n\nDirectory ownership principles live in `coding-style`; these rules are TypeScript hub-specific placements.\n\n* **DO: Keep `actions\u002F` root for Stream Deck action entry files and their direct tests only**: Files in the root should correspond to an action button\u002Fclass or the shared action base.\n  - Good: `actions\u002Fcpu-usage.ts`, `actions\u002Fdisk.ts`, `actions\u002Fmetric-action.ts`\n  - Bad: `actions\u002Fupdate-queue.ts`, `actions\u002Fcolor-utils.ts`, `actions\u002Frender-plan.ts`\n\n* **DO: Put action-specific support code under an action domain subdirectory**:\n  - Good: `actions\u002Fdisk\u002Fmetric-subscriptions.ts`, `actions\u002Fnetwork\u002Fview-builder.ts`\n  - Bad: `actions\u002Fdisk-metric-subscriptions.ts`, `actions\u002Fnet-speed-display.ts`\n\n* **DO: Keep metric view update workflow outside `actions\u002F`**: Queueing, runner, dispatch, performance stats, and runner-facing update state belong under `view-updates\u002F`.\n  - Good: `view-updates\u002Frunner.ts`, `view-updates\u002Fupdate-queue.ts`, `view-updates\u002Fdispatch.ts`\n  - Bad: putting these files in `actions\u002F` because actions call them.\n\n* **PREFER: Keep React Property Inspector code under composition-oriented folders**: Use `controls`, `panels`, `previews`, `inspector`, `stream-deck`, `testing`, and similarly concrete folders. Do not restore schema-driven UI registries or generic field buckets.\n\n* **DO: Keep rendering layers separate**: SVG composition belongs in `view-rendering\u002F`; low-level widget primitives and icon catalogs belong in `widgets\u002F`; metric value formatting and `WidgetData` builders belong in `metrics\u002F`; polling, stores, registries, and source adapters belong in `runtime\u002F`; settings codec\u002Fresolver\u002Fdefaults belong in `settings\u002F`.\n",{"name":5,"description":7},"main","64d15e4ac8c0ccb361e0eb16586488536cea98d7",".agents\u002Fskills\u002Ftypescript-coding-style",2,"https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics","https:\u002F\u002Fshometrics.github.io\u002F","https:\u002F\u002Fgithub.com\u002FShoMetrics","2026-10-04 14:26:56",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add ShoMetrics\u002Fsho_metrics --skill typescript-coding-style",{"tool":38,"command":39},"bunx","bunx skills add ShoMetrics\u002Fsho_metrics --skill typescript-coding-style",{"tool":41,"command":42},"pnpm","pnpm dlx skills add ShoMetrics\u002Fsho_metrics --skill typescript-coding-style","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-coding-style\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"THIRD_PARTY_LICENSE.md","REFERENCE","参考文档",610,"https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-coding-style\u002FTHIRD_PARTY_LICENSE.md",[53,60,67,74,81,88],{"skillNo":54,"name":55,"nameZh":6,"description":56,"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},"01M75VEMY4JDE12D1AVSVPYB4T","technical-architecture","Read this whenever you need to make any high level code changes, understand why a design choice is made.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftechnical-architecture\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},"01M75VEK2SJNRYVQB9FNZY0BDR","systeminformation","Refer when you need to use the systeminformation API.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsysteminformation\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},"01M75VEH4R5AQHXANPB20P5DJV","stream-deck-sdk-v2","This skill is for stream deck SDK Docs. Refer when you need to make stream deck plugin code changes.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstream-deck-sdk-v2\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},"01M75VEF20YS8X10DTR2XYQXTY","proto","Read this before designing\u002Fwriting .proto files. Do not read if you are simply consuming proto.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fproto\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},"01M75VEC96245QS2T835958R84","performance","Use when changing lifecycle hooks, polling, rendering, caching, startup, IPC, benchmarks, throttling, queueing, or any code that may run often enough to affect responsiveness or resource usage.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fperformance\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},"01M75VE8NZ9VWAX6AQ9MPW3F1N","naming-guidance","Use when making or reviewing naming changes in this repo, including function verb choices, domain vocabulary, boundary vocabulary, file\u002Ftype\u002Fexport names, stored\u002Fresolved\u002Fsettings field names, renderer contract names, and historical vocabulary cleanup.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fnaming-guidance\u002FSKILL.md",[],[]]