attribution

attribution is a skill for Claude Code from coreyhaines31/marketingskills. It costs 220 tokens per session (4,760 once invoked), scanned A, original, MIT.

A guide for determining which marketing activities contributed to a conversion or sale. Attribution models are different ways of assigning credit across channels and touchpoints.

In plain words
What is it for?
Use it to choose or interpret an attribution model, compare first-touch and last-touch credit, reconcile channel numbers, and build first-party attribution tracking.
Why use it?
It helps make sense of conflicting reports from marketing tools and exposes when labels such as direct traffic hide the original source. It can also guide teams building their own tracking when they control the website or app.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the marketing-skills plugin — 50 skills shipped together

Good fit Use it to choose or interpret an attribution model, compare first-touch and last-touch credit, reconcile channel numbers, and build first-party attribution tracking.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coreyhaines31/marketingskills/attribution
About the project

Marketing Skills is a collection of skills for AI coding agents that assist with conversion optimization, copywriting, SEO, analytics, and growth engineering. Technical marketers and founders use it to apply agents to marketing work in tools such as Claude Code, OpenAI Codex, Cursor, and Windsurf. The catalogue entries are the project's own marketing skills and instructions.

coreyhaines31/marketingskills · 49,355 stars · on GitHub · marketing-skills.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add coreyhaines31/marketingskills --skill attribution
Clone the repo
git clone --depth 1 https://github.com/coreyhaines31/marketingskills

Made for: Claude Code.

Or install marketing-skills, the plugin that ships this one along with the rest of its 50 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for attribution

README.md
[![agentmods](https://agentmods.dev/badge/skills/coreyhaines31/marketingskills/attribution/github.svg)](https://agentmods.dev/skills/coreyhaines31/marketingskills/attribution)
Your own site
<a href="https://agentmods.dev/skills/coreyhaines31/marketingskills/attribution"><img src="https://agentmods.dev/badge/skills/coreyhaines31/marketingskills/attribution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for attribution

Your own site · 80×15
<a href="https://agentmods.dev/skills/coreyhaines31/marketingskills/attribution"><img src="https://agentmods.dev/badge/skills/coreyhaines31/marketingskills/attribution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,760 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 27 Jul 2026
  • Snyk pass 27 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00220 $0.04760
Opus 5 $0.00110 $0.02380
Sonnet 5 $0.00044 $0.00952
Haiku 4.5 $0.00022 $0.00476

Measured 11d ago against content hash eccc43eb93fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

attribution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

skills/attribution/SKILL.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Attribution

You help users answer the hardest question in marketing: which of my efforts actually caused this conversion and this revenue? Attribution is where marketers lose the most money — to channels that look good in one dashboard and terrible in another, to "direct" and "branded search" that hide the real source, and to models that quietly encode an opinion as if it were fact.

This skill has two pillars. Know which one the user needs before you dive in:

  • (A) Interpretation — choosing an attribution model, picking a measurement approach, and reconciling the conflicting numbers your tools report. This applies to everyone, even with zero engineering.
  • (B) Own your attribution (first-party) — instrumenting and stitching attribution yourself when you control the site/app. This is the build track. Use it when the user says "I want to track this myself" or is hitting a conversion that lives on a domain they don't own.

Most requests start with (A). Reach for (B) only when they control the surface and want to build.

Product context: check for .agents/product-marketing.md and read it if present — business type, sales cycle, and primary conversion drive almost every recommendation here.

Boundaries — what this skill does NOT own

State these up front so you don't rebuild neighboring skills:

  • General event tracking, tracking plans, UTM setup, GA4/GTManalytics. Attribution assumes tracking exists. The line: analytics = "what events and how to fire them"; attribution = "how touches join to conversions and survive to revenue."
  • Ad-platform pixels, CAPI, server-side conversion trackingads (references/conversion-tracking.md). Attribution consumes platform-reported numbers and corrects for their bias; it doesn't set up the pixels.
  • Pipeline stages, lead lifecycle, CRM revenue dashboardsrevops. Attribution feeds pipeline data; it doesn't define stages.
  • Showing up in / measuring AI searchai-seo. Attribution names AI traffic as a blind spot only.

Read the full file on GitHub · 225 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 225 lines · 220 tokens per session scan A eccc43eb93fe

Subscribe to this mod's changes

attribution is a skill published in the GitHub repository coreyhaines31/marketingskills (49,355 stars, last pushed 6d ago), licensed MIT. It adds 220 tokens to every session and 4,760 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

magazine-web-ppt

For marketing and gtm work: bind launches, campaigns, events, and brand plans to growth and pipeline outcomes. Built around the core query "annual-marketing-plan", with GTM strategy lead judgment, buyer-ready proof, and this outcome: approve launch plan, campaign budget, or GTM motion.

nexu-io/open-design · 67 tokens

html-ppt-zhangzara-coral

OpenDesign's community-growth campaign across GitHub, Discord, and X: the loops, the content calendar, and the pipeline math. Built as a decision-grade marketing & GTM deck for growth team, community lead.

nexu-io/open-design · 55 tokens

press-media-relations

Use when the user asks to "build a media list for my launch", "write a launch press release", or "pitch press under embargo"; produces a three-tier media and analyst list (Tier 1 exclusive candidates, Tier 2 vertical press, Tier 3 communities and newsletters), an embargo pitch timing skeleton keyed to the…

aaron-he-zhu/aaron-marketing-skills · 150 tokens

launch-monitor

Use when the user asks to "monitor my launch", "track our Product Hunt / Hacker News ranking", or "watch the launch window"; runs the T-0 to T+30 window watch — pre-launch instrumentation verification (UTM/event checks, the upstream of RAMP P1), HN rank/points/comments polling with a comments-over-points flamewar…

aaron-he-zhu/aaron-marketing-skills · 183 tokens

launch-tier-planner

Use when the user asks to "plan my launch tier", "how big should this launch be", or "build a launch risk register with kill criteria"; produces a tier decision (Tier 1 flagship all-channel / Tier 2 targeted / Tier 3 changelog-level), a launch-type declaration (new-product / feature / relaunch / partnership with…

aaron-he-zhu/aaron-marketing-skills · 181 tokens

story-bank-builder

Use when the user asks to "build a story bank", "collect our origin and customer stories", or "assemble reusable proof stories for the message"; assembles reusable narrative units — origin, founder, customer, transformation, and proof stories — each tagged to a claims-ledger ID and a message-house pillar, with every…

aaron-he-zhu/aaron-marketing-skills · 157 tokens