[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECHPN6TQRTYAZKCBA54WET":3,"skill-same:01M7ECHPN6TQRTYAZKCBA54WET":131},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7ECHPN6TQRTYAZKCBA54WET","neurokit2",null,"Use NeuroKit2 to build or audit reproducible research workflows for physiological time-series preprocessing, event\u002Finterval analysis, multimodal alignment, variability, and complexity. Trigger when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: neurokit2\ndescription: Use NeuroKit2 to build or audit reproducible research workflows for physiological time-series preprocessing, event\u002Finterval analysis, multimodal alignment, variability, and complexity. Trigger when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.\nlicense: MIT\ncompatibility: Python 3.10+ and uv; pinned workflows use NeuroKit2 0.2.13. Core processing needs NumPy, SciPy, pandas, scikit-learn, matplotlib, PyWavelets, requests, and setuptools; selected EEG, cvxEDA, plotting, file-format, and RQA features need separately locked optional packages.\nallowed-tools: Read Write Edit Bash Glob\nmetadata:\n  version: \"1.1\"\n  skill-author: K-Dense Inc.\n---\n\n# NeuroKit2\n\n## Scope and evidence cutoff\n\nUse this skill for method-aware, reproducible biosignal research with NeuroKit2. The\nsnapshot was checked on **2026-07-23** against:\n\n- stable PyPI **0.2.13**, released 2026-03-02;\n- Python metadata (`>=3.10`; classifiers 3.10–3.14) and wheel dependencies;\n- GitHub release notes\u002Ftags, `NEWS.rst`, source at tag `v0.2.13`;\n- official API pages\u002Fexamples (the live site identified itself as\n  `0.2.13.dev214`); and\n- pinned 0.2.13 runtime signatures and synthetic output schemas.\n\nThe live documentation can be ahead of the stable wheel. Prefer the pinned runtime\nfor reproducible work and name both versions if consulting development docs.\n\n## Boundary\n\nNeuroKit2 is a research and educational toolbox. Do **not** present its output as:\n\n- a diagnosis, treatment recommendation, patient-monitoring decision, or alarm;\n- validation, certification, or regulatory evidence for a medical device; or\n- proof that a physiological construct is measured validly in a new sensor,\n  protocol, environment, population, or disease group.\n\nValidate acquisition hardware, electrode\u002Foptode placement, units, sampling and clock\naccuracy, preprocessing, detector\u002Fdecomposition method, population, task, and\noutcomes for the intended study. Preserve raw data and an auditable exclusion log.\nUse deidentified local files only; do not place PHI in prompts, logs, examples, or\nbundled fixtures.\n\n## Reproducible installation\n\n```bash\nuv pip install \"neurokit2==0.2.13\"\n```\n\nFor optional features, create a uv project, add only the packages actually required at\nreviewed exact versions, and commit\u002Freview the resulting `uv.lock` before\n`uv sync --locked`. NeuroKit2 exposes an upstream `full` extra, but this skill\nintentionally does not install that floating transitive set in an automated workflow.\nOptional capabilities can require MNE, cvxopt, Plotly, PyEMD, pyRQA, Pillow, OpenCV,\nor file readers. Record the resolved environment with the analysis. Provision any MNE\ndata\u002Ftemplate download as an explicit, checksummed study input. Do not install a moving\ndevelopment branch for a reproducible study.\n\n## Required data contract\n\nBefore processing, record:\n\n1. signal identity and sensor\u002Fchannel configuration;\n2. native sampling rate in Hz and physical unit (or explicitly `arbitrary_unit`);\n3. clock, timestamp origin, drift correction, and synchronization evidence;\n4. polarity\u002Forientation and acquisition-side filters\u002Fgain;\n5. missing samples, discontinuities, saturation, flatlines, motion, and annotations;\n6. whether event onsets are zero-based sample indices or seconds;\n7. planned preprocessing order, methods, parameters, exclusions, and outputs; and\n8. participant-level grouping needed to prevent leakage in later statistics.\n\nNever infer units from a column name. Do not silently treat samples as milliseconds,\nvolts, microsiemens, or arbitrary units.\n\n## Core workflow\n\n### 1. Inspect before transforming\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Finspect_signal.py \\\n  --input recording.csv --root . --deidentified \\\n  --columns ECG,RSP,EDA --time-column time_s \\\n  --units ECG=mV,RSP=a.u.,EDA=uS\n```\n\nThe inspector is bounded and emits no row values or paths. Resolve non-monotonic time,\nduplicate samples, gaps, non-finite values, flat runs, and sampling-rate disagreement\nbefore filtering.\n\n### 2. Preserve preprocessing order\n\nUse this default reasoning order, adapting it to the acquisition and cited method:\n\n1. preserve immutable raw signal and annotations;\n2. verify time base, units, polarity, clipping, gaps, and artifacts;\n3. segment at long gaps; only interpolate short gaps under a declared policy;\n4. apply modality-specific cleaning at the native sampling rate;\n5. detect peaks\u002Fonsets or decompose components;\n6. inspect quality outputs and raw overlays;\n7. correct peaks only with logged categories and sensitivity checks;\n8. derive rates\u002Ffeatures;\n9. align continuous modalities on a declared common time grid; and\n10. map event indices to that grid, epoch, baseline, and analyze.\n\nDo not resample binary markers or peak-index arrays as ordinary continuous signals.\nMap their timestamps to the target grid. Filtering and interpolation can create edge\nartifacts and false precision; retain masks for padded, missing, and rejected regions.\n\n### 3. Treat schemas as runtime observations\n\nReturn columns depend on NeuroKit2 version, function, method, signal availability, and\nanalysis mode. Never claim that one column list is universal.\n\n```python\nsignals, info = nk.ecg_process(ecg, sampling_rate=250)\nobserved_schema = {\n    \"columns\": list(signals.columns),\n    \"info_keys\": sorted(info),\n}\n```\n\nPersist the observed schema with package version, method parameters, sampling rate, and\nquality\u002Fexclusion summary. Reference files list verified default schemas for 0.2.13,\nnot guarantees for every method.\n\n## Current patterns\n\n### ECG, corrected peaks, and duration-aware HRV\n\nIn stable 0.2.13, `ecg_process()` performs cleaning, R-peak detection with\n`correct_artifacts=True`, rate, default `averageQRS` quality, DWT delineation, and phase.\n\n```python\nsignals, info = nk.ecg_process(ecg, sampling_rate=250, method=\"neurokit\")\ntime_hrv = nk.hrv_time(info, sampling_rate=250)\n```\n\nInspect `ECG_R_Peaks_Uncorrected` and `ECG_fixpeaks_*`; a corrected series is not\nautomatically a valid NN series. For frequency\u002Fnonlinear HRV, enforce metric-specific\nduration and beat-count requirements. Five minutes is the conventional short-term\nreference; ULF is a long-recording measure, and VLF interpretation from short records\nis unsafe. Do not interpret LF\u002FHF as a direct sympathovagal balance. PPG pulse-rate\nvariability is not interchangeable with ECG HRV.\n\nUse the bounded pipeline:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fecg_hrv_pipeline.py \\\n  --synthetic --sampling-rate 250 --duration 300 \\\n  --domains time,frequency,nonlinear\n```\n\n### EDA with explicit decomposition\n\nThe stable default `eda_process(method=\"neurokit\")` uses high-pass tonic\u002Fphasic\ndecomposition, not cvxEDA. Choose and report decomposition explicitly:\n\n```python\nclean = nk.eda_clean(eda, sampling_rate=100, method=\"neurokit\")\ncomponents = nk.eda_phasic(clean, sampling_rate=100, method=\"highpass\")\nmarkers, info = nk.eda_peaks(\n    components[\"EDA_Phasic\"],\n    sampling_rate=100,\n    method=\"neurokit\",\n    amplitude_min=0.1,\n)\n```\n\nFor `neurokit`\u002F`kim2004`, `amplitude_min` is relative to the largest detected response;\nit is not an absolute microsiemens threshold. cvxEDA needs optional `cvxopt`.\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Feda_pipeline.py \\\n  --synthetic --sampling-rate 100 --duration 60 \\\n  --phasic-method highpass --peak-method neurokit\n```\n\n### Events, epochs, and baseline\n\n`events_find()` reports zero-based sample onsets; duration\u002Fspacing arguments are in\nsamples. `epochs_create()` takes epoch limits in seconds.\n\n```python\nevents = nk.events_find(trigger, threshold=0.5, duration_min=2)\nepochs = nk.epochs_create(\n    signals,\n    events,\n    sampling_rate=100,\n    epochs_start=-0.2,\n    epochs_end=0.8,\n    baseline_correction=False,\n)\n```\n\nPlan sample-exact windows first:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fplan_epochs.py \\\n  --events 1000,2500,4000 --event-unit samples \\\n  --sampling-rate 100 --recording-samples 5000 \\\n  --epoch-start -0.2 --epoch-end 0.8 \\\n  --baseline-start -0.2 --baseline-end 0\n```\n\nIn 0.2.13 the epoch slice is end-exclusive, but the generated floating time index\nincludes `epochs_end`. Built-in baseline correction subtracts the epoch mean from its\nstart through `t=0`; use manual correction for a narrower prespecified baseline.\nBoundary epochs are padded and can contain NaN. Decide drop\u002Fpad\u002Ferror before analysis.\n\n### RSA and multimodal processing\n\n`bio_process()` assumes all inputs already share one sampling rate and alignment. It\ndoes not resample, synchronize, estimate drift, or create nested modality dictionaries;\nits `info` output is flat. Unequal lengths are concatenated by index and can introduce\nNaN. RSA is added only when synchronized ECG and RSP are present.\n\nValidate a strict local manifest before calling it:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fvalidate_multimodal.py \\\n  --manifest streams.json --root . --deidentified\n```\n\nAfter independent modality QC and alignment:\n\n```python\nbio_signals, bio_info = nk.bio_process(\n    ecg=ecg_aligned,\n    rsp=rsp_aligned,\n    eda=eda_aligned,\n    sampling_rate=common_rate,\n)\nrsa_summary = nk.hrv_rsa(\n    bio_signals,\n    bio_signals,\n    rpeaks=bio_info,\n    sampling_rate=common_rate,\n    continuous=False,\n)\n```\n\nSummary RSA is a dictionary; `continuous=True` returns a DataFrame with `RSA_P2T` and\n`RSA_Gates` in the verified default workflow. Co-record respiration and report its\nrate\u002Fdepth\u002Fcontext; RSA is not a direct, context-free measure of vagal tone.\n\n### Complexity returns values plus metadata\n\nMost complexity functions in 0.2.13 return `(value, info)`. The convenience function\nalso returns two objects:\n\n```python\nfeatures, details = nk.complexity(signal)  # default which=\"makowski2022\"\nsampen, sampen_info = nk.entropy_sample(signal)\ndfa, dfa_info = nk.fractal_dfa(signal)\n```\n\nThe default convenience selection is not “all measures.” Complexity estimates are\nsensitive to length, stationarity, normalization, delay, dimension, tolerance, scale,\nand implementation. Predefine them and run sensitivity\u002Fsurrogate analyses.\n\n## Bundled command-line helpers\n\nAll helpers reject URLs, path traversal, and symlinks; bound bytes\u002Frows\u002Fchannels; refuse\noverwrite unless `--force`; use lazy scientific imports so `--help` works without\nNeuroKit2; never use pickle; and produce deterministic JSON\u002FCSV. Real-data commands\nrequire `--deidentified`.\n\n| Helper | Purpose |\n|---|---|\n| `scripts\u002Fgenerate_synthetic.py` | Dependency-free deterministic CSV fixtures |\n| `scripts\u002Finspect_signal.py` | Bounded CSV\u002Ftime\u002Fgap\u002Fflatline inspection |\n| `scripts\u002Fecg_hrv_pipeline.py` | Pinned ECG, quality, peak-correction, HRV workflow |\n| `scripts\u002Feda_pipeline.py` | Explicit cleaning, decomposition, SCR workflow |\n| `scripts\u002Fplan_epochs.py` | Sample-exact event, boundary, baseline planner |\n| `scripts\u002Fvalidate_multimodal.py` | Strict units\u002Frates\u002Fclocks\u002Falignment schema validator |\n\nGenerate a fixture without exposing participant data:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fgenerate_synthetic.py \\\n  --output synthetic.csv --root . --duration 30 \\\n  --sampling-rate 250 --seed 42\n```\n\n## Security note\n\nNo example or helper uses Python `eval()` or `exec()`. NeuroKit2 names such as\n`eeg_*`, `events_*`, and `*_eventrelated()` are ordinary library calls. If a static\nscanner reports an eval\u002Fexec pattern based on a substring, inspect the exact line and\nrecord it as a scanner false positive only after confirming no dynamic execution exists.\n\n## References\n\nRead only the files needed for the modality or decision:\nAll bundled Markdown paths below are under `references\u002F`; this skill has no\n`templates\u002F` or `assets\u002F` reference paths.\n\n| File | Contents |\n|---|---|\n| `references\u002Fsignal_processing.md` | Filters, gaps, resampling, peaks, PSD, schemas |\n| `references\u002Fepochs_events.md` | Event indexing, epoch boundaries, baselines |\n| `references\u002Fecg_cardiac.md` | ECG process, quality, delineation, peak correction |\n| `references\u002Fhrv.md` | HRV\u002FRSA inputs, duration, ectopy, interpretation |\n| `references\u002Feda.md` | Cleaning, decomposition, SCR detection |\n| `references\u002Femg.md` | EMG cleaning, amplitude, activation |\n| `references\u002Feog.md` | EOG polarity, MNE default, blink features |\n| `references\u002Feeg.md` | EEG\u002FMNE helpers, power, QC, microstates |\n| `references\u002Fppg.md` | PPG methods, quality semantics, PRV limitations |\n| `references\u002Frsp.md` | Respiration polarity, rate, RRV\u002FRVT\u002FRAV |\n| `references\u002Fbio_module.md` | Multimodal alignment and `bio_*` schemas |\n| `references\u002Fcomplexity.md` | Tuple returns, parameter sensitivity, RQA |\n\n## Primary sources checked 2026-07-23\n\n- [PyPI 0.2.13](https:\u002F\u002Fpypi.org\u002Fproject\u002Fneurokit2\u002F)\n- [Official documentation](https:\u002F\u002Fneuropsychology.github.io\u002FNeuroKit\u002F)\n- [API index](https:\u002F\u002Fneuropsychology.github.io\u002FNeuroKit\u002Ffunctions\u002Findex.html)\n- [GitHub releases](https:\u002F\u002Fgithub.com\u002Fneuropsychology\u002FNeuroKit\u002Freleases)\n- [Makowski et al. (2021), NeuroKit2](https:\u002F\u002Fdoi.org\u002F10.3758\u002Fs13428-020-01516-y)\n- [Pham et al. (2021), HRV tutorial](https:\u002F\u002Fdoi.org\u002F10.3390\u002Fs21123998)\n- [Makowski et al. (2022), complexity comparison](https:\u002F\u002Fdoi.org\u002F10.3390\u002Fe24081036)\n- [SPR guideline index](https:\u002F\u002Fsprweb.org\u002Fguidelines-papers)\n- [Quigley et al. (2024), HR\u002FHRV guidelines](https:\u002F\u002Fdoi.org\u002F10.1111\u002Fpsyp.14604)\n","# NeuroKit2\n\n## Scope and evidence cutoff\n\nUse this skill for method-aware, reproducible biosignal research with NeuroKit2. The\nsnapshot was checked on **2026-07-23** against:\n\n- stable PyPI **0.2.13**, released 2026-03-02;\n- Python metadata (`>=3.10`; classifiers 3.10–3.14) and wheel dependencies;\n- GitHub release notes\u002Ftags, `NEWS.rst`, source at tag `v0.2.13`;\n- official API pages\u002Fexamples (the live site identified itself as\n  `0.2.13.dev214`); and\n- pinned 0.2.13 runtime signatures and synthetic output schemas.\n\nThe live documentation can be ahead of the stable wheel. Prefer the pinned runtime\nfor reproducible work and name both versions if consulting development docs.\n\n## Boundary\n\nNeuroKit2 is a research and educational toolbox. Do **not** present its output as:\n\n- a diagnosis, treatment recommendation, patient-monitoring decision, or alarm;\n- validation, certification, or regulatory evidence for a medical device; or\n- proof that a physiological construct is measured validly in a new sensor,\n  protocol, environment, population, or disease group.\n\nValidate acquisition hardware, electrode\u002Foptode placement, units, sampling and clock\naccuracy, preprocessing, detector\u002Fdecomposition method, population, task, and\noutcomes for the intended study. Preserve raw data and an auditable exclusion log.\nUse deidentified local files only; do not place PHI in prompts, logs, examples, or\nbundled fixtures.\n\n## Reproducible installation\n\n```bash\nuv pip install \"neurokit2==0.2.13\"\n```\n\nFor optional features, create a uv project, add only the packages actually required at\nreviewed exact versions, and commit\u002Freview the resulting `uv.lock` before\n`uv sync --locked`. NeuroKit2 exposes an upstream `full` extra, but this skill\nintentionally does not install that floating transitive set in an automated workflow.\nOptional capabilities can require MNE, cvxopt, Plotly, PyEMD, pyRQA, Pillow, OpenCV,\nor file readers. Record the resolved environment with the analysis. Provision any MNE\ndata\u002Ftemplate download as an explicit, checksummed study input. Do not install a moving\ndevelopment branch for a reproducible study.\n\n## Required data contract\n\nBefore processing, record:\n\n1. signal identity and sensor\u002Fchannel configuration;\n2. native sampling rate in Hz and physical unit (or explicitly `arbitrary_unit`);\n3. clock, timestamp origin, drift correction, and synchronization evidence;\n4. polarity\u002Forientation and acquisition-side filters\u002Fgain;\n5. missing samples, discontinuities, saturation, flatlines, motion, and annotations;\n6. whether event onsets are zero-based sample indices or seconds;\n7. planned preprocessing order, methods, parameters, exclusions, and outputs; and\n8. participant-level grouping needed to prevent leakage in later statistics.\n\nNever infer units from a column name. Do not silently treat samples as milliseconds,\nvolts, microsiemens, or arbitrary units.\n\n## Core workflow\n\n### 1. Inspect before transforming\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Finspect_signal.py \\\n  --input recording.csv --root . --deidentified \\\n  --columns ECG,RSP,EDA --time-column time_s \\\n  --units ECG=mV,RSP=a.u.,EDA=uS\n```\n\nThe inspector is bounded and emits no row values or paths. Resolve non-monotonic time,\nduplicate samples, gaps, non-finite values, flat runs, and sampling-rate disagreement\nbefore filtering.\n\n### 2. Preserve preprocessing order\n\nUse this default reasoning order, adapting it to the acquisition and cited method:\n\n1. preserve immutable raw signal and annotations;\n2. verify time base, units, polarity, clipping, gaps, and artifacts;\n3. segment at long gaps; only interpolate short gaps under a declared policy;\n4. apply modality-specific cleaning at the native sampling rate;\n5. detect peaks\u002Fonsets or decompose components;\n6. inspect quality outputs and raw overlays;\n7. correct peaks only with logged categories and sensitivity checks;\n8. derive rates\u002Ffeatures;\n9. align continuous modalities on a declared common time grid; and\n10. map event indices to that grid, epoch, baseline, and analyze.\n\nDo not resample binary markers or peak-index arrays as ordinary continuous signals.\nMap their timestamps to the target grid. Filtering and interpolation can create edge\nartifacts and false precision; retain masks for padded, missing, and rejected regions.\n\n### 3. Treat schemas as runtime observations\n\nReturn columns depend on NeuroKit2 version, function, method, signal availability, and\nanalysis mode. Never claim that one column list is universal.\n\n```python\nsignals, info = nk.ecg_process(ecg, sampling_rate=250)\nobserved_schema = {\n    \"columns\": list(signals.columns),\n    \"info_keys\": sorted(info),\n}\n```\n\nPersist the observed schema with package version, method parameters, sampling rate, and\nquality\u002Fexclusion summary. Reference files list verified default schemas for 0.2.13,\nnot guarantees for every method.\n\n## Current patterns\n\n### ECG, corrected peaks, and duration-aware HRV\n\nIn stable 0.2.13, `ecg_process()` performs cleaning, R-peak detection with\n`correct_artifacts=True`, rate, default `averageQRS` quality, DWT delineation, and phase.\n\n```python\nsignals, info = nk.ecg_process(ecg, sampling_rate=250, method=\"neurokit\")\ntime_hrv = nk.hrv_time(info, sampling_rate=250)\n```\n\nInspect `ECG_R_Peaks_Uncorrected` and `ECG_fixpeaks_*`; a corrected series is not\nautomatically a valid NN series. For frequency\u002Fnonlinear HRV, enforce metric-specific\nduration and beat-count requirements. Five minutes is the conventional short-term\nreference; ULF is a long-recording measure, and VLF interpretation from short records\nis unsafe. Do not interpret LF\u002FHF as a direct sympathovagal balance. PPG pulse-rate\nvariability is not interchangeable with ECG HRV.\n\nUse the bounded pipeline:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fecg_hrv_pipeline.py \\\n  --synthetic --sampling-rate 250 --duration 300 \\\n  --domains time,frequency,nonlinear\n```\n\n### EDA with explicit decomposition\n\nThe stable default `eda_process(method=\"neurokit\")` uses high-pass tonic\u002Fphasic\ndecomposition, not cvxEDA. Choose and report decomposition explicitly:\n\n```python\nclean = nk.eda_clean(eda, sampling_rate=100, method=\"neurokit\")\ncomponents = nk.eda_phasic(clean, sampling_rate=100, method=\"highpass\")\nmarkers, info = nk.eda_peaks(\n    components[\"EDA_Phasic\"],\n    sampling_rate=100,\n    method=\"neurokit\",\n    amplitude_min=0.1,\n)\n```\n\nFor `neurokit`\u002F`kim2004`, `amplitude_min` is relative to the largest detected response;\nit is not an absolute microsiemens threshold. cvxEDA needs optional `cvxopt`.\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Feda_pipeline.py \\\n  --synthetic --sampling-rate 100 --duration 60 \\\n  --phasic-method highpass --peak-method neurokit\n```\n\n### Events, epochs, and baseline\n\n`events_find()` reports zero-based sample onsets; duration\u002Fspacing arguments are in\nsamples. `epochs_create()` takes epoch limits in seconds.\n\n```python\nevents = nk.events_find(trigger, threshold=0.5, duration_min=2)\nepochs = nk.epochs_create(\n    signals,\n    events,\n    sampling_rate=100,\n    epochs_start=-0.2,\n    epochs_end=0.8,\n    baseline_correction=False,\n)\n```\n\nPlan sample-exact windows first:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fplan_epochs.py \\\n  --events 1000,2500,4000 --event-unit samples \\\n  --sampling-rate 100 --recording-samples 5000 \\\n  --epoch-start -0.2 --epoch-end 0.8 \\\n  --baseline-start -0.2 --baseline-end 0\n```\n\nIn 0.2.13 the epoch slice is end-exclusive, but the generated floating time index\nincludes `epochs_end`. Built-in baseline correction subtracts the epoch mean from its\nstart through `t=0`; use manual correction for a narrower prespecified baseline.\nBoundary epochs are padded and can contain NaN. Decide drop\u002Fpad\u002Ferror before analysis.\n\n### RSA and multimodal processing\n\n`bio_process()` assumes all inputs already share one sampling rate and alignment. It\ndoes not resample, synchronize, estimate drift, or create nested modality dictionaries;\nits `info` output is flat. Unequal lengths are concatenated by index and can introduce\nNaN. RSA is added only when synchronized ECG and RSP are present.\n\nValidate a strict local manifest before calling it:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fvalidate_multimodal.py \\\n  --manifest streams.json --root . --deidentified\n```\n\nAfter independent modality QC and alignment:\n\n```python\nbio_signals, bio_info = nk.bio_process(\n    ecg=ecg_aligned,\n    rsp=rsp_aligned,\n    eda=eda_aligned,\n    sampling_rate=common_rate,\n)\nrsa_summary = nk.hrv_rsa(\n    bio_signals,\n    bio_signals,\n    rpeaks=bio_info,\n    sampling_rate=common_rate,\n    continuous=False,\n)\n```\n\nSummary RSA is a dictionary; `continuous=True` returns a DataFrame with `RSA_P2T` and\n`RSA_Gates` in the verified default workflow. Co-record respiration and report its\nrate\u002Fdepth\u002Fcontext; RSA is not a direct, context-free measure of vagal tone.\n\n### Complexity returns values plus metadata\n\nMost complexity functions in 0.2.13 return `(value, info)`. The convenience function\nalso returns two objects:\n\n```python\nfeatures, details = nk.complexity(signal)  # default which=\"makowski2022\"\nsampen, sampen_info = nk.entropy_sample(signal)\ndfa, dfa_info = nk.fractal_dfa(signal)\n```\n\nThe default convenience selection is not “all measures.” Complexity estimates are\nsensitive to length, stationarity, normalization, delay, dimension, tolerance, scale,\nand implementation. Predefine them and run sensitivity\u002Fsurrogate analyses.\n\n## Bundled command-line helpers\n\nAll helpers reject URLs, path traversal, and symlinks; bound bytes\u002Frows\u002Fchannels; refuse\noverwrite unless `--force`; use lazy scientific imports so `--help` works without\nNeuroKit2; never use pickle; and produce deterministic JSON\u002FCSV. Real-data commands\nrequire `--deidentified`.\n\n| Helper | Purpose |\n|---|---|\n| `scripts\u002Fgenerate_synthetic.py` | Dependency-free deterministic CSV fixtures |\n| `scripts\u002Finspect_signal.py` | Bounded CSV\u002Ftime\u002Fgap\u002Fflatline inspection |\n| `scripts\u002Fecg_hrv_pipeline.py` | Pinned ECG, quality, peak-correction, HRV workflow |\n| `scripts\u002Feda_pipeline.py` | Explicit cleaning, decomposition, SCR workflow |\n| `scripts\u002Fplan_epochs.py` | Sample-exact event, boundary, baseline planner |\n| `scripts\u002Fvalidate_multimodal.py` | Strict units\u002Frates\u002Fclocks\u002Falignment schema validator |\n\nGenerate a fixture without exposing participant data:\n\n```bash\npython skills\u002Fneurokit2\u002Fscripts\u002Fgenerate_synthetic.py \\\n  --output synthetic.csv --root . --duration 30 \\\n  --sampling-rate 250 --seed 42\n```\n\n## Security note\n\nNo example or helper uses Python `eval()` or `exec()`. NeuroKit2 names such as\n`eeg_*`, `events_*`, and `*_eventrelated()` are ordinary library calls. If a static\nscanner reports an eval\u002Fexec pattern based on a substring, inspect the exact line and\nrecord it as a scanner false positive only after confirming no dynamic execution exists.\n\n## References\n\nRead only the files needed for the modality or decision:\nAll bundled Markdown paths below are under `references\u002F`; this skill has no\n`templates\u002F` or `assets\u002F` reference paths.\n\n| File | Contents |\n|---|---|\n| `references\u002Fsignal_processing.md` | Filters, gaps, resampling, peaks, PSD, schemas |\n| `references\u002Fepochs_events.md` | Event indexing, epoch boundaries, baselines |\n| `references\u002Fecg_cardiac.md` | ECG process, quality, delineation, peak correction |\n| `references\u002Fhrv.md` | HRV\u002FRSA inputs, duration, ectopy, interpretation |\n| `references\u002Feda.md` | Cleaning, decomposition, SCR detection |\n| `references\u002Femg.md` | EMG cleaning, amplitude, activation |\n| `references\u002Feog.md` | EOG polarity, MNE default, blink features |\n| `references\u002Feeg.md` | EEG\u002FMNE helpers, power, QC, microstates |\n| `references\u002Fppg.md` | PPG methods, quality semantics, PRV limitations |\n| `references\u002Frsp.md` | Respiration polarity, rate, RRV\u002FRVT\u002FRAV |\n| `references\u002Fbio_module.md` | Multimodal alignment and `bio_*` schemas |\n| `references\u002Fcomplexity.md` | Tuple returns, parameter sensitivity, RQA |\n\n## Primary sources checked 2026-07-23\n\n- [PyPI 0.2.13](https:\u002F\u002Fpypi.org\u002Fproject\u002Fneurokit2\u002F)\n- [Official documentation](https:\u002F\u002Fneuropsychology.github.io\u002FNeuroKit\u002F)\n- [API index](https:\u002F\u002Fneuropsychology.github.io\u002FNeuroKit\u002Ffunctions\u002Findex.html)\n- [GitHub releases](https:\u002F\u002Fgithub.com\u002Fneuropsychology\u002FNeuroKit\u002Freleases)\n- [Makowski et al. (2021), NeuroKit2](https:\u002F\u002Fdoi.org\u002F10.3758\u002Fs13428-020-01516-y)\n- [Pham et al. (2021), HRV tutorial](https:\u002F\u002Fdoi.org\u002F10.3390\u002Fs21123998)\n- [Makowski et al. (2022), complexity comparison](https:\u002F\u002Fdoi.org\u002F10.3390\u002Fe24081036)\n- [SPR guideline index](https:\u002F\u002Fsprweb.org\u002Fguidelines-papers)\n- [Quigley et al. (2024), HR\u002FHRV guidelines](https:\u002F\u002Fdoi.org\u002F10.1111\u002Fpsyp.14604)\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":27,"compatibility":28},{"version":25,"skill-author":26},"1.1","K-Dense Inc.","Read Write Edit Bash Glob","Python 3.10+ and uv; pinned workflows use NeuroKit2 0.2.13. Core processing needs NumPy, SciPy, pandas, scikit-learn, matplotlib, PyWavelets, requests, and setuptools; selected EEG, cvxEDA, plotting, file-format, and RQA features need separately locked optional packages.","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fscientific-skills\u002Fneurokit2",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill neurokit2",{"tool":43,"command":44},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill neurokit2",{"tool":46,"command":47},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill neurokit2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002FSKILL.md",true,[51,57,61,65,69,73,77,81,85,89,93,97,101,107,111,115,119,123,127],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fbio_module.md","REFERENCE","参考文档",7699,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fbio_module.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fcomplexity.md",7451,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fcomplexity.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fecg_cardiac.md",6909,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fecg_cardiac.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Feda.md",6939,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Feda.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Feeg.md",7309,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Feeg.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Femg.md",5686,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Femg.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Feog.md",5294,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Feog.md",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fepochs_events.md",7109,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fepochs_events.md",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fhrv.md",8408,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fhrv.md",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fppg.md",6832,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fppg.md",{"path":94,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Frsp.md",6897,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Frsp.md",{"path":98,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fsignal_processing.md",6819,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Freferences\u002Fsignal_processing.md",{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002F_common.py","SCRIPT","脚本",18958,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002F_common.py",{"path":108,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fecg_hrv_pipeline.py",10917,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002Fecg_hrv_pipeline.py",{"path":112,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Feda_pipeline.py",9986,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002Feda_pipeline.py",{"path":116,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":117,"sourceHtmlUrl":118},"scripts\u002Fgenerate_synthetic.py",7584,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002Fgenerate_synthetic.py",{"path":120,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Finspect_signal.py",13519,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002Finspect_signal.py",{"path":124,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":125,"sourceHtmlUrl":126},"scripts\u002Fplan_epochs.py",10040,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002Fplan_epochs.py",{"path":128,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":129,"sourceHtmlUrl":130},"scripts\u002Fvalidate_multimodal.py",12505,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fneurokit2\u002Fscripts\u002Fvalidate_multimodal.py",[132,139,147,156,164,171],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":143,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":151,"licenseFileUrl":152,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":151,"licenseFileUrl":160,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":175,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]