segment-customers

segment-customers is a command for Claude Code from gtmagents/gtm-agents. It costs 17 tokens per session (361 once invoked), scanned A, original, Apache-2.0.

A command for dividing customers into groups using their product use, company details, revenue, support history, or survey responses. It can create rule-based, clustering-based, or combined segmentation models.

In plain words
What is it for?
Use it to build segments for upselling, retention, adoption, or marketing efficiency, then create personas, scoring logic, activation briefs, and reporting plans.
Why use it?
It replaces broad assumptions about customers with defined groups and scoring rules. The result can help teams decide whom to target and how to measure the outcome.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to build segments for upselling, retention, adoption, or marketing efficiency, then create personas, scoring logic, activation briefs, and reporting plans.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gtmagents/gtm-agents/segment-customers
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/gtmagents/gtm-agents

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 segment-customers

README.md
[![agentmods](https://agentmods.dev/badge/commands/gtmagents/gtm-agents/segment-customers/github.svg)](https://agentmods.dev/commands/gtmagents/gtm-agents/segment-customers)
Your own site
<a href="https://agentmods.dev/commands/gtmagents/gtm-agents/segment-customers"><img src="https://agentmods.dev/badge/commands/gtmagents/gtm-agents/segment-customers/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 segment-customers

Your own site · 80×15
<a href="https://agentmods.dev/commands/gtmagents/gtm-agents/segment-customers"><img src="https://agentmods.dev/badge/commands/gtmagents/gtm-agents/segment-customers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 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.00017 $0.00361
Opus 5 $0.00009 $0.00180
Sonnet 5 $0.00003 $0.00072
Haiku 4.5 $0.00002 $0.00036

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

Security

Grade A, and why

segment-customers 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.

plugins/customer-analytics/commands/segment-customers.md · 36 lines

What it actually says

Command: segment-customers

Inputs

  • goal – business goal (upsell, retention, adoption, marketing efficiency).
  • inputs – comma-separated data sources (usage, firmographic, revenue, support, survey).
  • method – rules | clustering | hybrid.
  • segments – target number of segments/personas to output.
  • activation – optional channel focus (sales, cs, marketing, product).

Workflow

  1. Data Profiling – evaluate selected inputs, quality, and coverage.
  2. Segmentation Design – run clustering/heuristics, score stability, and interpretability.
  3. Scoring Logic – define rules/weights for RevOps/data teams to implement.
  4. Persona Packaging – craft segment personas with value props, risks, and KPIs.
  5. Activation Plan – map segments to GTM plays, reporting, and refresh cadence.

Outputs

  • Segmentation matrix (definition, criteria, size, key metrics).
  • Scoring workbook/API spec with weights and thresholds.
  • Activation brief aligning segments to plays/channels.

Agent/Skill Invocations

  • segmentation-architect – leads modeling + documentation.
  • retention-analyst – supplies usage/retention signals.
  • customer-insights-partner – injects qualitative proof.
  • segmentation-framework skill – provides templates + guardrails.
  • activation-map skill – links segments to GTM workflows.

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 · 36 lines · 17 tokens per session scan A 9d367dd3c805

Subscribe to this mod's changes

segment-customers is a command published in the GitHub repository gtmagents/gtm-agents (398 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 361 once invoked, about $0.0001 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-09-03.