# edisonake/ec-tooling architecture

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

- Interactive diagram: https://gitdiagram.com/edisonake/ec-tooling
- Repository: https://github.com/edisonake/ec-tooling

## Overview

EC Tooling is a collection of developer utilities rather than one application. Its main content workflow runs taxonomy report, migration, and deletion commands through WP-CLI; separate tools automate GitHub branch work, build WordPress deployment branches, and configure macOS. The taxonomy command is the only sampled implementation, so connections for the other documented tools are limited to README evidence. The graph shows documented behavior without inferring links among independent scripts.

Main entry points: [`bin/wp-cli/post-tax-list.php`](https://github.com/edisonake/ec-tooling/blob/main/bin/wp-cli/post-tax-list.php) (Taxonomy commands), [`github/shell/bulk_pull_requests.sh`](https://github.com/edisonake/ec-tooling/blob/main/github/shell/bulk_pull_requests.sh) (Bulk PR creation), [`github/shell/bulk_tag_delete_branches.sh`](https://github.com/edisonake/ec-tooling/blob/main/github/shell/bulk_tag_delete_branches.sh) (Branch archiving), [`github/workflows/ec-wordpress-deploy.yml`](https://github.com/edisonake/ec-tooling/blob/main/github/workflows/ec-wordpress-deploy.yml) (Built-branch workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_wordpress["WordPress tools"]
  node_wpcli["WP-CLI"]
  node_taxonomy["Taxonomy commands<br/>[post-tax-list.php]"]
  node_wpdata[("WordPress content")]
end

subgraph group_github["GitHub automation"]
  node_prscript["Bulk PR creation"]
  node_branchscript["Branch archiving"]
end

subgraph group_deploy["Deployment workflow"]
  node_deployworkflow["Built-branch workflow"]
  node_builtbranch["Built branch"]
end

subgraph group_macos["macOS configuration"]
  node_brewfile["Homebrew setup"]
  node_zsh["Zsh theme"]
end

node_developer(("Developer"))
node_ghcli["GitHub CLI"]
node_githubremote["GitHub remote"]
node_macosenv["macOS environment"]

node_developer -->|"runs commands"| node_wpcli
node_wpcli -->|"dispatches to"| node_taxonomy
node_taxonomy -->|"queries and updates"| node_wpdata
node_developer -->|"runs script"| node_prscript
node_prscript -->|"creates PRs"| node_ghcli
node_developer -->|"runs script"| node_branchscript
node_branchscript -->|"archives and deletes"| node_githubremote
node_developer -.->|"triggers deployment"| node_deployworkflow
node_deployworkflow -->|"creates branch"| node_builtbranch
node_developer -->|"sets up environment"| node_brewfile
node_brewfile -->|"configures packages"| node_macosenv
node_developer -.->|"selects theme"| node_zsh
node_zsh -->|"customizes shell"| node_macosenv

click node_taxonomy "https://github.com/edisonake/ec-tooling/blob/main/bin/wp-cli/post-tax-list.php"
click node_prscript "https://github.com/edisonake/ec-tooling/blob/main/github/shell/bulk_pull_requests.sh"
click node_branchscript "https://github.com/edisonake/ec-tooling/blob/main/github/shell/bulk_tag_delete_branches.sh"
click node_deployworkflow "https://github.com/edisonake/ec-tooling/blob/main/github/workflows/ec-wordpress-deploy.yml"
click node_brewfile "https://github.com/edisonake/ec-tooling/blob/main/config/Brewfile"
click node_zsh "https://github.com/edisonake/ec-tooling/blob/main/config/ec-magic-plus.zsh-theme"

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_wpcli,node_taxonomy,node_wpdata toneBlue
class node_prscript,node_branchscript toneAmber
class node_deployworkflow,node_builtbranch toneMint
class node_brewfile,node_zsh toneRose
class node_developer,node_ghcli,node_githubremote,node_macosenv toneIndigo
```

## Components

### WordPress tools

- **WP-CLI**
- [Taxonomy commands](https://github.com/edisonake/ec-tooling/blob/main/bin/wp-cli/post-tax-list.php): `bin/wp-cli/post-tax-list.php`
- **WordPress content**

### GitHub automation

- [Bulk PR creation](https://github.com/edisonake/ec-tooling/blob/main/github/shell/bulk_pull_requests.sh): `github/shell/bulk_pull_requests.sh`
- [Branch archiving](https://github.com/edisonake/ec-tooling/blob/main/github/shell/bulk_tag_delete_branches.sh): `github/shell/bulk_tag_delete_branches.sh`

### Deployment workflow

- [Built-branch workflow](https://github.com/edisonake/ec-tooling/blob/main/github/workflows/ec-wordpress-deploy.yml): `github/workflows/ec-wordpress-deploy.yml`
- **Built branch**

### macOS configuration

- [Homebrew setup](https://github.com/edisonake/ec-tooling/blob/main/config/Brewfile): `config/Brewfile`
- [Zsh theme](https://github.com/edisonake/ec-tooling/blob/main/config/ec-magic-plus.zsh-theme): `config/ec-magic-plus.zsh-theme`

### Other components

- **Developer**
- **GitHub CLI**
- **GitHub remote**
- **macOS environment**

## Connections

- Developer → WP-CLI: runs commands (evidence: `README.md`)
- WP-CLI → Taxonomy commands: dispatches to (evidence: `bin/wp-cli/post-tax-list.php`)
- Taxonomy commands → WordPress content: queries and updates (evidence: `bin/wp-cli/post-tax-list.php`)
- Developer → Bulk PR creation: runs script (evidence: `README.md`)
- Bulk PR creation → GitHub CLI: creates PRs (evidence: `README.md`)
- Developer → Branch archiving: runs script (evidence: `README.md`)
- Branch archiving → GitHub remote: archives and deletes (evidence: `README.md`)
- Developer → Built-branch workflow: triggers deployment (evidence: `README.md`)
- Built-branch workflow → Built branch: creates branch (evidence: `README.md`)
- Developer → Homebrew setup: sets up environment (evidence: `README.md`)
- Homebrew setup → macOS environment: configures packages (evidence: `README.md`)
- Developer → Zsh theme: selects theme (evidence: `README.md`)
- Zsh theme → macOS environment: customizes shell (evidence: `README.md`)
