Agent skill

Segment Automation

by davepoon in davepoon/buildwithclaude

Automate Segment tasks via Rube MCP (Composio): track events, identify users, manage groups, page views, aliases, batch operations.

MITAuto-check passedProductivity & Automation

Install Segment Automation

skills CLI
$ npx skills add davepoon/buildwithclaude --skill segment-automation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davepoon/buildwithclaude segment-automation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/all-skills/skills/segment-automation .claude/skills/segment-automation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
segment-automation
GitHub stars
3.6k
Used in
7 other repos
Token cost
~2.2k tokens
SKILL.md length
1,012 words
Files
1
Skills in repo
245
Repo updated
First seen
Licence
MIT

At a glance

Automate Segment tasks via Rube MCP (Composio): track events, identify users, manage groups, page views, aliases, batch operations.

  • Works in 6 steps: Track Events → Identify Users → Batch Operations → …
  • Tasks that involve App automation through connectors
  • SKILL.md covers Prerequisites, Setup, Core Workflows and Common Patterns, plus 2 more sections
  • Reaches rube.app

What it does

Segment Automation is an agent skill from davepoon/buildwithclaude. Automate Segment tasks via Rube MCP (Composio): track events, identify users, manage groups, page views, aliases, batch operations. Always search tools first for current schemas.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering App automation through connectors. It works with Composio. The repository describes itself as: A single hub to find Claude Skills, Agents, Commands, Hooks, Plugins, and Marketplace collections to extend Claude Code, Claude Desktop, Agent SDK and OpenClaw. The licence is MIT.

When your agent uses it

  • Tasks that involve App automation through connectors

Example prompts

  • “/segment-automation”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Track Events
  2. Identify Users
  3. Batch Operations
  4. Group Users
  5. Track Page Views
  6. Alias Users and Manage Sources

What it can do on your machine

Read from SKILL.md and the folder at commit 10bfc43. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • rube.app

    Also links to:

    • composio.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Segment Automation loads about 2.2k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 1,012 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davepoon/buildwithclaude at commit 10bfc43, republished under its MIT licence (© davepoon). 1,012 words, ~2,222 tokens.

