Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

segment-automation分段自动化

Agent Skill

segment-automation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

574

周安装

23

GitHub Stars

52

下载量

186
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:segment-automation(分段自动化)
来源仓库:https://github.com/aaaaqwq/claude-code-skills
仓库路径:skills/segment-automation
安装命令:
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill segment-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill segment-automation

简介

用于查找、检索和筛选相关信息,支持自动化流程研究。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词定位资料。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认是否有联网、文件读写或命令执行权限。
  • 建议结合原始 README 了解数据源范围与检索逻辑细节。

SKILL.md

Segment Automation via Rube MCP

Automate Segment customer data platform operations through Composio's Segment toolkit via Rube MCP.

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Segment connection via RUBE_MANAGE_CONNECTIONS with toolkit segment
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit segment
  3. If connection is not ACTIVE, follow the returned auth link to complete Segment authentication
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Track Events

When to use: User wants to send event data to Segment for downstream destinations

Tool sequence:

  1. SEGMENT_TRACK - Send a single track event [Required]

Key parameters:

  • userId: User identifier (required if no anonymousId)
  • anonymousId: Anonymous identifier (required if no userId)
  • event: Event name (e.g., 'Order Completed', 'Button Clicked')
  • properties: Object with event-specific properties
  • timestamp: ISO 8601 timestamp (optional; defaults to server time)
  • context: Object with contextual metadata (IP, user agent, etc.)

Pitfalls:

  • At least one of userId or anonymousId is required
  • event name is required and should follow consistent naming conventions
  • Properties are freeform objects; ensure consistent schema across events
  • Timestamp must be ISO 8601 format (e.g., '2024-01-15T10:30:00Z')
  • Events are processed asynchronously; successful API response means accepted, not delivered

2. Identify Users

When to use: User wants to associate traits with a user profile in Segment

Tool sequence:

  1. SEGMENT_IDENTIFY - Set user traits and identity [Required]

Key parameters:

  • userId: User identifier (required if no anonymousId)
  • anonymousId: Anonymous identifier
  • traits: Object with user properties (email, name, plan, etc.)
  • timestamp: ISO 8601 timestamp
  • context: Contextual metadata

Pitfalls:

  • At least one of userId or anonymousId is required
  • Traits are merged with existing traits, not replaced
  • To remove a trait, set it to null
  • Identify calls should be made before track calls for new users
  • Avoid sending PII in traits unless destinations are configured for it

3. Batch Operations

When to use: User wants to send multiple events, identifies, or other calls in a single request

Tool sequence:

  1. SEGMENT_BATCH - Send multiple Segment calls in one request [Required]

Key parameters:

  • batch: Array of message objects, each with:

- type: Message type ('track', 'identify', 'group', 'page', 'alias') - userId / anonymousId: User identifier - Additional fields based on type (event, properties, traits, etc.)

Pitfalls:

  • Each message in the batch must have a valid type field
  • Maximum batch size limit applies; check schema for current limit
  • All messages in a batch are processed independently; one failure does not affect others
  • Each message must independently satisfy its type's requirements (e.g., track needs event name)
  • Batch is the most efficient way to send multiple calls; prefer over individual calls

4. Group Users

When to use: User wants to associate a user with a company, team, or organization

Tool sequence:

  1. SEGMENT_GROUP - Associate user with a group [Required]

Key parameters:

  • userId: User identifier (required if no anonymousId)
  • anonymousId: Anonymous identifier
  • groupId: Group/organization identifier (required)
  • traits: Object with group properties (name, industry, size, plan)
  • timestamp: ISO 8601 timestamp

Pitfalls:

  • groupId is required; it identifies the company or organization
  • Group traits are merged with existing traits for that group
  • A user can belong to multiple groups
  • Group traits update the group profile, not the user profile

5. Track Page Views

When to use: User wants to record page view events in Segment

Tool sequence:

  1. SEGMENT_PAGE - Send a page view event [Required]

