Expert patterns and guidelines for implementing Segment Customer Data Platform, covering tracking plans and data governance.

Install

mkdir -p .claude/skills/segment-cdp && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7918" && unzip -o skill.zip -d .claude/skills/segment-cdp && rm skill.zip

Installs to .claude/skills/segment-cdp

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Expert patterns for Segment Customer Data Platform including Analytics.js, server-side tracking, tracking plans with Protocols, identity resolution, destinations configuration, and data governance best practices. Use when: segment, analytics.js, customer data platform, cdp, tracking plan.
289 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Implements client-side Analytics.js tracking
  • Supports server-side tracking in Node.js
  • Designs event schemas using object/action conventions
  • Configures identity resolution and data governance
  • Validates tracking plans via Protocols

How it works

It applies specific SDK patterns and naming conventions to ensure data consistency and enable effective downstream destination integration.

Inputs & outputs

You give it
Tracking goal or event requirement
You get back
Code snippet or plan for Segment data implementation

When to use segment-cdp

  • Setting up Analytics.js for web
  • Implementing server-side tracking in Node.js
  • Designing event tracking plans
  • Configuring data governance and identity merging

About this skill

Segment CDP

Patterns

Analytics.js Browser Integration

Client-side tracking with Analytics.js. Include track, identify, page, and group calls. Anonymous ID persists until identify merges with user.

Server-Side Tracking with Node.js

High-performance server-side tracking using @segment/analytics-node. Non-blocking with internal batching. Essential for backend events, webhooks, and sensitive data.

Tracking Plan Design

Design event schemas using Object + Action naming convention. Define required properties, types, and validation rules. Connect to Protocols for enforcement.

Anti-Patterns

❌ Dynamic Event Names

❌ Tracking Properties as Events

❌ Missing Identify Before Track

⚠️ Sharp Edges

IssueSeveritySolution
IssuemediumSee docs
IssuehighSee docs
IssuemediumSee docs
IssuehighSee docs
IssuelowSee docs
IssuemediumSee docs
IssuemediumSee docs
IssuehighSee docs

When not to use it

  • For projects that do not require detailed customer data tracking
  • When the tracking volume is too low to justify CDP integration

Prerequisites

Segment CDP accountNode.js environment

Limitations

  • Dependent on Segment's SDK limitations
  • Requires ongoing maintenance of tracking plans
  • Sensitive to incorrect implementation of identify calls

How it compares

It provides vetted patterns to avoid anti-patterns like dynamic event naming or fragmented identity tracking.

Compared to similar skills

segment-cdp side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
segment-cdp (this skill)26moNo flagsIntermediate
groq-cost-tuning126dNo flagsIntermediate
apollo-data-handling126dCautionIntermediate
fireflies-core-workflow-a126dCautionIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

software-architecture

davila7

Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.

333868

planning-with-files

davila7

Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.

233106

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

scroll-experience

davila7

Expert in building immersive scroll-driven experiences - parallax storytelling, scroll animations, interactive narratives, and cinematic web experiences. Like NY Times interactives, Apple product pages, and award-winning web experiences. Makes websites feel like experiences, not just pages. Use when: scroll animation, parallax, scroll storytelling, interactive story, cinematic website.

101142

humanizer

davila7

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases. Credits: Original skill by @blader - https://github.com/blader/humanizer

90175

game-development

davila7

Game development orchestrator. Routes to platform-specific skills based on project needs.

70195

You might also like

groq-cost-tuning

jeremylongshore

Optimize Groq costs through tier selection, sampling, and usage monitoring. Use when analyzing Groq billing, reducing API costs, or implementing usage monitoring and budget alerts. Trigger with phrases like "groq cost", "groq billing", "reduce groq costs", "groq pricing", "groq expensive", "groq budget".

12

apollo-data-handling

jeremylongshore

Apollo.io data management and compliance. Use when handling contact data, implementing GDPR compliance, or managing data exports and retention. Trigger with phrases like "apollo data", "apollo gdpr", "apollo compliance", "apollo data export", "apollo data retention", "apollo pii".

12

fireflies-core-workflow-a

jeremylongshore

Execute Fireflies.ai primary workflow: Core Workflow A. Use when implementing primary use case, building main features, or core integration tasks. Trigger with phrases like "fireflies main workflow", "primary task with fireflies".

12

azure-ai-document-intelligence-ts

microsoft

Extract text, tables, and structured data from documents using Azure Document Intelligence (@azure-rest/ai-document-intelligence). Use when processing invoices, receipts, IDs, forms, or building custom document models.

02

apollo-migration-deep-dive

jeremylongshore

Comprehensive Apollo.io migration strategies. Use when migrating from other CRMs to Apollo, consolidating data sources, or executing large-scale data migrations. Trigger with phrases like "apollo migration", "migrate to apollo", "apollo data import", "crm to apollo", "apollo migration strategy".

10

openevidence-core-workflow-b

jeremylongshore

Execute OpenEvidence DeepConsult workflow for comprehensive medical research. Use when implementing deep research synthesis, complex clinical questions, or when physicians need extensive literature review. Trigger with phrases like "openevidence deepconsult", "deep research", "comprehensive evidence", "literature synthesis".

00

Search skills

Search the agent skills registry