brian2-simulation

Simulate spiking neural networks with Brian2 for neuron dynamics and STDP analysis.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill brian2-simulation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brian2-simulation
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/05-neuroscience/brian2-simulation
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill brian2-simulation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It enables end-to-end simulation of spiking neural networks so you can study neuron dynamics, synaptic plasticity, and resulting firing statistics without building models from scratch each time.

Core Features & Use Cases

  • Neuron model simulation (LIF/AdEx/HH): Run biologically inspired integrate-and-fire, adaptive exponential, and Hodgkin-Huxley style conductance dynamics.
  • Network dynamics (recurrent E-I networks): Simulate excitatory/inhibitory populations with sparse connectivity and analyze emergent activity.
  • Plasticity and analysis (STDP, raster plots, mean-field checks): Implement STDP learning rules and produce raster plots and firing-rate statistics for coding hypotheses.

Quick Start

Use the brian2-simulation skill to simulate an E-I spiking network with LIF neurons, generate a raster plot, and compute smoothed firing rates from the spike trains.

Frequently Asked Questions about brian2-simulation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simulate spiking neural networks for STDP learning and firing rate analysis?

You can simulate recurrent excitatory-inhibitory spiking networks by configuring sparse E-I connectivity in Brian2. The skill runs deterministic Python simulation code to generate emergent activity patterns, spike trains, and raster plots for analyzing network dynamics.

Can I use Brian2 to model Hodgkin-Huxley conductance dynamics and adaptive exponential neurons?

Brian2 simulates neuron dynamics by running deterministic Python code with standard scientific libraries. It computes biologically inspired conductance dynamics for LIF, AdEx, and Hodgkin-Huxley models, then outputs monitored spike trains and firing statistics for analysis.

Do I need Python and standard scientific libraries to run Brian2 spiking neuron simulations?

STDP spike-timing-dependent plasticity in recurrent networks is implemented through Brian2 plastic synapses. The skill runs deterministic simulation code to apply STDP learning rules and produces raster plots and smoothed firing rates to test coding hypotheses.

What's the best way to generate raster plots and mean-field analysis from Brian2 spike trains?

The best way to generate raster plots and mean-field analysis from Brian2 spike trains is using the skill's monitored outputs. It computes smoothed firing rates from spike train data and performs mean-field checks to validate emergent firing statistics.