list-segment-builder

list-segment-builder is a skill for Claude Code from aaron-he-zhu/aaron-marketing-skills. It costs 157 tokens per session (3,120 once invoked), scanned A, original, Apache-2.0.

An audience-segmentation guide that groups people from your own email, customer, analytics, or shop data by activity, customer value, and lifecycle stage. It also identifies people who must not be emailed.

In plain words
What is it for?
It helps create groups such as recently engaged people, cart abandoners, lapsed customers, new customers, and high-value buyers, plus a suppression list for contacts to exclude.
Why use it?
It removes the manual work of deciding who belongs in each campaign and helps avoid emailing unsubscribed, bounced, or complaining contacts.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code; built for openclaw.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aaron-marketing plugin — 120 skills shipped together , and of aaron-marketing

Good fit It helps create groups such as recently engaged people, cart abandoners, lapsed customers, new customers, and high-value buyers, plus a suppression list for contacts to exclude.

Compare 6 skills from other repositories ↓
About the project

aaron-marketing-skills is a collection of 120 AI-agent skills covering marketing work such as brand narrative, search optimization, social media, email, advertising, influencer campaigns, and launches. Marketers and agent users can install it as a plugin, use its portable skills, or run its described bot team. The catalogue entries are components of this marketing workflow.

aaron-he-zhu/aaron-marketing-skills · 2,767 stars · on GitHub · aaronmarketing.ai

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add aaron-he-zhu/aaron-marketing-skills
Claude Code
/plugin install aaron-marketing

Made for: Claude Code.

Or install aaron-marketing, the plugin that ships this one along with the rest of its 120 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 list-segment-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaron-he-zhu/aaron-marketing-skills/list-segment-builder/github.svg)](https://agentmods.dev/skills/aaron-he-zhu/aaron-marketing-skills/list-segment-builder)
Your own site
<a href="https://agentmods.dev/skills/aaron-he-zhu/aaron-marketing-skills/list-segment-builder"><img src="https://agentmods.dev/badge/skills/aaron-he-zhu/aaron-marketing-skills/list-segment-builder/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 list-segment-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaron-he-zhu/aaron-marketing-skills/list-segment-builder"><img src="https://agentmods.dev/badge/skills/aaron-he-zhu/aaron-marketing-skills/list-segment-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,120 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 2 Sept 2026
  • Snyk pass 2 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.00157 $0.03120
Opus 5 $0.00078 $0.01560
Sonnet 5 $0.00031 $0.00624
Haiku 4.5 $0.00016 $0.00312

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

Security

Grade A, and why

list-segment-builder 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 10d 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.

email/setup/list-segment-builder/SKILL.md · 90 lines

How it starts

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

List Segment Builder

Turns the user's own list/CRM/GA4/ecommerce export into behavioral segments (engaged-90d, cart-abandoners), attribute and RFM tiers, lifecycle-stage segments (new, active, lapsed, win-back), and a suppression list (unsubscribed, hard-bounced, spam-complained, consent-withdrawn). It defines who each segment is and who must never be mailed — email-creative-builder and email-sequence-designer then compose for those segments; this skill does not send, design flows, or score the program.

Quick Start

Build email segments from my list export: [path]. Goal is retention. ESP export attached.
Make engaged-90d, lapsed, and cart-abandoner segments from my ecommerce + ESP export, and give me the suppression list. [CSV]
Map my list to RFM tiers and lifecycle stages so I can reuse the same audiences across every campaign. [CRM export]

Skill Contract

Expected output: a segment map in four buckets — (1) behavioral segments grouped by activity (opened/clicked recency, cart-abandon, browse-abandon), (2) attribute + RFM tiers (recency/frequency/monetary from the user's own order data), (3) lifecycle-stage segments (new → active → at-risk → lapsed → win-back), and (4) a suppression list (unsubscribed, hard-bounced, spam-complained, consent-withdrawn) — each segment named with a size labeled Measured (counted from an exported column) or Estimated (inferred, method stated), informing the SEND E (Engagement/targeting) dimension, plus the standard handoff summary.

  • Reads: the user's own list/CRM CSV (subscribe date, last-open/last-click date, opt-in status), ESP campaign export (opens/clicks per subscriber), GA4/ecommerce export (order recency, frequency, monetary value); the program goal (promo / retention / cold); and versioned consent/suppression snapshots from the consent-registry (memory/consent/). Member-level joins use host-issued opaque subject_ref values; raw addresses stay transient.
  • Writes: a user-facing segment map and reusable summary to memory/email/list-segment-builder/.
  • Promotes: the segment names, the lifecycle-stage map, the suppression-rule set, and any missing export to memory/hot-cache.md and memory/open-loops.md; propose durable segment definitions as pending-decision items (never write consent records — the registry owns memory/consent/).
  • Done when: each segment is named, grounded in an exported column, and frozen as a definition version/hash with an evaluation time; every size is labeled Measured or Estimated; RFM tiers use the user's own recency/frequency/monetary fields; the suppression list reconciles against named consent/suppression snapshot refs (or flags NEEDS_INPUT where no current record exists); raw addresses appear in no saved artifact; and the SEND E relevance of each bucket is noted.
  • Primary next skill: email-creative-builder to compose for the top segment, or email-sequence-designer to design a flow per lifecycle stage.

Read the full file on GitHub · 90 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. 10d ago Changed · +2 lines 57339f08db92
  2. 13d ago First seen · 88 lines · 157 tokens per session scan A 3149ac68e5e3

Subscribe to this mod's changes

list-segment-builder is a skill published in the GitHub repository aaron-he-zhu/aaron-marketing-skills (2,767 stars, last pushed today), licensed Apache-2.0. It adds 157 tokens to every session and 3,120 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.