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
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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
- Privacy-first — Umami doesn't track individuals. Work with aggregate cohorts only.
- Segments need context — "40% mobile" means nothing without comparison to prior period or industry
- Value-weighted — not all visitors equal. Visitors who convert > visitors who bounce
- Platform-aware — developer audience = high desktop, high Chrome/Firefox, high US/EU
- 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
- Unit Test Generator Automatically generate comprehensive unit tests from source code with multiple testing framework support Plugin · jeremylongshore/tons-of-skills-marketplace
- Ui Ux Expert UI/UX expert covering WCAG 2.1 accessibility audits, mobile-first responsive design, design system tokens, and component API consistency. Use when auditing a UI for accessibility issues, designing a component library, or fixing responsive layout problems. Trigger with \"accessibility review\", \"UI design help\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Validate Ethics Execute AI/ML task with intelligent automation Slash Command · jeremylongshore/tons-of-skills-marketplace
- Ui Test Agent Automates end-to-end UI tests on a running frontend using Chrome browser MCP tools — executes smoke tests, happy paths, form validation, and CRUD flows, then returns a structured UI TEST REPORT. Use when validating a deployed frontend after implementation or running manual browser sessions. Trigger with "run UI tests", "test the frontend". Subagent · jeremylongshore/tons-of-skills-marketplace
- Audio Mixer Analyzes audio tracks and prescribes a complete mixing workflow — EQ, compression, noise reduction, sidechain ducking, and platform-specific loudness targets — for broadcast-quality results. Use when mixing tutorial or vlog audio. Trigger with \"mix my audio\", \"fix my voice track\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Atlas Write architecture docs, ADRs, API specs, onboarding guides, and system diagrams using the Diátaxis model. Use when the team needs durable, accurate technical documentation. Trigger with "write an ADR", "document this architecture". Subagent · jeremylongshore/tons-of-skills-marketplace
- Audit Run internal legal compliance audits, build risk registers, and review legal controls framed as risk/probability/fix/cost-of-inaction. Use when assessing legal exposure or documenting audit trail. Trigger with "run a legal audit", "build a risk register". Subagent · jeremylongshore/tons-of-skills-marketplace
- Async Pattern Fixer Scans a codebase for dangerous async patterns — floating promises, async forEach, missing await, unhandled rejections, and mixed styles — with confidence scoring and remediation guidance. Never auto-applies fixes. Use when auditing Node.js or TypeScript code for async safety issues. Trigger with "find async issues", "scan for floating promises". Subagent · jeremylongshore/tons-of-skills-marketplace