brainx-skill 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +6 -0
  2. package/adapters/antigravity.js +8 -0
  3. package/installation/lib/installer.js +60 -20
  4. package/installation/lib/paths.js +41 -3
  5. package/installation/lib/prompts.js +13 -7
  6. package/manifest.json +2 -1
  7. package/package.json +3 -2
  8. package/skills/braincell/SKILL.md +14 -0
  9. package/skills/brainevent/SKILL.md +1 -0
  10. package/skills/brainmass/SKILL.md +1 -1
  11. package/skills/brainpy-state/SKILL.md +7 -1
  12. package/skills/brainpy-state/references/array-creation.md +2 -2
  13. package/skills/brainpy-state/references/brainPy(legacy)/analysis.md +150 -0
  14. package/skills/brainpy-state/references/brainPy(legacy)/brainpy legacy workflow.md +373 -0
  15. package/skills/brainpy-state/references/brainPy(legacy)/built-in dynamic neuron model.md +150 -0
  16. package/skills/brainpy-state/references/brainPy(legacy)/connecting neurons.md +175 -0
  17. package/skills/brainpy-state/references/brainPy(legacy)/customize neuron and synpase.md +286 -0
  18. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/Input generation.md +111 -0
  19. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/More about simulation.md +163 -0
  20. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/Multi-device array sharding.md +113 -0
  21. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/Parallel experiment execution.md +136 -0
  22. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/array creation and mechanics.md +222 -0
  23. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/brainpy math environment setting.md +123 -0
  24. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/delays.md +107 -0
  25. package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/object oriented transformations and control flows.md +185 -0
  26. package/skills/brainpy-state/references/brainPy(legacy)/integrators.md +181 -0
  27. package/skills/brainpy-state/references/brainPy(legacy)/route activity through connectivity.md +102 -0
  28. package/skills/brainpy-state/references/brainPy(legacy)/synaptic projections.md +147 -0
  29. package/skills/brainpy-state/references/brainPy(legacy)/synpase properties.md +159 -0
  30. package/skills/brainpy-state/references/brainPy(legacy)/training/loss library.md +127 -0
  31. package/skills/brainpy-state/references/brainPy(legacy)/training/optimizers.md +167 -0
  32. package/skills/brainpy-state/references/brainPy(legacy)/training/parameter initializers.md +107 -0
  33. package/skills/brainpy-state/references/brainPy(legacy)/training/prebuilt neural network layers.md +186 -0
  34. package/skills/brainpy-state/references/brainPy(legacy)/training/surrogate gradients.md +104 -0
  35. package/skills/brainpy-state/references/brainPy(legacy)/training/trainer library.md +89 -0
  36. package/skills/brainpy-state/references/brainPy(legacy)/training/trainingworkflows.md +253 -0
  37. package/skills/brainstate/SKILL.md +14 -10
  38. package/skills/brainstate/references/brainstate/transformation-grad-expansion.md +1 -1
  39. package/skills/brainstate/references/braintools/optimizer.md +179 -0
  40. package/skills/braintrace/SKILL.md +161 -0
  41. package/skills/braintrace/references/Drtrl.md +179 -0
  42. package/skills/braintrace/references/ETP operators.md +161 -0
  43. package/skills/braintrace/references/algorithm selection.md +120 -0
  44. package/skills/braintrace/references/batching.md +150 -0
  45. package/skills/braintrace/references/compiler_internal.md +162 -0
  46. package/skills/braintrace/references/custom ETP primitives.md +200 -0
  47. package/skills/braintrace/references/custom algorithms.md +206 -0
  48. package/skills/braintrace/references/customizing_primitive_transforms.md +191 -0
  49. package/skills/braintrace/references/pp_pprop workflow.md +196 -0
  50. package/skills/braintrace/references/pre-built-braintrace-layer.md +149 -0
  51. package/skills/brainx-general-guard/SKILL.md +20 -2
  52. package/skills/brainx-install/SKILL.md +24 -21
  53. package/skills/brainstate/agents/openai.yaml +0 -4
@@ -1,21 +1,23 @@
1
1
  ---
2
2
  name: brainx-install
3
- description: " Gently check whether the BrainX meta-package is installed in the intended Python environment; if it is absent, open this skill. use this skill to install, set up, upgrade, downgrade, pin, migrate, uninstall, or clean up BrainX."
3
+ description: Gently check whether the BrainX meta-package is installed in the intended Python environment; if it is absent, open this skill. Use this skill to install, set up, upgrade, downgrade, pin, migrate, uninstall, or clean up BrainX.
4
4
  ---
5
5
 
