Agent skill

Neurokit

by aipoch in aipoch/medical-research-skills

Comprehensive biosignal processing for ECG/PPG/EEG/EDA/RSP/EMG/EOG; use when you need to clean, segment, and extract physiological features for HRV, event-related responses, complexity metrics, or…

MITAuto-check passedData & Analytics

Install Neurokit

skills CLI
$ npx skills add aipoch/medical-research-skills --skill neurokit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills neurokit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Data Analysis/neurokit2' .claude/skills/neurokit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
neurokit
GitHub stars
2k
Token cost
~1.8k tokens
SKILL.md length
464 words
Files
14 (incl. references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Comprehensive biosignal processing for ECG/PPG/EEG/EDA/RSP/EMG/EOG; use when you need to clean, segment, and extract physiological features for HRV, event-related responses, complexity metrics, or…

  • Works in 5 steps: Run end-to-end ECG/PPG pipelines… → Compute HRV metrics… → Analyze EEG for band power, microstates,… → …
  • You need to clean
  • SKILL.md covers When to Use, Key Features, Dependencies and Example Usage, plus 1 more section
  • Calls uv; reaches github.com

What it does

Neurokit is an agent skill from aipoch/medical-research-skills. Comprehensive biosignal processing for ECG/PPG/EEG/EDA/RSP/EMG/EOG; use when you need to clean, segment, and extract physiological features for HRV, event-related responses, complexity metrics, or multimodal psychophysiology pipelines.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files (for example `neurokit2_audit_result_v1.json`, `references/bio_module.md` and `references/complexity.md`).

It sits in Data & Analytics, covering Data analysis. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • You need to clean
  • Extract physiological features for HRV
  • Event-related responses
  • Complexity metrics

Example prompts

  • “/neurokit”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Run end-to-end ECG/PPG pipelines (cleaning → peak detection → feature extraction) for cardiovascular monitoring and HRV.
  2. Compute HRV metrics (time/frequency/nonlinear) for autonomic nervous system assessment in resting-state or continuous recordings.
  3. Analyze EEG for band power, microstates, and complexity measures in cognitive/neuroscience experiments.
  4. Decompose EDA into tonic/phasic components and quantify SCRs for arousal/stress and psychophysiological paradigms.
  5. Perform multimodal biosignal processing (e.g., ECG + RSP + EDA + EMG) with unified outputs for integrated analyses.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Neurokit loads about 1.8k tokens when it runs, and up to ~47k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 464 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~47k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 464 words, ~1,780 tokens.

Download SKILL.mdSave it as .claude/skills/neurokit/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
neurokit
description
Comprehensive biosignal processing for ECG/PPG/EEG/EDA/RSP/EMG/EOG; use when you need to clean, segment, and extract physiological features for HRV, event-related responses, complexity metrics, or multimodal psychophysiology pipelines.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

When to Use

Use this skill when you need to:

  1. Run end-to-end ECG/PPG pipelines (cleaning → peak detection → feature extraction) for cardiovascular monitoring and HRV.
  2. Compute HRV metrics (time/frequency/nonlinear) for autonomic nervous system assessment in resting-state or continuous recordings.
  3. Analyze EEG for band power, microstates, and complexity measures in cognitive/neuroscience experiments.
  4. Decompose EDA into tonic/phasic components and quantify SCRs for arousal/stress and psychophysiological paradigms.
  5. Perform multimodal biosignal processing (e.g., ECG + RSP + EDA + EMG) with unified outputs for integrated analyses.

Reference docs (if available in this skill package): references/ecg_cardiac.md, references/hrv.md, references/eeg.md, references/eda.md, references/rsp.md, references/emg.md, references/eog.md, references/signal_processing.md, references/complexity.md, references/epochs_events.md, references/bio_module.md.

Key Features

  • Cardiac (ECG/PPG): cleaning, R-peak detection, delineation, quality assessment, ECG-derived respiration, pulse analysis.
  • HRV: comprehensive indices across time, frequency, and nonlinear domains; RSA and advanced metrics (e.g., RQA where applicable).
  • EEG: band power, channel utilities, microstate segmentation, and integration patterns commonly used with MNE workflows.
  • EDA: tonic/phasic decomposition, SCR detection, sympathetic indices, and event-related EDA analysis.
  • Respiration (RSP): breathing rate, variability (RRV), and respiratory volume per time (RVT) style features.
  • EMG/EOG: EMG activation/amplitude processing; EOG blink and eye-movement feature extraction.
  • General utilities: filtering, peak finding, PSD estimation, resampling/interpolation, and synchronization helpers.
  • Event-related analysis: event finding, epoching, baseline correction, and averaging across trials.
  • Multimodal integration: bio_process() / bio_analyze() for consistent multi-signal pipelines.

Dependencies

  • neurokit2 (latest; install via pip/uv)
  • Python 3.x environment (version depends on your runtime)

Installation:

bash
uv pip install neurokit2

Development version:

bash
uv pip install https://github.com/neuropsychology/NeuroKit/zipball/dev

Example Usage

A complete, runnable example that simulates signals, processes them, computes features, and performs event-related epoching:

python
import neurokit2 as nk
import numpy as np

# -----------------------------
# 1) Simulate example signals
# -----------------------------
sampling_rate = 1000
duration = 60  # seconds

ecg = nk.ecg_simulate(duration=duration, sampling_rate=sampling_rate, heart_rate=70)
rsp = nk.rsp_simulate(duration=duration, sampling_rate=sampling_rate, respiratory_rate=15)
eda = nk.eda_simulate(duration=duration, sampling_rate=sampling_rate, scr_number=8)

# Create a simple trigger channel with 5 events
trigger = np.zeros(len(ecg))
event_times_s = [10, 20, 30, 40, 50]
for t in event_times_s:
    trigger[int(t * sampling_rate)] = 1.0

# -----------------------------
# 2) ECG processing + HRV
# -----------------------------
ecg_signals, ecg_info = nk.ecg_process(ecg, sampling_rate=sampling_rate)
rpeaks = ecg_info["ECG_R_Peaks"]
hrv = nk.hrv(rpeaks, sampling_rate=sampling_rate)

# -----------------------------
# 3) Multimodal processing
# -----------------------------
bio_signals, bio_info = nk.bio_process(
    ecg=ecg,
    rsp=rsp,
    eda=eda,
    sampling_rate=sampling_rate
)
bio_results = nk.bio_analyze(bio_signals, sampling_rate=sampling_rate)

# -----------------------------
# 4) Event-related epoching
# -----------------------------
events = nk.events_find(trigger, threshold=0.5)
epochs = nk.epochs_create(
    bio_signals,
    events,
    sampling_rate=sampling_rate,
    epochs_start=-0.5,
    epochs_end=2.0
)
grand_average = nk.epochs_average(epochs)

# -----------------------------
# 5) Minimal outputs
# -----------------------------
print("HRV (first columns):")
print(hrv.iloc[:, :8].round(3))

print("\nBio analysis keys:", list(bio_results.keys())[:10])
print("Grand average shape:", grand_average.shape)

Implementation Details

Show full SKILL.md (213 more words)Show less
Processing pipelines (typical pattern)

Most modalities follow a consistent structure:

  1. *_process(signal, sampling_rate=...) Produces a cleaned signal plus intermediate channels (e.g., peaks, phases) and an info dict with indices/metadata.
  2. *_analyze(processed_signals, sampling_rate=...) Computes summary features and automatically selects an analysis mode based on recording length.

Examples:

  • ECG: ecg_process() → ecg_analyze() → hrv()
  • EDA: eda_process() → eda_analyze()
  • RSP: rsp_process() → rsp_rrv() / rsp_rvt()

Many *_analyze() functions implicitly switch modes based on data duration:

  • Event-related (short segments; commonly < ~10 s): stimulus-locked responses, epoch-based summaries.
  • Interval-related (longer recordings; commonly ≥ ~10 s): continuous/resting summaries (e.g., HRV over a window).

If you need explicit event-related workflows, use:

  • events_find() to detect markers
  • epochs_create() to segment around events
  • epochs_average() (and modality-specific *_eventrelated() where applicable)
HRV domains and inputs

HRV functions typically require R-peak indices (sample positions) and often a sampling_rate:

  • Time-domain: e.g., SDNN, RMSSD, pNN50
  • Frequency-domain: band powers/ratios (requires sampling rate and appropriate interpolation assumptions)
  • Nonlinear: Poincaré (SD1/SD2), entropy/fractal-style measures

Common calls:

  • nk.hrv(peaks, sampling_rate=...) (all-in-one)
  • nk.hrv_time(peaks), nk.hrv_frequency(peaks, sampling_rate=...), nk.hrv_nonlinear(peaks, sampling_rate=...)
Filtering and spectral estimation

General utilities (see references/signal_processing.md) typically expose parameters such as:

  • sampling_rate
  • cutoff frequencies (lowcut, highcut)
  • method-specific options (e.g., filter order/type)

Example:

python
filtered = nk.signal_filter(x, sampling_rate=1000, lowcut=0.5, highcut=40)
psd = nk.signal_psd(filtered, sampling_rate=1000)
Complexity/entropy measures

Complexity functions (see references/complexity.md) provide:

  • Entropy families (approximate, sample, permutation, multiscale, etc.)
  • Fractal/DFA variants
  • Nonlinear dynamics metrics (e.g., Lyapunov-style measures where supported)

Example:

python
indices = nk.complexity(x, sampling_rate=1000)
apen = nk.entropy_approximate(x)
dfa = nk.fractal_dfa(x)

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (references) in scientific-skills/Data Analysis/neurokit2 of aipoch/medical-research-skills.

  • SKILL.md
  • neurokit2_audit_result_v1.json
  • references/bio_module.md
  • references/complexity.md
  • references/ecg_cardiac.md
  • references/eda.md
  • references/eeg.md
  • references/emg.md
  • references/eog.md
  • references/epochs_events.md
  • references/hrv.md
  • references/ppg.md
  • references/rsp.md
  • references/signal_processing.md

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Neurokit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Neurokit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Neurokit this skillaipoch/medical-research-skills2k—~1.8kAutomated safety check: PassMIT
Exploratory Data Analysisspacering-net/codeg3.9k14 repos~3.6kAutomated safety check: PassMIT
Excel and CSV Data Analysisbytedance/deer-flow84k4 repos~2.2kAutomated safety check: PassMIT
Exploratory Data AnalysisOleafly/Oleafly2092 repos~3.4kAutomated safety check: NotesMIT
Pandas ProJeffallan/claude-skills12k1 repos~1.5kAutomated safety check: PassMIT
Python Executorcortega26/chile-hub1132 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • Exploratory Data Analysis

    spacering-net/codeg

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    3.9k GitHub starsUsed in 14 repos~3.6k tokens
    Data & AnalyticsAuto-check passed
  • Excel and CSV Data Analysis

    bytedance/deer-flow

    Analyzes uploaded Excel and CSV files with SQL through DuckDB, producing schema inspections, statistical summaries and exports to CSV, JSON or Markdown.

    84k GitHub starsUsed in 4 repos~2.2k tokens
    Data & AnalyticsAuto-check passed
  • Perform bounded, local exploratory analysis of explicitly supported scientific files.

    209 GitHub starsUsed in 2 repos~3.4k tokens
    Data & AnalyticsAuto-check: notes
  • Pandas Pro

    Jeffallan/claude-skills

    Handles pandas DataFrame work: cleaning, merging, groupby aggregation, pivots, time-series resampling and memory tuning, with checks on dtypes, shapes and nulls.

    12k GitHub starsUsed in 1 repo~1.5k tokens
    Data & AnalyticsAuto-check passed
  • Python Executor

    cortega26/chile-hub

    Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh).

    113 GitHub starsUsed in 2 repos~1.5k tokens
    Data & AnalyticsAuto-check passed
  • Agentic Kaggle Workflow

    FrankS-IntelLab/agentic-kaggle-skill

    Takes a Kaggle competition from rules and validation design through baselines, ensembling and notebook architecture to a scored submission.

    188 GitHub stars~4k tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 22 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 22 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 22 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 22 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 22 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 22 days ago
    Auto-check passed

Questions about Neurokit

What does Neurokit do?

Comprehensive biosignal processing for ECG/PPG/EEG/EDA/RSP/EMG/EOG; use when you need to clean, segment, and extract physiological features for HRV, event-related responses, complexity metrics, or…. Neurokit is an agent skill from aipoch/medical-research-skills. Comprehensive biosignal processing for ECG/PPG/EEG/EDA/RSP/EMG/EOG; use when you need to clean, segment, and extract physiological features for HRV, event-related responses, complexity metrics, or multimodal psychophysiology pipelines.

When should I use Neurokit?

Neurokit fits situations like: you need to clean; extract physiological features for HRV; event-related responses; complexity metrics.

How do I install Neurokit in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill neurokit -a claude-code`. Or copy the skill folder (scientific-skills/Data Analysis/neurokit2 in aipoch/medical-research-skills) into .claude/skills/neurokit in your project. Claude Code loads it when a task matches its description.

How do I install Neurokit in Codex?

Run `npx skills add aipoch/medical-research-skills --skill neurokit -a codex`. Or copy the skill folder (scientific-skills/Data Analysis/neurokit2 in aipoch/medical-research-skills) into .agents/skills/neurokit in your project. Codex loads it when a task matches its description.

Can I use Neurokit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill neurokit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/neurokit, .gemini/skills/neurokit, .github/skills/neurokit and .opencode/skills/neurokit in your project.

What does Neurokit need to run?

Going by SKILL.md and its folder, Neurokit needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Neurokit access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Neurokit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Neurokit use?

Neurokit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Neurokit use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 45k tokens, read only when the agent opens those files.

What are the alternatives to Neurokit?

Skills that share tags, products or a category with Neurokit: Exploratory Data Analysis (spacering-net/codeg, 3.9k stars), Excel and CSV Data Analysis (bytedance/deer-flow, 84k stars), Exploratory Data Analysis (Oleafly/Oleafly, 209 stars) and Pandas Pro (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Neurokit?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,978 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.