campaign-ledger

campaign-ledger is a skill for Claude Code from cognyai/claude-code-marketing-skills. It costs 54 tokens per session (5,205 once invoked), scanned A, original, MIT.

A campaign tracking ledger that gives each marketing campaign a unique ID and checks whether advertising, email, and tracking names use it consistently. It links campaign spending to leads, deals, and revenue.

In plain words
What is it for?
It helps name campaigns, audit tracking labels, and connect activity across Google, Meta, LinkedIn, Bing, TikTok, and X. It is for measuring which campaigns produce business results.
Why use it?
Campaign results are hard to compare when names differ across advertising platforms and sales records. A shared ID makes the full path from spend to revenue easier to follow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions Claude Code.

Good fit It helps name campaigns, audit tracking labels, and connect activity across Google, Meta, LinkedIn, Bing, TikTok, and X. It is for measuring which campaigns produce business results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cognyai/claude-code-marketing-skills/campaign-ledger
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 cognyai/claude-code-marketing-skills --skill campaign-ledger
Clone the repo
git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills

Made for: Claude Code.

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 campaign-ledger

README.md
[![agentmods](https://agentmods.dev/badge/skills/cognyai/claude-code-marketing-skills/campaign-ledger/github.svg)](https://agentmods.dev/skills/cognyai/claude-code-marketing-skills/campaign-ledger)
Your own site
<a href="https://agentmods.dev/skills/cognyai/claude-code-marketing-skills/campaign-ledger"><img src="https://agentmods.dev/badge/skills/cognyai/claude-code-marketing-skills/campaign-ledger/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 campaign-ledger

Your own site · 80×15
<a href="https://agentmods.dev/skills/cognyai/claude-code-marketing-skills/campaign-ledger"><img src="https://agentmods.dev/badge/skills/cognyai/claude-code-marketing-skills/campaign-ledger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,205 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.
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.00054 $0.05205
Opus 5.5 $0.00022 $0.02082
Sonnet 5.5 $0.00011 $0.01041
Haiku 4.5 $0.00005 $0.00521

Measured 1mo ago against content hash ce7402873959, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

campaign-ledger 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 1mo 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.

skills/campaign-ledger/SKILL.md · 294 lines

How it starts

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

Campaign Ledger

The unglamorous part, and the most valuable thing in the whole setup. Most companies can tell you clicks by campaign and revenue by customer, and very few can connect the two. Give every campaign an ID, put it in every name, and keep one table: ID, spend, leads, qualified calls, deals, revenue, churn. Then agents can answer the question that matters: which marketing brought in customers who paid and stayed?

Requires: Cogny ($9/mo). Works with whichever ad platforms are connected.

Usage

  • /campaign-ledger init — choose a prefix, audit current naming, create the ledger
  • /campaign-ledger new "dinner angle" — allocate the next ID and create its campaign folder
  • /campaign-ledger audit — find assets that break the naming convention
  • /campaign-ledger sync — refresh spend + outcomes per ID (daily)
  • /campaign-ledger show BK014 — one campaign, end to end

The convention

Campaign ID   <PREFIX><NNN>                     BK014
Ad name       <ID>_<angle>_<format>_v<n>        BK014_dinner-angle_ugc_v2
Ad set/group  <ID>_<audience>                   BK014_shopify-1to10m
Platform camp <ID>_<objective>_<short-name>     BK014_leads_profit-review
UTM           utm_campaign=<id-lowercase>_<slug>&utm_content=<angle>_<format>_v<n>
Email/news    <ID> — <subject idea>
CRM deal      note or property "campaign_id: BK014"

Angle and format are in the name so that a month later "the dinner angle beat the price angle" is a usable lesson, whereas "video_final_7 won" is trivia.

Format slugs (the one shared list). /creative-engine and /social-engine use these too: pain, worked-example, story, founder, comparison, myth, demo, objection, customer-words, question, static, carousel, ugc, short-video. Add a new slug here first, then use it.

Regex the audit uses: ^([A-Z]{2,4}\d{3})_([a-z0-9-]+)_([a-z0-9-]+)_v\d+$ for ads, ^([A-Z]{2,4}\d{3})_ for everything else.

Where the ID can live per platform. Google/Bing responsive search ads, Apple Search Ads and X promoted tweets have no ad name (ad_group_ad.ad.name is ""). On those platforms the ID goes on the campaign and ad group / line item, and the angle goes in utm_content. Apply the ad-name regex on Meta, TikTok, LinkedIn, Reddit, Snapchat and ChatGPT-ads (OpenAI Ads) ads. Bidtheatre campaigns carry the ID in the campaign name.

Read the full file on GitHub · 294 lines

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. 1mo ago First seen · 294 lines · 54 tokens per session scan A ce7402873959

Subscribe to this mod's changes

campaign-ledger is a skill published in the GitHub repository cognyai/claude-code-marketing-skills (120 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 5,205 once invoked, about $0.0002 per session on Opus 5.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-10-13.

Related

campaign-ledger compared with skills from other repositories

campaign-ledger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
campaign-ledgercognyai/claude-code-marketing-skillsSkill120yesterdayMITA54Claude Code
create-video-seedance-2-falgooseworks-ai/goose-skillsSkill1.4k6d agoMITA121Claude Code, Codex
meta-ad-managergooseworks-ai/goose-skillsSkill1.4k6d agoMITA108Codex
create-chatgpt-mockupgooseworks-ai/goose-skillsSkill1.4k6d agoMITA90Claude Code, Codex
run-memorygooseworks-ai/goose-skillsSkill1.4k6d agoMITA72Claude Code, Codex
company-contact-findergooseworks-ai/goose-skillsSkill1.4k6d agoMITA55Claude Code, Codex
make-content-content-briefgooseworks-ai/goose-skillsSkill1.4k6d agoMITA84Claude Code, Codex