6
- # BrainX Install
6
+ # BrainX install
7
7
 
8
- ## Objective
8
+ ## Purpose and boundary
9
9
 
10
10
  Install or remove BrainX in one confirmed Python virtual environment, verify, then report the result. For installation, treat each published BrainX release as an indivisible compatibility set; never assemble independently selected subpackage versions.
11
11
 
12
- ## Request Routing
12
+ This skill owns environment mutation only. It does not teach BrainX modeling, simulation, or training; once the environment is ready, hand the task to the BrainX general guard and the package skills it selects.
13
+
14
+ ## Request routing
13
15
 
14
16
  For an uninstall, removal, or BrainX package-cleanup request, open [references/uninstall-and-cleanup.md](references/uninstall-and-cleanup.md) and stop here. Follow that reference in full; do not apply the installation workflow's device or release selection.
15
17
 
16
18
  For installation, upgrade, downgrade, migration, device-target, or compatibility requests, continue with the workflow below.
17
19
 
18
- ## Core Rules
20
+ ## Core rules
19
21
 
20
22
  1. BrainX package must use a Python interpreter at version `>=3.11`.
21
23
  2. For a clean environment with no requested version, prefer to use the unpinned BrainX install matching the confirmed device, but resolve and name the current latest Python-compatible BrainX date-style release before confirmation. Critically, if a BrainX component already exists in the environment, or a requested version is specified, you must open [compatibility-and-release-matching.md](references/compatibility-and-release-matching.md), use it as the primary release source, and select one non-separated release. Never mix component versions from different rows.
@@ -41,7 +43,7 @@ read-only inspection
41
43
  -> final report
42
44
  ```
43
45
 
44
- ## 1. Read-Only Inspection
46
+ ## 1. Read-only inspection
45
47
 
46
48
  Record the intended run location first. Perform no package installation, or environment creation during inspection.
47
49
 
@@ -58,7 +60,7 @@ Collect enough evidence to identify:
58
60
 
59
61
  Prefer package metadata and platform-native tools over imports or newly installed helpers. Record missing evidence explicitly as `unknown`, `not_detected`, or a command error rather than guessing. Organize the result in whatever concise structured form best fits the task.
60
62
 
61
- ## 2. Confirm the Device Target
63
+ ## 2. Confirm the device target
62
64
 
63
65
  Determine whether the intended installation is for:
64
66
 
@@ -75,7 +77,7 @@ Reflect the understood requirement back to the user before release selection. Us
75
77
 
76
78
  Replace the example values with the user's actual target. If evidence is uncertain, explain the ambiguity and ask a focused question instead of filling in a likely answer. Recommend `cpu` when accelerator support is absent or uncertain, but still require explicit confirmation. Do not proceed until the user confirms or corrects the reflected device target.
77
79
 
78
- ## 3. Select One Release
80
+ ## 3. Select one release
79
81
 
80
82
  First case, When no BrainX meta-package or ecosystem component is installed and the user has not requested a specific version, do not open the compatibility reference. Use read-only official package-index metadata with the proposed interpreter to identify the exact latest Python-compatible BrainX release, then report it in the form `latest (vYYYY.M.D)`. For example, report `latest (v2026.7.9)` when `2026.7.9` is the verified current release.
81
83
 
@@ -87,7 +89,7 @@ Critically, for the second case, when BrainX packages are already installed or t
87
89
  - Treat an installed `BrainX` meta-package version as the release anchor, but surface any component drift from its row.
88
90
  - Do not use JAX or Optax alone as a legacy release anchor unless the user explicitly asks to preserve it.
89
91
 
90
- ## 4. Choose the Venv
92
+ ## 4. Choose the venv
91
93
 
92
94
  Prefer reusing an existing relevant Python virtual environment whose interpreter is Python `>=3.11`. This includes environments managed by `venv`, Conda, or another environment manager; inspect the environment before proposing reuse.
93
95
 
@@ -97,7 +99,7 @@ Prefer reusing an existing relevant Python virtual environment whose interpreter
97
99
 
98
100
  Resolve the exact interpreter inside the proposed environment using the conventions of the confirmed platform and environment manager. Do not rely on shell activation or assume that a bare `python` or `pip` command targets the intended environment.
99
101
 
100
- ## 5. Present the Complete Specification
102
+ ## 5. Present the complete specification
101
103
 
102
104
  The agent must report the complete proposed setup before any mutation. This is a mandatory reporting contract, not a rigid implementation script. Use concrete values and preserve the following visible structure:
103
105
 
@@ -133,7 +135,7 @@ End by asking the user to confirm the entire setup or correct it, and state expl
133
135
 
134
136
  Do not combine specification and installation in one turn unless the user has already confirmed this exact environment, release, and device extra.
135
137
 
136
- ## 6. Install and Verify
138
+ ## 6. Install and verify
137
139
 
138
140
  Use exactly the confirmed venv, interpreter, device extra, and unpinned or pinned release method.
139
141
 
@@ -161,7 +163,7 @@ Verification passes only when:
161
163
 
162
164
  Do not modify manifests, lockfiles, requirements files, or unrelated environments.
163
165
 
164
- ## 7. Report and Post-install handoff
166
+ ## 7. Report and post-install handoff
165
167
 
166
168
  Report:
167
169
 
@@ -176,11 +178,11 @@ After reporting a `PASS`, explicitly tell the user:
176
178
  > This session is for installation of the BrainX package. Installation is complete; Please open another codex chat so that the context is clean
177
179
 
178
180
 
179
- ## Official Commands to use
181
+ ## Official commands to use
180
182
 
181
183
  Use these official BrainX documentation examples to understand the supported syntax. They are educational patterns, not a rigid workflow or permission to bypass the confirmed interpreter, venv, release behavior, or device choice.
182
184
 
183
- ### Quick Install and Dependency Resolution
185
+ ### Quick install and dependency resolution
184
186
 
185
187
  When no BrainX meta-package or ecosystem component is already installed, prefer the official unpinned quick-install family:
186
188
 
@@ -196,7 +198,7 @@ For a new BrainX environment when user has no existing brainX packages, the bare
196
198
  | `pip install -U 'BrainX[cuda12]'` | Same as above | Same, plus CUDA 12 JAX dependencies |
197
199
  | `pip install 'BrainX==2025.9.15'` | Upgraded or downgraded to exactly `2025.9.15` if another version is installed | Replaced only when their installed versions do not satisfy `2025.9.15`'s requirements |
198
200
 
199
- ### Hardware-Specific Installs
201
+ ### Hardware-specific installs
200
202
 
201
203
  For a clean environment, each unpinned command below is the default for its corresponding confirmed target. Choose the extra that matches the platform and CUDA toolchain:
202
204
 
@@ -214,7 +216,7 @@ pip install -U BrainX[cuda13]
214
216
  pip install -U BrainX[tpu]
215
217
  ```
