[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74XGS48Z47HH32HVZBV2DCB":3,"skill-same:01M74XGS48Z47HH32HVZBV2DCB":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M74XGS48Z47HH32HVZBV2DCB","field-log-duration-clustering-race-diagnosis",null,"A device-only timing bug (e.g. speech recognition \"no speech detected\", NFC\u002FAVFoundation timeouts) can't be reproduced in the Simulator, and you're about to ship a speculative fix for a suspected timer-arms-before-async-task-exists race with no evidence it's the real cause. Use when a hardware-gated framework (on-device Speech, CoreNFC, AVFoundation capture) fails intermittently only on real devices, you have structured diagnostic logs already recording per-attempt duration and outcome, and you need to confirm or refute a race hypothesis — and pick a numeric fix constant — without a repro.","abhijitbansal\u002Fclaude-skills","abhijitbansal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271802621?v=4","01M74XA5M33XYNJ2D2TJDS7W9E","01M74XA5MQ8GMWJW10ZJ4V0NVG",1,"MIT","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-dev\u002Fskills\u002Ffield-log-duration-clustering-race-diagnosis\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: field-log-duration-clustering-race-diagnosis\ndescription: A device-only timing bug (e.g. speech recognition \"no speech detected\", NFC\u002FAVFoundation timeouts) can't be reproduced in the Simulator, and you're about to ship a speculative fix for a suspected timer-arms-before-async-task-exists race with no evidence it's the real cause. Use when a hardware-gated framework (on-device Speech, CoreNFC, AVFoundation capture) fails intermittently only on real devices, you have structured diagnostic logs already recording per-attempt duration and outcome, and you need to confirm or refute a race hypothesis — and pick a numeric fix constant — without a repro.\n---\n\n# Field-Log Duration Clustering Confirms a Startup-Race Timeout Hypothesis\n\n## Symptom\n\nA hardware-gated framework (on-device Speech recognition, CoreNFC, AVFoundation\ncapture) intermittently times out or fails on real devices — e.g.\n`.noSpeechDetected` — with no way to reproduce it, because the framework\ndoesn't run in the Simulator at all. You have a hypothesis (\"the timeout timer\narms before the async task it's supposed to be timing even exists, so it races\nstartup\u002Fwarm-up latency instead of detecting a genuine pause\") but no way to\ntest it, so any fix would ship purely speculative.\n\n## Root cause\n\nA silence\u002Ftimeout timer (e.g. `armSilenceTimer()`) is started before the\nguarded async operation (e.g. `recognitionTask(with:)`) is actually created.\nThe timer's countdown therefore includes framework startup\u002Fwarm-up latency,\nnot just genuine mid-operation silence. On a device, startup latency is\nvariable and sometimes exceeds the timeout, producing false failures that look\nlike real timeouts — but only on the very first arm of the timer, not on\nsubsequent re-arms once the async task is already running.\n\n## Fix\n\n1. **Instrument first, cheap, ship-now.** If the app already has structured\n   diagnostic logging that records per-attempt duration and outcome, no new\n   code is needed — go straight to analysis. If it doesn't, add minimal\n   logging (duration + outcome per attempt) and ship that alone before\n   attempting a fix.\n2. **Mine the field log for a duration cluster near the suspect threshold.**\n   Pull every failure's duration and outcome. If failures cluster tightly\n   around a duration close to the suspect timer's threshold — while the rare\n   success takes meaningfully longer — that's quantitative confirmation of the\n   race hypothesis without needing a repro. (Evidence below: 9 of 10 failures\n   within ~250ms of each other, right at timeout-plus-startup-overhead; the 1\n   success took roughly double that.)\n3. **Split the single timeout constant into two.** A short one for genuine\n   mid-utterance\u002Fmid-operation re-arming (the original value, still correct\n   once the async task is live), and a longer, empirically-derived one for the\n   very first arm before any result exists yet. Derive the first-arm value\n   from the observed failure cluster — e.g. roughly 2x the worst individual\n   observed failure duration, while staying comfortably under the one\n   successful attempt's total duration — not a round-number guess.\n4. **Instrument the fix with the same signal.** Keep the duration\u002Foutcome log\n   in place after the fix ships. On the next real-world use, the same signal\n   tells you whether the fix worked (failures disappear) or the constant needs\n   another bump (failures persist, but at a new shifted duration near the new\n   threshold).\n\nThis generalizes to any mobile\u002Fembedded timing bug that only manifests on real\nhardware and can't be reproduced in a simulator\u002Femulator\u002FCI: instrument first,\nthen use the field-log duration distribution as the evidence base for both\ndiagnosing the race and picking the numeric fix parameter, rather than\nguessing or shipping an untested speculative fix blind.\n\n## Evidence\n\nSession 0011, Phase 7 (00:55), Cubby iOS: \"Analysis of every [Voice] entry ...\n9 of 10 failed with `.noSpeechDetected` at a near-identical 1868–2111ms total\nduration; the 1 success took 4226ms ... close to a textbook confirmation of\nthe plan's leading hypothesis: `armSilenceTimer()` arms its 1.5s countdown\nbefore `recognitionTask(with:)` is even called.\"\n\nFix: split into `speechSilenceTimeoutSeconds` (re-arm) vs new\n`speechInitialSilenceTimeoutSeconds` (first arm, 4.0s — \"roughly 2x the worst\nindividual observed failure duration ... while staying comfortably under the\none successful attempt's 4.2s total\"), with the reviewer noting the same log\nsignal will confirm or refute the new constant on the next real attempt.\n\n## Related skills\n\n- `avfoundation-capture-delivery-watchdog` — a related timeout\u002Fwatchdog\n  pattern for AVFoundation capture delivery on real devices.\n- `mainactor-launch-watchdog-audit` — launch-time watchdog timing audited\n  under MainActor-default isolation.\n","# Field-Log Duration Clustering Confirms a Startup-Race Timeout Hypothesis\n\n## Symptom\n\nA hardware-gated framework (on-device Speech recognition, CoreNFC, AVFoundation\ncapture) intermittently times out or fails on real devices — e.g.\n`.noSpeechDetected` — with no way to reproduce it, because the framework\ndoesn't run in the Simulator at all. You have a hypothesis (\"the timeout timer\narms before the async task it's supposed to be timing even exists, so it races\nstartup\u002Fwarm-up latency instead of detecting a genuine pause\") but no way to\ntest it, so any fix would ship purely speculative.\n\n## Root cause\n\nA silence\u002Ftimeout timer (e.g. `armSilenceTimer()`) is started before the\nguarded async operation (e.g. `recognitionTask(with:)`) is actually created.\nThe timer's countdown therefore includes framework startup\u002Fwarm-up latency,\nnot just genuine mid-operation silence. On a device, startup latency is\nvariable and sometimes exceeds the timeout, producing false failures that look\nlike real timeouts — but only on the very first arm of the timer, not on\nsubsequent re-arms once the async task is already running.\n\n## Fix\n\n1. **Instrument first, cheap, ship-now.** If the app already has structured\n   diagnostic logging that records per-attempt duration and outcome, no new\n   code is needed — go straight to analysis. If it doesn't, add minimal\n   logging (duration + outcome per attempt) and ship that alone before\n   attempting a fix.\n2. **Mine the field log for a duration cluster near the suspect threshold.**\n   Pull every failure's duration and outcome. If failures cluster tightly\n   around a duration close to the suspect timer's threshold — while the rare\n   success takes meaningfully longer — that's quantitative confirmation of the\n   race hypothesis without needing a repro. (Evidence below: 9 of 10 failures\n   within ~250ms of each other, right at timeout-plus-startup-overhead; the 1\n   success took roughly double that.)\n3. **Split the single timeout constant into two.** A short one for genuine\n   mid-utterance\u002Fmid-operation re-arming (the original value, still correct\n   once the async task is live), and a longer, empirically-derived one for the\n   very first arm before any result exists yet. Derive the first-arm value\n   from the observed failure cluster — e.g. roughly 2x the worst individual\n   observed failure duration, while staying comfortably under the one\n   successful attempt's total duration — not a round-number guess.\n4. **Instrument the fix with the same signal.** Keep the duration\u002Foutcome log\n   in place after the fix ships. On the next real-world use, the same signal\n   tells you whether the fix worked (failures disappear) or the constant needs\n   another bump (failures persist, but at a new shifted duration near the new\n   threshold).\n\nThis generalizes to any mobile\u002Fembedded timing bug that only manifests on real\nhardware and can't be reproduced in a simulator\u002Femulator\u002FCI: instrument first,\nthen use the field-log duration distribution as the evidence base for both\ndiagnosing the race and picking the numeric fix parameter, rather than\nguessing or shipping an untested speculative fix blind.\n\n## Evidence\n\nSession 0011, Phase 7 (00:55), Cubby iOS: \"Analysis of every [Voice] entry ...\n9 of 10 failed with `.noSpeechDetected` at a near-identical 1868–2111ms total\nduration; the 1 success took 4226ms ... close to a textbook confirmation of\nthe plan's leading hypothesis: `armSilenceTimer()` arms its 1.5s countdown\nbefore `recognitionTask(with:)` is even called.\"\n\nFix: split into `speechSilenceTimeoutSeconds` (re-arm) vs new\n`speechInitialSilenceTimeoutSeconds` (first arm, 4.0s — \"roughly 2x the worst\nindividual observed failure duration ... while staying comfortably under the\none successful attempt's 4.2s total\"), with the reviewer noting the same log\nsignal will confirm or refute the new constant on the next real attempt.\n\n## Related skills\n\n- `avfoundation-capture-delivery-watchdog` — a related timeout\u002Fwatchdog\n  pattern for AVFoundation capture delivery on real devices.\n- `mainactor-launch-watchdog-audit` — launch-time watchdog timing audited\n  under MainActor-default isolation.\n",{"name":5,"description":7},"main","153711dd9432743d97f0b33b080ada5798ea623c","plugins\u002Fios-dev\u002Fskills\u002Ffield-log-duration-clustering-race-diagnosis","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fabhijitbansal","2026-11-07 12:59:51",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add abhijitbansal\u002Fclaude-skills --skill field-log-duration-clustering-race-diagnosis",{"tool":35,"command":36},"bunx","bunx skills add abhijitbansal\u002Fclaude-skills --skill field-log-duration-clustering-race-diagnosis",{"tool":38,"command":39},"pnpm","pnpm dlx skills add abhijitbansal\u002Fclaude-skills --skill field-log-duration-clustering-race-diagnosis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-dev\u002Fskills\u002Ffield-log-duration-clustering-race-diagnosis\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M74XTV2V7GZM8FDBXQZZ74VX","second-wind","Orchestrate long unattended Claude Code runs across multiple repos with the wind CLI. Use when the user wants to run Claude Code overnight, resume sessions after the 5-hour usage limit, run Claude in many repos at once via tmux, or says \"set up second wind\", \"wind up\", \"overnight run\", \"resume after limit\", \"usage limit orchestrator\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fsecond-wind\u002Fskills\u002Fsecond-wind\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M74XTPGN1HDQSKGCZZX0AZPC","structured-output-adaptive-thinking-token-bloat","A Claude API call using output_config.format (json_schema structured outputs) with thinking:{type:\"adaptive\"} burns most of its output budget on thinking (observed ~21k of ~24k tokens) without improving JSON quality, making the run up to ~5x more expensive than the same call with thinking omitted — use when calling the Messages API with a json_schema output format for extraction, ranking, classification, or summarization tasks, or when a schema-constrained call's usage.output_tokens is far larger than the returned JSON.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fstructured-output-adaptive-thinking-token-bloat\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M74XTKTRHAMC2JFHQ1P1E6GR","review","Apply a code-review lens to a diff, branch, or file — find correctness bugs, security issues, and quality problems, ranked by severity, with a concrete fix for each. Use when the user says \"review this\", \"review my diff\", \"check this PR\", \"look this over before I commit\", or \"is this safe\". Skip when the user wants the code written, not reviewed.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M74XTGGCW7GWDDHPEMJQC7Y1","refresh","Rebuild the prompt-craft command registry and usage profile, and print a summary of installed commands and your personalized recommendations. Use when you install or update plugins and want the advisor to pick them up immediately, or say \"refresh prompt-craft\", \"rebuild the command registry\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefresh\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M74XTCNGNR4G19P3Z95KTHQJ","refactor","Apply a refactoring lens — restructure code without changing behavior, guarded by tests that pass before and after. Use when the user says \"refactor\", \"clean this up\", \"extract this\", \"simplify this\", \"reduce duplication\", or \"make this readable\" on existing working code. Skip when the change is meant to alter behavior (that's a feature or a fix).","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefactor\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M74XT9FKXN3N106G7Q3X56XR","plan","Decompose a non-trivial task into an explicit, tracked plan with goals and per-step acceptance criteria before writing code. Use when the user says \"plan this\", \"break this down\", \"what's the plan\", or asks for a multi-step feature\u002Frefactor that touches more than one file. Pairs with plan mode. Skip for single-edit changes that need no decomposition.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fplan\u002FSKILL.md",[],[]]