Skip to content
Back to skills

Brain Remember

ASecurity

Save decisions and learnings from the current agent conversation into the wiki. Pulls out what was decided, why, and what was learned, files it as a conversation source page, folds it into related topic and entity pages, and logs it. Trigger phrases: /brain-remember, remember this, save this to my brain, add this to the wiki, note this decision, remember what we decided.

  • 188 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add jessepinkman9900/claude-second-brain --skill brain-remember --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Brain Remember?

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

Security grade badge for Brain Remember
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jessepinkman9900-brain-remember/badge)](https://www.skillsdirectory.com/skills/jessepinkman9900-brain-remember)

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-remember
description: "Save decisions and learnings from the current agent conversation into the wiki. Pulls out what was decided, why, and what was learned, files it as a conversation source page, folds it into related topic and entity pages, and logs it. Trigger phrases: /brain-remember, remember this, save this to my brain, add this to the wiki, note this decision, remember what we decided."
argument-hint: "Optional: what to remember (e.g. 'the decision to use OIDC for npm publish'). Leave blank to scan the whole conversation."
---

# Brain Remember

Captures knowledge from **this conversation** (not an external file or URL) and integrates it into the wiki. It runs the Remember workflow in CLAUDE.md, which reuses the ingest steps with the conversation as the source. For articles, PDFs and URLs, use `/brain-ingest` instead.

## Brain Discovery

All commands target the **default brain** registered in `~/.claude-second-brain/config.toml`.
Resolve paths at call time via the `claude-second-brain` CLI — do not bake paths into this file:

```bash
BRAIN_PATH=$(npx -y claude-second-brain path)       # absolute path to the default brain's directory
npx -y claude-second-brain qmd -- query -c wiki "<terms>"
```

Pass `--brain <name>` before the `--` to target a non-default brain.

## What to capture

Only knowledge worth finding again in a month:

- **Decisions** — what was chosen, why, and what was ruled out
- **Learnings** — gotchas, root causes, how something actually works, commands or settings that turned out to matter
- **Facts** — stable facts about a project, tool, person or system that came up
- **Open questions** — things left unresolved that a later session should pick up

Skip chit-chat, step-by-step narration of the work, and anything already obvious from the code or git history.

**Never write secrets.** Leave out API keys, tokens, passwords, private URLs with credentials, and anything the user marks private. If a learning depends on a secret, describe it without the value ("the token lives in the `NPM_TOKEN` repo secret").

## Workflow

**Step 1 — Gather candidates**
- If the user passed an argument or said "remember that …", capture that item; still pull in the reasoning behind it from the conversation.
- Otherwise scan the whole conversation for the categories above.
- Note the context: the working directory or repo, and the date.

**Step 2 — Confirm with the user**
- List the candidates as short bullets grouped by Decisions / Learnings / Facts / Open questions.
- Ask which to keep, drop or reword. If the user named one exact thing to remember, show the one line you will save and go ahead unless they object.

**Step 3 — Create the conversation source page**
- File: `$BRAIN_PATH/wiki/sources/conversation-YYYY-MM-DD-[slug].md` (slug = kebab-case of the main subject)
- If a page with that name exists from earlier today, add `-2`, `-3` … rather than overwriting it
- Frontmatter: `type: source-summary`, `tags: [conversation, …]`, `updated: YYYY-MM-DD`
- Sections: title, context (date, repo or directory, agent), one-paragraph abstract, `## Decisions` (each with **Why** and, if any, **Ruled out**), `## Learnings`, `## Facts`, `## Open questions` (omit empty sections), links to wiki pages this touches

**Step 4 — Update `wiki/index.md`**
- Add the page to the Sources Ingested section: one-line description, `(conversation)`, and the `[[wiki/sources/conversation-…]]` link

**Step 5 — Identify affected wiki pages**
- Run: `npx -y claude-second-brain qmd -- query -c wiki "<subject and key decisions>"`
- Also Glob `$BRAIN_PATH/wiki/*.md` to catch anything qmd missed
- List the pages to create or update before proceeding

**Step 6 — Update or create wiki pages**
- For each affected topic or entity page: read it, add the decision or learning in your own words, add the source page to its `sources` frontmatter, update `updated`
- Create a page for a project, tool or concept that doesn't have one yet
- Cross-link aggressively with `[[wiki/page]]`

**Step 7 — Flag contradictions**
- If a decision reverses or contradicts something already on a page, add a `> [!WARNING] Contradiction` callout stating both positions and both sources. Note which is newer.

**Step 8 — Append to log**
- Append to `$BRAIN_PATH/wiki/log.md` (never overwrite):
  ```
  ## [YYYY-MM-DD] remember | Subject

  [[wiki/sources/conversation-YYYY-MM-DD-slug]] | Pages touched: [[wiki/page1]], [[wiki/page2]], ...
  source: conversation | hash: -
  ```
- The `source: conversation | hash: -` line keeps the entry in the same shape as ingest entries. `/brain-ingest`'s log check never matches it, so a remember is never skipped as a duplicate.

**Step 9 — Commit to git**
- If the brain is a git repo, commit this remember on its own so it can be reviewed or rolled back with `git revert`:
  ```bash
  cd "$BRAIN_PATH"
  git rev-parse --is-inside-work-tree >/dev/null 2>&1 && {
    git add -- wiki
    git commit -m "remember: Subject" -- wiki
  }
  ```
- Commit only `wiki/`, so unrelated changes in the vault stay out of the commit. Do not push; obsidian-git (or the user) pushes on its next sync.
- If it is not a git repo, or there is nothing to commit, skip this step and say so.

**Step 10 — Report**
- Tell the user the source page path, which pages were touched, and the commit. Don't re-index after one remember; suggest `/brain-refresh` after several.

## Hard Rules

- Never modify anything in `raw-sources/`
- Never write secrets or credentials into the wiki
- One source page per remember run — never append to an earlier conversation page
- Every wiki page must have frontmatter with at least `type` and `updated`

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.