neuralink-decoder
by aadipapp
Coding Agents & IDEsBrief
Simulates and decodes neural spike activity into cursor movement (BCI).
Description
What This Skill Does
Simulates a Brain-Computer Interface by generating synthetic spike trains for 64 neurons using a cosine tuning motor cortex model. A linear decoder maps spike rates to 2D cursor velocity and prints the reconstructed trajectory.
Runs the full BCI decoding pipeline without physical neural recording hardware, making it accessible for development and education without specialized equipment.
When to Use It
- Prototyping BCI decoding algorithms without physical hardware
- Testing neural decoder accuracy on synthetic spike data
- Teaching motor cortex signal processing in coursework
- Benchmarking cursor velocity reconstruction approaches
- Exploring cosine tuning models for BCI research
Example Workflow
User asks: run the neural decoding simulation
- 1
Generates synthetic spike trains for 64 neurons using cosine tuning
- 2
Computes spike rates from the simulated neural activity
- 3
Applies linear decoder to map spike rates to 2D velocity (vx, vy)
- 4
Prints the decoded cursor trajectory to console
Decoded 2D cursor movement trajectory displayed as a printed path
Installation
clawhub install aadipapp/neuralink-decoderRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.