The user's personal knowledge base, kept as a Markdown wiki of things they saved from X, Instagram, LinkedIn and the web. It has four categories. design covers UI patterns, interactions, motion and visual styles. features covers product functionality worth building. tools covers apps, libraries and services. practices covers how to work: engineering practices, workflows with AI agents and lessons from articles. It also turns the user's taste, one saved style or one of their collections (captu...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Second Brain?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/albegosu-second-brain)
---
name: second-brain
description: The user's personal knowledge base, kept as a Markdown wiki of things they saved from X, Instagram, LinkedIn and the web. It has four categories. design covers UI patterns, interactions, motion and visual styles. features covers product functionality worth building. tools covers apps, libraries and services. practices covers how to work: engineering practices, workflows with AI agents and lessons from articles. It also turns the user's taste, one saved style or one of their collections (captures grouped by project or client) into a DESIGN.md to build UI from. Check it BEFORE designing or implementing a UI component, animation, interaction or product feature, before choosing a tool or library, and when deciding how to approach agent or engineering work, in case there is a saved reference. Also use it when asked "¿tengo algo guardado sobre…?", "busca en mi second brain", "what did I save about…", "hazlo con el estilo X", "build from my X collection", or for inspiration.
---
# Second brain
The wiki is the `wiki/` folder of the user's private wiki repository. A model writes it from captures, so treat it as references and ideas, not as specs.
The engine is the repository this skill belongs to, wherever it was cloned: `~/.claude/skills/second-brain/../..` reaches it through the skill's link (from this skill's base directory, if it's installed elsewhere). Its `.env` says where the wiki is; look once per session:
```bash
grep '^BRAIN_WIKI=' ~/.claude/skills/second-brain/../../.env
```
Without that line, the wiki is `~/Developer/second-brain-wiki/wiki/`. The paths below use that default: put the real one in their place. The engine's commands below run through its `bin/worker`, which loads that `.env` itself.
A worker in GitHub Actions writes the wiki and the computer pulls it periodically. If the very latest captures matter, pull its repository (the folder above `wiki/`) first:
```bash
git -C ~/Developer/second-brain-wiki pull --ff-only -q
```
## How to use it
1. Read `wiki/index.md` first. For every topic it lists a one-line summary, the blocks the page holds (patterns, styles, options or ideas) and how often it was used in a build, then the user's collections with their captures, plus the latest captures. Match on block names, not only topic titles. Don't read whole folders.
2. Open only the matching topic pages (`wiki/<category>/<topic>.md`). Their structure is fixed, one `### <name> [n]` block per item:
- `## Patterns` (design, features): **Use it when**, **How it works** (numbered steps), **Motion** and **Watch out**. One block is enough to build that pattern.
- `## Styles` (design topics named `style-*` or made of looks): **Tokens** (measured palette, type family, radius, spacing, depth, motion feel), **Composition**, **Do**, **Don't**, **Use it for**. To build with one, generate its DESIGN.md (see "When building from it").
- `## Options` (tools): **What it does**, **Use it when**, **Try it** (the install or run command, verbatim), **Link** (only URLs found in the sources) and **Notes** (for a repository: language, license, last commit, archived, stars).
- `## Ideas` (practices): **Claim**, **Why it matters**, **How to apply**, **Watch out**.
- `## Choosing`: which one fits which situation, when there are several.
- `## See also`: related topics of the same category worth opening when the task spans them. A relevant tool page won't be linked from a design page, so check the index's tools section too.
- `## Sources`: citations like `[2]` point here.
3. Open a source note (`wiki/sources/…`) only when you need the specifics: the user's note, the measured palette, the original post text, the link to the video, the commands and code under **Code** (verbatim from the source) or a repository's facts under **Repository** (as of the date it says it was checked).
- Visual captures keep a `.jpg` next to their note (linked as `frames` in the topic's sources list): up to four frames in time order, left to right and top to bottom, or the image itself. Before building a look, a layout or an interaction from the wiki, open that image with the Read tool and look at it. The text describes the reference; the image is the reference.
4. If the index doesn't obviously cover it, search. Everything is in English:
```bash
rg -i "<keyword>" ~/Developer/second-brain-wiki/wiki
```
5. Say which pages or sources you used.
## When building from it
- Designing something with no style given, neither by the user nor by the project's design system? Start from `wiki/DESIGN.md` (the weekly lint pass writes it; until then, `wiki/taste.md`). When the captures split between light and dark backgrounds there is also `wiki/DESIGN.dark.md` (or `DESIGN.light.md`): same type, shapes and spacing, colors measured on the other tone. Use the one matching the project's background, or both for a light and a dark mode. `DESIGN.md` is the same taste as `wiki/taste.md`, written as a [DESIGN.md](https://github.com/google-labs-code/design.md) (color roles, type scale, radius, spacing and components as tokens, then rules). Follow its tokens rather than inventing values; code derived them from measured palettes and already checked text contrast (4.5:1). `wiki/taste.md` has the counts behind them; treat anything marked "no clear lead" or "Not enough evidence" as a question to ask. An explicit request or the project's own tokens always win over both.
- Building with a saved style ("hazlo con el estilo X", or a `style-*` topic fits the task)? Generate that topic's DESIGN.md and build from it, then look at the topic's frames: the tokens set colors and scales, the image shows the composition.
```bash
~/.claude/skills/second-brain/../../bin/worker design_md --style <slug> --out <project>/DESIGN.md
```
The slug is the topic's file name (`style-editorial`, or just `editorial`); without `--out` it prints. A topic with several looks (one `### Name [n]` block each) gives its dominant one and names the others; add `--look "<name>"` to build from another. A model writes only the overview and rules; `--no-model` skips it (a template writes them) when Ollama isn't reachable. The file carries capture numbers for the usage log but no links or post text; it is still derived from private captures, so ask before committing it to a public repository, and never overwrite a DESIGN.md the project already has.
- Building for one of the user's collections ("build from my checkout collection", "hazlo con mi colección acme")? A collection is the user's own grouping by what they saved captures for (a project, a client, a redesign); the index's **Collections** section lists each one with its captures, which are also filed in their topics. Read those captures' source notes and frames, not the whole topics they sit in. For the look, generate the collection's DESIGN.md: the taste's method over only its design and features captures, so nothing from outside the collection gets in.
```bash
~/.claude/skills/second-brain/../../bin/worker design_md --collection <name> --out <project>/DESIGN.md
```
The same cautions as a style's DESIGN.md apply: ask before committing it to a public repository, and never overwrite one the project already has.
- Deciding how to approach engineering or agent work (structuring a task, testing, reviewing, setting up an agent or its tools)? Read `wiki/AGENTS.md` if it exists: the user's practices as rules. Its **Rules** have evidence behind them (two or more captures, or a use in a build): follow them unless the user or the project says otherwise. **Worth trying** are suggestions from a single capture: use them when they fit. The project's own AGENTS.md, CLAUDE.md or instructions always win. Each line ends with its capture numbers, for the usage log below.
To put it in a project, write it next to the project's files rather than over them, and never overwrite an AGENTS.md the project already has:
```bash
~/.claude/skills/second-brain/../../bin/worker agents_md --out <project>/AGENTS.md
```
It is derived from private captures (capture numbers, no links or post text), so ask before committing it to a public repository.
- Before adding a dependency (a library, a CLI, a service), check `wiki/stack.md` if it exists: the user's saved tools by the job they do. If one does the job, say so and prefer it: first one **used** in a build, then one saved **to try**. Don't pick a **stale** one (archived, gone or no commit in a year) unless nothing else fits, and say why. The project's existing stack and the user's choice always win. Record a tool you adopt in the usage log by its capture numbers.
- Steps, animated properties and easing come from a vision model looking at frames. They are good starting points. Durations are usually omitted on purpose, because they cannot be measured from stills.
- Palettes in source notes are measured from pixels but include the demo's content colors. Pick the UI ones. A DESIGN.md marks its primary **Low confidence** when no measured accent is vivid or the wiki's words name other colors: look at the frames and take the accent the interface actually uses.
- Adapt to the project's own design tokens and stack. The only code the wiki holds is what a source showed (a README's install line, a config from a post), copied verbatim: check a command against the tool's current docs before running it.
- When something you built actually takes from captures, record it once, at the end, with their capture numbers (the `0007` in `sources/2026-09/0007-….md`). It shows the user which saves turn out useful. A save you only read or looked at is not logged, even if it informed your thinking.
```bash
BRAIN_GIT_SYNC=1 ~/.claude/skills/second-brain/../../bin/worker used 7 21 --project "<repository or product>" --what "<what was taken, in one line>" --ref "<commit or pull request URL>"
```
- Whenever the work lands as a commit or a pull request, pass its URL as `--ref`, so the credit can be checked by opening the diff; the index counts those uses as verifiable. Record after pushing, once the URL exists. Leave `--ref` out only when nothing was committed.
- In a private repository you may also list the captures a change takes from (numbers and topic names) in its PR description. Never in a public repository: they come from the user's private wiki.
## Adding to it
Captures usually arrive through the share shortcut on iPhone or Mac, and GitHub Actions processes them. To file one from a session (the model provider has to be reachable with the settings in the engine's `.env`):
```bash
BRAIN_GIT_SYNC=1 ~/.claude/skills/second-brain/../../bin/worker run --url "<url>" --note "<why it matters>"
```
- Put `style: <name>` in the note to file the capture under the design topic `style-<name>`.
- Put `collection: <name>` (or `colección: <name>`) in the note to add the capture to one of the user's collections, a project or client of theirs in kebab-case. It stays in the topic the model picks; repeat the keyword for several collections. To add captures that are already filed, without analyzing them again (`--remove` takes them out):
```bash
BRAIN_GIT_SYNC=1 ~/.claude/skills/second-brain/../../bin/worker collect 7 21 <name>
```
- Topic pages are rewritten from their source notes whenever a capture arrives or the weekly lint pass reorganizes topics, so manual edits to a topic page don't last. Put lasting context in the capture's note instead.
- `wiki/index.md`, `wiki/taste.md`, `wiki/DESIGN.md` and `wiki/usage.md` are written by code, so never edit them by hand.
- Don't commit wiki changes: the worker commits and pushes them to the wiki repository. Engine code changes (in the engine's folder) are the user's to commit.