# coreyhaines31/marketingskills architecture

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

- Interactive diagram: https://gitdiagram.com/coreyhaines31/marketingskills
- Repository: https://github.com/coreyhaines31/marketingskills
- Video tour (about a minute): https://gitdiagram.com/coreyhaines31/marketingskills/video

## Overview

#### Purpose and Distribution

This is a versioned, Markdown-first library of marketing workflows for AI coding agents, not a running application. Consumers install the `skills/` directories through the external `npx skills` CLI, clone/submodule them, or load them as a Claude Code plugin. Primary package entry points are `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`; the repository’s usable content begins in each skill’s `SKILL.md`.

#### Skill Contract and Catalog

Each domain skill is a self-contained agent instruction package rooted at `skills/<name>/SKILL.md`, with optional supporting material. Examples: `skills/product-marketing/SKILL.md`, `skills/cro/SKILL.md`, and `skills/analytics/SKILL.md`. The `SKILL.md` files define activation/use cases, workflow guidance, and relationships; they are the primary interface consumed by compatible agents.

The catalog spans conversion, content, SEO, paid acquisition, measurement, retention, and GTM. Directory naming is therefore a compatibility surface: installer selection and direct invocation target these skill names.

#### Shared Context and Dependency Model

`product-marketing` is the architectural root: downstream skills are expected to establish product, audience, and positioning context from it before specialized work. Its entry point is `skills/product-marketing/SKILL.md`. In installed consumer projects, the durable shared context belongs in `.agents/product-marketing.md`, with legacy `.claude/` locations supported by the skills’ documented migration behavior.

Specialist skills form a cross-reference graph rather than an executable pipeline: for example, CRO/copy/testing, SEO/schema/AI SEO, and RevOps/sales/cold-email coordinate through their related-skill guidance. Representative nodes include `skills/ab-testing/SKILL.md`, `skills/seo-audit/SKILL.md`, and `skills/revops/SKILL.md`.

#### Evidence, Templates, and Evaluation Boundaries

Skill guidance is layered: the core workflow stays in `SKILL.md`; detailed knowledge and reusable formats live under per-skill `references/` and, where needed, `assets/`. For example: `skills/ads/references/`, `skills/marketing-plan/references/`, and `skills/ad-creative/assets/creative-review-template.html`.

Each skill also owns an evaluation fixture at `skills/<name>/evals/evals.json`, such as `skills/copywriting/evals/evals.json`. These provide a validation boundary for skill behavior/content rather than application runtime tests.

#### Tool and Integration Knowledge Base

The repository separates neutral external-tool guidance from core skill workflows. `tools/integrations/` documents supported marketing platforms and services, including `tools/integrations/ga4.md`, `tools/integrations/hubspot.md`, and `tools/integrations/stripe.md`. `tools/clis/` provides JavaScript CLI-oriented tool descriptors, e.g. `tools/clis/ga4.js` and `tools/clis/google-ads.js`; `tools/composio/` covers Composio-oriented access.

This layer names integrations but does not itself operate services. Material external ecosystems include analytics, ad networks, CRM, email delivery, SEO data providers, CMSs, payment systems, and automation platforms.

#### Partner Registry and Generated Content

Partner disclosure is isolated from neutral integration documentation. Canonical partner data is `partners.json`; `scripts/sync-partners.mjs` generates the README partner block, while policy and registry outputs are `tools/PARTNERS.md` and `tools/REGISTRY.md`. This boundary is intended to prevent commercial relationships from changing core skill recommendations.

#### Validation and Release Automation

Shell validation entry points are `validate-skills.sh` and `validate-skills-official.sh`; CI invokes repository checks through `.github/workflows/validate-skill.yml`. Release and catalog synchronization are managed by `.github/workflows/release.yml` and `.github/workflows/sync-skills.yml`, with `.github/scripts/sync-skills.js` maintaining published skill metadata. The effective runtime is Markdown interpreted by an AI agent; Node.js is used for repository generation/synchronization scripts and GitHub Actions supplies automation infrastructure.

