Skip to content
Back to skills

Brain Memorize

ASecurity

Store durable memories (decisions, insights, learnings, preferences, goals, experiences) into the user's global brain (~/.brain) via the brain CLI. Use when the user says "remember this" or "memorize", or when a session produced notable decisions, learnings, or insights worth keeping across sessions and agents.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgobashgitapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned December 4, 2026

npx -y skills add omelas-tech/brain --skill brain-memorize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Brain Memorize?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Brain Memorize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/omelas-tech-brain-memorize/badge)](https://www.skillsdirectory.com/skills/omelas-tech-brain-memorize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: brain-memorize
description: Store durable memories (decisions, insights, learnings, preferences, goals, experiences) into the user's global brain (~/.brain) via the brain CLI. Use when the user says "remember this" or "memorize", or when a session produced notable decisions, learnings, or insights worth keeping across sessions and agents.
license: MIT
---

# Brain Memory — Memorize

Decide **what** to remember and **how to classify** it; the `brain memorize`
CLI handles all file operations (IDs, strength/decay computation, directories,
index updates, association edges, search index).

**Default: store immediately, report after.** When the user asked to
memorize, do not ask for confirmation. If they didn't specify content,
extract the most significant decisions, learnings, insights, or experiences
from the current session.

## Classify each memory

- **type** (sets base strength/decay): `decision` 0.85 · `insight` 0.90 ·
  `goal` 0.80 · `experience` 0.75 · `learning` 0.70 · `relationship` 0.70 ·
  `preference` 0.60 · `observation` 0.40
- **cognitive_type**: `episodic` (event-specific), `semantic` (abstracted
  knowledge), `procedural` (skills/workflows)
- **path**: life-domain hierarchy under `~/.brain` — `professional/`,
  `personal/`, `social/`, `family/` with kebab-case subdirectories, e.g.
  `professional/projects/foo/api-decision.md`,
  `personal/health/sleep-routine.md`
- **salience** and **confidence** (0.0–1.0), **tags**, optional **related**
  memory IDs and **strength_adjustment** (-0.15 to +0.15)

## Store

Pipe the classified memories to the CLI as JSON on stdin in **one call**
(append `--sync` only when the user asked to push to Brain Cloud/git):

```bash
BRAIN_AGENT=copilot-cli brain memorize <<'EOF'
{
  "memories": [
    {
      "title": "Short descriptive title",
      "type": "learning",
      "cognitive_type": "semantic",
      "path": "professional/projects/foo/what-i-learned.md",
      "tags": ["foo", "patterns"],
      "salience": 0.6,
      "confidence": 0.9,
      "source": "Session context description",
      "encoding_context": {
        "project": "current-project",
        "topics": ["topic1", "topic2"],
        "task_type": "implementing"
      },
      "content": "# What I Learned\n\nThe main insight was...\n\n## Context\n\nThis came up while...\n"
    }
  ]
}
EOF
```

Then report what was stored: title, ID, path, type, strength, tags, edges
created, and the sync result if `--sync` was used.

## Rules

- **Pinning:** only propose `"pinned": true` (always-injected, decay-exempt)
  for durable conventions/preferences — and only set it with the user's
  agreement.
- **Contradictions:** if the CLI reports `potential_conflicts`, check whether
  the new fact replaced the older one and let the user decide — supersede the
  old fact, keep both scoped (e.g. per project), or reject the new one. Never
  silently keep both. Bound a stale pair noticed later with
  `brain supersede <old_id> --by <new_id>`.
- **Never store secrets, credentials, or trivia.**
- If the `brain` command is not found, tell the user once: install with
  `npm install -g brain-memory`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.