agentleFS
sarthakgoel31sarthakgoel31/claude-skills/second-brain/SKILL.md

brain

Skill3 starsChanged 7 months agoMITView on GitHub

Second brain knowledge base. Ingest raw materials, compile wiki, query knowledge, lint, or discover cross-domain connections. Usage: /brain <command>. Commands: ingest, compile, query, lint, connect, status, add. Trigger phrases: 'add to my brain', 'what does my brain say about', 'brain ingest', 'brain compile', 'connect the dots', 'knowledge base'.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate, design and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    validate

    Run the full CI validation workflow locally before submitting a PR. Use this as a final check to ensure all Azure DevOps CI pipeline steps will pass.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 4 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 12 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no command is clear, ask the user what they'd like to do.

    line 22
  2. Very specific:

    Read the schema at personal/second-brain/CLAUDE.md

    line 48
  3. Distinctive:

    Read it fully (never chunk)

    line 51
  4. Distinctive:

    Create or update wiki articles following the article format in the schema

    line 53
  5. Distinctive:

    Add backlinks to related articles

    line 54
  6. Very specific:

    If the user provides content inline (not as a file), save it to raw/notes/YYYY-MM-DD-<slug>.md first, then ingest.

    line 60
  7. Very specific:

    Read wiki/_index.md for current state

    line 65
  8. Distinctive:

    Read those articles fully

    line 78
  9. Distinctive:

    If insufficient info, suggest what raw material would help

    line 80
  10. Very specific:

    Write report to outputs/lint-report-YYYY-MM-DD.md

    line 93
  11. Distinctive:

    Read the full index and all article summaries

    line 100
  12. Distinctive:

    Look for non-obvious connections:

    line 101
  13. Very specific:

    Write "Connections Report" to outputs/connections-YYYY-MM-DD.md

    line 106
  14. Distinctive:

    Always read the CLAUDE.md schema before any operation

    line 136
  15. Distinctive:

    Never fabricate knowledge — every wiki claim traces to a source

    line 137
  16. Distinctive:

    Write for future-Sarthak who has no memory of original context

    line 138
  17. Very specific:

    Use Obsidian-compatible markdown ([[backlinks]], standard frontmatter)

    line 140
  18. Distinctive:

    Keep the index under 200 entries

    line 141

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

What This Skill Does

Manages Sarthak's personal second brain — a Karpathy-style LLM knowledge base at personal/second-brain/. Raw materials go in, interconnected wiki articles come out.

Command Detection

Parse the user's message to determine the command:

  • ingest: "brain ingest", "ingest this", "add to my brain", "process the raw folder"
  • compile: "brain compile", "recompile", "rebuild the wiki"
  • query: "brain query ...", "what does my brain say about ...", "search my knowledge"
  • lint: "brain lint", "check my wiki", "health check"
  • connect: "brain connect", "connect the dots", "find patterns", "cross-domain insights"
  • status: "brain status", "how big is my brain", "brain stats"
  • add: "brain add ...", "save this to brain", "remember this insight" (adds quick note to raw/notes/)

If no command is clear, ask the user what they'd like to do.

Setup

The knowledge base lives at: personal/second-brain/

personal/second-brain/
├── CLAUDE.md              ← Schema (rules for the LLM)
├── raw/                   ← Source materials (human curates)
│   ├── articles/          ← Web articles, blog posts
│   ├── papers/            ← Research papers, PDFs
│   ├── tweets/            ← Interesting tweets/threads
│   ├── conversations/     ← Key insights from conversations
│   ├── notes/             ← Quick brain dumps
│   └── media/             ← Images, screenshots, diagrams
├── wiki/                  ← Compiled knowledge (LLM writes)
│   ├── _index.md          ← Master index
│   └── _changelog.md      ← What changed and when
└── outputs/               ← Query responses, reports

Always read personal/second-brain/CLAUDE.md first — it contains the full schema with article format, rules, and domain tags.

Command: INGEST

  1. Read the schema at personal/second-brain/CLAUDE.md
  2. Scan raw/ for new or unprocessed materials
  3. For each source:
    • Read it fully (never chunk)
    • Extract key concepts, insights, decisions, mental models
    • Create or update wiki articles following the article format in the schema
    • Add backlinks to related articles
    • Add source attribution
  4. Update wiki/_index.md
  5. Append to wiki/_changelog.md
  6. Report: N sources processed, N articles created, N articles updated

If the user provides content inline (not as a file), save it to raw/notes/YYYY-MM-DD-<slug>.md first, then ingest.

Command: COMPILE

  1. Read the schema
  2. Read wiki/_index.md for current state
  3. Scan ALL raw/ materials
  4. Identify gaps and stale articles
  5. Regenerate/update articles
  6. Rebuild index
  7. Run lint
  8. Report results

Command: QUERY

  1. Read the schema
  2. Read wiki/_index.md
  3. Identify relevant articles based on the question
  4. Read those articles fully
  5. Synthesize answer grounded in wiki content
  6. If insufficient info, suggest what raw material would help
  7. Save response to outputs/query-YYYY-MM-DD-<slug>.md

Command: LINT

  1. Read the schema
  2. Scan all wiki articles checking for:
    • Broken [[backlinks]]
    • Orphan articles (nothing links to them)
    • Missing source attributions
    • Missing or incorrect domain tags
    • Stale content
  3. Auto-fix safe issues
  4. Write report to outputs/lint-report-YYYY-MM-DD.md
  5. Show summary to user

Command: CONNECT

This is the magic — finding cross-domain patterns.

  1. Read the full index and all article summaries
  2. Look for non-obvious connections:
    • A trading lesson that applies to product building
    • An engineering pattern that mirrors a business strategy
    • An AI technique useful for content creation
    • Mental models that span domains
  3. Write "Connections Report" to outputs/connections-YYYY-MM-DD.md
  4. Present the most surprising/valuable connections to the user

Command: STATUS

  1. Count files in raw/ by subdirectory
  2. Count articles in wiki/
  3. Count articles by domain tag
  4. Show total word count
  5. Show last ingest/compile date from changelog
  6. Present a clean summary

Command: ADD

Quick capture — save an insight without full ingestion:

  1. Take the user's text
  2. Save to raw/notes/YYYY-MM-DD-<slug>.md with basic frontmatter:
    ---
    added: YYYY-MM-DD
    source: conversation
    ---
    
    <user's text>
  3. Confirm saved, suggest running /brain ingest later to compile it into the wiki

Important Rules

  • Always read the CLAUDE.md schema before any operation
  • Never fabricate knowledge — every wiki claim traces to a source
  • Write for future-Sarthak who has no memory of original context
  • Cross-link aggressively — connections are the value
  • Use Obsidian-compatible markdown ([[backlinks]], standard frontmatter)
  • Keep the index under 200 entries

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.