# jdpolasky/ai-chief-of-staff architecture

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

- Interactive diagram: https://gitdiagram.com/jdpolasky/ai-chief-of-staff
- Repository: https://github.com/jdpolasky/ai-chief-of-staff

## Overview

This repository is a Claude-and-Obsidian personal operating system, driven by four session commands and a vault of plain-text notes. The main workflow is setup, daily briefing, checkpoint, and wrap-up; the vault carries context between sessions. A separate CLI tool provides semantic and keyword search. The README documents the command workflow and optional email/calendar briefing; the sampled search script shows its Obsidian CLI and Smart Connections integration. Skill internals and most vault behavior were not sampled, so those links rely only on README claims.

Main entry points: [`.claude/skills/setup/SKILL.md`](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/setup/SKILL.md) (Setup wizard), [`.claude/skills/start/SKILL.md`](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/start/SKILL.md) (Start briefing), [`.claude/skills/wrap/SKILL.md`](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/wrap/SKILL.md) (Session wrap), [`scripts/smart_search.py`](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/scripts/smart_search.py) (Smart search CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commands["Session commands"]
  node_setup["Setup wizard<br/>[SKILL.md]"]
  node_start["Start briefing<br/>[SKILL.md]"]
  node_sync["Session sync<br/>[SKILL.md]"]
  node_wrap["Session wrap<br/>[SKILL.md]"]
end

subgraph group_memory["Vault memory"]
  node_commandcenter["Command Center<br/>[Command Center.md]"]
  node_todo["To-Do<br/>[To-Do.md]"]
  node_sessionlog["Session log<br/>[Session Log.md]"]
  node_systemstate["System state notes"]
end

subgraph group_search["Vault search"]
  node_searchcli["Smart search CLI<br/>[smart_search.py]"]
end

subgraph group_integrations["External integrations"]
  node_obsidian["Obsidian"]
  node_smartconnections["Smart Connections"]
  node_emailcalendar["Email and calendar"]
end

node_user(("User"))
node_claude["Claude Code"]

node_user -->|"starts session"| node_claude
node_claude -->|"runs command"| node_setup
node_claude -->|"runs command"| node_start
node_claude -->|"runs command"| node_sync
node_claude -->|"runs command"| node_wrap
node_setup -->|"creates note"| node_commandcenter
node_setup -->|"creates note"| node_todo
node_setup -->|"creates vault files"| node_sessionlog
node_setup -->|"produces briefing"| node_start
node_start -->|"reads notes"| node_commandcenter
node_start -->|"reads notes"| node_todo
node_start -.->|"surfaces events"| node_emailcalendar
node_sync -->|"saves checkpoint"| node_sessionlog
node_wrap -->|"updates notes"| node_commandcenter
node_wrap -->|"queues open work"| node_todo
node_searchcli -->|"invokes CLI"| node_obsidian
node_searchcli -->|"queries connections"| node_smartconnections
node_obsidian -->|"returns search results"| node_searchcli

click node_setup "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/setup/SKILL.md"
click node_start "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/start/SKILL.md"
click node_sync "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/sync/SKILL.md"
click node_wrap "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/wrap/SKILL.md"
click node_commandcenter "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/vault-template/Command%20Center.md"
click node_todo "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/vault-template/To-Do.md"
click node_sessionlog "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/vault-template/_system/Session%20Log.md"
click node_systemstate "https://github.com/jdpolasky/ai-chief-of-staff/tree/main/vault-template/_system"
click node_searchcli "https://github.com/jdpolasky/ai-chief-of-staff/blob/main/scripts/smart_search.py"

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_setup,node_start,node_sync,node_wrap,node_user toneBlue
class node_commandcenter,node_todo,node_sessionlog,node_systemstate toneAmber
class node_searchcli toneMint
class node_obsidian,node_smartconnections,node_emailcalendar toneRose
class node_claude toneIndigo
```

## Components

### Session commands

- [Setup wizard](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/setup/SKILL.md): `.claude/skills/setup/SKILL.md`
- [Start briefing](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/start/SKILL.md): `.claude/skills/start/SKILL.md`
- [Session sync](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/sync/SKILL.md): `.claude/skills/sync/SKILL.md`
- [Session wrap](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/.claude/skills/wrap/SKILL.md): `.claude/skills/wrap/SKILL.md`

### Vault memory

- [Command Center](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/vault-template/Command%20Center.md): `vault-template/Command Center.md`
- [To-Do](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/vault-template/To-Do.md): `vault-template/To-Do.md`
- [Session log](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/vault-template/_system/Session%20Log.md): `vault-template/_system/Session Log.md`
- [System state notes](https://github.com/jdpolasky/ai-chief-of-staff/tree/main/vault-template/_system): `vault-template/_system`

### Vault search

- [Smart search CLI](https://github.com/jdpolasky/ai-chief-of-staff/blob/main/scripts/smart_search.py): `scripts/smart_search.py`

### External integrations

- **Obsidian**
- **Smart Connections**
- **Email and calendar**

### Other components

- **User**
- **Claude Code**

## Connections

- User → Claude Code: starts session (evidence: `README.md`)
- Claude Code → Setup wizard: runs command (evidence: `README.md`)
- Claude Code → Start briefing: runs command (evidence: `README.md`)
- Claude Code → Session sync: runs command (evidence: `README.md`)
- Claude Code → Session wrap: runs command (evidence: `README.md`)
- Setup wizard → Command Center: creates note (evidence: `README.md`)
- Setup wizard → To-Do: creates note (evidence: `README.md`)
- Setup wizard → Session log: creates vault files (evidence: `README.md`)
- Setup wizard → Start briefing: produces briefing (evidence: `README.md`)
- Start briefing → Command Center: reads notes (evidence: `README.md`)
- Start briefing → To-Do: reads notes (evidence: `README.md`)
- Start briefing → Email and calendar: surfaces events (evidence: `README.md`)
- Session sync → Session log: saves checkpoint (evidence: `README.md`)
- Session wrap → Command Center: updates notes (evidence: `README.md`)
- Session wrap → To-Do: queues open work (evidence: `README.md`)
- Smart search CLI → Obsidian: invokes CLI (evidence: `scripts/smart_search.py`)
- Smart search CLI → Smart Connections: queries connections (evidence: `scripts/smart_search.py`)
- Obsidian → Smart search CLI: returns search results (evidence: `scripts/smart_search.py`)
