协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
swarming【开发与工程】Author, lint, run, and debug NuPIC legacy swarming search definitions and turn swarm outputs into OPF model parameters.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to create or repair a NuPIC legacy swarm/search definition, explain run_swarm.py or permutations_runner behavior, run a small dry swarm, diagnose MySQL or worker failures, or use the generated best model from model_0/ in OPF.
NuPIC legacy swarming is a Python 2.7-era workflow. A full swarm expects a working NuPIC installation with nupic.bindings, legacy NumPy compatibility, pycapnp/Cap'n Proto support where required by the install, and a MySQL-compatible ClientJobs database for full hypersearch coordination. The bundled linter below is stdlib-only and can be run before those services are available.
streamDef data-source conventions, aggregation field names, and model-param schema details: read ../data-and-configuration/.MODEL_PARAMS from model_0/model_params.py, or debugging OPF inference outputs: read ../opf-prediction/.../../references/troubleshooting.md.references/swarming-workflows.md: read when authoring search_def.json, choosing run_swarm.py/permutations_runner options, interpreting generated files, or converting best swarm output into OPF parameters.references/swarm-search-def-template.json: copy as a minimal JSON starting point for a one-step numeric prediction swarm; edit field names, file source, aggregation, and predicted field before running.scripts/swarm_config_lint.py: run before any dry or full swarm to catch malformed JSON, missing keys, bad file:// sources, invalid swarmSize, and prediction field mismatches without importing NuPIC.references/troubleshooting.md: read for MySQL credentials, NTA_CONF_PROP_* overrides, dryRun/run/report/pickup recovery, timeout/worker tuning, overwrite/report behavior, generated-output lookup, and customErrorMetric escaping.Start from the bundled template or an existing search_def.json.
Make the CSV and field metadata consistent first; route to ../data-and-configuration/ for NuPIC's three-row CSV headers and aggregation semantics.
Lint safely:
python scripts/swarm_config_lint.py path/to/search_def.json --check-files
For syntax/debugging, prefer a tiny swarmSize: "small", bounded iterationCount, and --action=dryRun --maxPermutations=1 --maxWorkers=1. Treat a full --action=run as service-dependent because it coordinates workers through MySQL.
After a successful run, use model_0/model_params.py or model_0/description.py as the best model artifact; route OPF execution to ../opf-prediction/.
This sub-skill distills NuPIC legacy swarming behavior from the public docs and source paths docs/source/guides/swarming/running.md, docs/source/guides/swarming/algorithm.md, examples/swarm/simple/search_def.json, src/nupic/swarming/, src/nupic/swarming/exp_generator/experimentDescriptionSchema.json, scripts/run_swarm.py, and tests/swarming/. These paths are provenance only; this runtime skill is self-contained and does not require future agents to reopen them.