neurokit2
Lets your agent build workflows for analyzing physiological time-series data. It's useful for processing and understanding health and biological data.
What it does
This tool helps researchers organize and analyze physiological signal data (like heartbeats) reliably and repeatably using the NeuroKit2 library. It ensures processing steps are clear and results can be verified.
When to use it
- ✓When importing or using the NeuroKit2 library for biological data analysis.
- ✓When you need to ensure your physiological signal analysis is reproducible.
- ✓When processing physiological time-series data for research.
Example of what to ask your AI
“How can I use NeuroKit2 to process and analyze ECG data reproducibly, ensuring artifacts are corrected?”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool follows a step-by-step process to inspect, clean, and analyze signals. It checks details like sampling rate, units, and potential data issues before applying specific analysis methods.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add K-Dense-AI/scientific-agent-skills --skill neurokit2Or download just the file:
curl -L https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/main/skills/neurokit2/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
NeuroKit2
Scope and evidence cutoff
Use this skill for method-aware, reproducible biosignal research with NeuroKit2. The snapshot was checked on 2026-10-01 against:
- stable PyPI 0.2.13, released 2026-03-02;
- Python metadata (
>=3.10; classifiers 3.10–3.14) and wheel dependencies; - GitHub release notes/tags,
NEWS.rst, source at tagv0.2.13; - official API pages/examples (the live site identified itself as
0.2.13.dev214); and - pinned 0.2.13 runtime signatures and synthetic output schemas.
The current wheel requires pandas<3.0.0. The refreshed core checks use Python 3.13,
NumPy 2.5.3, and pandas 2.3.3; forcing pandas 3 conflicts with upstream metadata.
API fragments below assume caller-provided arrays and imports. Optional MNE source
reconstruction, cvxEDA, EMD, and pyRQA paths are source-reviewed, not runtime-validated
by this refresh. Synthetic checks establish software behavior, not empirical validity.
The live documentation can be ahead of the stable wheel. Prefer the pinned runtime for reproducible work and name both versions if consulting development docs.
Boundary
NeuroKit2 is a research and educational toolbox. Do not present its output as:
- a diagnosis, treatment recommendation, patient-monitoring decision, or alarm;
- validation, certification, or regulatory evidence for a medical device; or
- proof that a physiological construct is measured validly in a new sensor, protocol, environment, population, or disease group.
Validate acquisition hardware, electrode/optode placement, units, sampling and clock accuracy, preprocessing, detector/decomposition method, population, task, and outcomes for the intended study. Preserve raw data and an auditable exclusion log. Use deidentified local files only; do not place PHI in prompts, logs, examples, or bundled fixtures.
Reproducible installation
uv pip install "neurokit2==0.2.13"
For optional features, create a uv project, add only the packages actually required at
reviewed exact versions, and commit/review the resulting uv.lock before
uv sync --locked. NeuroKit2 exposes an upstream full extra, but this skill
intentionally does not install that floating transitive set in an automated workflow.
Optional capabilities can require MNE, cvxopt, Plotly, PyEMD, pyRQA, Pillow, OpenCV,
or file readers. Record the resolved environment with the analysis. Provision any MNE
data/template download as an explicit, checksummed study input. Do not install a moving
development branch for a reproducible study.
Required data contract
Before processing, record:
- signal identity and sensor/channel configuration;
- native sampling rate in Hz and physical unit (or explicitly
arbitrary_unit); - clock, timestamp origin, drift correction, and synchronization evidence;
- polarity/orientation and acquisition-side filters/gain;
- missing samples, discontinuities, saturation, flatlines, motion, and annotations;
- whether event onsets are zero-based sample indices or seconds;
- planned preprocessing order, methods, parameters, exclusions, and outputs; and
- participant-level grouping needed to prevent leakage in later statistics.
Never infer units from a column name. Do not silently treat samples as milliseconds, volts, microsiemens, or arbitrary units.
Core workflow
1. Inspect before transforming
python skills/neurokit2/scripts/inspect_signal.py \
--input recording.csv --root . --deidentified \
--columns ECG,RSP,EDA --time-column time_s \
--units ECG=mV,RSP=a.u.,EDA=uS
The inspector is bounded and emits no row values or paths. Resolve non-monotonic time, duplicate samples, gaps, non-finite values, flat runs, and sampling-rate disagreement before filtering.
2. Preserve preprocessing order
Use this default reasoning order, adapting it to the acquisition and cited method:
- preserve immutable raw signal and annotations;
- verify time base, units, polarity, clipping, gaps, and artifacts;
- segment at long gaps; only interpolate short gaps under a declared policy;
- apply modality-specific cleaning at the native sampling rate;
- detect peaks/onsets or decompose components;
- inspect quality outputs and raw overlays;
- correct peaks only with logged categories and sensitivity checks;
- derive rates/features;
- align continuous modalities on a declared common time grid; and
- map event indices to that grid, epoch, baseline, and analyze.
…
FAQ
What does 'reproducible' mean in this context?
It means that someone else (or yourself in the future) can follow the exact same steps and get the same results with the same data.
Can I use this for medical diagnosis?
No, this tool is for research and education only. It should not be used for diagnoses, treatments, or medical decisions.
What types of physiological signals can it analyze?
It is designed for various signals, such as ECG (electrocardiogram), EDA (electrodermal activity), and RSP (respiration), among others.
Details
Original description by the author
Builds and audits reproducible NeuroKit2 research workflows for physiological time-series preprocessing, event/interval analysis, multimodal alignment, variability, and complexity. Use when code imports neurokit2 or needs its current APIs, schemas, and method-aware validation—not for diagnosis or device validation.
Popularity
- GitHub stars
- 51k
- Ranking position
- #1912
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
13c-metabolic-flux
Estimates metabolic fluxes using carbon-13 isotope tracing data. It is useful for analyzing cellular metabolism and biochemical pathways.
K-Dense-AI/scientific-agent-skills
adaptyv
Designs protein characterization experiments using the Adaptyv API. It helps estimate costs, submit sequences, and monitor lab results.
K-Dense-AI/scientific-agent-skills
aeon
Performs machine learning tasks on time series data. It is useful for classifying, forecasting, detecting anomalies, and finding patterns in sequential data.
K-Dense-AI/scientific-agent-skills
alphagenome
Looks up precomputed genomic effects for genetic variants. It provides scores and explanations to understand the impact of variants on the genome.
K-Dense-AI/scientific-agent-skills
Similar skills
data-throughput-accelerator
Makes your agent speed up the movement of large data volumes. It finds bottlenecks and ensures data is transferred quickly and correctly.
affaan-m/ECC
inventory-demand-planning
Helps your agent predict product demand in stores. It optimizes stock and plans when to run promotions to sell more.
affaan-m/ECC
market-research
Helps your agent conduct market research and competitive analysis. Provides summaries with source attribution.
affaan-m/ECC