# eycjur/dotfiles architecture

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

- Interactive diagram: https://gitdiagram.com/eycjur/dotfiles
- Repository: https://github.com/eycjur/dotfiles

## Overview

#### Purpose and Entry Points

This repository provisions a portable Unix development environment (“dotfiles”) for macOS, Linux, WSL, Docker, and VS Code Dev Containers. Primary entry points are `install.sh` for a checked-out repository and `remote-install.sh` for curl-based zsh bootstrap installation.

#### Installation and Linking Boundary

`install.sh` is the central installer: it establishes the user-level configuration by connecting repository-managed dotfiles to home-directory locations. It is the main compatibility and idempotency boundary for local clones, containers, and Dev Container’s `dotfiles.installCommand`. `remote-install.sh` provides the untrusted-network bootstrap path, downloading or cloning before delegating to installation.

Paths: `install.sh`, `remote-install.sh`, `readme.md`.

#### Shell Environment Assembly

The shell configuration is modular rather than monolithic. `.zshrc` / `.bashrc` are user shell entry points; shared environment, aliases, functions, fuzzy finder setup, and editor/plugin behavior live below `shell/`. This permits common behavior across shells while retaining zsh- and bash-specific prompt/plugin integration.

Paths: `.zshrc`, `.bashrc`, `shell/env.sh`, `shell/alias.sh`, `shell/functions.sh`, `shell/fzf.sh`.

#### Platform-Specific Initialization

Platform scripts isolate OS-dependent setup and behavior for macOS, Linux, and WSL. The shell loading sequence selects the applicable platform layer rather than embedding OS branching throughout general aliases and functions.

Paths: `shell/platform/mac.sh`, `shell/platform/linux.sh`, `shell/platform/wsl.sh`.

#### Interactive Shell Experience

Prompt rendering and shell extension loading are split by shell runtime. Zsh has dedicated plugin and prompt files; Bash has its own prompt integration. Terminal-wide behavior is also configured through tmux, while `.zshenv` supplies earlier zsh environment initialization.

Paths: `shell/zsh/plugin.zsh`, `shell/zsh/prompt.zsh`, `shell/bash/prompt.sh`, `.zshenv`, `.tmux.conf`.

#### Editor and CLI Tool Configuration

Neovim/Vim, Yazi, and several CLI-agent tools consume checked-in native configuration files. These are declarative integration points rather than application services: their host runtimes discover config under `~/.config` after installation.

Paths: `.config/nvim/init.vim`, `.vimrc`, `.config/yazi/yazi.toml`, `.config/agentsb/config.toml`, `.config/uv/uv.toml`.

#### AI Workflow Conventions

Claude and Codex configuration directories define repository-local AI assistant instructions, reusable skills, commands, and specialist agent roles. They support coding/review workflows but are separate from installation and shell runtime paths.

Paths: `claude/CLAUDE.md`, `claude/agents/code-reviewer.md`, `claude/skills/review-pr/SKILL.md`, `codex/AGENTS.md`, `codex/config.toml`.

#### External Dependencies and User-Owned State

The environment expects Unix shell tooling plus Git, Neovim/Vim, and zsh; installation examples use Homebrew on macOS and APT on Linux. Remote bootstrap depends on `curl`, GitHub raw content, and GitHub repository access. Personal Git identity is deliberately kept outside version control through `.gitconfig.local`, seeded from the tracked sample.

Paths: `.gitconfig`, `.gitconfig.local.sample`, `.npmrc`, `.editorconfig`.

