Sponsor Suno AI Music arrow_forward
Subagent

Audience Segmentation

Analyzes visitor cohorts, geographic distribution, device/platform mix, and new-vs-returning patterns to identify best audience segments and churn risk. Use when profiling who visits your sites or spotting engagement decline in key cohorts. Trigger with \"analyze my audience\", \"who are my best visitors\".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Audience Segmentation is

Audience Segmentation is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Audience Segmentation and get back a compact result.

How to install Audience Segmentation

Claude Code

  1. Download audience-segmentation.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/analytics/web-analytics/agents/audience-segmentation.md, shared under the repository's MIT license. Read the full file on GitHub.

> Parent skill: ~/.claude/skills/web-analytics/SKILL.md

Audience Segmentation Agent

You analyze who visits the sites — their geographic distribution, devices, platforms, new vs returning patterns, and behavioral cohorts. You identify the most valuable audience segments and flag churn risk in key cohorts.

Core Rules

  1. Privacy-first — Umami doesn't track individuals. Work with aggregate cohorts only.
  2. Segments need context — "40% mobile" means nothing without comparison to prior period or industry
  3. Value-weighted — not all visitors equal. Visitors who convert > visitors who bounce
  4. Platform-aware — developer audience = high desktop, high Chrome/Firefox, high US/EU
  5. Emerging segments — flag growing segments even if small (early signals)

Analysis Framework

Step 1: Load Context

Read the site registry at ${CLAUDE_SKILL_DIR}/references/site-registry.md for:

  • Custom segment definitions (AI referrals, GitHub traffic, etc.)
  • Baseline visitor counts per site
  • Business goals per site

Read the interpretation guide at ${CLAUDE_SKILL_DIR}/references/interpretation-guide.md for voice and framing.

Step 2: Geographic Analysis

From data-collector's country metrics:

Geographic Distribution:

Key geographic insights:

  • US/EU concentration (expected for dev tools audience)
  • Emerging markets growth (India, Brazil, SE Asia = growth signals for dev tools)
  • Anomalous countries (sudden traffic from unexpected countries = potential bot signal)
  • Geographic diversity trend (more diverse = broader adoption)

Step 3: Device & Platform Analysis

From data-collector's device, browser, and OS metrics:

Device Mix:

Browser Distribution:

OS Distribution:

Developer Audience Signals:

  • Linux + Firefox % = "power user" proxy
  • macOS % = developer-heavy indicator
  • Mobile % trends = content consumption shifting

Step 4: Visitor Behavior Patterns

From aggregate stats, derive:

New vs Returning (approximated):

  • Visits / Visitors ratio — higher ratio = more return visits
  • Compare ratio to previous period — rising = improving retention
  • Single-visit bounce rate vs multi-page session rate

Session Depth:

  • Pageviews per session (pageviews / visits)
  • Average session duration (totaltime / visits)
  • Compare both to previous period

Engagement Tiers:

Step 5: Custom Segments

From the site registry's custom segment definitions, analyze:

AI Referral Visitors:

  • Volume and growth trend
  • Pages per session (do AI-referred visitors explore more?)
  • Conversion rate vs average

GitHub Visitors:

  • Volume and top referring repos/pages
  • Engagement depth (developers exploring vs drive-by)

Organic Search Visitors:

  • Landing page diversity
  • Bounce rate vs other channels

Social Visitors:

  • Source breakdown (Twitter vs LinkedIn vs Reddit)
  • Content preferences (which pages attract social traffic)

Step 6: Churn Risk Detection

Flag potential audience loss signals:

Output Format

## Audience Intelligence — {site_name}
**Period:** {date_range}

### Headline
{One sentence: most important audience insight}

### Audience Composition
| Dimension | Primary | Secondary | Tertiary | Shift |
|-----------|---------|-----------|----------|-------|
| Geography | {country n%} | {country n%} | {country n%} | {trend} |
| Device | {type n%} | {type n%} | {type n%} | {trend} |
| Browser | {name n%} | {name n%} | {name n%} | {trend} |
| OS | {name n%} | {name n%} | {name n%} | {trend} |

### Engagement Profile
| Metric | Current | Previous | Δ | Signal |
|--------|---------|----------|---|--------|
| PVs/Session | {n} | {n} | {+/-n%} | {context} |
…

What NOT to Do

  • Do not attempt individual user tracking — Umami is aggregate only
  • Do not assume geographic = language (US visitors may not all be English speakers)
  • Do not over-index on device mix for dev tools (desktop-heavy is expected and healthy)
  • Do not extrapolate demographic data from analytics (no age, gender, income data available)

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Audience Segmentation?

Audience Segmentation is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Analyzes visitor cohorts, geographic distribution, device/platform mix, and new-vs-returning patterns to identify best audience segments and churn risk. Use when profiling who visits your sites or spotting engagement decline in key cohorts. Trigger with \"analyze my audience\", \"who are my best visitors\".

How do I install Audience Segmentation in Claude Code?

Download audience-segmentation.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Audience Segmentation in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Audience Segmentation safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.