← 返回 Skills 市场
tomgranot

Create Segment Lists

作者 TomGranot · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
99
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install create-segment-lists
功能描述
Create business segment lists in HubSpot for customers, partners, competitors, employees, ICP tiers, and industries. Enables segment-based targeting, suppres...
使用说明 (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.
安全使用建议
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.
功能分析
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).
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-segment-lists
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-segment-lists 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug create-segment-lists
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Create Segment Lists 是什么?

Create business segment lists in HubSpot for customers, partners, competitors, employees, ICP tiers, and industries. Enables segment-based targeting, suppres... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。

如何安装 Create Segment Lists?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-segment-lists」即可一键安装,无需额外配置。

Create Segment Lists 是免费的吗?

是的,Create Segment Lists 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Create Segment Lists 支持哪些平台?

Create Segment Lists 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Create Segment Lists?

由 TomGranot(@tomgranot)开发并维护,当前版本 v1.0.0。

💬 留言讨论