# josephtoscano-io/acf-migrate architecture

> Architecture diagram of the GitHub repository josephtoscano-io/acf-migrate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/josephtoscano-io/acf-migrate
- Repository: https://github.com/josephtoscano-io/acf-migrate

## Overview

acf-migrate is a Claude Code skill for migrating a WordPress theme’s hardcoded content into ACF. A maintainer invokes it on a theme; it audits templates, rewrites them to use ACF fields, and generates field definitions, a backup of original copy, and a WP-CLI population script. The field definitions are imported into ACF, then WP-CLI runs the script to populate content. The tree contains only the skill file; relationships and capabilities below are based on the README, not inspected source excerpts.

Main entry points: [`acf-migrate.md`](https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md) (Migration skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_maintainer(("Theme maintainer"))
node_skill["Migration skill<br/>[acf-migrate.md]"]
node_theme["PHP templates"]
node_rewrites["Rewritten templates<br/>[acf-migrate.md]"]
node_fields["ACF field JSON<br/>[acf-migrate.md]"]
node_backup["Content backup<br/>[acf-migrate.md]"]
node_populate["Population script<br/>[acf-migrate.md]"]
node_acf["WordPress ACF"]
node_wpcli["WP-CLI"]

node_maintainer -->|"invokes"| node_skill
node_skill -->|"audits"| node_theme
node_skill -->|"rewrites"| node_rewrites
node_skill -->|"generates"| node_fields
node_skill -->|"documents copy"| node_backup
node_skill -->|"generates"| node_populate
node_maintainer -->|"imports fields"| node_acf
node_fields -->|"defines fields"| node_acf
node_maintainer -->|"runs script"| node_wpcli
node_wpcli -->|"executes"| node_populate
node_populate -->|"populates content"| node_acf

click node_skill "https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md"
click node_rewrites "https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md"
click node_fields "https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md"
click node_backup "https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md"
click node_populate "https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.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_maintainer,node_theme,node_acf,node_wpcli toneIndigo
class node_skill,node_rewrites,node_fields,node_backup,node_populate toneTeal
```

## Components

### Other components

- **Theme maintainer**
- [Migration skill](https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md): `acf-migrate.md`
- **PHP templates**
- [Rewritten templates](https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md): `acf-migrate.md`
- [ACF field JSON](https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md): `acf-migrate.md`
- [Content backup](https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md): `acf-migrate.md`
- [Population script](https://github.com/josephtoscano-io/acf-migrate/blob/master/acf-migrate.md): `acf-migrate.md`
- **WordPress ACF**
- **WP-CLI**

## Connections

- Theme maintainer → Migration skill: invokes (evidence: `README.md`)
- Migration skill → PHP templates: audits (evidence: `README.md`)
- Migration skill → Rewritten templates: rewrites (evidence: `README.md`)
- Migration skill → ACF field JSON: generates (evidence: `README.md`)
- Migration skill → Content backup: documents copy (evidence: `README.md`)
- Migration skill → Population script: generates (evidence: `README.md`)
- Theme maintainer → WordPress ACF: imports fields (evidence: `README.md`)
- ACF field JSON → WordPress ACF: defines fields (evidence: `README.md`)
- Theme maintainer → WP-CLI: runs script (evidence: `README.md`)
- WP-CLI → Population script: executes (evidence: `README.md`)
- Population script → WordPress ACF: populates content (evidence: `README.md`)
