Turn a plain-language description of an audience into a beehiiv subscriber segment and report how many readers it matches. Use when someone wants to find, group, target, or count subscribers by engagement, tier, signup source, location, custom fields, or behaviour.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Build Segment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/beehiiv-build-segment)
---
name: build-segment
description: Turn a plain-language description of an audience into a beehiiv subscriber segment and report how many readers it matches. Use when someone wants to find, group, target, or count subscribers by engagement, tier, signup source, location, custom fields, or behaviour.
---
# Build a segment
These are instructions for you to carry out now, in this conversation, using the beehiiv tools. Nothing runs in the background.
Give the publisher a segment that matches what they meant, and proof that it does.
1. **Check what exists.** List the publication's segments (`list_segments`). If one already matches, offer it instead of making a duplicate.
2. **Map each criterion.** Read the segment conditions reference (`get_segment_schema`). When the request mentions something only the publisher would track, such as an interest, plan type, or company size, list the custom fields (`list_custom_fields`), because conditions on them need the field's ID. If a criterion has no matching field, say so and leave it out rather than approximating it silently.
3. **Resolve vague words.** Terms like "engaged" or "recent" need a number. Pick a sensible default and say which one you chose.
4. **Save and check the size.** Save a dynamic segment (`save_segment`) with a name that says who is in it. Recalculate it (`recalculate_segment`), then read the member count (`get_segment`). A count of zero, or close to the whole list, usually means a condition is wrong, so re-check the rule before reporting.
5. **Report back.** Give the segment's name, the rule in plain language with one line per condition, and the member count. Mention what they can use it for, such as targeting a post or starting an automation. Creating a segment emails no one.