Main entry points: [`.zshrc`](https://github.com/eycjur/dotfiles/blob/main/.zshrc) (Shell entry points), [`install.sh`](https://github.com/eycjur/dotfiles/blob/main/install.sh) (Local installer), [`.bashrc`](https://github.com/eycjur/dotfiles/blob/main/.bashrc) (Bash entry point), [`remote-install.sh`](https://github.com/eycjur/dotfiles/blob/main/remote-install.sh) (Remote bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Provisioning"]
  node_remote["Remote bootstrap<br/>installer script<br/>[remote-install.sh]"]
  node_installer{{"Local installer<br/>installer script<br/>[install.sh]"}}
  node_docs["Installation guide<br/>documentation<br/>[readme.md]"]
  node_home[("User home config<br/>user-owned locations")]
end

subgraph group_shell["Shell runtime"]
  node_shell_entries["Shell entry points<br/>[.zshrc]"]
  node_bashrc["Bash entry point<br/>bash rc file<br/>[.bashrc]"]
  node_shared_shell["Shared shell modules<br/>[env.sh]"]
  node_platform["Platform initialization<br/>OS shell scripts<br/>[mac.sh]"]
  node_zsh_runtime["Zsh extensions and prompt<br/>zsh integration<br/>[plugin.zsh]"]
  node_bash_prompt["Bash prompt<br/>bash integration<br/>[prompt.sh]"]
  node_zshenv["Early Zsh environment<br/>zsh environment file<br/>[.zshenv]"]
  node_tmux["Tmux configuration<br/>terminal config<br/>[.tmux.conf]"]
end

subgraph group_tools["Tool configuration"]
  node_editor_configs["Editor configuration<br/>Vim and Neovim config<br/>[init.vim]"]
  node_cli_configs["CLI tool configuration<br/>native tool configs<br/>[yazi.toml]"]
  node_git_identity["Git configuration boundary<br/>[.gitconfig]"]
end

subgraph group_ai["AI workflow"]
  node_ai_conventions["Claude conventions<br/>AI instructions and roles<br/>[CLAUDE.md]"]
  node_codex_conventions["Codex conventions<br/>AI instructions<br/>[AGENTS.md]"]
end

node_dependencies(("System dependencies<br/>external tools"))

node_docs -->|"documents"| node_remote
node_docs -->|"documents"| node_installer
node_remote -->|"delegates to"| node_installer
node_dependencies -.->|"enables"| node_remote
node_dependencies -.->|"provides tools"| node_installer
node_installer -->|"links managed config"| node_home
node_home -->|"exposes"| node_shell_entries
node_home -->|"exposes"| node_bashrc
node_shell_entries -->|"initializes after"| node_zshenv
node_shell_entries -->|"loads"| node_shared_shell
node_bashrc -->|"loads"| node_shared_shell
node_shared_shell -->|"selects"| node_platform
node_shell_entries -->|"loads"| node_zsh_runtime
node_bashrc -->|"loads"| node_bash_prompt
node_home -->|"exposes"| node_tmux
node_home -->|"installs for discovery"| node_editor_configs
node_home -->|"installs for discovery"| node_cli_configs
node_home -->|"installs tracked base"| node_git_identity
node_git_identity -.->|"keeps identity local"| node_home
node_ai_conventions -.->|"complements"| node_codex_conventions

click node_remote "https://github.com/eycjur/dotfiles/blob/main/remote-install.sh"
click node_installer "https://github.com/eycjur/dotfiles/blob/main/install.sh"
click node_docs "https://github.com/eycjur/dotfiles/blob/main/readme.md"
click node_shell_entries "https://github.com/eycjur/dotfiles/blob/main/.zshrc"
click node_bashrc "https://github.com/eycjur/dotfiles/blob/main/.bashrc"
click node_shared_shell "https://github.com/eycjur/dotfiles/blob/main/shell/env.sh"
click node_platform "https://github.com/eycjur/dotfiles/blob/main/shell/platform/mac.sh"
click node_zsh_runtime "https://github.com/eycjur/dotfiles/blob/main/shell/zsh/plugin.zsh"
click node_bash_prompt "https://github.com/eycjur/dotfiles/blob/main/shell/bash/prompt.sh"
click node_zshenv "https://github.com/eycjur/dotfiles/blob/main/.zshenv"
click node_tmux "https://github.com/eycjur/dotfiles/blob/main/.tmux.conf"
click node_editor_configs "https://github.com/eycjur/dotfiles/blob/main/.config/nvim/init.vim"
click node_cli_configs "https://github.com/eycjur/dotfiles/blob/main/.config/yazi/yazi.toml"
click node_ai_conventions "https://github.com/eycjur/dotfiles/blob/main/claude/CLAUDE.md"
click node_codex_conventions "https://github.com/eycjur/dotfiles/blob/main/codex/AGENTS.md"
click node_git_identity "https://github.com/eycjur/dotfiles/blob/main/.gitconfig"

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_remote,node_installer,node_docs,node_home toneBlue
class node_shell_entries,node_bashrc,node_shared_shell,node_platform,node_zsh_runtime,node_bash_prompt,node_zshenv,node_tmux toneAmber
class node_editor_configs,node_cli_configs,node_git_identity toneMint
class node_ai_conventions,node_codex_conventions toneRose
class node_dependencies toneNeutral
```

## Components

### Provisioning

- [Remote bootstrap](https://github.com/eycjur/dotfiles/blob/main/remote-install.sh): installer script · Downloads or clones before local installation. · `remote-install.sh`
- [Local installer](https://github.com/eycjur/dotfiles/blob/main/install.sh): installer script · Idempotently links managed files into the home directory. · `install.sh`
- [Installation guide](https://github.com/eycjur/dotfiles/blob/main/readme.md): documentation · `readme.md`
- **User home config**: user-owned locations · Linked dotfiles and discovered configuration destinations.

### Shell runtime

- [Shell entry points](https://github.com/eycjur/dotfiles/blob/main/.zshrc): zsh and bash rc files · `.zshrc`
- [Bash entry point](https://github.com/eycjur/dotfiles/blob/main/.bashrc): bash rc file · `.bashrc`
- [Shared shell modules](https://github.com/eycjur/dotfiles/blob/main/shell/env.sh): shell modules · Environment, aliases, functions, and fuzzy finder setup. · `shell/env.sh`
- [Platform initialization](https://github.com/eycjur/dotfiles/blob/main/shell/platform/mac.sh): OS shell scripts · Selects macOS, Linux, or WSL behavior. · `shell/platform/mac.sh`
- [Zsh extensions and prompt](https://github.com/eycjur/dotfiles/blob/main/shell/zsh/plugin.zsh): zsh integration · `shell/zsh/plugin.zsh`
- [Bash prompt](https://github.com/eycjur/dotfiles/blob/main/shell/bash/prompt.sh): bash integration · `shell/bash/prompt.sh`
- [Early Zsh environment](https://github.com/eycjur/dotfiles/blob/main/.zshenv): zsh environment file · `.zshenv`
- [Tmux configuration](https://github.com/eycjur/dotfiles/blob/main/.tmux.conf): terminal config · `.tmux.conf`

### Tool configuration

- [Editor configuration](https://github.com/eycjur/dotfiles/blob/main/.config/nvim/init.vim): Vim and Neovim config · `.config/nvim/init.vim`
- [CLI tool configuration](https://github.com/eycjur/dotfiles/blob/main/.config/yazi/yazi.toml): native tool configs · Yazi and CLI-agent configuration discovered under ~/.config. · `.config/yazi/yazi.toml`
- [Git configuration boundary](https://github.com/eycjur/dotfiles/blob/main/.gitconfig): Git config · Tracked Git settings seed an untracked personal identity file. · `.gitconfig`

### AI workflow

- [Claude conventions](https://github.com/eycjur/dotfiles/blob/main/claude/CLAUDE.md): AI instructions and roles · Instructions, review skill, and specialist role definitions. · `claude/CLAUDE.md`
- [Codex conventions](https://github.com/eycjur/dotfiles/blob/main/codex/AGENTS.md): AI instructions · `codex/AGENTS.md`

### Other components

- **System dependencies**: external tools · Shell tooling, Git, zsh, Neovim/Vim, curl, and GitHub access.

## Connections

- Installation guide → Remote bootstrap: documents
- Installation guide → Local installer: documents
- Remote bootstrap → Local installer: delegates to
- System dependencies → Remote bootstrap: enables
- System dependencies → Local installer: provides tools
- Local installer → User home config: links managed config
- User home config → Shell entry points: exposes
- User home config → Bash entry point: exposes
- Shell entry points → Early Zsh environment: initializes after
- Shell entry points → Shared shell modules: loads
- Bash entry point → Shared shell modules: loads
- Shared shell modules → Platform initialization: selects
- Shell entry points → Zsh extensions and prompt: loads
- Bash entry point → Bash prompt: loads
- User home config → Tmux configuration: exposes
- User home config → Editor configuration: installs for discovery
- User home config → CLI tool configuration: installs for discovery
- User home config → Git configuration boundary: installs tracked base
- Git configuration boundary → User home config: keeps identity local
- Claude conventions → Codex conventions: complements
