# openai/openai-codemod architecture

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

- Interactive diagram: https://gitdiagram.com/openai/openai-codemod
- Repository: https://github.com/openai/openai-codemod

## Overview

CodeMod is a skills-only Codex plugin for coordinating technology migrations through provider-backed records, reviewed source behaviors, phased transformation, and independent verification. The user-facing path runs from migration intent and setup through preflight, assessment, planning, transformation, and target verification, with workflow handoffs and status reporting. Its runtime is the collection of skill instructions and reference materials, not a bundled application or local database. Relationships below are limited to the README's explicit workflow and capability statements; individual skill implementation details were not sampled.

Main entry points: [`skills/workflow/SKILL.md`](https://github.com/openai/openai-codemod/blob/main/skills/workflow/SKILL.md) (Workflow), [`skills/initialize/SKILL.md`](https://github.com/openai/openai-codemod/blob/main/skills/initialize/SKILL.md) (Initialize), [`skills/verify-target/SKILL.md`](https://github.com/openai/openai-codemod/blob/main/skills/verify-target/SKILL.md) (Verify target), [`skills/assess/SKILL.md`](https://github.com/openai/openai-codemod/blob/main/skills/assess/SKILL.md) (Assess source)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_coordination["Workflow coordination"]
  node_workflow["Workflow<br/>[SKILL.md]"]
  node_initialize["Initialize<br/>[SKILL.md]"]
  node_preflight["Preflight<br/>[SKILL.md]"]
  node_status["Status<br/>[SKILL.md]"]
  node_codemod["Migration entrypoint<br/>[SKILL.md]"]
end

subgraph group_migration["Migration work"]
  node_assess["Assess source<br/>[SKILL.md]"]
  node_brief["Plan migration<br/>[SKILL.md]"]
  node_behaviors["Review behaviors<br/>[SKILL.md]"]
  node_transform["Transform phases<br/>[SKILL.md]"]
  node_verify["Verify target<br/>[SKILL.md]"]
end

subgraph group_records["Records and reviews"]
  node_provider[("Selected record provider")]
  node_reportstore[("Configured report store")]
  node_reviews["Human reviews<br/>[reviews.md]"]
end

subgraph group_guidance["Workflow guidance"]
  node_handoffs["Handoff guidance<br/>[handoffs.md]"]
  node_progress["Progress view<br/>[progress-view.md]"]
  node_environments["Environment setup<br/>[README.md]"]
  node_codegraph["Source graph evidence<br/>[codegraph.md]"]
end

node_user(("Migration user"))
node_codex(("Codex"))

node_user -->|"starts migration"| node_codemod
node_user -->|"requests workflow"| node_workflow
node_workflow -->|"coordinates setup"| node_initialize
node_workflow -->|"hands off"| node_preflight
node_workflow -->|"coordinates stages"| node_assess
node_workflow -->|"coordinates stages"| node_brief
node_workflow -->|"coordinates stages"| node_behaviors
node_workflow -->|"coordinates stages"| node_transform
node_workflow -->|"coordinates stages"| node_verify
node_codex -->|"runs skills"| node_workflow
node_initialize -->|"selects provider"| node_provider
node_workflow -->|"tracks migration"| node_provider
node_workflow -->|"stores documents"| node_reportstore
node_behaviors -->|"requires approval"| node_reviews
node_brief -->|"requires approval"| node_reviews
node_transform -->|"verifies phases"| node_verify
node_workflow -->|"verifies migration"| node_verify
node_status -->|"reads progress"| node_provider
node_workflow -.->|"uses guidance"| node_handoffs
node_workflow -.->|"uses guidance"| node_progress
node_initialize -.->|"uses guidance"| node_environments
node_assess -.->|"uses evidence"| node_codegraph

click node_workflow "https://github.com/openai/openai-codemod/blob/main/skills/workflow/SKILL.md"
click node_initialize "https://github.com/openai/openai-codemod/blob/main/skills/initialize/SKILL.md"
click node_preflight "https://github.com/openai/openai-codemod/blob/main/skills/preflight/SKILL.md"
click node_status "https://github.com/openai/openai-codemod/blob/main/skills/status/SKILL.md"
click node_codemod "https://github.com/openai/openai-codemod/blob/main/skills/codemod/SKILL.md"
click node_assess "https://github.com/openai/openai-codemod/blob/main/skills/assess/SKILL.md"
click node_brief "https://github.com/openai/openai-codemod/blob/main/skills/brief/SKILL.md"
click node_behaviors "https://github.com/openai/openai-codemod/blob/main/skills/behaviors/SKILL.md"
click node_transform "https://github.com/openai/openai-codemod/blob/main/skills/transform/SKILL.md"
click node_verify "https://github.com/openai/openai-codemod/blob/main/skills/verify-target/SKILL.md"
click node_reviews "https://github.com/openai/openai-codemod/blob/main/skills/codemod/references/records/reviews.md"
click node_handoffs "https://github.com/openai/openai-codemod/blob/main/skills/workflow/references/handoffs.md"
click node_progress "https://github.com/openai/openai-codemod/blob/main/skills/workflow/references/progress-view.md"
click node_environments "https://github.com/openai/openai-codemod/blob/main/skills/codemod/references/environments/README.md"
click node_codegraph "https://github.com/openai/openai-codemod/blob/main/skills/codemod/references/codegraph.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_workflow,node_initialize,node_preflight,node_status,node_codemod,node_user toneBlue
class node_assess,node_brief,node_behaviors,node_transform,node_verify toneAmber
class node_provider,node_reportstore,node_reviews toneMint
class node_handoffs,node_progress,node_environments,node_codegraph toneRose
class node_codex toneIndigo
```

## Components

### Workflow coordination

- [Workflow](https://github.com/openai/openai-codemod/blob/main/skills/workflow/SKILL.md): `skills/workflow/SKILL.md`
- [Initialize](https://github.com/openai/openai-codemod/blob/main/skills/initialize/SKILL.md): `skills/initialize/SKILL.md`
- [Preflight](https://github.com/openai/openai-codemod/blob/main/skills/preflight/SKILL.md): `skills/preflight/SKILL.md`
- [Status](https://github.com/openai/openai-codemod/blob/main/skills/status/SKILL.md): `skills/status/SKILL.md`
- [Migration entrypoint](https://github.com/openai/openai-codemod/blob/main/skills/codemod/SKILL.md): `skills/codemod/SKILL.md`

### Migration work

- [Assess source](https://github.com/openai/openai-codemod/blob/main/skills/assess/SKILL.md): `skills/assess/SKILL.md`
- [Plan migration](https://github.com/openai/openai-codemod/blob/main/skills/brief/SKILL.md): `skills/brief/SKILL.md`
- [Review behaviors](https://github.com/openai/openai-codemod/blob/main/skills/behaviors/SKILL.md): `skills/behaviors/SKILL.md`
- [Transform phases](https://github.com/openai/openai-codemod/blob/main/skills/transform/SKILL.md): `skills/transform/SKILL.md`
- [Verify target](https://github.com/openai/openai-codemod/blob/main/skills/verify-target/SKILL.md): `skills/verify-target/SKILL.md`

### Records and reviews

- **Selected record provider**
- **Configured report store**
- [Human reviews](https://github.com/openai/openai-codemod/blob/main/skills/codemod/references/records/reviews.md): `skills/codemod/references/records/reviews.md`

### Workflow guidance

- [Handoff guidance](https://github.com/openai/openai-codemod/blob/main/skills/workflow/references/handoffs.md): `skills/workflow/references/handoffs.md`
- [Progress view](https://github.com/openai/openai-codemod/blob/main/skills/workflow/references/progress-view.md): `skills/workflow/references/progress-view.md`
- [Environment setup](https://github.com/openai/openai-codemod/blob/main/skills/codemod/references/environments/README.md): `skills/codemod/references/environments/README.md`
- [Source graph evidence](https://github.com/openai/openai-codemod/blob/main/skills/codemod/references/codegraph.md): `skills/codemod/references/codegraph.md`

### Other components

- **Migration user**
- **Codex**

## Connections

- Migration user → Migration entrypoint: starts migration (evidence: `README.md`)
- Migration user → Workflow: requests workflow (evidence: `README.md`)
- Workflow → Initialize: coordinates setup (evidence: `README.md`)
- Workflow → Preflight: hands off (evidence: `README.md`)
- Workflow → Assess source: coordinates stages (evidence: `README.md`)
- Workflow → Plan migration: coordinates stages (evidence: `README.md`)
- Workflow → Review behaviors: coordinates stages (evidence: `README.md`)
- Workflow → Transform phases: coordinates stages (evidence: `README.md`)
- Workflow → Verify target: coordinates stages (evidence: `README.md`)
- Codex → Workflow: runs skills (evidence: `README.md`)
- Initialize → Selected record provider: selects provider (evidence: `README.md`)
- Workflow → Selected record provider: tracks migration (evidence: `README.md`)
- Workflow → Configured report store: stores documents (evidence: `README.md`)
- Review behaviors → Human reviews: requires approval (evidence: `README.md`)
- Plan migration → Human reviews: requires approval (evidence: `README.md`)
- Transform phases → Verify target: verifies phases (evidence: `README.md`)
- Workflow → Verify target: verifies migration (evidence: `README.md`)
- Status → Selected record provider: reads progress (evidence: `README.md`)
- Workflow → Handoff guidance: uses guidance
- Workflow → Progress view: uses guidance
- Initialize → Environment setup: uses guidance
- Assess source → Source graph evidence: uses evidence
