brain-memory 0.1.0-beta.17 → 0.1.0-beta.19

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 CHANGED
@@ -133,7 +133,7 @@ Then append the contents of the corresponding prompt file to your agent's instru
133
133
  | `/brain:sunshine [target]` | Deep forensic erasure — trace and remove all references |
134
134
  | `/brain:sleep [scope]` | Full maintenance cycle — 9 neuroscience-inspired phases |
135
135
  | `/brain:status` | Dashboard with brain health metrics and recommendations |
136
- | `/brain:skill [list\|show\|add\|use\|remove\|export]` | Manage procedural skills — reusable how-to workflows with progressive disclosure |
136
+ | `/brain:skills [list\|show\|add\|use\|remove\|export]` | Manage procedural skills — reusable how-to workflows with progressive disclosure |
137
137
  | `/brain:sync [subcommand]` | Sync memories via Git remote or export/import for portability |
138
138
 
139
139
  ## Session Lifecycle
@@ -3,7 +3,7 @@ description: Manage procedural skills (list, show, add, use, remove, export)
3
3
  argument-hint: "[subcommand]"
4
4
  ---
5
5
 
6
- # /brain:skill — Manage Procedural Skills
6
+ # /brain:skills — Manage Procedural Skills
7
7
 
8
8
  You are managing **procedural memory** — reusable "how to do things" stored as `~/.brain/_skills/<name>/SKILL.md`. Skills use **progressive disclosure** so they never bloat the context window:
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brain-memory",
3
- "version": "0.1.0-beta.17",
3
+ "version": "0.1.0-beta.19",
4
4
  "description": "A brain-inspired hierarchical memory system for AI coding agents. Deep nested file structure that mimics human memory with time-decay and strength-based recall.",
5
5
  "keywords": [
6
6
  "claude-code",
package/prompts/claude.md CHANGED
@@ -61,7 +61,7 @@ Memories store their encoding context (project, topics, task type). During recal
61
61
  - `/brain:sync [subcommand]` — Sync memories via Git remote or export/import for portability
62
62
  - `/brain:pin [id|query]` — Pin a memory to the always-present tier (CoALA Phase 1)
63
63
  - `/brain:unpin [id|query]` — Remove a memory from the always-present tier
64
- - `/brain:skill [list|show|add|use|remove|export]` — Manage procedural skills (CoALA Phase 2)
64
+ - `/brain:skills [list|show|add|use|remove|export]` — Manage procedural skills (CoALA Phase 2)
65
65
 
66
66
  ## Session Start Behavior
67
67
 
package/prompts/gemini.md CHANGED
@@ -62,7 +62,7 @@ Commands are available via `/brain:` prefix:
62
62
  - `/brain:sync [subcommand]` — Sync memories via Git remote or export/import for portability
63
63
  - `/brain:pin [id|query]` — Pin a memory to the always-present tier (CoALA Phase 1)
64
64
  - `/brain:unpin [id|query]` — Remove a memory from the always-present tier
65
- - `/brain:skill [list|show|add|use|remove|export]` — Manage procedural skills (CoALA Phase 2)
65
+ - `/brain:skills [list|show|add|use|remove|export]` — Manage procedural skills (CoALA Phase 2)
66
66
 
67
67
  ## Session Start Behavior
68
68
 
@@ -61,7 +61,7 @@ Memories store their encoding context (project, topics, task type). During recal
61
61
  - `/brain:sync [subcommand]` — Sync memories via Git remote or export/import for portability
62
62
  - `/brain:pin [id|query]` — Pin a memory to the always-present tier (CoALA Phase 1)
63
63
  - `/brain:unpin [id|query]` — Remove a memory from the always-present tier
64
- - `/brain:skill [list|show|add|use|remove|export]` — Manage procedural skills (CoALA Phase 2)
64
+ - `/brain:skills [list|show|add|use|remove|export]` — Manage procedural skills (CoALA Phase 2)
65
65
 
66
66
  ## Session Start Behavior
67
67
 
package/src/installer.js CHANGED
@@ -225,9 +225,23 @@ function installForRuntime(runtime, scope) {
225
225
 
226
226
  if (config.commandStyle === 'skills') {
227
227
  const skillsDest = path.join(targetDir, config.commandsSubdir);
228
+ // Clear stale brain-* skill dirs first so renamed/removed commands don't
229
+ // linger across upgrades (e.g. brain-skill → brain-skills).
230
+ if (fs.existsSync(skillsDest)) {
231
+ for (const entry of fs.readdirSync(skillsDest)) {
232
+ if (entry.startsWith('brain-')) {
233
+ fs.rmSync(path.join(skillsDest, entry), { recursive: true, force: true });
234
+ }
235
+ }
236
+ }
228
237
  installSkills(commandsSrc, skillsDest);
229
238
  } else {
230
239
  const commandsDest = path.join(targetDir, config.commandsSubdir, 'brain');
240
+ // Wipe the brain command dir before copying so renamed/removed commands
241
+ // don't linger across upgrades. This is critical on case-insensitive
242
+ // filesystems: a leftover skill.md (== SKILL.md) makes Claude Code treat
243
+ // the whole dir as one skill and hides every /brain:* command.
244
+ fs.rmSync(commandsDest, { recursive: true, force: true });
231
245
  copyDir(commandsSrc, commandsDest);
232
246
  }
233
247