Skip to content
Back to skills

Core Neurons

ASecurity

"Build and debug snnTorch neuron, recurrent layer, state lifecycle,

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 9, 2026
businessgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill core-neurons --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Core Neurons?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Core Neurons
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-core-neurons/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-core-neurons)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: core-neurons
description: "Build and debug snnTorch neuron, recurrent layer, state lifecycle,
  and batchnorm-through-time workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# core-neurons

Use this sub-skill when the task is to construct, combine, or debug snnTorch neuron and neuron-layer workflows.

## Route here for

- Core neuron construction and calls for `Leaky`, `Synaptic`, `RLeaky`, `RSynaptic`, `Lapicque`, `Alpha`, and `DeltaLeaky`.
- Time-parallel or state-only neuron layers: `LinearLeaky`, `StateLeaky`, and `LeakyParallel`.
- Recurrent and LSTM-like spiking layers: `SConv2dLSTM`, `SLSTM`, and `AssociativeLeaky`.
- Hidden-state lifecycle choices: manual state tuples, `init_hidden=True`, `reset_mem`, class-level `reset_hidden`/`detach_hidden`, and `snntorch.utils.reset`.
- Reset semantics, learnable decay/threshold flags, recurrent wiring choices, `BatchNormTT1d`/`BatchNormTT2d`, and `GradedSpikes`.

## Do not handle here

- Spike encodings, surrogate-gradient selection depth, loss functions, metrics, STDP, quantization recipes, or full training-loop design: route to `encoding-training`.
- NIR export/import or NIR graph round trips: route to `nir-interoperability`.
- Spike raster/count/trace/animation plotting: route to `plotting`.
- Legacy neuromorphic dataset wrappers or dataset downloads: route to `spikevision`.

## Operating workflow

1. Identify whether the user needs a stepwise neuron cell, a time-major sequence layer, a recurrent cell, or a helper layer.
2. Check the exact constructor, state tuple, and return contract in [API reference](references/api-reference.md).
3. Pick the state-management pattern in [workflows](references/workflows.md): manual states, `init_hidden=True`, stateless time-major layers, or `LeakyParallel`.
4. Before changing model logic, triage state-count, reset, learnable-parameter, device, and shape failures with [troubleshooting](references/troubleshooting.md).
5. For a safe local smoke check, run one of the bundled scripts below; they use synthetic tensors only and require no downloads.

## Bundled scripts

- [`scripts/leakyparallel_forward_smoke.py`](scripts/leakyparallel_forward_smoke.py): synthetic `LeakyParallel` forward/gradient smoke, including diagonal recurrent-gradient behavior.
- [`scripts/leakyparallel_train_smoke.py`](scripts/leakyparallel_train_smoke.py): tiny synthetic `LeakyParallel` optimization smoke adapted from the example training pattern without external data.
- [`scripts/mixed_state_chain_smoke.py`](scripts/mixed_state_chain_smoke.py): difficult mixed `Leaky` + `LinearLeaky` + `StateLeaky` state-reset case, with BNTT and `GradedSpikes` sanity checks.
- [`scripts/associative_leaky_smoke.py`](scripts/associative_leaky_smoke.py): `AssociativeLeaky.from_num_spiking_neurons` q-projection toggle plus chunked-batch gradient equivalence.
- [`scripts/spiking_lstm_smoke.py`](scripts/spiking_lstm_smoke.py): `SLSTM` and `SConv2dLSTM` state-tuple and shape smoke.

Start with [workflows](references/workflows.md) for recipes and [API reference](references/api-reference.md) for argument-level constraints.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-reference.md10 KB
  • references/troubleshooting.md6.8 KB
  • references/workflows.md7.4 KB
  • scripts/associative_leaky_smoke.py3.3 KB
  • scripts/leakyparallel_forward_smoke.py2.4 KB
  • scripts/leakyparallel_train_smoke.py3.3 KB
  • scripts/mixed_state_chain_smoke.py5.9 KB
  • scripts/spiking_lstm_smoke.py2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.