216
218
 
217
- ### Pin a Specific BrainX Release
219
+ ### Pin a specific BrainX release
218
220
 
219
221
  BrainX releases use date-style versions:
220
222
 
@@ -224,10 +226,11 @@ pip install BrainX==2025.9.15
224
226
 
225
227
  When an exact release is requested, preserve the confirmed hardware extra while applying the selected BrainX release pin.
226
228
 
227
- ## Reference Routing
228
-
229
- Open [references/uninstall-and-cleanup.md](references/uninstall-and-cleanup.md) for any request to uninstall, remove, or clean up BrainX packages. Use its exact package scopes and mandatory uninstall specification; do not use the compatibility matrix to narrow the cleanup set.
229
+ ## Reference routing
230
230
 
231
- Open [references/compatibility-and-release-matching.md](references/compatibility-and-release-matching.md) when the target environment already contains BrainX or BrainX ecosystem packages, or when the user requests a specific pinned BrainX version. This reference is mandatory for that second case and must be read before release selection. Use its matrix to match existing packages, reconcile version drift, evaluate pinned-version compatibility, and select one coherent BrainX release with its declared component versions.
231
+ | Reference | Open when |
232
+ |---|---|
233
+ | `references/uninstall-and-cleanup.md` | Uninstalling, removing, or cleaning up BrainX packages; it contains the exact package scopes and the mandatory uninstall specification. Do not narrow the cleanup set with the compatibility matrix. |
234
+ | `references/compatibility-and-release-matching.md` | The target environment already contains BrainX or BrainX ecosystem packages, or the user requests a specific pinned BrainX version. Mandatory in the pinned case and read before release selection; it contains the release matrix used to match existing packages, reconcile version drift, evaluate pinned-version compatibility, and select one coherent release with its declared component versions. |
232
235
 
233
- Do not open this reference for a clean installation when no BrainX packages are present and no specific version is requested; use the unpinned quick-install path instead.
236
+ Do not open `references/compatibility-and-release-matching.md` for a clean installation when no BrainX packages are present and no specific version is requested; use the unpinned quick-install path instead.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "BrainState"
3
- short_description: "Build stateful BrainState modules and transforms"
4
- default_prompt: "Use $brainstate to build or debug a stateful BrainState model."