← Back to Skills Marketplace
tomgranot

Create Segment Lists

by TomGranot · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
99
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install create-segment-lists
Description
Create business segment lists in HubSpot for customers, partners, competitors, employees, ICP tiers, and industries. Enables segment-based targeting, suppres...
README (SKILL.md)

Create Segment Lists

Build a library of segment lists that enable targeted marketing, accurate reporting, and proper suppression. These lists form the foundation of segment-based operations.

Prerequisites

  • HubSpot API token in .env
  • Python with hubspot-api-client installed via uv
  • ICP tier property created (run /create-icp-tiers first)
  • Lifecycle stages cleaned up (run /fix-lifecycle-stages first)

Interview: Gather Requirements

Before executing, collect the following information from the user:

Q1: What are your key customer segments?

  • Examples: Industry verticals (Manufacturing, Professional Services, Retail, Education, Logistics), company size tiers (Enterprise, Mid-Market, SMB), geographic regions (North America, EMEA, APAC)
  • Default: Core business segments (Customers, Partners, Competitors, Internal) plus ICP tiers and engagement-based segments

Q2: What engagement criteria define "active" for your business?

  • Examples: Email open or click in last 90 days, website visit in last 60 days, form submission in last 30 days, meeting booked in last 90 days
  • Default: Any email engagement (open or click) within the last 90 days

Recommended Segments

Core Business Segments

List Name Type Criteria
All Customers Active Lifecycle stage = Customer
All Partners Active Contact type = Partner (or custom property)
Competitors Static Manually curated from known competitor domains
Internal Employees Active Email domain matches company domain
Suppressed Contacts Active Marketing status = non-marketing OR globally unsubscribed

ICP-Based Segments

List Name Type Criteria
ICP Tier 1 Active ICP tier property = Tier 1
ICP Tier 2 Active ICP tier property = Tier 2
ICP Tier 3 Active ICP tier property = Tier 3
Non-ICP Active ICP tier property = Non-ICP or unknown

Industry Segments

List Name Type Criteria
[Industry Name] Active Industry = [value]
(Create one per target industry)

Engagement Segments

List Name Type Criteria
Highly Engaged (90 days) Active Email open or click in last 90 days
Disengaged (6+ months) Active No email engagement in 180+ days
Never Engaged Active No email opens ever AND created 30+ days ago

Step-by-Step Instructions

Stage 1: Before — Plan Your Segments

  1. Review the segments above and decide which are relevant to your business.
  2. Confirm the properties these lists depend on are populated (ICP tier, lifecycle stage, industry).
  3. Check for existing lists that overlap — merge or rename rather than creating duplicates.

Stage 2: Execute — Create Lists

Use the Lists API to create active (smart) lists:

from hubspot import HubSpot

api_client = HubSpot(access_token=os.getenv("HUBSPOT_API_TOKEN"))

# Example: Create "All Customers" list
api_client.crm.lists.lists_api.create(
    list_create_request={
        "name": "All Customers",
        "objectTypeId": "0-1",  # contacts
        "processingType": "DYNAMIC",
        "filterBranch": {
            "filterBranchType": "OR",
            "filters": [{
                "filterType": "PROPERTY",
                "property": "lifecyclestage",
                "operation": {
                    "operationType": "ENUMERATION",
                    "operator": "IS_EQUAL_TO",
                    "value": "customer"
                }
            }]
        }
    }
)

Create each list, verify member count, and document the list ID.

For static lists (Competitors), create the list and manually add contacts or import from a CSV.

Stage 3: After — Verify

  1. Check member counts for each list — do they match expectations?
  2. Verify no contacts appear in mutually exclusive lists (e.g., both Customer and Competitor).
  3. Confirm lists are visible to the appropriate teams.

Stage 4: Rollback

  • Lists can be deleted via the API or UI.
  • Deleting a list does not affect the contacts in it — only the list definition is removed.
  • Check if any workflows or emails reference the list before deleting.

Tips

  • Use a consistent naming convention: [Category] - Segment Name (e.g., [ICP] - Tier 1, [Industry] - Manufacturing).
  • Review segment membership quarterly — segments should grow or shrink in expected ways.
  • Use these lists as building blocks for email sends, ad audiences, and workflow enrollment triggers.
