# yodatek/povy architecture

> Architecture diagram of the GitHub repository yodatek/povy, 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/yodatek/povy
- Repository: https://github.com/yodatek/povy

## Overview

povy manages a machine’s development environment from a private machine config and optional team profiles. The main workflow is to initialize configuration, apply a profile through mise, then expose its tools and settings to shells and graphical applications while applying Git identity; contexts scope those settings to directories. Doctor and status inspect the result, while banner and version provide separate user-facing commands. The README documents these capabilities and relationships, but no source excerpts were supplied, so implementation-level call ownership and finer internal links cannot be verified.

Main entry points: [`lib/cmd/apply.sh`](https://github.com/yodatek/povy/blob/main/lib/cmd/apply.sh) (Apply environment), [`bin/povy`](https://github.com/yodatek/povy/blob/main/bin/povy) (Shell CLI), [`lib/cmd/init.sh`](https://github.com/yodatek/povy/blob/main/lib/cmd/init.sh) (Initialize config), [`lib/cmd/doctor.sh`](https://github.com/yodatek/povy/blob/main/lib/cmd/doctor.sh) (Check environment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Commands"]
  node_shell_cli["Shell CLI"]
  node_ps_cli["PowerShell CLI<br/>[povy.ps1]"]
  node_init["Initialize config<br/>[init.sh]"]
  node_apply["Apply environment<br/>[apply.sh]"]
  node_doctor["Check environment<br/>[doctor.sh]"]
  node_status["Show status<br/>[status.sh]"]
  node_banner["Show banner<br/>[banner.sh]"]
end

subgraph group_configuration["Config and profiles"]
  node_machine_config["Machine config<br/>[config.sh]"]
  node_profile["Profile management<br/>[profile.sh]"]
  node_team_config["Team configuration<br/>[team.sh]"]
end

subgraph group_application["Environment application"]
  node_shell_setup["Shell setup<br/>[shell.sh]"]
  node_gui_setup["Graphical app setup<br/>[gui.sh]"]
  node_git_identity["Git identity<br/>[git.sh]"]
  node_windows_engine["PowerShell engine"]
end

subgraph group_inspection["Context and diagnostics"]
  node_context["Context resolution<br/>[context.sh]"]
end

node_user(("User"))
node_mise["mise"]
node_shells(("Shells and IDEs"))
node_external_apps(("Graphical apps"))
node_windows_shell(("PowerShell sessions"))

node_user -->|"runs"| node_shell_cli
node_user -->|"runs"| node_ps_cli
node_shell_cli -->|"runs init"| node_init
node_shell_cli -->|"runs apply"| node_apply
node_shell_cli -->|"runs doctor"| node_doctor
node_shell_cli -->|"runs status"| node_status
node_shell_cli -->|"runs banner"| node_banner
node_ps_cli -->|"runs commands"| node_windows_engine
node_init -->|"writes"| node_machine_config
node_init -->|"selects profile"| node_profile
node_apply -->|"reads"| node_machine_config
node_apply -->|"updates profile"| node_profile
node_apply -->|"runs bootstrap"| node_mise
node_apply -->|"includes team config"| node_team_config
node_apply -->|"sets shell paths"| node_shell_setup
node_apply -->|"sets app paths"| node_gui_setup
node_apply -->|"sets identity"| node_git_identity
node_apply -->|"applies contexts"| node_context
node_shell_setup -->|"configures"| node_shells
node_gui_setup -->|"configures"| node_external_apps
node_windows_engine -->|"loads profile files"| node_windows_shell
node_doctor -->|"checks state"| node_machine_config
node_doctor -->|"checks paths"| node_shell_setup
node_status -->|"shows contexts"| node_context
node_context -->|"scopes profile"| node_team_config

click node_shell_cli "https://github.com/yodatek/povy/blob/main/bin/povy"
click node_ps_cli "https://github.com/yodatek/povy/blob/main/bin/povy.ps1"
click node_init "https://github.com/yodatek/povy/blob/main/lib/cmd/init.sh"
click node_apply "https://github.com/yodatek/povy/blob/main/lib/cmd/apply.sh"
click node_doctor "https://github.com/yodatek/povy/blob/main/lib/cmd/doctor.sh"
click node_status "https://github.com/yodatek/povy/blob/main/lib/cmd/status.sh"
click node_banner "https://github.com/yodatek/povy/blob/main/lib/cmd/banner.sh"
click node_machine_config "https://github.com/yodatek/povy/blob/main/lib/config.sh"
click node_profile "https://github.com/yodatek/povy/blob/main/lib/profile.sh"
click node_context "https://github.com/yodatek/povy/blob/main/lib/context.sh"
click node_team_config "https://github.com/yodatek/povy/blob/main/lib/team.sh"
click node_shell_setup "https://github.com/yodatek/povy/blob/main/lib/shell.sh"
click node_gui_setup "https://github.com/yodatek/povy/blob/main/lib/gui.sh"
click node_git_identity "https://github.com/yodatek/povy/blob/main/lib/git.sh"
click node_windows_engine "https://github.com/yodatek/povy/tree/main/lib/ps"

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_shell_cli,node_ps_cli,node_init,node_apply,node_doctor,node_status,node_banner,node_user toneBlue
class node_machine_config,node_profile,node_team_config toneAmber
class node_shell_setup,node_gui_setup,node_git_identity,node_windows_engine toneMint
class node_context toneRose
class node_mise,node_shells,node_external_apps,node_windows_shell toneIndigo
```

## Components

### Commands

- [Shell CLI](https://github.com/yodatek/povy/blob/main/bin/povy): `bin/povy`
- [PowerShell CLI](https://github.com/yodatek/povy/blob/main/bin/povy.ps1): `bin/povy.ps1`
- [Initialize config](https://github.com/yodatek/povy/blob/main/lib/cmd/init.sh): `lib/cmd/init.sh`
- [Apply environment](https://github.com/yodatek/povy/blob/main/lib/cmd/apply.sh): `lib/cmd/apply.sh`
- [Check environment](https://github.com/yodatek/povy/blob/main/lib/cmd/doctor.sh): `lib/cmd/doctor.sh`
- [Show status](https://github.com/yodatek/povy/blob/main/lib/cmd/status.sh): `lib/cmd/status.sh`
- [Show banner](https://github.com/yodatek/povy/blob/main/lib/cmd/banner.sh): `lib/cmd/banner.sh`

### Config and profiles

- [Machine config](https://github.com/yodatek/povy/blob/main/lib/config.sh): `lib/config.sh`
- [Profile management](https://github.com/yodatek/povy/blob/main/lib/profile.sh): `lib/profile.sh`
- [Team configuration](https://github.com/yodatek/povy/blob/main/lib/team.sh): `lib/team.sh`

### Environment application

- [Shell setup](https://github.com/yodatek/povy/blob/main/lib/shell.sh): `lib/shell.sh`
- [Graphical app setup](https://github.com/yodatek/povy/blob/main/lib/gui.sh): `lib/gui.sh`
- [Git identity](https://github.com/yodatek/povy/blob/main/lib/git.sh): `lib/git.sh`
- [PowerShell engine](https://github.com/yodatek/povy/tree/main/lib/ps): `lib/ps`

### Context and diagnostics

- [Context resolution](https://github.com/yodatek/povy/blob/main/lib/context.sh): `lib/context.sh`

### Other components

- **User**
- **mise**
- **Shells and IDEs**
- **Graphical apps**
- **PowerShell sessions**

## Connections

- User → Shell CLI: runs (evidence: `README.md`)
- User → PowerShell CLI: runs (evidence: `README.md`)
- Shell CLI → Initialize config: runs init (evidence: `README.md`)
- Shell CLI → Apply environment: runs apply (evidence: `README.md`)
- Shell CLI → Check environment: runs doctor (evidence: `README.md`)
- Shell CLI → Show status: runs status (evidence: `README.md`)
- Shell CLI → Show banner: runs banner (evidence: `README.md`)
- PowerShell CLI → PowerShell engine: runs commands (evidence: `README.md`)
- Initialize config → Machine config: writes (evidence: `README.md`)
- Initialize config → Profile management: selects profile (evidence: `README.md`)
- Apply environment → Machine config: reads (evidence: `README.md`)
- Apply environment → Profile management: updates profile (evidence: `README.md`)
- Apply environment → mise: runs bootstrap (evidence: `README.md`)
- Apply environment → Team configuration: includes team config (evidence: `README.md`)
- Apply environment → Shell setup: sets shell paths (evidence: `README.md`)
- Apply environment → Graphical app setup: sets app paths (evidence: `README.md`)
- Apply environment → Git identity: sets identity (evidence: `README.md`)
- Apply environment → Context resolution: applies contexts (evidence: `README.md`)
- Shell setup → Shells and IDEs: configures (evidence: `README.md`)
- Graphical app setup → Graphical apps: configures (evidence: `README.md`)
- PowerShell engine → PowerShell sessions: loads profile files (evidence: `README.md`)
- Check environment → Machine config: checks state (evidence: `README.md`)
- Check environment → Shell setup: checks paths (evidence: `README.md`)
- Show status → Context resolution: shows contexts (evidence: `README.md`)
- Context resolution → Team configuration: scopes profile (evidence: `README.md`)
