# carloswecare/icm-builder architecture

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

## Overview

ICM is a filesystem-based method for structuring AI work, not a runtime software framework. The main workflow is that a practitioner uses the skill to scaffold a project map and workspace instructions, then the orchestrating agent follows the map’s routing table and each workspace’s inputs/process/outputs contract. Stages produce editable text files; optional references and tools are wired where needed. The repository contains documentation and templates rather than executable implementation, so the graph shows only relationships explicitly described in the README.

Main entry points: [`SKILL.md`](https://github.com/carloswecare/icm-builder/blob/main/SKILL.md) (ICM Skill), [`references/templates.md`](https://github.com/carloswecare/icm-builder/blob/main/references/templates.md) (Project Templates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_map["Project Map"]
  node_skill["ICM Skill<br/>[SKILL.md]"]
  node_templates["Project Templates<br/>[templates.md]"]
  node_project_map["Project Map"]
  node_routing["Routing Table"]
end

subgraph group_workspaces["Workspaces"]
  node_workspace_context["Workspace Context"]
  node_numbered_stages["Numbered Stages"]
  node_stage_outputs["Stage Outputs"]
end

subgraph group_resources["Workspace Resources"]
  node_references["Reference Files"]
  node_tools["Skills and Tools"]
end

node_practitioner(("Practitioner"))
node_orchestrating_agent(("Orchestrating Agent"))

node_practitioner -->|"uses to scaffold"| node_skill
node_practitioner -->|"copies manually"| node_templates
node_skill -->|"creates"| node_project_map
node_skill -->|"creates"| node_workspace_context
node_templates -->|"provides template"| node_project_map
node_templates -->|"provides template"| node_workspace_context
node_project_map -->|"includes"| node_routing
node_routing -->|"routes tasks"| node_orchestrating_agent
node_orchestrating_agent -->|"reads instructions"| node_workspace_context
node_workspace_context -->|"defines work"| node_numbered_stages
node_numbered_stages -->|"writes outputs"| node_stage_outputs
node_references -->|"informs process"| node_workspace_context
node_tools -->|"wired per workspace"| node_workspace_context

click node_skill "https://github.com/carloswecare/icm-builder/blob/main/SKILL.md"
click node_templates "https://github.com/carloswecare/icm-builder/blob/main/references/templates.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_skill,node_templates,node_project_map,node_routing toneBlue
class node_workspace_context,node_numbered_stages,node_stage_outputs toneAmber
class node_references,node_tools toneMint
class node_practitioner,node_orchestrating_agent toneIndigo
```

## Components

### Project Map

- [ICM Skill](https://github.com/carloswecare/icm-builder/blob/main/SKILL.md): `SKILL.md`
- [Project Templates](https://github.com/carloswecare/icm-builder/blob/main/references/templates.md): `references/templates.md`
- **Project Map**
- **Routing Table**

### Workspaces

- **Workspace Context**
- **Numbered Stages**
- **Stage Outputs**

### Workspace Resources

- **Reference Files**
- **Skills and Tools**

### Other components

- **Practitioner**
- **Orchestrating Agent**

## Connections

- Practitioner → ICM Skill: uses to scaffold (evidence: `README.md`)
- Practitioner → Project Templates: copies manually (evidence: `README.md`)
- ICM Skill → Project Map: creates (evidence: `README.md`)
- ICM Skill → Workspace Context: creates (evidence: `README.md`)
- Project Templates → Project Map: provides template (evidence: `README.md`)
- Project Templates → Workspace Context: provides template (evidence: `README.md`)
- Project Map → Routing Table: includes (evidence: `README.md`)
- Routing Table → Orchestrating Agent: routes tasks (evidence: `README.md`)
- Orchestrating Agent → Workspace Context: reads instructions (evidence: `README.md`)
- Workspace Context → Numbered Stages: defines work (evidence: `README.md`)
- Numbered Stages → Stage Outputs: writes outputs (evidence: `README.md`)
- Reference Files → Workspace Context: informs process (evidence: `README.md`)
- Skills and Tools → Workspace Context: wired per workspace (evidence: `README.md`)
