GuideOpen

AGENTS.md (Marketing skills)

Guidelines for AI agents working in this repository.

AGENTS.md

Guidelines for AI agents working in this repository.

Repository Overview

This repository contains Agent Skills for AI agents following the Agent Skills specification. Skills install to .agents/skills/ (the cross-agent standard). This repo also serves as a Claude Code plugin marketplace via .claude-plugin/marketplace.json.

Repository Structure

marketingskills/
├── .claude-plugin/
│   └── marketplace.json   # Claude Code plugin marketplace manifest
├── skills/                # Agent Skills
│   └── skill-name/
│       └── SKILL.md       # Required skill file
├── tools/
│   ├── clis/              # Zero-dependency Node.js CLI tools (67 tools)
│   ├── composio/          # Composio integration layer (quick start + toolkit mapping)
│   ├── integrations/      # API integration guides per tool
│   └── REGISTRY.md        # Tool index with capabilities
├── CONTRIBUTING.md
├── LICENSE
└── README.md

Build / Lint / Test Commands

Skills are content-only (no build step). Verify manually:

  • YAML frontmatter is valid
  • name field matches directory name exactly
  • name is 1-64 chars, lowercase alphanumeric and hyphens only
  • description is 1-500 characters (the spec allows 1024; this repo caps it, see below)

