[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75VEC96245QS2T835958R84":3,"skill-same:01M75VEC96245QS2T835958R84":46},{"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},"01M75VEC96245QS2T835958R84","performance",null,"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.","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\u002Fperformance\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: performance\ndescription: 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.\n---\n\n# Performance Guard\n\nPerformance work starts with frequency and ownership, not clever code.\n\n## Core Rules\n\n* **DO: Classify the frequency first**: Is this startup-only, lifecycle entry\u002Fexit, Property Inspector open, settings change, polling tick, render update, per SVG element, or per metric sample? Treat hot paths and lifecycle paths differently. As a rule of thumb: per render\u002Fsample\u002Felement and work that can run at least once per second is hot; user edits and action lifecycle events are interactive\u002Flifecycle; app launch and Property Inspector opening are startup. In this repo, lifecycle entry\u002Fexit includes Stream Deck action appear\u002Fdisappear and Property Inspector appear.\n\n* **DO: Measure the boundary before optimizing internals**: Add timing around the suspected transport, queue, rasterizer, SDK call, process call, or codec boundary. Do not guess from code shape. \"Proven\" means explicit timing logs, benchmark numbers, or production logs around the boundary, with the execution frequency stated. If an architecture-changing fix depends on performance claims, add instrumentation first and report what to measure; do not invent numbers. Obvious hot-path anti-patterns, such as parsing or broad serialization per render, may be fixed directly with a short note on why the cost is self-evident.\n\n* **DO: Keep lifecycle hooks cheap**: Lifecycle entry\u002Fexit hooks may send current state, register cleanup, or start\u002Fstop ownership. They should not rescan hardware, rebuild broad settings, or trigger repeated expensive work unless measured and justified.\n\n* **DO: Clean up every lifecycle-owned state**: Any per-action `Map`, timer, subscription, child process, queue entry, or runtime cache must have a clear cleanup path on disappear\u002Fstop.\n\n* **DO: Coalesce, prioritize, or throttle high-frequency work**: Coalesce repeated work for the same action\u002Ftarget, prioritize user-visible work over background ticks, and throttle\u002Fdebounce noisy sources. Do not increase global render concurrency unless measurements show queue concurrency is the bottleneck and per-render cost is already under control.\n\n* **DO: Prefer first paint from already-available data**: For Property Inspector startup, use current payload\u002Fstate for first paint and refresh asynchronously. The async refresh is a one-time deferred update, not recurring render work. Do not block the first UI render on a transport round trip when a safe current payload exists.\n\n* **DO: Keep runtime facts runtime-only**: Option lists, discovered devices, and other ephemeral facts should not be persisted through settings just to move them between plugin and Property Inspector. Use in-memory state and IPC messages such as `sendToPropertyInspector`.\n\n* **DON'T: Treat benchmarks as architecture decisions by themselves**: A slower codec can be acceptable if it runs only on appearance\u002Fload\u002Fsave. A small hot-path cost can be unacceptable if it runs for every visible key.\n\n* **DON'T: Add recurring work to every render unless the cost is proven cheap**: Avoid per-render native text measurement, full system font loading, broad JSON serialization, or wide fallback discovery. If recurring work is necessary, gate it with change detection, dirty flags, throttling, or a cache; centralize cheap guards instead.\n\n* **DON'T: Split external process queries just because one field looks slow**: If tail latency is shared by the process\u002Fdriver boundary, splitting fields may multiply process launches without removing the tail.\n\n## Red Flags\n\n* A lifecycle hook performs hardware discovery instead of sending already-known runtime state.\n* A hot path encodes\u002Fdecodes settings, performs `JSON.stringify` deep comparisons, or scans broad object graphs.\n* A render path enables full system font loading or expensive fallback discovery by default.\n* A queue fix increases global concurrency before proving the bottleneck is concurrency.\n* A timeout is shorter than observed successful tail latency.\n* A runtime option list, discovered device list, or resolved default is written with `setSettings()`.\n* A manifest action UUID is used as an action instance cache key; always use the unique per-instance action context\u002Fid instead.\n* Logs are emitted per frame\u002Ftick instead of as aggregated or throttled summaries.\n\n## Final Check\n\nBefore finishing a non-trivial performance-sensitive change, include a **Performance Final Check** section in the response and answer:\n\n1. What is the execution frequency?\n2. What evidence identifies the bottleneck or risk?\n3. What state is allocated, and where is it released?\n4. Does this work run only when values change?\n5. If this is low-frequency, confirm micro-optimization is not needed and explain why. Still answer cleanup and guard questions.\n6. What test, log, or guard prevents duplicate work, flooding, or leaks?\n\nFor single-line or obviously low-risk fixes, a one-sentence frequency and cleanup note is enough.\n","# Performance Guard\n\nPerformance work starts with frequency and ownership, not clever code.\n\n## Core Rules\n\n* **DO: Classify the frequency first**: Is this startup-only, lifecycle entry\u002Fexit, Property Inspector open, settings change, polling tick, render update, per SVG element, or per metric sample? Treat hot paths and lifecycle paths differently. As a rule of thumb: per render\u002Fsample\u002Felement and work that can run at least once per second is hot; user edits and action lifecycle events are interactive\u002Flifecycle; app launch and Property Inspector opening are startup. In this repo, lifecycle entry\u002Fexit includes Stream Deck action appear\u002Fdisappear and Property Inspector appear.\n\n* **DO: Measure the boundary before optimizing internals**: Add timing around the suspected transport, queue, rasterizer, SDK call, process call, or codec boundary. Do not guess from code shape. \"Proven\" means explicit timing logs, benchmark numbers, or production logs around the boundary, with the execution frequency stated. If an architecture-changing fix depends on performance claims, add instrumentation first and report what to measure; do not invent numbers. Obvious hot-path anti-patterns, such as parsing or broad serialization per render, may be fixed directly with a short note on why the cost is self-evident.\n\n* **DO: Keep lifecycle hooks cheap**: Lifecycle entry\u002Fexit hooks may send current state, register cleanup, or start\u002Fstop ownership. They should not rescan hardware, rebuild broad settings, or trigger repeated expensive work unless measured and justified.\n\n* **DO: Clean up every lifecycle-owned state**: Any per-action `Map`, timer, subscription, child process, queue entry, or runtime cache must have a clear cleanup path on disappear\u002Fstop.\n\n* **DO: Coalesce, prioritize, or throttle high-frequency work**: Coalesce repeated work for the same action\u002Ftarget, prioritize user-visible work over background ticks, and throttle\u002Fdebounce noisy sources. Do not increase global render concurrency unless measurements show queue concurrency is the bottleneck and per-render cost is already under control.\n\n* **DO: Prefer first paint from already-available data**: For Property Inspector startup, use current payload\u002Fstate for first paint and refresh asynchronously. The async refresh is a one-time deferred update, not recurring render work. Do not block the first UI render on a transport round trip when a safe current payload exists.\n\n* **DO: Keep runtime facts runtime-only**: Option lists, discovered devices, and other ephemeral facts should not be persisted through settings just to move them between plugin and Property Inspector. Use in-memory state and IPC messages such as `sendToPropertyInspector`.\n\n* **DON'T: Treat benchmarks as architecture decisions by themselves**: A slower codec can be acceptable if it runs only on appearance\u002Fload\u002Fsave. A small hot-path cost can be unacceptable if it runs for every visible key.\n\n* **DON'T: Add recurring work to every render unless the cost is proven cheap**: Avoid per-render native text measurement, full system font loading, broad JSON serialization, or wide fallback discovery. If recurring work is necessary, gate it with change detection, dirty flags, throttling, or a cache; centralize cheap guards instead.\n\n* **DON'T: Split external process queries just because one field looks slow**: If tail latency is shared by the process\u002Fdriver boundary, splitting fields may multiply process launches without removing the tail.\n\n## Red Flags\n\n* A lifecycle hook performs hardware discovery instead of sending already-known runtime state.\n* A hot path encodes\u002Fdecodes settings, performs `JSON.stringify` deep comparisons, or scans broad object graphs.\n* A render path enables full system font loading or expensive fallback discovery by default.\n* A queue fix increases global concurrency before proving the bottleneck is concurrency.\n* A timeout is shorter than observed successful tail latency.\n* A runtime option list, discovered device list, or resolved default is written with `setSettings()`.\n* A manifest action UUID is used as an action instance cache key; always use the unique per-instance action context\u002Fid instead.\n* Logs are emitted per frame\u002Ftick instead of as aggregated or throttled summaries.\n\n## Final Check\n\nBefore finishing a non-trivial performance-sensitive change, include a **Performance Final Check** section in the response and answer:\n\n1. What is the execution frequency?\n2. What evidence identifies the bottleneck or risk?\n3. What state is allocated, and where is it released?\n4. Does this work run only when values change?\n5. If this is low-frequency, confirm micro-optimization is not needed and explain why. Still answer cleanup and guard questions.\n6. What test, log, or guard prevents duplicate work, flooding, or leaks?\n\nFor single-line or obviously low-risk fixes, a one-sentence frequency and cleanup note is enough.\n",{"name":5,"description":7},"main","64d15e4ac8c0ccb361e0eb16586488536cea98d7",".agents\u002Fskills\u002Fperformance",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 performance",{"tool":38,"command":39},"bunx","bunx skills add ShoMetrics\u002Fsho_metrics --skill performance",{"tool":41,"command":42},"pnpm","pnpm dlx skills add ShoMetrics\u002Fsho_metrics --skill performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fperformance\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M75VEQBG6NEP2FV89CM1ARJ1","typescript-coding-style","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.","https:\u002F\u002Fgithub.com\u002FShoMetrics\u002Fsho_metrics\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-coding-style\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"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":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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",[],[]]