Main entry points: [`skills/product-marketing/SKILL.md`](https://github.com/coreyhaines31/marketingskills/blob/main/skills/product-marketing/SKILL.md) (Product marketing), [`.claude-plugin/marketplace.json`](https://github.com/coreyhaines31/marketingskills/blob/main/.claude-plugin/marketplace.json) (Marketplace manifest), [`scripts/sync-partners.mjs`](https://github.com/coreyhaines31/marketingskills/blob/main/scripts/sync-partners.mjs) (Partner sync), [`validate-skills.sh`](https://github.com/coreyhaines31/marketingskills/blob/main/validate-skills.sh) (Skill validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_distribution["Distribution"]
  node_plugin["Claude plugin manifest<br/>plugin entry point<br/>[plugin.json]"]
  node_marketplace["Marketplace manifest<br/>catalog entry point<br/>[marketplace.json]"]
  node_installers["Consumer installation<br/>external CLI / clone"]
end

subgraph group_skills["Skill Library"]
  node_skill_catalog["Skill directories<br/>Markdown instruction packages"]
  node_product_marketing["Product marketing<br/>root skill<br/>[SKILL.md]"]
  node_shared_context["Installed shared context<br/>consumer project state"]
  node_specialist_skills["Specialist skills<br/>cross-reference graph"]
  node_ab_testing["A/B testing<br/>specialist skill<br/>[SKILL.md]"]
  node_seo_audit["SEO audit<br/>specialist skill<br/>[SKILL.md]"]
  node_revops["RevOps<br/>specialist skill<br/>[SKILL.md]"]
  node_skill_resources["References &amp; assets<br/>supporting material"]
  node_skill_evals["Skill evaluations<br/>content validation fixtures<br/>[evals.json]"]
end

subgraph group_knowledge["Knowledge &amp; Partners"]
  node_integrations["Integration guidance<br/>neutral platform knowledge"]
  node_cli_descriptors["CLI descriptors<br/>JavaScript tool descriptors"]
  node_partner_registry[("Partner registry<br/>canonical commercial data<br/>[partners.json]")]
  node_partner_sync["Partner sync<br/>generation script<br/>[sync-partners.mjs]"]
  node_partner_outputs["Partner disclosures<br/>generated policy outputs<br/>[PARTNERS.md]"]
end

subgraph group_automation["Validation &amp; Release"]
  node_validation["Skill validation<br/>shell checks<br/>[validate-skills.sh]"]
  node_validation_ci["Validation workflow<br/>GitHub Actions<br/>[validate-skill.yml]"]
  node_release_sync["Release &amp; catalog sync<br/>GitHub Actions<br/>[sync-skills.yml]"]
  node_metadata_sync["Published metadata sync<br/>Node.js script<br/>[sync-skills.js]"]
end

node_plugin -->|"loads"| node_skill_catalog
node_marketplace -->|"catalogs"| node_skill_catalog
node_installers -->|"installs"| node_skill_catalog
node_skill_catalog -->|"includes"| node_product_marketing
node_product_marketing -->|"persists context"| node_shared_context
node_product_marketing -->|"provides context for"| node_specialist_skills
node_specialist_skills -->|"includes"| node_ab_testing
node_specialist_skills -->|"includes"| node_seo_audit
node_specialist_skills -->|"includes"| node_revops
node_skill_catalog -->|"supplemented by"| node_skill_resources
node_skill_catalog -->|"validated by"| node_skill_evals
node_specialist_skills -.->|"consults"| node_integrations
node_integrations -.->|"paired with"| node_cli_descriptors
node_partner_registry -->|"input"| node_partner_sync
node_partner_sync -->|"generates"| node_partner_outputs
node_validation -->|"checks"| node_skill_catalog
node_validation_ci -->|"invokes"| node_validation
node_release_sync -->|"runs"| node_metadata_sync
node_metadata_sync -->|"maintains metadata"| node_marketplace

click node_plugin "https://github.com/coreyhaines31/marketingskills/blob/main/.claude-plugin/plugin.json"
click node_marketplace "https://github.com/coreyhaines31/marketingskills/blob/main/.claude-plugin/marketplace.json"
click node_product_marketing "https://github.com/coreyhaines31/marketingskills/blob/main/skills/product-marketing/SKILL.md"
click node_ab_testing "https://github.com/coreyhaines31/marketingskills/blob/main/skills/ab-testing/SKILL.md"
click node_seo_audit "https://github.com/coreyhaines31/marketingskills/blob/main/skills/seo-audit/SKILL.md"
click node_revops "https://github.com/coreyhaines31/marketingskills/blob/main/skills/revops/SKILL.md"
click node_skill_evals "https://github.com/coreyhaines31/marketingskills/blob/main/skills/copywriting/evals/evals.json"
click node_partner_registry "https://github.com/coreyhaines31/marketingskills/blob/main/partners.json"
click node_partner_sync "https://github.com/coreyhaines31/marketingskills/blob/main/scripts/sync-partners.mjs"
click node_partner_outputs "https://github.com/coreyhaines31/marketingskills/blob/main/tools/PARTNERS.md"
click node_validation "https://github.com/coreyhaines31/marketingskills/blob/main/validate-skills.sh"
click node_validation_ci "https://github.com/coreyhaines31/marketingskills/blob/main/.github/workflows/validate-skill.yml"
click node_release_sync "https://github.com/coreyhaines31/marketingskills/blob/main/.github/workflows/sync-skills.yml"
click node_metadata_sync "https://github.com/coreyhaines31/marketingskills/blob/main/.github/scripts/sync-skills.js"

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_plugin,node_marketplace,node_installers toneBlue
class node_skill_catalog,node_product_marketing,node_shared_context,node_specialist_skills,node_ab_testing,node_seo_audit,node_revops,node_skill_resources,node_skill_evals toneAmber
class node_integrations,node_cli_descriptors,node_partner_registry,node_partner_sync,node_partner_outputs toneMint
class node_validation,node_validation_ci,node_release_sync,node_metadata_sync toneRose
```

## Components

### Distribution

- [Claude plugin manifest](https://github.com/coreyhaines31/marketingskills/blob/main/.claude-plugin/plugin.json): plugin entry point · `.claude-plugin/plugin.json`
- [Marketplace manifest](https://github.com/coreyhaines31/marketingskills/blob/main/.claude-plugin/marketplace.json): catalog entry point · `.claude-plugin/marketplace.json`
- **Consumer installation**: external CLI / clone · npx skills, clone/submodule, or Claude plugin loading.

### Skill Library

- **Skill directories**: Markdown instruction packages · Directory names are installer and invocation compatibility surfaces.
- [Product marketing](https://github.com/coreyhaines31/marketingskills/blob/main/skills/product-marketing/SKILL.md): root skill · Establishes product, audience, and positioning context. · `skills/product-marketing/SKILL.md`
- **Installed shared context**: consumer project state · Durable product-marketing context with legacy Claude migration support.
- **Specialist skills**: cross-reference graph · Conversion, content, SEO, paid, measurement, retention, and GTM guidance.
- [A/B testing](https://github.com/coreyhaines31/marketingskills/blob/main/skills/ab-testing/SKILL.md): specialist skill · `skills/ab-testing/SKILL.md`
- [SEO audit](https://github.com/coreyhaines31/marketingskills/blob/main/skills/seo-audit/SKILL.md): specialist skill · `skills/seo-audit/SKILL.md`
- [RevOps](https://github.com/coreyhaines31/marketingskills/blob/main/skills/revops/SKILL.md): specialist skill · `skills/revops/SKILL.md`
- **References & assets**: supporting material · Detailed knowledge and reusable formats supplement core workflows.
- [Skill evaluations](https://github.com/coreyhaines31/marketingskills/blob/main/skills/copywriting/evals/evals.json): content validation fixtures · `skills/copywriting/evals/evals.json`

### Knowledge & Partners

- **Integration guidance**: neutral platform knowledge · Documents marketing platforms without operating them.
- **CLI descriptors**: JavaScript tool descriptors
- [Partner registry](https://github.com/coreyhaines31/marketingskills/blob/main/partners.json): canonical commercial data · `partners.json`
- [Partner sync](https://github.com/coreyhaines31/marketingskills/blob/main/scripts/sync-partners.mjs): generation script · Generates partner disclosure content from the registry. · `scripts/sync-partners.mjs`
- [Partner disclosures](https://github.com/coreyhaines31/marketingskills/blob/main/tools/PARTNERS.md): generated policy outputs · `tools/PARTNERS.md`

### Validation & Release

- [Skill validation](https://github.com/coreyhaines31/marketingskills/blob/main/validate-skills.sh): shell checks · `validate-skills.sh`
- [Validation workflow](https://github.com/coreyhaines31/marketingskills/blob/main/.github/workflows/validate-skill.yml): GitHub Actions · `.github/workflows/validate-skill.yml`
- [Release & catalog sync](https://github.com/coreyhaines31/marketingskills/blob/main/.github/workflows/sync-skills.yml): GitHub Actions · Publishes and synchronizes skill metadata. · `.github/workflows/sync-skills.yml`
- [Published metadata sync](https://github.com/coreyhaines31/marketingskills/blob/main/.github/scripts/sync-skills.js): Node.js script · `.github/scripts/sync-skills.js`

## Connections

- Claude plugin manifest → Skill directories: loads
- Marketplace manifest → Skill directories: catalogs
- Consumer installation → Skill directories: installs
- Skill directories → Product marketing: includes
- Product marketing → Installed shared context: persists context
- Product marketing → Specialist skills: provides context for
- Specialist skills → A/B testing: includes
- Specialist skills → SEO audit: includes
- Specialist skills → RevOps: includes
- Skill directories → References & assets: supplemented by
- Skill directories → Skill evaluations: validated by
- Specialist skills → Integration guidance: consults
- Integration guidance → CLI descriptors: paired with
- Partner registry → Partner sync: input
- Partner sync → Partner disclosures: generates
- Skill validation → Skill directories: checks
- Validation workflow → Skill validation: invokes
- Release & catalog sync → Published metadata sync: runs
- Published metadata sync → Marketplace manifest: maintains metadata
