# charlie947/ai-second-brain architecture

> Architecture diagram of the GitHub repository charlie947/ai-second-brain, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/charlie947/ai-second-brain
- Repository: https://github.com/charlie947/ai-second-brain

## Overview

AI Second Brain is a Claude Code skill that guides a user through building a local, searchable Obsidian knowledge base. The main workflow is to organize ChatGPT and Claude exports, compile research into a Karpathy-style wiki, then optionally add connectors, phone access, and slash commands. The README documents these capabilities and their relationships; the skill source files are listed in the tree but were not excerpted, so implementation details beyond that documentation are not inferred.

Main entry points: [`SKILL.md`](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md) (Data connectors)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guided_setup["Guided setup"]
  node_claude_code["Claude Code"]
  node_setup_flow["Setup guidance<br/>[SKILL.md]"]
  node_confirmation["User confirmations<br/>[SKILL.md]"]
end

subgraph group_knowledge_building["Knowledge building"]
  node_ai_exports["AI chat exports"]
  node_ai_brain["AI Brain<br/>[SKILL.md]"]
  node_research_sources["Research sources"]
  node_karpathy_wiki["Karpathy Wiki<br/>[SKILL.md]"]
  node_connectors["Data connectors<br/>[SKILL.md]"]
  node_obsidian_vault[("Obsidian vault")]
end

subgraph group_access_and_actions["Access and actions"]
  node_living_wiki["Living Wiki<br/>[SKILL.md]"]
  node_imessage["iMessage Channels<br/>[SKILL.md]"]
  node_slash_commands["Slash commands<br/>[SKILL.md]"]
end

node_user(("User"))
node_gmail["Gmail"]
node_notebooklm["NotebookLM"]
node_granola["Granola"]
node_phone_user(("Phone user"))

node_user -->|"requests setup"| node_claude_code
node_claude_code -->|"runs skill"| node_setup_flow
node_setup_flow -->|"pauses for"| node_confirmation
node_user -->|"provides exports"| node_ai_exports
node_ai_exports -->|"organizes"| node_ai_brain
node_research_sources -->|"updates wiki"| node_karpathy_wiki
node_ai_brain -->|"creates vault"| node_obsidian_vault
node_karpathy_wiki -->|"writes wiki"| node_obsidian_vault
node_claude_code -->|"sets up"| node_connectors
node_connectors -->|"connects"| node_gmail
node_connectors -->|"connects"| node_notebooklm
node_connectors -->|"connects"| node_granola
node_connectors -->|"supports"| node_living_wiki
node_living_wiki -->|"extends"| node_obsidian_vault
node_claude_code -->|"sets up"| node_imessage
node_imessage -->|"enables access"| node_phone_user
node_claude_code -->|"scaffolds"| node_slash_commands
node_slash_commands -->|"uses vault"| node_obsidian_vault

click node_setup_flow "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_confirmation "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_ai_brain "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_karpathy_wiki "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_connectors "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_living_wiki "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_imessage "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"
click node_slash_commands "https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_claude_code,node_setup_flow,node_confirmation,node_user,node_phone_user toneBlue
class node_ai_exports,node_ai_brain,node_research_sources,node_karpathy_wiki,node_connectors,node_obsidian_vault toneAmber
class node_living_wiki,node_imessage,node_slash_commands toneMint
class node_gmail,node_notebooklm,node_granola toneIndigo
```

## Components

### Guided setup

- **Claude Code**
- [Setup guidance](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`
- [User confirmations](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`

### Knowledge building

- **AI chat exports**
- [AI Brain](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`
- **Research sources**
- [Karpathy Wiki](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`
- [Data connectors](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`
- **Obsidian vault**

### Access and actions

- [Living Wiki](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`
- [iMessage Channels](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`
- [Slash commands](https://github.com/charlie947/ai-second-brain/blob/main/SKILL.md): `SKILL.md`

### Other components

- **User**
- **Gmail**
- **NotebookLM**
- **Granola**
- **Phone user**

## Connections

- User → Claude Code: requests setup (evidence: `README.md`)
- Claude Code → Setup guidance: runs skill (evidence: `README.md`)
- Setup guidance → User confirmations: pauses for (evidence: `README.md`)
- User → AI chat exports: provides exports (evidence: `README.md`)
- AI chat exports → AI Brain: organizes (evidence: `README.md`)
- Research sources → Karpathy Wiki: updates wiki (evidence: `README.md`)
- AI Brain → Obsidian vault: creates vault (evidence: `README.md`)
- Karpathy Wiki → Obsidian vault: writes wiki (evidence: `README.md`)
- Claude Code → Data connectors: sets up (evidence: `README.md`)
- Data connectors → Gmail: connects (evidence: `README.md`)
- Data connectors → NotebookLM: connects (evidence: `README.md`)
- Data connectors → Granola: connects (evidence: `README.md`)
- Data connectors → Living Wiki: supports (evidence: `README.md`)
- Living Wiki → Obsidian vault: extends (evidence: `README.md`)
- Claude Code → iMessage Channels: sets up (evidence: `README.md`)
- iMessage Channels → Phone user: enables access (evidence: `README.md`)
- Claude Code → Slash commands: scaffolds (evidence: `README.md`)
- Slash commands → Obsidian vault: uses vault (evidence: `README.md`)