Key parameters:

  • userId: User identifier (required if no anonymousId)
  • anonymousId: Anonymous identifier
  • name: Page name (e.g., 'Home', 'Pricing', 'Dashboard')
  • category: Page category (e.g., 'Docs', 'Marketing')
  • properties: Object with page-specific properties (url, title, referrer)

Pitfalls:

  • At least one of userId or anonymousId is required
  • name and category are optional but recommended for proper analytics
  • Standard properties include url, title, referrer, path, search
  • Page calls are often automated; manual use is for server-side page tracking

6. Alias Users and Manage Sources

When to use: User wants to merge anonymous and identified users, or manage source configuration

Tool sequence:

  1. SEGMENT_ALIAS - Link two user identities together [Optional]
  2. SEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCE - View source schema settings [Optional]
  3. SEGMENT_UPDATE_SOURCE - Update source configuration [Optional]

Key parameters:

  • For ALIAS:

- userId: New user identifier (the identified ID) - previousId: Old user identifier (the anonymous ID)

  • For source operations:

- sourceId: Source identifier

Pitfalls:

  • ALIAS is a one-way operation; cannot be undone
  • previousId is the anonymous/old ID, userId is the new/identified ID
  • Not all destinations support alias calls; check destination documentation
  • ALIAS should be called once when a user first identifies (e.g., signs up)
  • Source updates may affect data collection; review changes carefully

Common Patterns

User Lifecycle

Standard Segment user lifecycle:

1. Anonymous user visits -> PAGE call with anonymousId
2. User interacts -> TRACK call with anonymousId
3. User signs up -> ALIAS (anonymousId -> userId), then IDENTIFY with traits
4. User takes action -> TRACK call with userId
5. User joins org -> GROUP call linking userId to groupId

Batch Optimization

For bulk data ingestion:

1. Collect events in memory (array of message objects)
2. Each message includes type, userId/anonymousId, and type-specific fields
3. Call SEGMENT_BATCH with the collected messages
4. Check response for any individual message errors

Naming Conventions

Segment recommends consistent event naming:

  • Events: Use "Object Action" format (e.g., 'Order Completed', 'Article Viewed')
  • Properties: Use snake_case (e.g., 'order_total', 'product_name')
  • Traits: Use snake_case (e.g., 'first_name', 'plan_type')

Known Pitfalls

Identity Resolution:

  • Always include userId or anonymousId on every call
  • Use ALIAS only once per user identity merge
  • Identify before tracking to ensure proper user association

Data Quality:

  • Event names should be consistent across all sources
  • Properties should follow a defined schema for downstream compatibility
  • Avoid sending sensitive PII unless destinations are configured for it

Rate Limits:

  • Use BATCH for bulk operations to stay within rate limits
  • Individual calls are rate-limited per source
  • Batch calls are more efficient and less likely to be throttled

Response Parsing:

  • Successful responses indicate acceptance, not delivery to destinations
  • Response data may be nested under data key
  • Check for error fields in batch responses for individual message failures

Timestamps:

  • Must be ISO 8601 format with timezone (e.g., '2024-01-15T10:30:00Z')
  • Omitting timestamp uses server receive time
  • Historical data imports should include explicit timestamps

Quick Reference

TaskTool SlugKey Params
Track eventSEGMENT_TRACKuserId, event, properties
Identify userSEGMENT_IDENTIFYuserId, traits
Batch callsSEGMENT_BATCHbatch (array of messages)
Group userSEGMENT_GROUPuserId, groupId, traits
Page viewSEGMENT_PAGEuserId, name, properties
Alias identitySEGMENT_ALIASuserId, previousId
Source schemaSEGMENT_LIST_SCHEMA_SETTINGS_IN_SOURCEsourceId
Update sourceSEGMENT_UPDATE_SOURCEsourceId
WarehousesSEGMENT_LIST_CONNECTED_WAREHOUSES_FROM_SOURCEsourceId

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.69%
按下载量换算72

Claude

30.51%
按下载量换算57

Cursor

19.45%
按下载量换算36

Gemini CLI

9.02%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills