# chenxu-huang/dotfiles architecture

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

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

## Overview

This repository packages personal development-environment configuration and scripts that link it into place. The main user workflow is to run the platform’s setup script, then use Neovim, shell, PowerShell, or agent skills from their installed locations. The Neovim configuration loads shell environment and editor settings before plugin and language-server configuration. The README documents these relationships and capabilities; no source excerpts were provided, so implementation-level calls beyond those documented are omitted.

Main entry points: [`.config/nvim/lua/plugins`](https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lua/plugins) (Plugin Specs), [`scripts/setup.sh`](https://github.com/chenxu-huang/dotfiles/blob/main/scripts/setup.sh) (POSIX Setup), [`scripts/setup.ps1`](https://github.com/chenxu-huang/dotfiles/blob/main/scripts/setup.ps1) (Windows Setup), [`.config/nvim/init.lua`](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/init.lua) (Startup Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Installation"]
  node_setup_posix["POSIX Setup<br/>[setup.sh]"]
  node_setup_windows["Windows Setup<br/>[setup.ps1]"]
end

subgraph group_nvim["Neovim"]
  node_nvim_init["Startup Entry<br/>[init.lua]"]
  node_core["Core Setup<br/>[core]"]
  node_shell_env["Shell Environment<br/>[shell.lua]"]
  node_plugin_specs["Plugin Specs<br/>[plugins]"]
  node_lsp_configs["Language Servers<br/>[lsp]"]
  node_completion["Completion<br/>[blink.lua]"]
  node_tooling["LSP Tooling<br/>[mason.lua]"]
  node_navigation["Navigation<br/>[tree.lua]"]
  node_editing["Editing Tools<br/>[grug-far.lua]"]
  node_git_ui["Git Tools<br/>[gitsigns.lua]"]
  node_terminals["Terminals<br/>[toggleterm.lua]"]
  node_appearance["Appearance<br/>[tokyonight.lua]"]
end

subgraph group_shells["Shells"]
  node_zsh_config["zsh Startup<br/>[.zshrc]"]
  node_zprofile["Login Shell<br/>[.zprofile]"]
  node_pwsh_profile["PowerShell Profile"]
end

subgraph group_agent["Agent Skills"]
  node_skills["Commit Skill<br/>[SKILL.md]"]
end

node_user(("Developer"))
node_nvim_runtime["Neovim"]

node_user -->|"runs setup"| node_setup_posix
node_user -->|"runs setup"| node_setup_windows
node_setup_posix -->|"links config"| node_nvim_init
node_setup_posix -->|"links startup"| node_zsh_config
node_setup_posix -->|"links startup"| node_zprofile
node_setup_posix -->|"links skills"| node_skills
node_setup_windows -->|"links config"| node_nvim_init
node_setup_windows -->|"links profile"| node_pwsh_profile
node_setup_windows -->|"links skills"| node_skills
node_nvim_runtime -->|"loads config"| node_nvim_init
node_nvim_init -->|"requires core"| node_core
node_core -->|"loads first"| node_shell_env
node_core -->|"bootstraps plugins"| node_plugin_specs
node_nvim_runtime -->|"auto-imports"| node_plugin_specs
node_nvim_runtime -->|"auto-discovers"| node_lsp_configs
node_plugin_specs -->|"includes spec"| node_completion
node_plugin_specs -->|"includes specs"| node_tooling
node_plugin_specs -->|"includes specs"| node_navigation
node_plugin_specs -->|"includes specs"| node_editing
node_plugin_specs -->|"includes spec"| node_git_ui
node_plugin_specs -->|"includes spec"| node_terminals
node_plugin_specs -->|"includes specs"| node_appearance

click node_setup_posix "https://github.com/chenxu-huang/dotfiles/blob/main/scripts/setup.sh"
click node_setup_windows "https://github.com/chenxu-huang/dotfiles/blob/main/scripts/setup.ps1"
click node_nvim_init "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/init.lua"
click node_core "https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lua/core"
click node_shell_env "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/core/shell.lua"
click node_plugin_specs "https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lua/plugins"
click node_lsp_configs "https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lsp"
click node_completion "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/blink.lua"
click node_tooling "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/mason.lua"
click node_navigation "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/tree.lua"
click node_editing "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/grug-far.lua"
click node_git_ui "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/gitsigns.lua"
click node_terminals "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/toggleterm.lua"
click node_appearance "https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/tokyonight.lua"
click node_zsh_config "https://github.com/chenxu-huang/dotfiles/blob/main/.config/zsh/.zshrc"
click node_zprofile "https://github.com/chenxu-huang/dotfiles/blob/main/.config/zsh/.zprofile"
click node_pwsh_profile "https://github.com/chenxu-huang/dotfiles/blob/main/.config/powershell/Microsoft.PowerShell_profile.ps1"
click node_skills "https://github.com/chenxu-huang/dotfiles/blob/main/.agents/skills/commit/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_setup_posix,node_setup_windows toneBlue
class node_nvim_init,node_core,node_shell_env,node_plugin_specs,node_lsp_configs,node_completion,node_tooling,node_navigation,node_editing,node_git_ui,node_terminals,node_appearance toneAmber
class node_zsh_config,node_zprofile,node_pwsh_profile toneMint
class node_skills toneRose
class node_user,node_nvim_runtime toneIndigo
```

## Components

### Installation

- [POSIX Setup](https://github.com/chenxu-huang/dotfiles/blob/main/scripts/setup.sh): `scripts/setup.sh`
- [Windows Setup](https://github.com/chenxu-huang/dotfiles/blob/main/scripts/setup.ps1): `scripts/setup.ps1`

### Neovim

- [Startup Entry](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/init.lua): `.config/nvim/init.lua`
- [Core Setup](https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lua/core): `.config/nvim/lua/core`
- [Shell Environment](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/core/shell.lua): `.config/nvim/lua/core/shell.lua`
- [Plugin Specs](https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lua/plugins): `.config/nvim/lua/plugins`
- [Language Servers](https://github.com/chenxu-huang/dotfiles/tree/main/.config/nvim/lsp): `.config/nvim/lsp`
- [Completion](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/blink.lua): `.config/nvim/lua/plugins/blink.lua`
- [LSP Tooling](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/mason.lua): `.config/nvim/lua/plugins/mason.lua`
- [Navigation](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/tree.lua): `.config/nvim/lua/plugins/tree.lua`
- [Editing Tools](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/grug-far.lua): `.config/nvim/lua/plugins/grug-far.lua`
- [Git Tools](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/gitsigns.lua): `.config/nvim/lua/plugins/gitsigns.lua`
- [Terminals](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/toggleterm.lua): `.config/nvim/lua/plugins/toggleterm.lua`
- [Appearance](https://github.com/chenxu-huang/dotfiles/blob/main/.config/nvim/lua/plugins/tokyonight.lua): `.config/nvim/lua/plugins/tokyonight.lua`

### Shells

- [zsh Startup](https://github.com/chenxu-huang/dotfiles/blob/main/.config/zsh/.zshrc): `.config/zsh/.zshrc`
- [Login Shell](https://github.com/chenxu-huang/dotfiles/blob/main/.config/zsh/.zprofile): `.config/zsh/.zprofile`
- [PowerShell Profile](https://github.com/chenxu-huang/dotfiles/blob/main/.config/powershell/Microsoft.PowerShell_profile.ps1): `.config/powershell/Microsoft.PowerShell_profile.ps1`

### Agent Skills

- [Commit Skill](https://github.com/chenxu-huang/dotfiles/blob/main/.agents/skills/commit/SKILL.md): `.agents/skills/commit/SKILL.md`

### Other components

- **Developer**
- **Neovim**

## Connections

- Developer → POSIX Setup: runs setup (evidence: `README.md`)
- Developer → Windows Setup: runs setup (evidence: `README.md`)
- POSIX Setup → Startup Entry: links config (evidence: `README.md`)
- POSIX Setup → zsh Startup: links startup (evidence: `README.md`)
- POSIX Setup → Login Shell: links startup (evidence: `README.md`)
- POSIX Setup → Commit Skill: links skills (evidence: `README.md`)
- Windows Setup → Startup Entry: links config (evidence: `README.md`)
- Windows Setup → PowerShell Profile: links profile (evidence: `README.md`)
- Windows Setup → Commit Skill: links skills (evidence: `README.md`)
- Neovim → Startup Entry: loads config (evidence: `README.md`)
- Startup Entry → Core Setup: requires core (evidence: `README.md`)
- Core Setup → Shell Environment: loads first (evidence: `README.md`)
- Core Setup → Plugin Specs: bootstraps plugins (evidence: `README.md`)
- Neovim → Plugin Specs: auto-imports (evidence: `README.md`)
- Neovim → Language Servers: auto-discovers (evidence: `README.md`)
- Plugin Specs → Completion: includes spec (evidence: `README.md`)
- Plugin Specs → LSP Tooling: includes specs (evidence: `README.md`)
- Plugin Specs → Navigation: includes specs (evidence: `README.md`)
- Plugin Specs → Editing Tools: includes specs (evidence: `README.md`)
- Plugin Specs → Git Tools: includes spec (evidence: `README.md`)
- Plugin Specs → Terminals: includes spec (evidence: `README.md`)
- Plugin Specs → Appearance: includes specs (evidence: `README.md`)
