brainx-skill 1.0.9 → 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.
- package/README.md +6 -0
- package/adapters/antigravity.js +8 -0
- package/installation/lib/installer.js +60 -20
- package/installation/lib/paths.js +41 -3
- package/installation/lib/prompts.js +13 -7
- package/manifest.json +2 -1
- package/package.json +3 -2
- package/skills/braincell/SKILL.md +14 -0
- package/skills/brainevent/SKILL.md +1 -0
- package/skills/brainmass/SKILL.md +1 -1
- package/skills/brainpy-state/SKILL.md +7 -1
- package/skills/brainpy-state/references/array-creation.md +2 -2
- package/skills/brainpy-state/references/brainPy(legacy)/analysis.md +150 -0
- package/skills/brainpy-state/references/brainPy(legacy)/brainpy legacy workflow.md +373 -0
- package/skills/brainpy-state/references/brainPy(legacy)/built-in dynamic neuron model.md +150 -0
- package/skills/brainpy-state/references/brainPy(legacy)/connecting neurons.md +175 -0
- package/skills/brainpy-state/references/brainPy(legacy)/customize neuron and synpase.md +286 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/Input generation.md +111 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/More about simulation.md +163 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/Multi-device array sharding.md +113 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/Parallel experiment execution.md +136 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/array creation and mechanics.md +222 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/brainpy math environment setting.md +123 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/delays.md +107 -0
- package/skills/brainpy-state/references/brainPy(legacy)/infrastructure/object oriented transformations and control flows.md +185 -0
- package/skills/brainpy-state/references/brainPy(legacy)/integrators.md +181 -0
- package/skills/brainpy-state/references/brainPy(legacy)/route activity through connectivity.md +102 -0
- package/skills/brainpy-state/references/brainPy(legacy)/synaptic projections.md +147 -0
- package/skills/brainpy-state/references/brainPy(legacy)/synpase properties.md +159 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/loss library.md +127 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/optimizers.md +167 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/parameter initializers.md +107 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/prebuilt neural network layers.md +186 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/surrogate gradients.md +104 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/trainer library.md +89 -0
- package/skills/brainpy-state/references/brainPy(legacy)/training/trainingworkflows.md +253 -0
- package/skills/brainstate/SKILL.md +14 -10
- package/skills/brainstate/references/brainstate/transformation-grad-expansion.md +1 -1
- package/skills/brainstate/references/braintools/optimizer.md +179 -0
- package/skills/braintrace/SKILL.md +161 -0
- package/skills/braintrace/references/Drtrl.md +179 -0
- package/skills/braintrace/references/ETP operators.md +161 -0
- package/skills/braintrace/references/algorithm selection.md +120 -0
- package/skills/braintrace/references/batching.md +150 -0
- package/skills/braintrace/references/compiler_internal.md +162 -0
- package/skills/braintrace/references/custom ETP primitives.md +200 -0
- package/skills/braintrace/references/custom algorithms.md +206 -0
- package/skills/braintrace/references/customizing_primitive_transforms.md +191 -0
- package/skills/braintrace/references/pp_pprop workflow.md +196 -0
- package/skills/braintrace/references/pre-built-braintrace-layer.md +149 -0
- package/skills/brainx-general-guard/SKILL.md +45 -8
- package/skills/brainx-install/SKILL.md +29 -23
- package/skills/brainstate/agents/openai.yaml +0 -4
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainx-install
|
|
3
|
-
description:
|
|
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
|
|
6
|
+
# BrainX install
|
|
7
7
|
|
|
8
|
-
##
|
|
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
|
-
|
|
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
|
|
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-
|
|
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
|
|
63
|
+
## 2. Confirm the device target
|
|
62
64
|
|
|
63
65
|
Determine whether the intended installation is for:
|
|
64
66
|
|
|
@@ -67,7 +69,7 @@ Determine whether the intended installation is for:
|
|
|
67
69
|
- `cuda13`
|
|
68
70
|
- `tpu`
|
|
69
71
|
|
|
70
|
-
Do not treat detected hardware as the user's choice. If the target is unstated, implied, contradictory, or unclear, question the user directly and persistently until they explicitly choose one device target.
|
|
72
|
+
Do not treat detected hardware as the user's choice. If the target is unstated, implied, contradictory, or unclear, question the user directly and persistently until they explicitly choose one device target.
|
|
71
73
|
|
|
72
74
|
Reflect the understood requirement back to the user before release selection. Use wording such as:
|
|
73
75
|
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
166
|
+
## 7. Report and post-install handoff
|
|
165
167
|
|
|
166
168
|
Report:
|
|
167
169
|
|
|
@@ -171,13 +173,16 @@ Report:
|
|
|
171
173
|
- verification command output;
|
|
172
174
|
- final status: `PASS` or `FAIL`, with the reason.
|
|
173
175
|
|
|
174
|
-
|
|
176
|
+
After reporting a `PASS`, explicitly tell the user:
|
|
177
|
+
|
|
178
|
+
> This session is for installation of the BrainX package. Installation is complete; Please open another codex chat so that the context is clean
|
|
175
179
|
|
|
176
|
-
|
|
180
|
+
|
|
181
|
+
## Official commands to use
|
|
177
182
|
|
|
178
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.
|
|
179
184
|
|
|
180
|
-
### Quick
|
|
185
|
+
### Quick install and dependency resolution
|
|
181
186
|
|
|
182
187
|
When no BrainX meta-package or ecosystem component is already installed, prefer the official unpinned quick-install family:
|
|
183
188
|
|
|
@@ -193,7 +198,7 @@ For a new BrainX environment when user has no existing brainX packages, the bare
|
|
|
193
198
|
| `pip install -U 'BrainX[cuda12]'` | Same as above | Same, plus CUDA 12 JAX dependencies |
|
|
194
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 |
|
|
195
200
|
|
|
196
|
-
### Hardware-
|
|
201
|
+
### Hardware-specific installs
|
|
197
202
|
|
|
198
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:
|
|
199
204
|
|
|
@@ -211,7 +216,7 @@ pip install -U BrainX[cuda13]
|
|
|
211
216
|
pip install -U BrainX[tpu]
|
|
212
217
|
```
|
|
213
218
|
|
|
214
|
-
### Pin a
|
|
219
|
+
### Pin a specific BrainX release
|
|
215
220
|
|
|
216
221
|
BrainX releases use date-style versions:
|
|
217
222
|
|
|
@@ -221,10 +226,11 @@ pip install BrainX==2025.9.15
|
|
|
221
226
|
|
|
222
227
|
When an exact release is requested, preserve the confirmed hardware extra while applying the selected BrainX release pin.
|
|
223
228
|
|
|
224
|
-
## Reference
|
|
225
|
-
|
|
226
|
-
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
|
|
227
230
|
|
|
228
|
-
|
|
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. |
|
|
229
235
|
|
|
230
|
-
Do not open
|
|
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.
|