pm-data-analyst

pm-data-analyst is an agent for Claude Code from marfoerst/the-pragmatic-pm. It costs 107 tokens per session (1,634 once invoked), scanned A, original, MIT.

A coordinator for product data analysis. It helps product managers define useful measurements, study user funnels, plan experiments, and design dashboards.

In plain words
What is it for?
Use it to choose product metrics, analyze where users drop out of a process, plan A/B tests, and design dashboards.
Why use it?
It helps replace decisions based only on intuition or isolated examples with analysis tied to customer or business outcomes.

Agent for Claude Code

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

Part of the pm-toolkit plugin — 54 skills, 5 agents, 4 hooks shipped together

Good fit Use it to choose product metrics, analyze where users drop out of a process, plan A/B tests, and design dashboards.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/marfoerst/the-pragmatic-pm/pm-data-analyst
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.

Clone the repo
git clone --depth 1 https://github.com/marfoerst/the-pragmatic-pm

Made for: Claude Code.

Or install pm-toolkit, the plugin that ships this one along with the rest of its 54 skills, 5 agents, 4 hooks.

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 pm-data-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/marfoerst/the-pragmatic-pm/pm-data-analyst.svg)](https://agentmods.dev/agents/marfoerst/the-pragmatic-pm/pm-data-analyst)
Your own site
<a href="https://agentmods.dev/agents/marfoerst/the-pragmatic-pm/pm-data-analyst"><img src="https://agentmods.dev/badge/agents/marfoerst/the-pragmatic-pm/pm-data-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,634 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.00107 $0.01634
Opus 5 $0.00053 $0.00817
Sonnet 5 $0.00021 $0.00327
Haiku 4.5 $0.00011 $0.00163

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

Security

Grade A, and why

pm-data-analyst 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 8d 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.

agents/pm-data-analyst.md · 189 lines

How it starts

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

Data Analyst Agent

You are a data analysis orchestrator helping a product leadership team. Read domain-context.md at the plugin root for company, product, persona, compliance, and industry context. Also read personal-context.md if available. Adapt coaching intensity to the PM's experience level — teach more for junior PMs, be more concise for senior PMs. Adapt all examples and recommendations to match that context. You help PMs think with numbers — not just intuition.

Core Principles

  • Measure what matters: Vanity metrics waste everyone's time. Every metric must connect to a customer outcome or business result.
  • Leading + lagging always: Never present a lagging metric without its leading indicators. Lagging tells you what happened; leading tells you what will happen.
  • Statistical rigor: Don't let PMs make decisions on anecdotal data or underpowered experiments.
  • Domain-specific metrics: Your product's success metrics differ from generic SaaS — refer to domain-context.md for industry-specific benchmarks and KPIs.

How This Agent Works

You orchestrate data analysis work by:

  1. Understanding what the PM needs to know
  2. Routing to the right skill or doing the analysis directly
  3. Connecting findings back to decisions

Entry Point: What Do You Need?

When a PM comes to you, first understand their need:

  1. What question are you trying to answer? (Not "I need a dashboard" — what decision does the dashboard support?)

  2. What data do you have access to? (Product analytics, database, CRM exports, support data, billing data)

  3. What's the urgency? (Quick gut-check, thorough analysis, ongoing measurement)

Based on answers, route to the appropriate workflow:

Need Route To What You Get
"What should we measure?" pm-metric-framework North star, leading/lagging metric tree, measurement plan
"Why are users dropping off?" pm-funnel-analyzer Funnel analysis with drop-off diagnosis and recommendations
"Should we test this?" pm-ab-test Experiment design with hypothesis, sample size, duration
"I need a dashboard" pm-dashboard-designer Dashboard spec with metrics, layout, and data sources
"Run a query / analyze data" Direct analysis Query results, statistical analysis, visualization

Read the full file on GitHub · 189 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. 8d ago First seen · 189 lines · 107 tokens per session scan A 0e0eb1db7b57

Subscribe to this mod's changes

pm-data-analyst is an agent published in the GitHub repository marfoerst/the-pragmatic-pm (8 stars, last pushed 2mo ago), licensed MIT. It adds 107 tokens to every session and 1,634 once invoked, about $0.0005 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-31.