--- name: neuralink-decoder description: "Simulates and decodes neural spike activity into cursor movement (BCI)." --- # Neuralink Decoder Skill This skill simulates a Brain-Computer Interface (BCI). It generates synthetic neural spiking data based on cosine tuning (motor cortex model) and uses a linear decoder to reconstruct cursor velocity. ## Features - **Neural Simulator**: Generates realistic spike trains for 64 neurons. - **Decoder**: Maps spike rates to 2D velocity ($v_x, v_y$). - **Visualization**: Prints the decoded trajectory. ## Commands - `decode`: Run the simulation and decoding loop.