Usage Guidance
This skill appears to do what it claims (create HubSpot lists) but there are important inconsistencies you should address before installing or running it: - The SKILL.md expects a HubSpot API token (HUBSPOT_API_TOKEN) stored in a .env file, but the skill metadata does not declare any required environment variables. Confirm where/how you must supply the API token and prefer using your platform's secret store instead of a plaintext .env file. - The instructions require Python and the hubspot-api-client library but provide no install steps; 'uv' in the doc looks like a typo — ask the author to clarify installation steps. - The doc references other commands (/create-icp-tiers, /fix-lifecycle-stages) without explaining whether those are other skills or scripts. Ask for clarification so you know what additional actions will be invoked. - Follow least-privilege practices: create a HubSpot token scoped only to lists and read/write operations needed (avoid full account-scoped tokens), and review tokens/workflows that reference lists before deleting anything. - If you plan to allow autonomous agent invocation, be extra cautious: an agent with network access and an API token can modify HubSpot data. Prefer manual invocation until you confirm the skill's behavior and declare required secrets in the registry.
Capability Analysis
Type: OpenClaw Skill Name: create-segment-lists Version: 1.0.0 The skill bundle provides legitimate instructions and code examples for managing HubSpot contact lists via the official Python SDK. It uses standard environment variables for authentication and contains no evidence of malicious intent, data exfiltration, or harmful prompt injection (SKILL.md).
Capability Assessment
Purpose & Capability
The SKILL.md clearly implements HubSpot list creation (consistent with the name/description). However, the skill's registry metadata declares no required environment variables or credentials while the instructions require a HUBSPOT_API_TOKEN in a .env file. That omission is an inconsistency: the skill will need a HubSpot credential but does not declare it.
Instruction Scope
Instructions are primarily limited to creating/verifying HubSpot lists (appropriate). They explicitly require reading a .env file for HUBSPOT_API_TOKEN and using a Python client. The SKILL.md also references running other commands (/create-icp-tiers and /fix-lifecycle-stages) without explaining whether those are other skills or external tools — this expands the actual runtime scope and is ambiguous. No instructions ask to send data to unexpected external endpoints beyond HubSpot.
Install Mechanism
This is an instruction-only skill with no install spec or bundled code, so nothing is written to disk by the skill itself. The SKILL.md recommends Python and `hubspot-api-client`, but no installer is provided. Note: the doc contains a probable typo 'uv' for installation which should be clarified.
Credentials
The runtime instructions require a HubSpot API token (HUBSPOT_API_TOKEN) read from .env, which is reasonable for HubSpot operations. However, the registry metadata does not declare this required credential or any config path. Asking the agent to read a .env file (undisclosed in metadata) increases risk if users expect platform-managed secrets. Recommend declaring the credential and advising use of platform secret storage rather than a local .env file.
Persistence & Privilege
The skill does not request persistent/always-on presence (always:false) and does not modify other skills or global agent settings. It relies on agent invocation and user-provided credentials; no elevated privileges are requested in metadata.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install create-segment-lists
  3. After installation, invoke the skill by name or use /create-segment-lists
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of create-segment-lists. - Provides instructions and templates for creating key business segment lists in HubSpot (customers, partners, competitors, employees, ICP tiers, and industries). - Includes an interview guide to capture user-specific segment and engagement criteria. - Offers example HubSpot Lists API usage for active and static segment lists. - Details verification and rollback steps to ensure list quality and safety. - Contains best practice tips for naming, maintenance, and usage of segment lists.
Metadata
Slug create-segment-lists
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Create Segment Lists?

Create business segment lists in HubSpot for customers, partners, competitors, employees, ICP tiers, and industries. Enables segment-based targeting, suppres... It is an AI Agent Skill for Claude Code / OpenClaw, with 99 downloads so far.

How do I install Create Segment Lists?

Run "/install create-segment-lists" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Create Segment Lists free?

Yes, Create Segment Lists is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Create Segment Lists support?

Create Segment Lists is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Create Segment Lists?

It is built and maintained by TomGranot (@tomgranot); the current version is v1.0.0.

💬 Comments