[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BXBXP6AZPRRN9P3S92N6C6":3,"skill-same:01M7BXBXP6AZPRRN9P3S92N6C6":55},{"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":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BXBXP6AZPRRN9P3S92N6C6","vital-sign-extraction",null,"Estimate heart rate (HR) and breathing rate (BR) in bpm from a cleaned 1-D physiological time series such as radar phase, WiFi CSI amplitude, PPG, or a chest-motion signal. Use when Claude needs to choose HR\u002FBR bandpass edges, pick a peak frequency from a noisy band, reject the HR second harmonic that often dominates the fundamental, handle respiration-harmonic leakage into the HR band on slow breathers, or flag low-confidence estimates. Not for arrhythmia \u002F beat-to-beat analysis, multi-subject source separation, or rapidly non-stationary rates.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FOpus47-OriginalSkill-79Tasks-20260920\u002Fruns\u002Fopus47-original-skill\u002Fradar-vital-signs-opus47-original-skill-r001\u002Finputs\u002Fskills\u002Fvital-sign-extraction\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vital-sign-extraction\ndescription: Estimate heart rate (HR) and breathing rate (BR) in bpm from a cleaned 1-D physiological time series such as radar phase, WiFi CSI amplitude, PPG, or a chest-motion signal. Use when Claude needs to choose HR\u002FBR bandpass edges, pick a peak frequency from a noisy band, reject the HR second harmonic that often dominates the fundamental, handle respiration-harmonic leakage into the HR band on slow breathers, or flag low-confidence estimates. Not for arrhythmia \u002F beat-to-beat analysis, multi-subject source separation, or rapidly non-stationary rates.\n---\n\n# Vital-Sign Extraction\n\nGiven a cleaned 1-D periodic signal (radar phase, WiFi CSI, PPG, piezo), estimate heart rate and breathing rate in bpm.\n\nUpstream ingestion of radar captures is the `radar-signal-processing` skill. This skill picks up after a 1-D signal is extracted.\n\n## Pipeline (do every step)\n\n1. **Split into BR and HR bands** with two separate bandpasses:\n   - BR: `butter(4, [0.08, 0.5], btype='band', fs=fs)` — 4.8–30 bpm\n   - HR: `butter(4, [0.7, 3.0], btype='band', fs=fs)` — 42–180 bpm\n2. **Peak frequency via zero-padded Welch PSD:**\n   ```python\n   nperseg = min(len(x), int(fs * 25))\n   f, p = welch(x, fs=fs, nperseg=nperseg, noverlap=nperseg\u002F\u002F2,\n                nfft=8*nperseg, detrend='constant')\n   in_band = (f >= lo) & (f \u003C= hi)\n   peak_hz = f[in_band][np.argmax(p[in_band])]\n   ```\n3. **HR harmonic rejection — always run:**\n   ```python\n   f_sub = f_peak \u002F 2.0\n   if 0.7 \u003C= f_sub \u003C= 3.0:\n       p_sub = np.interp(f_sub, f, p)\n       p_top = np.interp(f_peak, f, p)\n       if p_sub > 0.5 * p_top:\n           f_peak = f_sub          # the peak was the 2nd harmonic\n   hr_bpm = f_peak * 60\n   ```\n4. **Cross-check with autocorrelation:**\n   ```python\n   ac = np.correlate(x - x.mean(), x - x.mean(), mode='full')\n   ac = ac[len(ac)\u002F\u002F2:] \u002F ac[len(ac)\u002F\u002F2]\n   lag = int(fs\u002Ff_hi) + np.argmax(ac[int(fs\u002Ff_hi):int(fs\u002Ff_lo)])\n   bpm_ac = 60 * fs \u002F lag\n   ```\n   If `abs(bpm_ac - bpm_psd) > 5`, flag as low confidence.\n\n## Decision rules\n\n| If | Then |\n|---|---|\n| `f_peak\u002F2` in HR band and `p_sub > 0.5 × p_top` | Pick sub-harmonic (fundamental) |\n| PSD and autocorrelation disagree by > 5 bpm | Flag low confidence; do not commit to one value |\n| BR estimate \u003C 10 bpm (slow breather) | Expect HR-band contamination — see [references\u002Fharmonic-pitfalls.md](references\u002Fharmonic-pitfalls.md) |\n| HR > 150 bpm (tachycardia) | Widen HR band upper to 3.3 Hz, re-estimate |\n| Clip \u003C 15 s long | PSD bin spacing > tolerance — prefer autocorrelation or flag inconclusive |\n\n## Sanity checks before reporting\n\n- `BR \u003C HR`. Always true for a live adult at rest — if violated you swapped bands.\n- `HR × duration_minutes ≈ peak count in find_peaks(bandpassed_hr)`. Off by 2× → harmonic error slipped through.\n- Resting adult plausibility: HR 50–90 bpm, BR 10–20 bpm. Way outside → re-check band edges, decimation factor, and harmonic rejection.\n\n## Why the band edges above, not textbook 0.1–0.5 \u002F 0.8–2.5\n\nSee [references\u002Fband-rationale.md](references\u002Fband-rationale.md). Short version: textbook bands miss slow breathers (supine clinical subjects breathe 5–10 bpm) and bradycardia (athletes, post-tilt-down).\n\n## Why HR-harmonic and BR-leakage are critical\n\nSee [references\u002Fharmonic-pitfalls.md](references\u002Fharmonic-pitfalls.md). These are the two failure modes that cost naïve pipelines the most accuracy on real data.\n\n## Not in scope\n\n- Arrhythmia \u002F irregular rhythms — use R-peak \u002F foot detection + RR-interval analysis, not PSD.\n- Multiple subjects in one signal — run source separation first.\n- Rapidly non-stationary rate (exercise ramp) — use a spectrogram, not single-window PSD.\n","# Vital-Sign Extraction\n\nGiven a cleaned 1-D periodic signal (radar phase, WiFi CSI, PPG, piezo), estimate heart rate and breathing rate in bpm.\n\nUpstream ingestion of radar captures is the `radar-signal-processing` skill. This skill picks up after a 1-D signal is extracted.\n\n## Pipeline (do every step)\n\n1. **Split into BR and HR bands** with two separate bandpasses:\n   - BR: `butter(4, [0.08, 0.5], btype='band', fs=fs)` — 4.8–30 bpm\n   - HR: `butter(4, [0.7, 3.0], btype='band', fs=fs)` — 42–180 bpm\n2. **Peak frequency via zero-padded Welch PSD:**\n   ```python\n   nperseg = min(len(x), int(fs * 25))\n   f, p = welch(x, fs=fs, nperseg=nperseg, noverlap=nperseg\u002F\u002F2,\n                nfft=8*nperseg, detrend='constant')\n   in_band = (f >= lo) & (f \u003C= hi)\n   peak_hz = f[in_band][np.argmax(p[in_band])]\n   ```\n3. **HR harmonic rejection — always run:**\n   ```python\n   f_sub = f_peak \u002F 2.0\n   if 0.7 \u003C= f_sub \u003C= 3.0:\n       p_sub = np.interp(f_sub, f, p)\n       p_top = np.interp(f_peak, f, p)\n       if p_sub > 0.5 * p_top:\n           f_peak = f_sub          # the peak was the 2nd harmonic\n   hr_bpm = f_peak * 60\n   ```\n4. **Cross-check with autocorrelation:**\n   ```python\n   ac = np.correlate(x - x.mean(), x - x.mean(), mode='full')\n   ac = ac[len(ac)\u002F\u002F2:] \u002F ac[len(ac)\u002F\u002F2]\n   lag = int(fs\u002Ff_hi) + np.argmax(ac[int(fs\u002Ff_hi):int(fs\u002Ff_lo)])\n   bpm_ac = 60 * fs \u002F lag\n   ```\n   If `abs(bpm_ac - bpm_psd) > 5`, flag as low confidence.\n\n## Decision rules\n\n| If | Then |\n|---|---|\n| `f_peak\u002F2` in HR band and `p_sub > 0.5 × p_top` | Pick sub-harmonic (fundamental) |\n| PSD and autocorrelation disagree by > 5 bpm | Flag low confidence; do not commit to one value |\n| BR estimate \u003C 10 bpm (slow breather) | Expect HR-band contamination — see [references\u002Fharmonic-pitfalls.md](references\u002Fharmonic-pitfalls.md) |\n| HR > 150 bpm (tachycardia) | Widen HR band upper to 3.3 Hz, re-estimate |\n| Clip \u003C 15 s long | PSD bin spacing > tolerance — prefer autocorrelation or flag inconclusive |\n\n## Sanity checks before reporting\n\n- `BR \u003C HR`. Always true for a live adult at rest — if violated you swapped bands.\n- `HR × duration_minutes ≈ peak count in find_peaks(bandpassed_hr)`. Off by 2× → harmonic error slipped through.\n- Resting adult plausibility: HR 50–90 bpm, BR 10–20 bpm. Way outside → re-check band edges, decimation factor, and harmonic rejection.\n\n## Why the band edges above, not textbook 0.1–0.5 \u002F 0.8–2.5\n\nSee [references\u002Fband-rationale.md](references\u002Fband-rationale.md). Short version: textbook bands miss slow breathers (supine clinical subjects breathe 5–10 bpm) and bradycardia (athletes, post-tilt-down).\n\n## Why HR-harmonic and BR-leakage are critical\n\nSee [references\u002Fharmonic-pitfalls.md](references\u002Fharmonic-pitfalls.md). These are the two failure modes that cost naïve pipelines the most accuracy on real data.\n\n## Not in scope\n\n- Arrhythmia \u002F irregular rhythms — use R-peak \u002F foot detection + RR-interval analysis, not PSD.\n- Multiple subjects in one signal — run source separation first.\n- Rapidly non-stationary rate (exercise ramp) — use a spectrogram, not single-window PSD.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FOpus47-OriginalSkill-79Tasks-20260920\u002Fruns\u002Fopus47-original-skill\u002Fradar-vital-signs-opus47-original-skill-r001\u002Finputs\u002Fskills\u002Fvital-sign-extraction",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill vital-sign-extraction",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill vital-sign-extraction",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill vital-sign-extraction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FOpus47-OriginalSkill-79Tasks-20260920\u002Fruns\u002Fopus47-original-skill\u002Fradar-vital-signs-opus47-original-skill-r001\u002Finputs\u002Fskills\u002Fvital-sign-extraction\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fband-rationale.md","REFERENCE","参考文档",2692,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FOpus47-OriginalSkill-79Tasks-20260920\u002Fruns\u002Fopus47-original-skill\u002Fradar-vital-signs-opus47-original-skill-r001\u002Finputs\u002Fskills\u002Fvital-sign-extraction\u002Freferences\u002Fband-rationale.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fharmonic-pitfalls.md",4042,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FOpus47-OriginalSkill-79Tasks-20260920\u002Fruns\u002Fopus47-original-skill\u002Fradar-vital-signs-opus47-original-skill-r001\u002Finputs\u002Fskills\u002Fvital-sign-extraction\u002Freferences\u002Fharmonic-pitfalls.md",[56,63,70,77,82,87],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":78,"name":58,"nameZh":6,"description":59,"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},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":83,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":88,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]