# iamwaqargulzar/marketing-agent-os architecture

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

- Interactive diagram: https://gitdiagram.com/iamwaqargulzar/marketing-agent-os
- Repository: https://github.com/iamwaqargulzar/marketing-agent-os

## Overview

Marketing Agent OS packages portable, governed marketing skills for use by compatible AI agents. The primary user path is to select a skill, install it into an agent harness, and use its instructions and optional helpers to produce marketing work. The repository also preserves pinned upstream snapshots for review and reconciliation. The README supports the broad packaging and installation flow; sampled source adds detail on the SEO cockpit, while many skill implementations were not sampled.

Main entry points: [`skills`](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills) (Skill library), [`upstreams/source-b/plugins/seo-cockpit/hooks/register.ts`](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/register.ts) (Cockpit commands), [`upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts`](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts) (Terminal pane), [`scripts/install.py`](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/scripts/install.py) (Cross-platform installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skills["Marketing skills"]
  node_skill_catalog["Skill library"]
  node_strategy["Strategy and research"]
  node_seo["SEO workflows"]
  node_geo["GEO and AEO"]
  node_content["Content workflows"]
  node_growth["Growth and operations"]
  node_skill_helpers["Skill helper scripts"]
end

subgraph group_install["Agent installation"]
  node_installer["Cross-platform installer<br/>[install.py]"]
  node_harness_skills["Installed skills"]
end

subgraph group_provenance["Upstream governance"]
  node_upstreams["Pinned source snapshots"]
  node_reconcile["Upstream reconciliation"]
end

subgraph group_cockpit["SEO cockpit"]
  node_cockpit_register["Cockpit commands<br/>[register.ts]"]
  node_cockpit_models["SEO data models<br/>[tabs.ts]"]
  node_cockpit_overview["Cockpit overview<br/>[overview.ts]"]
  node_cockpit_pane["Terminal pane<br/>[pane.ts]"]
  node_cockpit_charts["Chart rendering<br/>[charts.ts]"]
  node_gsc_query["Search Console queries<br/>[gsc_query.py]"]
end

node_user(("Marketing user"))
node_agent{{"AI agent harness"}}

node_user -->|"chooses skill"| node_skill_catalog
node_skill_catalog -->|"selects for install"| node_installer
node_installer -->|"installs skills"| node_harness_skills
node_harness_skills -->|"guides work"| node_agent
node_skill_catalog -->|"covers strategy"| node_strategy
node_skill_catalog -->|"covers SEO"| node_seo
node_skill_catalog -->|"covers GEO"| node_geo
node_skill_catalog -->|"covers content"| node_content
node_skill_catalog -->|"covers growth"| node_growth
node_skill_catalog -.->|"includes helpers"| node_skill_helpers
node_upstreams -->|"reviewed through"| node_reconcile
node_reconcile -->|"maintains skills"| node_skill_catalog
node_cockpit_register -->|"builds models"| node_cockpit_models
node_cockpit_register -->|"uses overview"| node_cockpit_overview
node_cockpit_register -.->|"runs queries"| node_gsc_query
node_cockpit_pane -->|"renders rows"| node_cockpit_overview
node_cockpit_pane -->|"renders charts"| node_cockpit_charts
node_cockpit_models -->|"uses chart data"| node_cockpit_charts

click node_skill_catalog "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_strategy "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_seo "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_geo "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_content "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_growth "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_skill_helpers "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills"
click node_installer "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/scripts/install.py"
click node_upstreams "https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/upstreams"
click node_reconcile "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/scripts/reconcile_upstreams.py"
click node_cockpit_register "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/register.ts"
click node_cockpit_models "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/lib/tabs.ts"
click node_cockpit_overview "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/lib/overview.ts"
click node_cockpit_pane "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts"
click node_cockpit_charts "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/lib/charts.ts"
click node_gsc_query "https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/scripts/gsc_query.py"

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_catalog,node_strategy,node_seo,node_geo,node_content,node_growth,node_skill_helpers,node_user toneBlue
class node_installer,node_harness_skills toneAmber
class node_upstreams,node_reconcile toneMint
class node_cockpit_register,node_cockpit_models,node_cockpit_overview,node_cockpit_pane,node_cockpit_charts,node_gsc_query toneRose
class node_agent toneIndigo
```

## Components

### Marketing skills

- [Skill library](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`
- [Strategy and research](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`
- [SEO workflows](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`
- [GEO and AEO](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`
- [Content workflows](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`
- [Growth and operations](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`
- [Skill helper scripts](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/skills): `skills`

### Agent installation

- [Cross-platform installer](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/scripts/install.py): `scripts/install.py`
- **Installed skills**

### Upstream governance

- [Pinned source snapshots](https://github.com/iamwaqargulzar/marketing-agent-os/tree/main/upstreams): `upstreams`
- [Upstream reconciliation](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/scripts/reconcile_upstreams.py): `scripts/reconcile_upstreams.py`

### SEO cockpit

- [Cockpit commands](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/register.ts): `upstreams/source-b/plugins/seo-cockpit/hooks/register.ts`
- [SEO data models](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/lib/tabs.ts): `upstreams/source-b/plugins/seo-cockpit/hooks/lib/tabs.ts`
- [Cockpit overview](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/lib/overview.ts): `upstreams/source-b/plugins/seo-cockpit/hooks/lib/overview.ts`
- [Terminal pane](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts): `upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts`
- [Chart rendering](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/plugins/seo-cockpit/hooks/lib/charts.ts): `upstreams/source-b/plugins/seo-cockpit/hooks/lib/charts.ts`
- [Search Console queries](https://github.com/iamwaqargulzar/marketing-agent-os/blob/main/upstreams/source-b/scripts/gsc_query.py): `upstreams/source-b/scripts/gsc_query.py`

### Other components

- **Marketing user**
- **AI agent harness**

## Connections

- Marketing user → Skill library: chooses skill (evidence: `README.md`)
- Skill library → Cross-platform installer: selects for install (evidence: `README.md`)
- Cross-platform installer → Installed skills: installs skills (evidence: `README.md`)
- Installed skills → AI agent harness: guides work (evidence: `README.md`)
- Skill library → Strategy and research: covers strategy (evidence: `README.md`)
- Skill library → SEO workflows: covers SEO (evidence: `README.md`)
- Skill library → GEO and AEO: covers GEO (evidence: `README.md`)
- Skill library → Content workflows: covers content (evidence: `README.md`)
- Skill library → Growth and operations: covers growth (evidence: `README.md`)
- Skill library → Skill helper scripts: includes helpers (evidence: `README.md`)
- Pinned source snapshots → Upstream reconciliation: reviewed through (evidence: `README.md`)
- Upstream reconciliation → Skill library: maintains skills (evidence: `README.md`)
- Cockpit commands → SEO data models: builds models (evidence: `upstreams/source-b/plugins/seo-cockpit/hooks/register.ts`)
- Cockpit commands → Cockpit overview: uses overview (evidence: `upstreams/source-b/plugins/seo-cockpit/hooks/register.ts`)
- Cockpit commands → Search Console queries: runs queries
- Terminal pane → Cockpit overview: renders rows (evidence: `upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts`)
- Terminal pane → Chart rendering: renders charts (evidence: `upstreams/source-b/plugins/seo-cockpit/hooks/views/pane.ts`)
- SEO data models → Chart rendering: uses chart data (evidence: `upstreams/source-b/plugins/seo-cockpit/hooks/lib/tabs.ts`)
