# pix7733/second-brain-blank architecture

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

- Interactive diagram: https://gitdiagram.com/pix7733/second-brain-blank
- Repository: https://github.com/pix7733/second-brain-blank

## Overview

Second Brain Kit is a customizable Claude Code assistant: the user starts a session, completes a personalization interview, approves a phased plan, and builds the selected capabilities. Its documented product includes persistent memory, protective hooks, skills and subagents, optional proactive heartbeat and scheduling, and an optional Slack bot. The README supports the workflow edges; source excerpts were not provided, so internal runtime calls and unsampled integration details are not asserted.

Main entry points: [`.claude/agents/planner.md`](https://github.com/pix7733/second-brain-blank/blob/main/.claude/agents/planner.md) (Phased plan), [`.claude/skills/build-my-brain/SKILL.md`](https://github.com/pix7733/second-brain-blank/blob/main/.claude/skills/build-my-brain/SKILL.md) (Build interview), [`.claude/hooks`](https://github.com/pix7733/second-brain-blank/tree/main/.claude/hooks) (Safety hooks), [`.claude/scripts/integrations`](https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts/integrations) (Account integrations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Personalization"]
  node_interview["Build interview<br/>[SKILL.md]"]
  node_planner["Plan agent<br/>[planner.md]"]
  node_approved_plan["Phased plan<br/>[planner.md]"]
end

subgraph group_memory["Memory"]
  node_user_profile["User profile<br/>[USER.md]"]
  node_memory_system["Persistent memory<br/>[scripts]"]
  node_vault["Memory vault"]
end

subgraph group_capabilities["Assistant capabilities"]
  node_skills["Skills<br/>[skills]"]
  node_agents["Subagents<br/>[agents]"]
  node_safety_hooks["Safety hooks<br/>[hooks]"]
  node_heartbeat["Heartbeat<br/>[heartbeat.py]"]
  node_scheduling["Scheduling<br/>[schedule]"]
end

subgraph group_integrations["Optional integrations"]
  node_slack_bot["Slack bot<br/>[main.py]"]
  node_account_integrations["Account integrations<br/>[integrations]"]
end

node_user(("User"))
node_claude_code["Claude Code"]
node_external_accounts["External accounts"]

node_user -->|"starts session"| node_claude_code
node_claude_code -->|"runs interview"| node_interview
node_interview -->|"saves answers"| node_user_profile
node_interview -->|"provides answers"| node_planner
node_planner -->|"creates plan"| node_approved_plan
node_user -->|"approves plan"| node_approved_plan
node_approved_plan -->|"selects capabilities"| node_skills
node_approved_plan -->|"selects capabilities"| node_agents
node_approved_plan -->|"selects capabilities"| node_safety_hooks
node_memory_system -->|"persists memory"| node_vault
node_safety_hooks -->|"protects rules"| node_vault
node_approved_plan -.->|"may enable"| node_heartbeat
node_approved_plan -.->|"may enable"| node_scheduling
node_user -.->|"may use"| node_slack_bot
node_user -->|"adds accounts"| node_account_integrations
node_account_integrations -->|"connects accounts"| node_external_accounts

click node_interview "https://github.com/pix7733/second-brain-blank/blob/main/.claude/skills/build-my-brain/SKILL.md"
click node_user_profile "https://github.com/pix7733/second-brain-blank/blob/main/vault/Memory/USER.md"
click node_planner "https://github.com/pix7733/second-brain-blank/blob/main/.claude/agents/planner.md"
click node_approved_plan "https://github.com/pix7733/second-brain-blank/blob/main/.claude/agents/planner.md"
click node_skills "https://github.com/pix7733/second-brain-blank/tree/main/.claude/skills"
click node_agents "https://github.com/pix7733/second-brain-blank/tree/main/.claude/agents"
click node_safety_hooks "https://github.com/pix7733/second-brain-blank/tree/main/.claude/hooks"
click node_memory_system "https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts"
click node_vault "https://github.com/pix7733/second-brain-blank/tree/main/vault/Memory"
click node_heartbeat "https://github.com/pix7733/second-brain-blank/blob/main/.claude/scripts/heartbeat.py"
click node_scheduling "https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts/schedule"
click node_slack_bot "https://github.com/pix7733/second-brain-blank/blob/main/.claude/chat/main.py"
click node_account_integrations "https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts/integrations"

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_interview,node_planner,node_approved_plan,node_user toneBlue
class node_user_profile,node_memory_system,node_vault toneAmber
class node_skills,node_agents,node_safety_hooks,node_heartbeat,node_scheduling toneMint
class node_slack_bot,node_account_integrations toneRose
class node_claude_code,node_external_accounts toneIndigo
```

## Components

### Personalization

- [Build interview](https://github.com/pix7733/second-brain-blank/blob/main/.claude/skills/build-my-brain/SKILL.md): `.claude/skills/build-my-brain/SKILL.md`
- [Plan agent](https://github.com/pix7733/second-brain-blank/blob/main/.claude/agents/planner.md): `.claude/agents/planner.md`
- [Phased plan](https://github.com/pix7733/second-brain-blank/blob/main/.claude/agents/planner.md): `.claude/agents/planner.md`

### Memory

- [User profile](https://github.com/pix7733/second-brain-blank/blob/main/vault/Memory/USER.md): `vault/Memory/USER.md`
- [Persistent memory](https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts): `.claude/scripts`
- [Memory vault](https://github.com/pix7733/second-brain-blank/tree/main/vault/Memory): `vault/Memory`

### Assistant capabilities

- [Skills](https://github.com/pix7733/second-brain-blank/tree/main/.claude/skills): `.claude/skills`
- [Subagents](https://github.com/pix7733/second-brain-blank/tree/main/.claude/agents): `.claude/agents`
- [Safety hooks](https://github.com/pix7733/second-brain-blank/tree/main/.claude/hooks): `.claude/hooks`
- [Heartbeat](https://github.com/pix7733/second-brain-blank/blob/main/.claude/scripts/heartbeat.py): `.claude/scripts/heartbeat.py`
- [Scheduling](https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts/schedule): `.claude/scripts/schedule`

### Optional integrations

- [Slack bot](https://github.com/pix7733/second-brain-blank/blob/main/.claude/chat/main.py): `.claude/chat/main.py`
- [Account integrations](https://github.com/pix7733/second-brain-blank/tree/main/.claude/scripts/integrations): `.claude/scripts/integrations`

### Other components

- **User**
- **Claude Code**
- **External accounts**

## Connections

- User → Claude Code: starts session (evidence: `README.md`)
- Claude Code → Build interview: runs interview (evidence: `README.md`)
- Build interview → User profile: saves answers (evidence: `README.md`)
- Build interview → Plan agent: provides answers (evidence: `README.md`)
- Plan agent → Phased plan: creates plan (evidence: `README.md`)
- User → Phased plan: approves plan (evidence: `README.md`)
- Phased plan → Skills: selects capabilities (evidence: `README.md`)
- Phased plan → Subagents: selects capabilities (evidence: `README.md`)
- Phased plan → Safety hooks: selects capabilities (evidence: `README.md`)
- Persistent memory → Memory vault: persists memory (evidence: `README.md`)
- Safety hooks → Memory vault: protects rules (evidence: `README.md`)
- Phased plan → Heartbeat: may enable (evidence: `README.md`)
- Phased plan → Scheduling: may enable (evidence: `README.md`)
- User → Slack bot: may use (evidence: `README.md`)
- User → Account integrations: adds accounts (evidence: `README.md`)
- Account integrations → External accounts: connects accounts (evidence: `README.md`)
