Skip to content
Back to skills

Nupic Legacy

ASecurity

"Use NuPIC legacy HTM algorithms, OPF prediction, Network API

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
developmentpythongobashsqldockerdebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill nupic-legacy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nupic Legacy?

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

Security grade badge for Nupic Legacy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-nupic-legacy/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-nupic-legacy)

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: nupic-legacy
description: "Use NuPIC legacy HTM algorithms, OPF prediction, Network API
  pipelines, swarming search definitions, and data/config validation in Python
  2.7-era runtimes."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# NuPIC Legacy

Use this repo skill when a task involves NuPIC legacy, Hierarchical Temporal Memory (HTM), streaming anomaly/prediction workflows, `SpatialPooler`, `TemporalMemory`, `SDRClassifier`, OPF `ModelFactory`, Network API regions, `run_swarm`, or NuPIC three-header-row CSV/model-parameter files.

NuPIC legacy is maintenance-mode, Python 2.7-era software. Start by checking the runtime before debugging workflow code.

## Start here

1. Read [references/repo-provenance.md](references/repo-provenance.md) when checking whether this skill matches a checkout or deciding whether to refresh it.
2. Read [references/installation-and-runtime.md](references/installation-and-runtime.md) before installing or preparing a NuPIC legacy environment.
3. Run [scripts/check_nupic_legacy_env.py](scripts/check_nupic_legacy_env.py) inside the candidate Python environment to verify imports and tiny API construction.
4. Use [references/troubleshooting.md](references/troubleshooting.md) when failures mention Python version, `nupic`, `nupic.bindings`, `numpy`, `capnp`/`pycapnp`, dependency conflicts, or broad runtime setup.

Minimal package smoke command from this skill root:

```bash
python scripts/check_nupic_legacy_env.py
```

Expected runtime for execution tasks: Python 2.7, installed `nupic`, compiled `nupic.bindings`, legacy-compatible NumPy, and `pycapnp`/Cap'n Proto where serialization is involved. Do not treat Python 3 import or syntax failures as surprising unless the user is explicitly porting NuPIC.

## Route by task

| User task or signal | Go to | Why |
|---|---|---|
| Direct encoders, `SpatialPooler`, `TemporalMemory`, `SDRClassifier`, anomaly score, anomaly likelihood, active columns/cells | [sub-skills/htm-algorithms/](sub-skills/htm-algorithms/) | Covers direct HTM algorithm APIs, signatures, array shapes, and tiny smoke checks. |
| CSV stream headers, `FileRecordStream`, field metadata, model parameter YAML/JSON, aggregation, configuration overrides | [sub-skills/data-and-configuration/](sub-skills/data-and-configuration/) | Validates and explains input/config artifacts shared by OPF, Network, and swarming. |
| OPF `ModelFactory`, `HTMPredictionModel`, `model.run`, `result.inferences`, experiment directories, checkpoints | [sub-skills/opf-prediction/](sub-skills/opf-prediction/) | Covers high-level prediction workflows, inference keys, experiment runner guidance, and checkpoint use. |
| `Network`, `RecordSensor`, `SPRegion`, `TMRegion`, classifier regions, region links, custom PyRegion | [sub-skills/network-api/](sub-skills/network-api/) | Covers Network API construction, linking, region specs, output extraction, and custom-region skeletons. |
| `run_swarm`, `permutations_runner`, `search_def.json`, generated `model_0`, MySQL/ClientJobs errors | [sub-skills/swarming/](sub-skills/swarming/) | Covers safe search-definition linting, CLI/action options, service requirements, and using generated OPF models. |

## Common workflows

### Direct HTM algorithm pipeline

Use `htm-algorithms` when the user wants to encode values, run SP/TM, classify active cells, or compute anomaly likelihood without OPF. The bundled smoke is:

```bash
python sub-skills/htm-algorithms/scripts/algorithm_smoke.py --mode all --records 20
```

### OPF prediction over a CSV stream

Use `data-and-configuration` first to validate the NuPIC CSV and model parameters, then `opf-prediction` to create the model and extract `multiStepBestPredictions` / `multiStepPredictions`. Useful checks:

```bash
python sub-skills/data-and-configuration/scripts/validate_nupic_csv.py data.csv --predicted-field consumption
python sub-skills/opf-prediction/scripts/opf_prediction_smoke.py
```

### Network API graph

Use `network-api` when the user asks for explicit regions and links rather than OPF. Start with:

```bash
python sub-skills/network-api/scripts/network_smoke.py --inspect-region-types
```

### Swarming/search-definition workflow

Use `swarming` for `search_def.json` authoring and hypersearch run planning. Lint before running anything service-backed:

```bash
python sub-skills/swarming/scripts/swarm_config_lint.py search_def.json --summary
```

Full swarming can require MySQL-compatible service configuration and may be expensive; never use it as a first install smoke.

## Boundaries

- This skill teaches using NuPIC legacy as a package. For source-code edits, release engineering, or Python 3 porting, treat the task as repository maintenance and do not use package workflow assumptions blindly.
- This skill does not cover modern deep-learning time-series forecasting unless the task explicitly uses NuPIC/HTM APIs.
- Do not install developer requirements, visualization extras, Docker/Vagrant tooling, profiling scripts, or full benchmark suites unless the user asks for those surfaces.
- Runtime instructions here are self-contained; bundled references/scripts replace the relevant example logic instead of requiring future agents to read or run original checkout files.

Files in this skill

  • SKILL.md5.2 KB
  • references/installation-and-runtime.md4.4 KB
  • references/repo-provenance.md2.7 KB
  • references/repo-routing-metadata.json496 B
  • references/troubleshooting.md3.9 KB
  • scripts/check_nupic_legacy_env.py5.3 KB
  • sub-skills/data-and-configuration/SKILL.md4 KB
  • sub-skills/data-and-configuration/references/data-formats.md7 KB
  • sub-skills/data-and-configuration/references/model-params-and-config.md8.9 KB
  • sub-skills/data-and-configuration/references/troubleshooting.md7.7 KB
  • sub-skills/data-and-configuration/scripts/validate_nupic_csv.py21.5 KB
  • sub-skills/htm-algorithms/SKILL.md4.6 KB
  • sub-skills/htm-algorithms/references/api-reference.md9.9 KB
  • sub-skills/htm-algorithms/references/troubleshooting.md10.8 KB
  • sub-skills/htm-algorithms/references/workflows.md9.3 KB
  • sub-skills/htm-algorithms/scripts/algorithm_smoke.py13 KB
  • sub-skills/network-api/SKILL.md4.6 KB
  • sub-skills/network-api/references/custom-region.md7.6 KB
  • sub-skills/network-api/references/network-workflows.md11.7 KB
  • sub-skills/network-api/references/troubleshooting.md8.3 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.