ds-brain

ds-brain is a skill for Claude Code from Dataslayer-AI/Marketing-skills. It costs 168 tokens per session (3,341 once invoked), scanned A, original, MIT.

A marketing-analysis skill that combines paid advertising, unpaid content and search, and customer retention into one review. It is intended to guide decisions rather than just summarize weekly results.

In plain words
What is it for?
Use it for a full marketing review covering paid, organic, content, and retention activity, with parallel analysis from several specialist agents.
Why use it?
It helps reveal connections between marketing channels that can be missed when each channel is reviewed separately. It also turns those connections into a priority for the week.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions subagents.

Part of the dataslayer-marketing-skills plugin — 10 skills, 4 agents shipped together

Good fit Use it for a full marketing review covering paid, organic, content, and retention activity, with parallel analysis from several specialist agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dataslayer-ai/marketing-skills/ds-brain
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 Dataslayer-AI/Marketing-skills --skill ds-brain
Clone the repo
git clone --depth 1 https://github.com/Dataslayer-AI/Marketing-skills

Made for: Claude Code.

Or install dataslayer-marketing-skills, the plugin that ships this one along with the rest of its 10 skills, 4 agents.

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 ds-brain

README.md
[![agentmods](https://agentmods.dev/badge/skills/dataslayer-ai/marketing-skills/ds-brain/github.svg)](https://agentmods.dev/skills/dataslayer-ai/marketing-skills/ds-brain)
Your own site
<a href="https://agentmods.dev/skills/dataslayer-ai/marketing-skills/ds-brain"><img src="https://agentmods.dev/badge/skills/dataslayer-ai/marketing-skills/ds-brain/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 ds-brain

Your own site · 80×15
<a href="https://agentmods.dev/skills/dataslayer-ai/marketing-skills/ds-brain"><img src="https://agentmods.dev/badge/skills/dataslayer-ai/marketing-skills/ds-brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,341 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.00168 $0.03341
Opus 5 $0.00084 $0.01670
Sonnet 5 $0.00034 $0.00668
Haiku 4.5 $0.00017 $0.00334

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

Security

Grade A, and why

ds-brain 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 12d 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/ds-brain/SKILL.md · 351 lines

How it starts

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

Marketing intelligence orchestrator (ds-brain)

You are a Chief Marketing Officer running a weekly intelligence review. You do not analyse channels in isolation. Your job is to find the connections between what is happening in paid, organic, content, and retention — and translate those connections into one clear priority for the week. You are not a reporting tool. You are a decision engine.


Step 1 — Read context

Business context (auto-loaded): !cat .agents/product-marketing-context.md 2>/dev/null || echo "No context file found."

If no context was loaded above, ask one question only:

"What is the single most important business metric right now — new trials, MRR growth, or churn reduction?"

If the user passed a focus area as argument, use it: $ARGUMENTS


Step 2 — Launch parallel subagents

First, check if a Dataslayer MCP is available by looking for any tool matching *__natural_to_data in the available tools (the server name varies per installation — it may be a UUID or a custom name).

Path A — Dataslayer MCP is connected (automatic)

Launch all four subagents simultaneously using the Agent tool. Do not wait for one to finish before starting the next. Pass the date range and business context to each.

Important instructions for all subagents:

  • Always fetch current period and previous period as two separate queries.
  • The MCP returns all rows regardless of "top N" requests — fetch all and process through python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" (see each subagent's instructions for the specific commands).
  • Do not write inline processing scripts. All data processing — UTM stripping, URL aggregation, MRR calculation, campaign pause detection, period comparison, conversion event detection — is handled by ds_utils with tested, deterministic functions.
  • If the MCP saves results to a file (large datasets), ds_utils handles both JSON and TSV formats automatically. Never skip large files.
Launch in parallel using the Agent tool:

  Agent(ds-agent-paid):
  "Fetch last 30 days of paid media data via Dataslayer MCP.
   Include daily trend data (date + campaign) to detect paused campaigns.
   For Google Ads: campaigns are PMax — search terms may return empty.
   After fetching, process with ds_utils:
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-campaigns <daily_file>
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" cpa-check <blended_cpa> b2b_saas
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" compare-periods '{...}' '{...}'
   Return: total spend, blended CPA, daily run rate, whether campaigns
   are paused (and for how many days), top 3 findings, one critical issue,
   and top 10 paid search terms by spend if available."

  Agent(ds-agent-organic):
  "Fetch last 28 days of Search Console and GA4 organic data
   via Dataslayer MCP.
   After fetching, process with ds_utils:
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-sc-queries <sc_file>
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-ga4-pages <ga4_file>
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" compare-periods '{...}' '{...}'
   process-sc-queries classifies queries into quick_wins and ctr_problems.
   process-ga4-pages excludes app paths and splits by channel automatically.
   Return: impressions, clicks, CTR trend, top 3 findings, one critical issue."

  Agent(ds-agent-content):
  "Fetch last 90 days of content performance via Dataslayer MCP (GA4).
   Request sessions by landingPagePlusQueryString AND
   sessionDefaultChannelGroup + conversions by page + eventName.
   After fetching, process with ds_utils:
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-ga4-pages <sessions_file> <conversions_file>
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" detect-conversion <conversions_file>
   process-ga4-pages strips UTMs, aggregates by clean URL, splits organic/paid,
   and classifies into organic_stars/zombies/hidden_gems/traffic_no_conv.
   A 'star' must have >50% organic traffic (enforced by ds_utils).
   Return: top converting pages (organic only), organic conversion rate,
   zombie page count, paid dependency %, top 3 findings, one critical issue."

  Agent(ds-agent-retention):
  "Fetch subscription health data via Stripe in Dataslayer MCP.
   Active subs: group by subscription_status, subscription_plan_name,
   subscription_plan_interval. Use subscription_plan_amount (not EUR).
   Cancellations: group by subscription_cancellation_reason,
   subscription_plan_name (avoid cancellation_feedback — causes 502).
   Failed charges: charge_failure_code, customer_id, customer_email,
   charge_amount, date.
   After fetching, process with ds_utils:
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-stripe-subs <subs_file>
   - python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-stripe-charges <charges_file>
   process-stripe-subs calculates MRR (yearly ÷ 12 automatic).
   process-stripe-charges filters failures, finds repeat offenders, calculates rate.
   Return: active sub count, MRR, cancellation count + reasons,
   churn rate, payment failure rate, top 3 findings, one critical issue."

Read the full file on GitHub · 351 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. 12d ago First seen · 351 lines · 168 tokens per session scan A 52d75262233f

Subscribe to this mod's changes

ds-brain is a skill published in the GitHub repository Dataslayer-AI/Marketing-skills (23 stars, last pushed 5mo ago), licensed MIT. It adds 168 tokens to every session and 3,341 once invoked, about $0.0008 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

adspirer-ads-agent

Adspirer — AI-powered advertising and performance marketing agent. Manage Google Ads, Meta Ads (Facebook & Instagram), LinkedIn Ads, and TikTok Ads via natural language. 100+ tools for paid media campaign creation, live performance analysis, PPC keyword research with real CPC data, budget optimization, ad creative…

LeoYeAI/openclaw-master-skills · 141 tokens

Ad Copy Writer

Write high-converting advertising copy for paid media campaigns.

eddiebelaval/squire · 14 tokens

adspirer-ads-agent

Adspirer — AI-powered advertising and performance marketing agent. Manage Google Ads, Meta Ads (Facebook & Instagram), LinkedIn Ads, and TikTok Ads via natural language. 400+ tools for paid media campaign creation, live performance analysis, PPC keyword research with real CPC data, budget optimization, ad creative…

amekala/ads-mcp · 187 tokens

Ad Copy Writer

Write high-converting advertising copy for paid media campaigns.

jmsktm/claude-settings · 14 tokens

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