CLI tools (tools/clis/*.js) are zero-dependency Node.js scripts (Node 18+). Verify with:

node --check tools/clis/<name>.js   # Syntax check
node tools/clis/<name>.js           # Show usage (no args = help)
node tools/clis/<name>.js <cmd> --dry-run  # Preview request without sending
node --test tests/clis/*.test.cjs   # Contract tests (mocked fetch, no live calls)

Versioning

Two version layers, with different rules:

Repo release version — .claude-plugin/plugin.json version, .claude-plugin/marketplace.json metadata.version, and the VERSIONS.md changelog headings all share one x.y.z number:

  • x — repo-wide changes (restructures, spec changes, breaking changes)
  • y — new skill(s) added
  • z — updates to existing skills

Do not bump y for content added to an existing skill, no matter how substantial — that's a z release (e.g. a new reference file in ad-creative is 2.8.0 → 2.8.1, not 2.9.0).

Per-skill version — metadata.version in each SKILL.md, mirrored in the VERSIONS.md table. Bump on ANY shipped change to that skill: the update check compares VERSIONS.md against users' local skill metadata, so an unbumped change is invisible to installed users. Minor for new capability or description triggers, patch for fixes and clarifications.

Bump the repo release version in the same PR that ships the change (2.7.0 and 2.8.0 shipped without touching plugin.json/marketplace.json and needed a catch-up later).

CI enforces both layers on PRs. Fetch first so origin/main is current, then run it locally before pushing:

node scripts/check-versions.mjs --base origin/main

It fails if a changed skill didn't bump metadata.version, if VERSIONS.md disagrees with any SKILL.md, if the repo version didn't bump (or has no ### x.y.z block), or if a file in references/ isn't linked from anywhere in its skill. Changes only under a skill's evals/ don't need a bump, since they don't change what installed users get.

Agent Skills Specification

Skills follow the Agent Skills spec.

Required Frontmatter

---
name: skill-name
description: What this skill does and when to use it. Include trigger phrases.
---

Frontmatter Field Constraints

FieldRequiredConstraints
nameYes1-64 chars, lowercase a-z, numbers, hyphens. Must match dir.
descriptionYes1-500 chars in this repo (spec: 1024). What it does, when to use.
licenseNoLicense name (default: MIT)
metadataNoKey-value pairs (author, version, etc.)

Name Field Rules

  • Lowercase letters, numbers, and hyphens only
  • Cannot start or end with hyphen
  • No consecutive hyphens (--)
  • Must match parent directory name exactly

Valid: cro, emails, ab-testing Invalid: Page-CRO, -page, page--cro

Optional Skill Directories

skills/skill-name/
├── SKILL.md        # Required - main instructions (<500 lines)
├── references/     # Optional - detailed docs loaded on demand
├── scripts/        # Optional - executable code
└── assets/         # Optional - templates, data files

Writing Style Guidelines

Structure

  • Keep SKILL.md under 500 lines (move details to references/)
  • Use H2 (##) for main sections, H3 (###) for subsections
  • Use bullet points and numbered lists liberally
  • Short paragraphs (2-4 sentences max)

Tone

  • Direct and instructional
  • Second person ("You are a conversion rate optimization expert")
  • Professional but approachable

Formatting

  • Bold (text) for key terms
  • Code blocks for examples and templates
  • Tables for reference data
  • No excessive emojis

Clarity Principles

  • Clarity over cleverness
  • Specific over vague
  • Active voice over passive
  • One idea per section

Description Field Best Practices

The description is critical for skill discovery. Include:

  1. What the skill does
  2. When to use it: the distinct situations it covers and the questions it answers ("or asks whether a result is real"), not a list of synonyms. Descriptions that only say what a skill makes lose advice questions the model thinks it can answer alone
  3. Any operative rule that must shape behavior before the body is read
  4. Related skills for scope boundaries

Keep it to 500 characters or fewer, and the whole pack to 24,000. Claude Code caps the skill listing it sends the model at about 30,000 characters, and skills past the cap appear as a bare name with no description. At 42,000 characters, half the pack lost its descriptions; at 19,300, none did (with the pack alone), and the right skill was picked more often (see [evals/triggers/README.md](evals/triggers/README.md)). scripts/check-versions.mjs enforces both limits. Models match on meaning, so near-synonym trigger phrases cost space without adding much.

Test description changes with the trigger eval before shipping:

node scripts/trigger-eval.mjs --label before
node scripts/trigger-eval.mjs --prompts evals/triggers/heldout.json --label before-heldout
description: When the user wants to optimize conversions on any marketing page. Use when the user says "CRO," "conversion rate optimization," "this page isn't converting." For signup flows, see signup.

Claude Code Plugin

This repo also serves as a plugin marketplace. The manifest at .claude-plugin/marketplace.json lists all skills for installation via:

/plugin marketplace add coreyhaines31/marketingskills
/plugin install marketing-skills

See Claude Code plugins documentation for details.

Git Workflow

Branch Naming

  • New skills: feature/skill-name
  • Improvements: fix/skill-name-description
  • Documentation: docs/description

Commit Messages

Follow the Conventional Commits specification:

  • feat: add skill-name skill
  • fix: improve clarity in cro
  • docs: update README

Pull Request Checklist

  • [ ] name matches directory name exactly
  • [ ] name follows naming rules (lowercase, hyphens, no --)
  • [ ] description is 1-500 chars and says when to use the skill
  • [ ] SKILL.md is under 500 lines
  • [ ] No sensitive data or credentials

Tool Integrations

This repository includes a tools registry for agent-compatible marketing tools.

  • Tool discovery: Read tools/REGISTRY.md to see available tools and their capabilities
  • Connecting accounts: For a new local setup, follow tools/SETUP.md: check the environment, configure only chosen tools, keep secrets local, and verify a read before proposing broader work
  • Integration details: See tools/integrations/{tool}.md for API endpoints, auth, and common operations
  • MCP-enabled tools (checked 2026-10-30; the registry is the source of truth): ga4, stripe, mailchimp, google-ads, meta-ads, resend, zapier, zoominfo, clay, supermetrics, coupler, outreach, crossbeam, introw, cloro, exa, apollo, hubspot, attio, close, instantly, lemlist, heyreach, hunter, truelist, fullenrich, leadmagic, rowbound, theirstack, apify, scrapecreators, firecrawl, browserbase, calendly, savvycal, mixpanel, amplitude, posthog, semrush, ahrefs, similarweb, salesforce, kit, klaviyo, brevo, activecampaign, beehiiv, optimizely, customer-io, typeform, buffer, post-bridge, livestorm, partnerstack, tolt, twilio, attentive, webflow, composio
  • Composio (integration layer): Adds MCP access to OAuth-heavy tools without native MCP servers (Salesforce, LinkedIn Ads, Google Sheets, Slack, etc.). See tools/integrations/composio.md

Registry Structure

tools/
├── REGISTRY.md              # Index of all tools with capabilities
└── integrations/            # Detailed integration guides
    ├── ga4.md
    ├── stripe.md
    ├── rewardful.md
    └── ...

When to Use Tools

Skills reference relevant tools for implementation. For example:

  • referrals skill → rewardful, tolt, dub-co, mention-me guides
  • analytics skill → ga4, mixpanel, segment guides
  • emails skill → customer-io, mailchimp, resend guides
  • ads skill → google-ads, meta-ads, linkedin-ads guides

For tools without native MCP servers (Salesforce, LinkedIn Ads, Google Sheets, Slack, Notion), Composio provides MCP access via a single server. See tools/integrations/composio.md for setup and tools/composio/marketing-tools.md for the full toolkit mapping.

Checking for Updates

When using any skill from this repository:

  1. Once per session, on first skill use, check for updates:
  • Fetch VERSIONS.md from GitHub: https://raw.githubusercontent.com/coreyhaines31/marketingskills/main/VERSIONS.md
  • Compare versions against local skill files
  1. Only prompt if meaningful:
  • 2 or more skills have updates, OR
  • Any skill has a major version bump (e.g., 1.x to 2.x)
  1. Non-blocking notification at end of response:

`` --- Skills update available: X marketing skills have updates. Say "update skills" to update automatically, or run git pull in your marketingskills folder. ``

  1. If user says "update skills":
  • Run git pull in the marketingskills directory
  • Confirm what was updated

Skill Categories

See README.md for the current list of skills organized by category. When adding new skills, follow the naming patterns of existing skills in that category.

Claude Code-Specific Enhancements

These patterns are Claude Code only and must not be added to SKILL.md files directly, as skills are designed to be cross-agent compatible (Codex, Cursor, Windsurf, etc.). Apply them locally in your own project's .claude/skills/ overrides instead.

Dynamic content injection with !command``

Claude Code supports embedding shell commands in SKILL.md using ` !command ` syntax. When the skill is invoked, Claude Code runs the command and injects the output inline — the model sees the result, not the instruction.

Most useful application: auto-inject the product marketing context file

Instead of every skill telling the agent "go check if .agents/product-marketing.md exists and read it," you can inject it automatically:

Product context: !`cat .agents/product-marketing.md 2>/dev/null || echo "No product context file found — ask the user about their product before proceeding."`

Place this at the top of a skill's body (after frontmatter) to make context available immediately without any file-reading step.

Other useful injections:

# Inject today's date for recency-sensitive skills
Today's date: !`date +%Y-%m-%d`

# Inject current git branch (useful for workflow skills)
Current branch: !`git branch --show-current 2>/dev/null`

# Inject recent commits for context
Recent commits: !`git log --oneline -5 2>/dev/null`

Why this is Claude Code-only: Other agents that load skills will see the literal ` !command ` string rather than executing it, which would appear as garbled instructions. Keep cross-agent skill files free of this syntax.

Source: https://github.com/coreyhaines31/marketingskills/blob/main/AGENTS.md

Author: coreyhaines31, Marketing skills. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The Codex library holds 7,009 entries. Members can search all of them by meaning and read every one in full.