Download SKILL.mdSave it as .claude/skills/segment-automation/SKILL.md (or your agent's skills folder).
name
segment-automation
description
Automate Segment tasks via Rube MCP (Composio): track events, identify users, manage groups, page views, aliases, batch operations. Always search tools first for current schemas.
requires.mcp
rube
category
analytics

Segment Automation via Rube MCP

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

Toolkit docs: composio.dev/toolkits/segment

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
Show full SKILL.md (454 more words)Show less
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

Powered by Composio

© davepoon, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/all-skills/skills/segment-automation of davepoon/buildwithclaude.

Open the folder on GitHubat commit 10bfc43

Used in 7 other repositories

We found 16 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 7 other GitHub owners. This page covers the copy in davepoon/buildwithclaude, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Segment Automation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Segment Automation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Segment Automation this skilldavepoon/buildwithclaude3.6k7 repos~2.2kAutomated safety check: PassMIT
Composioyc-software/qm15k—~1.6kAutomated safety check: PassMIT
Connect Apps with ComposioComposioHQ/awesome-claude-skills77k3 repos~557Automated safety check: PassNone
AI ML API AutomationComposioHQ/awesome-claude-skills77k4 repos~738Automated safety check: PassNone
Abuselpdb AutomationComposioHQ/awesome-claude-skills77k3 repos~738Automated safety check: PassNone
Setting Up RelayfileAgentWorkforce/relay8661 repos~3.3kAutomated safety check: PassApache-2.0

Similar skills

  • Composio

    yc-software/qm

    Show the app connection picker or setup widget when users ask to connect apps, reopen setup, or need an app that isn't connected yet.

    15k GitHub stars~1.6k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Connect Apps with Composio

    ComposioHQ/awesome-claude-skills

    Connects an agent to 1000+ external apps through the Composio Tool Router plugin, so it can actually send emails, create issues and post messages instead of only drafting them.

    77k GitHub starsUsed in 3 repos~557 tokens
    Productivity & AutomationAuto-check passed
  • AI ML API Automation

    ComposioHQ/awesome-claude-skills

    Automate AI ML API tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 4 repos~738 tokens
    Productivity & AutomationAuto-check passed
  • Abuselpdb Automation

    ComposioHQ/awesome-claude-skills

    Automate Abuselpdb tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~738 tokens
    Productivity & AutomationAuto-check passed
  • Setting Up Relayfile

    AgentWorkforce/relay

    A skill your agent uses when an agent or human needs to set up relayfile end-to-end so agents can read and write provider files through a local mount.

    866 GitHub starsUsed in 1 repo~3.3k tokens
    Productivity & AutomationAuto-check passed
  • Composio Cloud Tools

    quarqlabs/argus

    Routes requests to external SaaS apps such as GitHub, Gmail, Google Calendar, Slack, Notion and Linear through cloud tools, with safeguards on irreversible actions.

    277 GitHub stars~543 tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed

More from davepoon/buildwithclaude

All 245 skills in this repo
  • Qwen Vision

    davepoon/buildwithclaude

    A skill your agent uses when the user asks to "analyze video", "watch this video", "what happens in this video", "describe this clip", "review this footage", "classify these videos", "compare…

    3.6k GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • Hard Predict Future

    davepoon/buildwithclaude

    Activate this agent for any future-oriented question that requires deep quantitative analysis, historical precedents, and structured scenario planning.

    3.6k GitHub starsUsed in 1 repo~4.2k tokens
    Auto-check passed
  • iOS Hig Design Guide

    davepoon/buildwithclaude

    Build, update, and apply iOS design specifications using Apple Human Interface Guidelines (HIG) source data.

    3.6k GitHub stars~735 tokensUpdated 2 days ago
    Auto-check passed
  • Video Downloader

    davepoon/buildwithclaude

    Download YouTube videos with customizable quality and format options.

    3.6k GitHub starsUsed in 1 repo~871 tokens
    Auto-check passed
  • Atlas Cloud Media

    davepoon/buildwithclaude

    Discover Atlas Cloud image and video models, inspect their live schemas, and submit one confirmed media generation request with bounded GET polling.

    3.6k GitHub stars~852 tokensUpdated 2 days ago
    Auto-check passed
  • Slack Gif Creator

    davepoon/buildwithclaude

    Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives.

    3.6k GitHub starsUsed in 12 repos~4.3k tokens
    Auto-check passed

Works with

Questions about Segment Automation

What does Segment Automation do?

Automate Segment tasks via Rube MCP (Composio): track events, identify users, manage groups, page views, aliases, batch operations. Segment Automation is an agent skill from davepoon/buildwithclaude. Automate Segment tasks via Rube MCP (Composio): track events, identify users, manage groups, page views, aliases, batch operations.

When should I use Segment Automation?

Segment Automation fits situations like: tasks that involve App automation through connectors.

How do I install Segment Automation in Claude Code?

Run `npx skills add davepoon/buildwithclaude --skill segment-automation -a claude-code`. Or copy the skill folder (plugins/all-skills/skills/segment-automation in davepoon/buildwithclaude) into .claude/skills/segment-automation in your project. Claude Code loads it when a task matches its description.

How do I install Segment Automation in Codex?

Run `npx skills add davepoon/buildwithclaude --skill segment-automation -a codex`. Or copy the skill folder (plugins/all-skills/skills/segment-automation in davepoon/buildwithclaude) into .agents/skills/segment-automation in your project. Codex loads it when a task matches its description.

Can I use Segment Automation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davepoon/buildwithclaude --skill segment-automation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/segment-automation, .gemini/skills/segment-automation, .github/skills/segment-automation and .opencode/skills/segment-automation in your project.

What does Segment Automation need to run?

SKILL.md names no scripts, command-line tools or credentials: Segment Automation is instructions for the agent only.

Does Segment Automation access the network?

SKILL.md names 2 domains. In commands or code: rube.app; the agent is likely to contact it when it follows the instructions. As links in the text: composio.dev. This is read from the text; nothing was executed.

Is Segment Automation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Segment Automation use?

Segment Automation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Segment Automation use?

About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Segment Automation?

Skills that share tags, products or a category with Segment Automation: Composio (yc-software/qm, 15k stars), Connect Apps with Composio (ComposioHQ/awesome-claude-skills, 77k stars), AI ML API Automation (ComposioHQ/awesome-claude-skills, 77k stars) and Abuselpdb Automation (ComposioHQ/awesome-claude-skills, 77k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Segment Automation?

davepoon (a GitHub user) maintains it in davepoon/buildwithclaude, which has 3,604 GitHub stars. The repository holds 245 skills in this directory. The repository was last updated on October 6, 2026.

Source: davepoon/buildwithclaude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.