[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QFAGDSPVVKK09632KKYM10":3,"skill-same:01M6QFAGDSPVVKK09632KKYM10":154},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":14,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6QFAGDSPVVKK09632KKYM10","neuropixels-analysis",null,"Analyze Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX\u002FOpen Ephys\u002FNWB data, preprocessing, drift\u002Fmotion correction, Kilosort4 (and CPU) spike sorting, quality metrics, and unit curation (threshold-based, model-based UnitRefine, and AI-assisted visual review). Use when working with Neuropixels 1.0\u002F2.0 recordings, spike sorting, or extracellular electrophysiology analysis.","Tashima-Tarsh\u002FDisha6.6","Tashima-Tarsh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F269906498?v=4","01M6PBH98X03XERH0HFT4PFB1P","NITISH KUMAR","01M6PBH9DA0M6KM3Z12P848F0K",0,"MIT","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"analysis","neuropixels analysis","for","claude api","loading","CPU","sorting","unit","visual review","false","end","preprocessing","neuroscience","visual","motion","use","quality","model","analyze","open","2026-11-10 10:12:30",false,"---\nname: neuropixels-analysis\ndescription: Analyze Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX\u002FOpen Ephys\u002FNWB data, preprocessing, drift\u002Fmotion correction, Kilosort4 (and CPU) spike sorting, quality metrics, and unit curation (threshold-based, model-based UnitRefine, and AI-assisted visual review). Use when working with Neuropixels 1.0\u002F2.0 recordings, spike sorting, or extracellular electrophysiology analysis.\nlicense: MIT\nmetadata:\n  version: '2.4'\n  category: life-sciences\n  maintainer: Kalaris Labs\n  openclaw:\n    primaryEnv: ANTHROPIC_API_KEY\n    envVars:\n    - name: ANTHROPIC_API_KEY\n      required: false\n      description: For optional Claude API calls.\n  tags: Neuropixels, spike sorting, electrophysiology, SpikeInterface, neuroscience\n---\n\n# Neuropixels Data Analysis\n\n## Overview\n\nToolkit for analyzing Neuropixels high-density neural recordings using current best\npractices from [SpikeInterface](https:\u002F\u002Fspikeinterface.readthedocs.io\u002F), the Allen\nInstitute, and the International Brain Laboratory (IBL). It covers the full workflow from\nraw data to publication-ready curated units.\n\nAll examples use the real SpikeInterface API (`spikeinterface.full as si`) plus the\ncompanion curation module (`spikeinterface.curation as sc`). The skill ships runnable\nscripts in `scripts\u002F` and a copy-and-edit template in `assets\u002F` that implement this\nworkflow directly on top of SpikeInterface — there is no separate package to install\nbeyond the dependencies listed under [Installation](#installation).\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Working with Neuropixels recordings (`.ap.bin`, `.lf.bin`, `.meta` files)\n- Loading data from SpikeGLX, Open Ephys, or NWB formats\n- Preprocessing neural recordings (filtering, common reference, bad-channel detection)\n- Detecting and correcting motion\u002Fdrift\n- Running spike sorting (Kilosort4, SpykingCircus2, Mountainsort5, Tridesclous2)\n- Computing quality metrics (SNR, ISI violations, presence ratio, amplitude cutoff)\n- Curating units (threshold-based, model-based, or AI-assisted)\n- Creating visualizations and exporting to Phy or NWB\n\n## Supported Hardware & Formats\n\n| Probe | Electrodes | Channels | Notes |\n|-------|-----------|----------|-------|\n| Neuropixels 1.0 | 960 | 384 | Use `phase_shift` for ADC correction |\n| Neuropixels 2.0 (single) | 1280 | 384 | Denser geometry |\n| Neuropixels 2.0 (4-shank) | 5120 | 384 | Multi-region recording |\n\n| Format | Extension | Reader |\n|--------|-----------|--------|\n| SpikeGLX | `.ap.bin`, `.lf.bin`, `.meta` | `si.read_spikeglx()` |\n| Open Ephys | `.continuous`, `.oebin` | `si.read_openephys()` |\n| NWB | `.nwb` | `si.read_nwb()` |\n\n## Quick Start\n\n### Import and configure parallel processing\n\n```python\nimport spikeinterface.full as si\n\n# Global job kwargs are reused by all parallelizable steps\nsi.set_global_job_kwargs(n_jobs=-1, chunk_duration=\"1s\", progress_bar=True)\n```\n\n### Loading data\n\n```python\n# Inspect available streams first\nstream_names, stream_ids = si.get_neo_streams(\"spikeglx\", \"\u002Fpath\u002Fto\u002Frun_g0\u002F\")\nprint(stream_names)  # e.g. ['imec0.ap', 'imec0.lf', 'nidq']\n\n# SpikeGLX (most common) — select the AP stream by name\nrecording = si.read_spikeglx(\"\u002Fpath\u002Fto\u002Frun_g0\u002F\", stream_name=\"imec0.ap\", load_sync_channel=False)\n\n# Open Ephys\nrecording = si.read_openephys(\"\u002Fpath\u002Fto\u002FRecord_Node_101\u002F\")\n\n# For quick iteration, slice the first 60 s\nfs = recording.get_sampling_frequency()\nrecording_sub = recording.frame_slice(0, int(60 * fs))\n```\n\n### Full pipeline (bundled script)\n\nThe repository ships an end-to-end pipeline built on SpikeInterface:\n\n```bash\npython scripts\u002Fneuropixels_pipeline.py \u002Fpath\u002Fto\u002Fspikeglx\u002Fdata output\u002F --sorter kilosort4 --curation allen\n```\n\nIt performs load → preprocess → drift check → optional motion correction → sorting →\npostprocessing → quality metrics → curation → export. Read the steps below to run them\ninteractively or customize the pipeline.\n\n## Standard Analysis Workflow\n\n### 1. Preprocessing\n\nRecommended chain, following the SpikeInterface Neuropixels how-to (IBL-style destriping\nwith channel removal + common reference):\n\n```python\nrec = si.highpass_filter(recording, freq_min=400.0)\nbad_channel_ids, channel_labels = si.detect_bad_channels(rec)\nrec = rec.remove_channels(bad_channel_ids)\nrec = si.phase_shift(rec)  # ADC phase correction (Neuropixels 1.0)\nrec = si.common_reference(rec, operator=\"median\", reference=\"global\")\n```\n\nSave the preprocessed recording (Kilosort needs a binary file, and it speeds up reuse):\n\n```python\nrec = rec.save(folder=\"preprocessed\u002F\", format=\"binary\")\n```\n\n### 2. Check and correct drift\n\nAlways inspect drift before sorting:\n\n```python\nfrom spikeinterface.sortingcomponents.peak_detection import detect_peaks\nfrom spikeinterface.sortingcomponents.peak_localization import localize_peaks\n\nnoise_levels = si.get_noise_levels(rec, return_in_uV=False)\npeaks = detect_peaks(rec, method=\"locally_exclusive\", noise_levels=noise_levels,\n                     detect_threshold=5, radius_um=50.0)\npeak_locations = localize_peaks(rec, peaks, method=\"center_of_mass\")\n\n# Visualize the drift raster\nsi.plot_drift_raster_map(peaks=peaks, peak_locations=peak_locations,\n                         recording=rec, clim=(-50, 50))\n```\n\nApply correction if needed (presets: `rigid_fast`, `kilosort_like`,\n`nonrigid_accurate`, `nonrigid_fast_and_accurate`, `dredge`, `dredge_fast`):\n\n```python\nrec_corrected = si.correct_motion(rec, preset=\"nonrigid_fast_and_accurate\", folder=\"motion\u002F\")\n```\n\n### 3. Spike sorting\n\n```python\n# Kilosort4 (recommended, requires a CUDA GPU)\nsorting = si.run_sorter(\"kilosort4\", rec_corrected, folder=\"ks4_output\")\n\n# CPU alternatives (internally developed, no external install)\nsorting = si.run_sorter(\"spykingcircus2\", rec_corrected, folder=\"sc2_output\")\nsorting = si.run_sorter(\"tridesclous2\", rec_corrected, folder=\"tdc2_output\")\nsorting = si.run_sorter(\"mountainsort5\", rec_corrected, folder=\"ms5_output\")\n\n# External sorters can run in containers without local install\nsorting = si.run_sorter(\"kilosort2_5\", rec_corrected, folder=\"ks25_output\", docker_image=True)\n\nprint(si.installed_sorters())\n```\n\n> Note: `run_sorter` uses the `folder=` argument. The older `output_folder=` is deprecated.\n\n### 4. Postprocessing\n\n```python\nanalyzer = si.create_sorting_analyzer(sorting, rec_corrected, sparse=True,\n                                      format=\"binary_folder\", folder=\"analyzer\u002F\")\n\nanalyzer.compute(\"random_spikes\", method=\"uniform\", max_spikes_per_unit=500)\nanalyzer.compute(\"waveforms\", ms_before=1.0, ms_after=2.0)\nanalyzer.compute(\"templates\", operators=[\"average\", \"std\"])\nanalyzer.compute(\"noise_levels\")\nanalyzer.compute(\"spike_amplitudes\")\nanalyzer.compute(\"correlograms\", window_ms=50.0, bin_ms=1.0)\nanalyzer.compute(\"unit_locations\", method=\"monopolar_triangulation\")\nanalyzer.compute(\"template_similarity\")\n\nmetric_names = [\"firing_rate\", \"presence_ratio\", \"snr\", \"isi_violation\", \"amplitude_cutoff\"]\nanalyzer.compute(\"quality_metrics\", metric_names=metric_names)\nmetrics = analyzer.get_extension(\"quality_metrics\").get_data()\n```\n\n### 5. Curation by metric thresholds\n\n```python\n# Allen-style query (note: column is isi_violations_ratio)\nquery = \"(amplitude_cutoff \u003C 0.1) & (isi_violations_ratio \u003C 0.5) & (presence_ratio > 0.9)\"\ngood_unit_ids = metrics.query(query).index.values\n```\n\nFor reusable, multi-threshold logic with `allen` \u002F `ibl` \u002F `strict` presets, use the\nbundled `scripts\u002Fcompute_metrics.py`. See\n[references\u002FAUTOMATED_CURATION.md](references\u002FAUTOMATED_CURATION.md) for details and the\nBombcell \u002F UnitMatch tools.\n\n### 6. Model-based curation (UnitRefine)\n\nSpikeInterface can apply pretrained machine-learning classifiers from Hugging Face via the\n`spikeinterface.curation` module. The UnitRefine models were trained on real Neuropixels\ndata (V1, SC, ALM):\n\n```python\nimport spikeinterface.curation as sc\n\n# 1) noise vs neural\nnoise_labels = sc.model_based_label_units(\n    sorting_analyzer=analyzer,\n    repo_id=\"SpikeInterface\u002FUnitRefine_noise_neural_classifier\",\n    trust_model=True,\n)\nneural = analyzer.remove_units(noise_labels[noise_labels[\"prediction\"] == \"noise\"].index)\n\n# 2) single-unit (sua) vs multi-unit (mua) on the surviving units\nsua_mua_labels = sc.model_based_label_units(\n    sorting_analyzer=neural,\n    repo_id=\"SpikeInterface\u002FUnitRefine_sua_mua_classifier\",\n    trust_model=True,\n)\n```\n\nEach call returns a DataFrame with `prediction` and `probability` (confidence) per unit.\n`trust_model=True` (or an explicit `trusted=[...]` list) is required to load the `.skops`\nmodel — only load models from sources you trust. Models trained on other brain\nareas\u002Fdatasets may not transfer; validate against a manually labelled subset.\n\n### 7. AI-assisted curation (for uncertain units)\n\nWhen running inside an agent such as Cursor or Claude Code, the agent can directly inspect\nwaveform\u002Fcorrelogram plots and give an expert read — no API setup required. Generate plots\nand ask the agent to assess isolation quality.\n\nFor programmatic vision-model access, **read API keys from the environment — never hardcode\ncredentials in analysis scripts** (they leak into version control and logs):\n\n```python\nimport os\nfrom anthropic import Anthropic\n\nclient = Anthropic(api_key=os.environ[\"ANTHROPIC_API_KEY\"])  # set this in your shell, not in code\n```\n\nSee [references\u002FAI_CURATION.md](references\u002FAI_CURATION.md) for the full pattern (rendering a\nunit summary image, building the prompt, and parsing the response).\n\n### 8. Export results\n\n```python\n# Keep only good units, then export\nanalyzer_clean = analyzer.select_units(good_unit_ids, folder=\"analyzer_clean\u002F\", format=\"binary_folder\")\n\n# Phy for manual review\nsi.export_to_phy(analyzer_clean, output_folder=\"phy_export\u002F\",\n                 compute_pc_features=True, compute_amplitudes=True)\n\n# Figures report\nsi.export_report(analyzer_clean, \"report\u002F\", format=\"png\")\n\n# NWB\nfrom spikeinterface.exporters import export_to_nwb\nexport_to_nwb(analyzer_clean, \"output.nwb\")\n\n# Metrics table\nmetrics.to_csv(\"quality_metrics.csv\")\n```\n\n## Common Pitfalls and Best Practices\n\n1. **Always check drift** before spike sorting — drift > ~10 μm meaningfully degrades quality.\n2. **Use `phase_shift`** for Neuropixels 1.0 to correct ADC sampling offsets.\n3. **Save the preprocessed recording** with `rec.save(folder=...)` to avoid recomputation (Kilosort also needs a binary file).\n4. **Use a GPU** for Kilosort4 — it is far faster than CPU sorters.\n5. **Review uncertain units** — automated\u002Fmodel-based curation is a starting point, not a verdict.\n6. **Combine approaches** — thresholds for clear cases, model\u002FAI for borderline units.\n7. **Document thresholds and model repo IDs** for reproducibility.\n8. **Export to Phy** for critical experiments — human oversight is valuable.\n\n## Key Parameters to Adjust\n\n### Preprocessing\n- `freq_min`: highpass cutoff (300–400 Hz typical)\n- `detect_bad_channels`: returns `(bad_channel_ids, channel_labels)`\n\n### Motion Correction\n- `preset`: `nonrigid_fast_and_accurate` (balanced), `nonrigid_accurate` (severe drift), `dredge` (state of the art)\n\n### Spike Sorting (Kilosort4)\n- `batch_size`: samples per batch (60000 default)\n- `nblocks`: drift blocks (increase for long, drifty recordings)\n- `Th_universal` \u002F `Th_learned`: detection thresholds (lower = more spikes)\n\n### Quality Metrics\n- `snr`: signal-to-noise cutoff (3–5 typical)\n- `isi_violations_ratio`: refractory violations (0.01–0.5)\n- `presence_ratio`: recording coverage (0.5–0.95)\n\n## Bundled Resources\n\n### scripts\u002Fexplore_recording.py\nQuick inspection of a recording (streams, channels, duration, bad channels):\n```bash\npython scripts\u002Fexplore_recording.py \u002Fpath\u002Fto\u002Fdata\n```\n\n### scripts\u002Fpreprocess_recording.py\nAutomated preprocessing:\n```bash\npython scripts\u002Fpreprocess_recording.py \u002Fpath\u002Fto\u002Fdata --output preprocessed\u002F\n```\n\n### scripts\u002Frun_sorting.py\nRun spike sorting:\n```bash\npython scripts\u002Frun_sorting.py preprocessed\u002F --sorter kilosort4 --output sorting\u002F\n```\n\n### scripts\u002Fcompute_metrics.py\nCompute quality metrics and apply curation:\n```bash\npython scripts\u002Fcompute_metrics.py sorting\u002F preprocessed\u002F --output metrics\u002F --curation allen\n```\n\n### scripts\u002Fexport_to_phy.py\nExport to Phy for manual curation:\n```bash\npython scripts\u002Fexport_to_phy.py metrics\u002Fanalyzer --output phy_export\u002F\n```\n\n### scripts\u002Fneuropixels_pipeline.py\nComplete end-to-end pipeline (see [Quick Start](#full-pipeline-bundled-script)).\n\n### assets\u002Fanalysis_template.py\nComplete, editable analysis template. Copy and customize:\n```bash\ncp assets\u002Fanalysis_template.py my_analysis.py\n# Edit the PARAMETERS section, then run\npython my_analysis.py\n```\n\n## Detailed Reference Guides\n\n| Topic | Reference |\n|-------|-----------|\n| Full workflow | [references\u002Fstandard_workflow.md](references\u002Fstandard_workflow.md) |\n| API reference (SpikeInterface) | [references\u002Fapi_reference.md](references\u002Fapi_reference.md) |\n| Plotting guide | [references\u002Fplotting_guide.md](references\u002Fplotting_guide.md) |\n| Preprocessing | [references\u002FPREPROCESSING.md](references\u002FPREPROCESSING.md) |\n| Spike sorting | [references\u002FSPIKE_SORTING.md](references\u002FSPIKE_SORTING.md) |\n| Motion correction | [references\u002FMOTION_CORRECTION.md](references\u002FMOTION_CORRECTION.md) |\n| Quality metrics | [references\u002FQUALITY_METRICS.md](references\u002FQUALITY_METRICS.md) |\n| Automated & model-based curation | [references\u002FAUTOMATED_CURATION.md](references\u002FAUTOMATED_CURATION.md) |\n| AI-assisted curation | [references\u002FAI_CURATION.md](references\u002FAI_CURATION.md) |\n| Waveform analysis | [references\u002FANALYSIS.md](references\u002FANALYSIS.md) |\n\n## Installation\n\nRequires Python ≥ 3.10. Using [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) is recommended.\n\n```bash\n# Core packages (SpikeInterface bundles the curation\u002Fmodel tooling)\nuv pip install \"spikeinterface[full]\" probeinterface neo\n\n# Spike sorters\nuv pip install kilosort          # Kilosort4 (CUDA GPU required)\nuv pip install spykingcircus     # SpykingCircus (legacy; SpykingCircus2 ships with SpikeInterface)\nuv pip install mountainsort5     # Mountainsort5 (CPU)\n\n# Model-based curation (UnitRefine) downloads from Hugging Face\nuv pip install \"huggingface_hub\" skops\n\n# Optional: AI-assisted visual curation\nuv pip install anthropic\n\n# Optional: IBL tools and Bombcell\nuv pip install ibl-neuropixel ibllib bombcell\n```\n\nFor reproducible environments, pin versions (current as of 2026-06: `spikeinterface==0.104.3`,\n`kilosort==4.1.7`, `probeinterface==0.3.2`, `neo==0.14.4`). Unpinned installs are fine for\nquick experimentation but should be pinned in production pipelines.\n\n## Project Structure\n\n```\nproject\u002F\n├── raw_data\u002F\n│   └── recording_g0\u002F\n│       └── recording_g0_imec0\u002F\n│           ├── recording_g0_t0.imec0.ap.bin\n│           └── recording_g0_t0.imec0.ap.meta\n├── preprocessed\u002F           # Saved preprocessed recording\n├── motion\u002F                 # Motion estimation results\n├── sorting_output\u002F         # Spike sorter output\n├── analyzer\u002F               # SortingAnalyzer (waveforms, metrics)\n├── phy_export\u002F             # For manual curation\n├── ai_curation\u002F            # AI analysis reports\n└── results\u002F\n    ├── quality_metrics.csv\n    ├── curation_labels.json\n    └── output.nwb\n```\n\n## Additional Resources\n\n- **SpikeInterface Docs**: https:\u002F\u002Fspikeinterface.readthedocs.io\u002F\n- **Neuropixels Tutorial**: https:\u002F\u002Fspikeinterface.readthedocs.io\u002Fen\u002Fstable\u002Fhow_to\u002Fanalyze_neuropixels.html\n- **Model-based Curation Tutorial**: https:\u002F\u002Fspikeinterface.readthedocs.io\u002Fen\u002Fstable\u002Ftutorials\u002Fcuration\u002Fplot_1_automated_curation.html\n- **UnitRefine Models (Hugging Face)**: https:\u002F\u002Fhuggingface.co\u002FSpikeInterface\n- **Kilosort4 GitHub**: https:\u002F\u002Fgithub.com\u002FMouseLand\u002FKilosort\n- **IBL Neuropixel Tools**: https:\u002F\u002Fgithub.com\u002Fint-brain-lab\u002Fibl-neuropixel\n- **Allen Institute ecephys**: https:\u002F\u002Fgithub.com\u002FAllenInstitute\u002Fecephys_spike_sorting\n- **Bombcell (Automated QC)**: https:\u002F\u002Fgithub.com\u002FJulie-Fabre\u002Fbombcell\n- **Awesome Neuropixels**: https:\u002F\u002Fgithub.com\u002FJulie-Fabre\u002Fawesome_neuropixels\n\n## Agent operating procedure\n\n1. **Check the environment.** Confirm tool versions, the reference genome\u002Fannotation build and the input formats (FASTQ, BAM, VCF, h5ad).\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Run the pipeline on a small subset (one sample, one chromosome, a few thousand cells) first.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Check QC metrics, sample identities, genome build consistency and batch effects before interpreting results.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| Genome builds or identifiers do not match between inputs | Stop and harmonize (liftover, ID mapping) before continuing. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Do not interpret biological significance beyond what the statistics support; report multiple-testing correction.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `bids`: Organizes, queries, validates, and converts neuroscience and biomedical datasets using the Brain Imaging Data Structure (BIDS) standard, co…\n","# Neuropixels Data Analysis\n\n## Overview\n\nToolkit for analyzing Neuropixels high-density neural recordings using current best\npractices from [SpikeInterface](https:\u002F\u002Fspikeinterface.readthedocs.io\u002F), the Allen\nInstitute, and the International Brain Laboratory (IBL). It covers the full workflow from\nraw data to publication-ready curated units.\n\nAll examples use the real SpikeInterface API (`spikeinterface.full as si`) plus the\ncompanion curation module (`spikeinterface.curation as sc`). The skill ships runnable\nscripts in `scripts\u002F` and a copy-and-edit template in `assets\u002F` that implement this\nworkflow directly on top of SpikeInterface — there is no separate package to install\nbeyond the dependencies listed under [Installation](#installation).\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Working with Neuropixels recordings (`.ap.bin`, `.lf.bin`, `.meta` files)\n- Loading data from SpikeGLX, Open Ephys, or NWB formats\n- Preprocessing neural recordings (filtering, common reference, bad-channel detection)\n- Detecting and correcting motion\u002Fdrift\n- Running spike sorting (Kilosort4, SpykingCircus2, Mountainsort5, Tridesclous2)\n- Computing quality metrics (SNR, ISI violations, presence ratio, amplitude cutoff)\n- Curating units (threshold-based, model-based, or AI-assisted)\n- Creating visualizations and exporting to Phy or NWB\n\n## Supported Hardware & Formats\n\n| Probe | Electrodes | Channels | Notes |\n|-------|-----------|----------|-------|\n| Neuropixels 1.0 | 960 | 384 | Use `phase_shift` for ADC correction |\n| Neuropixels 2.0 (single) | 1280 | 384 | Denser geometry |\n| Neuropixels 2.0 (4-shank) | 5120 | 384 | Multi-region recording |\n\n| Format | Extension | Reader |\n|--------|-----------|--------|\n| SpikeGLX | `.ap.bin`, `.lf.bin`, `.meta` | `si.read_spikeglx()` |\n| Open Ephys | `.continuous`, `.oebin` | `si.read_openephys()` |\n| NWB | `.nwb` | `si.read_nwb()` |\n\n## Quick Start\n\n### Import and configure parallel processing\n\n```python\nimport spikeinterface.full as si\n\n# Global job kwargs are reused by all parallelizable steps\nsi.set_global_job_kwargs(n_jobs=-1, chunk_duration=\"1s\", progress_bar=True)\n```\n\n### Loading data\n\n```python\n# Inspect available streams first\nstream_names, stream_ids = si.get_neo_streams(\"spikeglx\", \"\u002Fpath\u002Fto\u002Frun_g0\u002F\")\nprint(stream_names)  # e.g. ['imec0.ap', 'imec0.lf', 'nidq']\n\n# SpikeGLX (most common) — select the AP stream by name\nrecording = si.read_spikeglx(\"\u002Fpath\u002Fto\u002Frun_g0\u002F\", stream_name=\"imec0.ap\", load_sync_channel=False)\n\n# Open Ephys\nrecording = si.read_openephys(\"\u002Fpath\u002Fto\u002FRecord_Node_101\u002F\")\n\n# For quick iteration, slice the first 60 s\nfs = recording.get_sampling_frequency()\nrecording_sub = recording.frame_slice(0, int(60 * fs))\n```\n\n### Full pipeline (bundled script)\n\nThe repository ships an end-to-end pipeline built on SpikeInterface:\n\n```bash\npython scripts\u002Fneuropixels_pipeline.py \u002Fpath\u002Fto\u002Fspikeglx\u002Fdata output\u002F --sorter kilosort4 --curation allen\n```\n\nIt performs load → preprocess → drift check → optional motion correction → sorting →\npostprocessing → quality metrics → curation → export. Read the steps below to run them\ninteractively or customize the pipeline.\n\n## Standard Analysis Workflow\n\n### 1. Preprocessing\n\nRecommended chain, following the SpikeInterface Neuropixels how-to (IBL-style destriping\nwith channel removal + common reference):\n\n```python\nrec = si.highpass_filter(recording, freq_min=400.0)\nbad_channel_ids, channel_labels = si.detect_bad_channels(rec)\nrec = rec.remove_channels(bad_channel_ids)\nrec = si.phase_shift(rec)  # ADC phase correction (Neuropixels 1.0)\nrec = si.common_reference(rec, operator=\"median\", reference=\"global\")\n```\n\nSave the preprocessed recording (Kilosort needs a binary file, and it speeds up reuse):\n\n```python\nrec = rec.save(folder=\"preprocessed\u002F\", format=\"binary\")\n```\n\n### 2. Check and correct drift\n\nAlways inspect drift before sorting:\n\n```python\nfrom spikeinterface.sortingcomponents.peak_detection import detect_peaks\nfrom spikeinterface.sortingcomponents.peak_localization import localize_peaks\n\nnoise_levels = si.get_noise_levels(rec, return_in_uV=False)\npeaks = detect_peaks(rec, method=\"locally_exclusive\", noise_levels=noise_levels,\n                     detect_threshold=5, radius_um=50.0)\npeak_locations = localize_peaks(rec, peaks, method=\"center_of_mass\")\n\n# Visualize the drift raster\nsi.plot_drift_raster_map(peaks=peaks, peak_locations=peak_locations,\n                         recording=rec, clim=(-50, 50))\n```\n\nApply correction if needed (presets: `rigid_fast`, `kilosort_like`,\n`nonrigid_accurate`, `nonrigid_fast_and_accurate`, `dredge`, `dredge_fast`):\n\n```python\nrec_corrected = si.correct_motion(rec, preset=\"nonrigid_fast_and_accurate\", folder=\"motion\u002F\")\n```\n\n### 3. Spike sorting\n\n```python\n# Kilosort4 (recommended, requires a CUDA GPU)\nsorting = si.run_sorter(\"kilosort4\", rec_corrected, folder=\"ks4_output\")\n\n# CPU alternatives (internally developed, no external install)\nsorting = si.run_sorter(\"spykingcircus2\", rec_corrected, folder=\"sc2_output\")\nsorting = si.run_sorter(\"tridesclous2\", rec_corrected, folder=\"tdc2_output\")\nsorting = si.run_sorter(\"mountainsort5\", rec_corrected, folder=\"ms5_output\")\n\n# External sorters can run in containers without local install\nsorting = si.run_sorter(\"kilosort2_5\", rec_corrected, folder=\"ks25_output\", docker_image=True)\n\nprint(si.installed_sorters())\n```\n\n> Note: `run_sorter` uses the `folder=` argument. The older `output_folder=` is deprecated.\n\n### 4. Postprocessing\n\n```python\nanalyzer = si.create_sorting_analyzer(sorting, rec_corrected, sparse=True,\n                                      format=\"binary_folder\", folder=\"analyzer\u002F\")\n\nanalyzer.compute(\"random_spikes\", method=\"uniform\", max_spikes_per_unit=500)\nanalyzer.compute(\"waveforms\", ms_before=1.0, ms_after=2.0)\nanalyzer.compute(\"templates\", operators=[\"average\", \"std\"])\nanalyzer.compute(\"noise_levels\")\nanalyzer.compute(\"spike_amplitudes\")\nanalyzer.compute(\"correlograms\", window_ms=50.0, bin_ms=1.0)\nanalyzer.compute(\"unit_locations\", method=\"monopolar_triangulation\")\nanalyzer.compute(\"template_similarity\")\n\nmetric_names = [\"firing_rate\", \"presence_ratio\", \"snr\", \"isi_violation\", \"amplitude_cutoff\"]\nanalyzer.compute(\"quality_metrics\", metric_names=metric_names)\nmetrics = analyzer.get_extension(\"quality_metrics\").get_data()\n```\n\n### 5. Curation by metric thresholds\n\n```python\n# Allen-style query (note: column is isi_violations_ratio)\nquery = \"(amplitude_cutoff \u003C 0.1) & (isi_violations_ratio \u003C 0.5) & (presence_ratio > 0.9)\"\ngood_unit_ids = metrics.query(query).index.values\n```\n\nFor reusable, multi-threshold logic with `allen` \u002F `ibl` \u002F `strict` presets, use the\nbundled `scripts\u002Fcompute_metrics.py`. See\n[references\u002FAUTOMATED_CURATION.md](references\u002FAUTOMATED_CURATION.md) for details and the\nBombcell \u002F UnitMatch tools.\n\n### 6. Model-based curation (UnitRefine)\n\nSpikeInterface can apply pretrained machine-learning classifiers from Hugging Face via the\n`spikeinterface.curation` module. The UnitRefine models were trained on real Neuropixels\ndata (V1, SC, ALM):\n\n```python\nimport spikeinterface.curation as sc\n\n# 1) noise vs neural\nnoise_labels = sc.model_based_label_units(\n    sorting_analyzer=analyzer,\n    repo_id=\"SpikeInterface\u002FUnitRefine_noise_neural_classifier\",\n    trust_model=True,\n)\nneural = analyzer.remove_units(noise_labels[noise_labels[\"prediction\"] == \"noise\"].index)\n\n# 2) single-unit (sua) vs multi-unit (mua) on the surviving units\nsua_mua_labels = sc.model_based_label_units(\n    sorting_analyzer=neural,\n    repo_id=\"SpikeInterface\u002FUnitRefine_sua_mua_classifier\",\n    trust_model=True,\n)\n```\n\nEach call returns a DataFrame with `prediction` and `probability` (confidence) per unit.\n`trust_model=True` (or an explicit `trusted=[...]` list) is required to load the `.skops`\nmodel — only load models from sources you trust. Models trained on other brain\nareas\u002Fdatasets may not transfer; validate against a manually labelled subset.\n\n### 7. AI-assisted curation (for uncertain units)\n\nWhen running inside an agent such as Cursor or Claude Code, the agent can directly inspect\nwaveform\u002Fcorrelogram plots and give an expert read — no API setup required. Generate plots\nand ask the agent to assess isolation quality.\n\nFor programmatic vision-model access, **read API keys from the environment — never hardcode\ncredentials in analysis scripts** (they leak into version control and logs):\n\n```python\nimport os\nfrom anthropic import Anthropic\n\nclient = Anthropic(api_key=os.environ[\"ANTHROPIC_API_KEY\"])  # set this in your shell, not in code\n```\n\nSee [references\u002FAI_CURATION.md](references\u002FAI_CURATION.md) for the full pattern (rendering a\nunit summary image, building the prompt, and parsing the response).\n\n### 8. Export results\n\n```python\n# Keep only good units, then export\nanalyzer_clean = analyzer.select_units(good_unit_ids, folder=\"analyzer_clean\u002F\", format=\"binary_folder\")\n\n# Phy for manual review\nsi.export_to_phy(analyzer_clean, output_folder=\"phy_export\u002F\",\n                 compute_pc_features=True, compute_amplitudes=True)\n\n# Figures report\nsi.export_report(analyzer_clean, \"report\u002F\", format=\"png\")\n\n# NWB\nfrom spikeinterface.exporters import export_to_nwb\nexport_to_nwb(analyzer_clean, \"output.nwb\")\n\n# Metrics table\nmetrics.to_csv(\"quality_metrics.csv\")\n```\n\n## Common Pitfalls and Best Practices\n\n1. **Always check drift** before spike sorting — drift > ~10 μm meaningfully degrades quality.\n2. **Use `phase_shift`** for Neuropixels 1.0 to correct ADC sampling offsets.\n3. **Save the preprocessed recording** with `rec.save(folder=...)` to avoid recomputation (Kilosort also needs a binary file).\n4. **Use a GPU** for Kilosort4 — it is far faster than CPU sorters.\n5. **Review uncertain units** — automated\u002Fmodel-based curation is a starting point, not a verdict.\n6. **Combine approaches** — thresholds for clear cases, model\u002FAI for borderline units.\n7. **Document thresholds and model repo IDs** for reproducibility.\n8. **Export to Phy** for critical experiments — human oversight is valuable.\n\n## Key Parameters to Adjust\n\n### Preprocessing\n- `freq_min`: highpass cutoff (300–400 Hz typical)\n- `detect_bad_channels`: returns `(bad_channel_ids, channel_labels)`\n\n### Motion Correction\n- `preset`: `nonrigid_fast_and_accurate` (balanced), `nonrigid_accurate` (severe drift), `dredge` (state of the art)\n\n### Spike Sorting (Kilosort4)\n- `batch_size`: samples per batch (60000 default)\n- `nblocks`: drift blocks (increase for long, drifty recordings)\n- `Th_universal` \u002F `Th_learned`: detection thresholds (lower = more spikes)\n\n### Quality Metrics\n- `snr`: signal-to-noise cutoff (3–5 typical)\n- `isi_violations_ratio`: refractory violations (0.01–0.5)\n- `presence_ratio`: recording coverage (0.5–0.95)\n\n## Bundled Resources\n\n### scripts\u002Fexplore_recording.py\nQuick inspection of a recording (streams, channels, duration, bad channels):\n```bash\npython scripts\u002Fexplore_recording.py \u002Fpath\u002Fto\u002Fdata\n```\n\n### scripts\u002Fpreprocess_recording.py\nAutomated preprocessing:\n```bash\npython scripts\u002Fpreprocess_recording.py \u002Fpath\u002Fto\u002Fdata --output preprocessed\u002F\n```\n\n### scripts\u002Frun_sorting.py\nRun spike sorting:\n```bash\npython scripts\u002Frun_sorting.py preprocessed\u002F --sorter kilosort4 --output sorting\u002F\n```\n\n### scripts\u002Fcompute_metrics.py\nCompute quality metrics and apply curation:\n```bash\npython scripts\u002Fcompute_metrics.py sorting\u002F preprocessed\u002F --output metrics\u002F --curation allen\n```\n\n### scripts\u002Fexport_to_phy.py\nExport to Phy for manual curation:\n```bash\npython scripts\u002Fexport_to_phy.py metrics\u002Fanalyzer --output phy_export\u002F\n```\n\n### scripts\u002Fneuropixels_pipeline.py\nComplete end-to-end pipeline (see [Quick Start](#full-pipeline-bundled-script)).\n\n### assets\u002Fanalysis_template.py\nComplete, editable analysis template. Copy and customize:\n```bash\ncp assets\u002Fanalysis_template.py my_analysis.py\n# Edit the PARAMETERS section, then run\npython my_analysis.py\n```\n\n## Detailed Reference Guides\n\n| Topic | Reference |\n|-------|-----------|\n| Full workflow | [references\u002Fstandard_workflow.md](references\u002Fstandard_workflow.md) |\n| API reference (SpikeInterface) | [references\u002Fapi_reference.md](references\u002Fapi_reference.md) |\n| Plotting guide | [references\u002Fplotting_guide.md](references\u002Fplotting_guide.md) |\n| Preprocessing | [references\u002FPREPROCESSING.md](references\u002FPREPROCESSING.md) |\n| Spike sorting | [references\u002FSPIKE_SORTING.md](references\u002FSPIKE_SORTING.md) |\n| Motion correction | [references\u002FMOTION_CORRECTION.md](references\u002FMOTION_CORRECTION.md) |\n| Quality metrics | [references\u002FQUALITY_METRICS.md](references\u002FQUALITY_METRICS.md) |\n| Automated & model-based curation | [references\u002FAUTOMATED_CURATION.md](references\u002FAUTOMATED_CURATION.md) |\n| AI-assisted curation | [references\u002FAI_CURATION.md](references\u002FAI_CURATION.md) |\n| Waveform analysis | [references\u002FANALYSIS.md](references\u002FANALYSIS.md) |\n\n## Installation\n\nRequires Python ≥ 3.10. Using [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) is recommended.\n\n```bash\n# Core packages (SpikeInterface bundles the curation\u002Fmodel tooling)\nuv pip install \"spikeinterface[full]\" probeinterface neo\n\n# Spike sorters\nuv pip install kilosort          # Kilosort4 (CUDA GPU required)\nuv pip install spykingcircus     # SpykingCircus (legacy; SpykingCircus2 ships with SpikeInterface)\nuv pip install mountainsort5     # Mountainsort5 (CPU)\n\n# Model-based curation (UnitRefine) downloads from Hugging Face\nuv pip install \"huggingface_hub\" skops\n\n# Optional: AI-assisted visual curation\nuv pip install anthropic\n\n# Optional: IBL tools and Bombcell\nuv pip install ibl-neuropixel ibllib bombcell\n```\n\nFor reproducible environments, pin versions (current as of 2026-06: `spikeinterface==0.104.3`,\n`kilosort==4.1.7`, `probeinterface==0.3.2`, `neo==0.14.4`). Unpinned installs are fine for\nquick experimentation but should be pinned in production pipelines.\n\n## Project Structure\n\n```\nproject\u002F\n├── raw_data\u002F\n│   └── recording_g0\u002F\n│       └── recording_g0_imec0\u002F\n│           ├── recording_g0_t0.imec0.ap.bin\n│           └── recording_g0_t0.imec0.ap.meta\n├── preprocessed\u002F           # Saved preprocessed recording\n├── motion\u002F                 # Motion estimation results\n├── sorting_output\u002F         # Spike sorter output\n├── analyzer\u002F               # SortingAnalyzer (waveforms, metrics)\n├── phy_export\u002F             # For manual curation\n├── ai_curation\u002F            # AI analysis reports\n└── results\u002F\n    ├── quality_metrics.csv\n    ├── curation_labels.json\n    └── output.nwb\n```\n\n## Additional Resources\n\n- **SpikeInterface Docs**: https:\u002F\u002Fspikeinterface.readthedocs.io\u002F\n- **Neuropixels Tutorial**: https:\u002F\u002Fspikeinterface.readthedocs.io\u002Fen\u002Fstable\u002Fhow_to\u002Fanalyze_neuropixels.html\n- **Model-based Curation Tutorial**: https:\u002F\u002Fspikeinterface.readthedocs.io\u002Fen\u002Fstable\u002Ftutorials\u002Fcuration\u002Fplot_1_automated_curation.html\n- **UnitRefine Models (Hugging Face)**: https:\u002F\u002Fhuggingface.co\u002FSpikeInterface\n- **Kilosort4 GitHub**: https:\u002F\u002Fgithub.com\u002FMouseLand\u002FKilosort\n- **IBL Neuropixel Tools**: https:\u002F\u002Fgithub.com\u002Fint-brain-lab\u002Fibl-neuropixel\n- **Allen Institute ecephys**: https:\u002F\u002Fgithub.com\u002FAllenInstitute\u002Fecephys_spike_sorting\n- **Bombcell (Automated QC)**: https:\u002F\u002Fgithub.com\u002FJulie-Fabre\u002Fbombcell\n- **Awesome Neuropixels**: https:\u002F\u002Fgithub.com\u002FJulie-Fabre\u002Fawesome_neuropixels\n\n## Agent operating procedure\n\n1. **Check the environment.** Confirm tool versions, the reference genome\u002Fannotation build and the input formats (FASTQ, BAM, VCF, h5ad).\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Run the pipeline on a small subset (one sample, one chromosome, a few thousand cells) first.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Check QC metrics, sample identities, genome build consistency and batch effects before interpreting results.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| Genome builds or identifiers do not match between inputs | Stop and harmonize (liftover, ID mapping) before continuing. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Do not interpret biological significance beyond what the statistics support; report multiple-testing correction.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `bids`: Organizes, queries, validates, and converts neuroscience and biomedical datasets using the Brain Imaging Data Structure (BIDS) standard, co…\n",{"name":5,"license":15,"metadata":49,"description":7},{"tags":50,"version":51,"category":52,"openclaw":53,"maintainer":58},"Neuropixels, spike sorting, electrophysiology, SpikeInterface, neuroscience","2.4","life-sciences",{"envVars":54,"primaryEnv":56},[55],{"name":56,"required":45,"description":57},"ANTHROPIC_API_KEY","For optional Claude API calls.","Kalaris Labs","main","0da4485785ee599388900be50db1635489d53056",".agents\u002Fskills\u002Fkal-neuropixels-analysis","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6","https:\u002F\u002Fdisha6.6.thenitishkr.in\u002F","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh","www.thenitishkr","thenitishkr | AI • Cyber-security • Research\r\n","2026-11-08 03:33:25",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add Tashima-Tarsh\u002FDisha6.6 --skill neuropixels-analysis",{"tool":74,"command":75},"bunx","bunx skills add Tashima-Tarsh\u002FDisha6.6 --skill neuropixels-analysis",{"tool":77,"command":78},"pnpm","pnpm dlx skills add Tashima-Tarsh\u002FDisha6.6 --skill neuropixels-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002FSKILL.md",true,[82,88,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"assets\u002Fanalysis_template.py","SCRIPT","脚本",9009,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fassets\u002Fanalysis_template.py",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002FAI_CURATION.md","REFERENCE","参考文档",5849,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FAI_CURATION.md",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002FANALYSIS.md",9871,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FANALYSIS.md",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fapi_reference.md",7402,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002Fapi_reference.md",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002FAUTOMATED_CURATION.md",13086,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FAUTOMATED_CURATION.md",{"path":107,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002FMOTION_CORRECTION.md",8649,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FMOTION_CORRECTION.md",{"path":111,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fplotting_guide.md",11465,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002Fplotting_guide.md",{"path":115,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002FPREPROCESSING.md",6700,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FPREPROCESSING.md",{"path":119,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002FQUALITY_METRICS.md",9454,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FQUALITY_METRICS.md",{"path":123,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002FSPIKE_SORTING.md",7824,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002FSPIKE_SORTING.md",{"path":127,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fstandard_workflow.md",9461,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Freferences\u002Fstandard_workflow.md",{"path":131,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Fcompute_metrics.py",5588,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fscripts\u002Fcompute_metrics.py",{"path":135,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":136,"sourceHtmlUrl":137},"scripts\u002Fexplore_recording.py",5553,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fscripts\u002Fexplore_recording.py",{"path":139,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":140,"sourceHtmlUrl":141},"scripts\u002Fexport_to_phy.py",2477,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fscripts\u002Fexport_to_phy.py",{"path":143,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":144,"sourceHtmlUrl":145},"scripts\u002Fneuropixels_pipeline.py",14044,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fscripts\u002Fneuropixels_pipeline.py",{"path":147,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":148,"sourceHtmlUrl":149},"scripts\u002Fpreprocess_recording.py",4279,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fscripts\u002Fpreprocess_recording.py",{"path":151,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":152,"sourceHtmlUrl":153},"scripts\u002Frun_sorting.py",2573,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-neuropixels-analysis\u002Fscripts\u002Frun_sorting.py",[155,184,207,232,257,281],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":164,"publishedAt":44},"01M6QRD07D4TGNDK6VJ4EHF8BV","youtube-full","Use when the user needs YouTube transcripts, video search, channel browsing, playlist extraction, or content monitoring. Trigger phrases: 'get the transcript for', 'search YouTube for', 'what are the latest videos on', 'list this playlist', 'monitor this channel', or any request involving a YouTube URL, video ID, or @handle. Do NOT use for downloading video or audio files, YouTube engagement data (likes, comments), or private\u002Fage-restricted videos.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fyoutube-full\u002FSKILL.md",[161],{"categoryNo":162,"categoryName":163,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,26,181,182,183],"youtube full","youtube","full","transcript","search","monitoring","data","Video","Audio","list","files","do","get","age","trigger","URL","browsing","request","youtube transcripts",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":44},"01M6QRCJ3112VYPA97YG7KGMC2","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[191,192,193,194,169,195,196,197,198,199,42,200,201,202,39,203,204,205,206,26],"twitter","x twitter growth","growth","research","content","engineering","plan","web search","competitors","engine","write","strategy","platform","grow","posting","competitive",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":214,"publishedAt":44},"01M6QRBN3EHQNJY42RERP7A149","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, build, or author a new skill.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[213],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[215,201,216,217,218,219,220,221,39,222,223,59,224,225,226,227,228,229,230,231],"write a skill","github","create","https","productivity","matt pocock","direct","example","build","new skill","structure","new agent","resources","with","tree","progressive disclosure","author",{"skillNo":233,"name":234,"nameZh":6,"description":235,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":236,"categories":237,"keywords":238,"publishedAt":44},"01M6QRB6G8P33PNGAF9Y69EJ9T","wrap-up","Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says \"wrap up\", \"close this out\", \"what do I own now\", \"give me the summary\", \"recap the agent\", or when the orchestrator routes phase=wrap-up. primitives_inventory.py tables everything owned (agent, environment, session, memory, outcome, deployment); overview_page.py regenerates a self-contained .\u002Fmy-agent\u002Fagent-overview.html; upgrade_suggester.py ranks the next moves from recorded deferrals plus standing hardening steps. Companion to run-without-you; the last stop before phase=done.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[239,240,241,242,243,244,245,246,247,39,248,176,249,250,251,252,253,254,255,256],"wrap up","up","wrap","gemini","deployment","run","file","hardening","closeout","stop","upgrade","founder","close","companion","you","tables","directions","phase",{"skillNo":258,"name":259,"nameZh":6,"description":260,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":261,"categories":262,"keywords":264,"publishedAt":44},"01M6QRA5AYC1RBFZ39GTWGS3N8","workflow-builder","Design and write deterministic multi-agent workflow scripts (.js files in .claude\u002Fworkflows\u002F) for Claude Code's Workflow tool. Use when a user wants to build, create, author, scaffold, or run a custom Claude Code workflow, orchestrate sub-agents (fan-out, pipeline, loop, judge-panel), or automate a repeatable multi-step task across fresh-context agents.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow-builder\u002FSKILL.md",[263],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[265,266,267,268,269,217,244,270,271,272,273,274,201,275,175,276,277,278,279,280],"workflow","workflow builder","builder","design","workflows","code","orchestrate","pipeline","loop","multi-agent","context","across","fresh","scripts","judge","claude code workflow",{"skillNo":282,"name":283,"nameZh":6,"description":284,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":285,"categories":286,"keywords":287,"publishedAt":44},"01M6QR7QMCZESKQA0ERW1E657M","weekly-review","Use when someone wants to run a weekly review, close open loops, audit stalled projects and commitments, get their system back to trusted, restart a lapsed review habit, or says \"\u002Fcs:weekly-review\". Walks David Allen's three-phase loop — GET CLEAR, GET CURRENT, GET CREATIVE — with deterministic scripts that inventory open loops, gate the checklist with named gaps, and score commitment health 0-100.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[288,289,290,291,292,293,294,43,295,273,296,297,298,299,300,301,177,302,303,256],"review","weekly review","weekly","deterministic scripts","reflect","feeds","inventory","team","projects","project-management","scanner","conversation","back","project","sprint","cadence"]