AGENT SKILL

data-and-configuration

Validate and explain NuPIC legacy CSV streams, FileRecordStream metadata, model parameter files, aggregation blocks, and configuration overrides.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
data-and-configuration
license
MIT
metadata
{ "disco-role": "operating" }
description
Validate and explain NuPIC legacy CSV streams, FileRecordStream metadata, model parameter files, aggregation blocks, and configuration overrides.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Data and Configuration

Use this sub-skill when the request is about NuPIC legacy input data, FileRecordStream, CSV field metadata, model parameter YAML/JSON, aggregation settings, or configuration property overrides. This skill prepares and validates configuration artifacts; it does not run OPF models, Network API graphs, or swarms.

Start here

  • Read references/data-formats.md when a user asks why a NuPIC CSV fails, what the three header rows mean, how FileRecordStream interprets fields, or what timestamp/type/flag values are accepted.
  • Read references/model-params-and-config.md when building or reviewing model params for a predicted field, mapping encoders to CSV columns, adding aggregation, or applying NTA_CONF_PROP_* overrides.
  • Read references/troubleshooting.md when diagnosing missing header rows, invalid field types or flags, timestamp parse errors, row width mismatches, encoder/field mismatches, swarm file:// source issues, or config override surprises.
  • Run scripts/validate_nupic_csv.py for a deterministic, stdlib-first CSV check that does not import nupic; it validates headers, field types, special flags, row widths, timestamp/value parsing, and optional predicted-field/model-param consistency.

Common request routing

User intent Use this sub-skill for Route elsewhere for
"Validate this input file" or "why does OPF reject my CSV?" Three-row CSV header, field types, flags, timestamp formats, row widths, FileRecordStream expectations. Python 2.7/package import failures: root troubleshooting.
"Build model params for a predicted field" model, version, aggregationInfo, modelParams.sensorParams.encoders, spParams, tmParams, clParams, predicted-field checks. Actually creating/running ModelFactory and reading inference outputs: ../opf-prediction/.
"Use this CSV in a Network API sensor" CSV metadata and FileRecordStream shape. Region/link construction with RecordSensor or FileRecordStream: ../network-api/.
"Make or lint a swarm search definition" CSV fields and shared model-param concepts; ensure stream sources use file://. Search definition JSON, hypersearch actions, generated experiments: ../swarming/.

Minimal validation command

python sub-skills/data-and-configuration/scripts/validate_nupic_csv.py data.csv \
  --predicted-field consumption

With a model params file:

python sub-skills/data-and-configuration/scripts/validate_nupic_csv.py data.csv \
  --model-params model_params.json \
  --predicted-field consumption

If the params file is YAML, the script attempts to import yaml only for that file. If PyYAML is missing, use a JSON export or install PyYAML in the active Python environment. The validator itself does not require NuPIC, nupic.bindings, NumPy, Cap'n Proto, or Python 2.7.

NuPIC legacy runtime reality

The actual NuPIC legacy package workflows are Python 2.7-era workflows and commonly require nupic.bindings, NumPy 1.12.x, pycapnp/Cap'n Proto, and compatible C++ runtime libraries. Keep those install/import issues out of data-format debugging unless the failure is clearly an import failure; use root troubleshooting for package/runtime problems.

Evidence provenance

This sub-skill distills behavior from NuPIC legacy data docs, quick-start model parameter examples, nupic.data source, configuration support source, OPF description API source, and data unit tests. Runtime instructions are bundled here so future agents do not need the original repository checkout.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351