SegmentCDP
diegosouzapw2026-10-27查看 1394复制 353
Segment 客户数据平台的专家模式,包括 Analytics.js、服务端跟踪、使用 Protocols 的跟踪计划、身份解析、目标配置和数据治理……
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1468 chars
--- name: segment-cdp description: "Expert patterns for Segment Customer Data Platform including Analytics.js, server-side tracking, tracking plans with Protocols, identity resolution, destinations configuration, and data governance ..." risk: unknown source: "vibeship-spawner-skills (Apache 2.0)" date_added: "2026-02-27" --- # 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 | Issue | Severity | Solution | |-------|----------|----------| | Issue | medium | See docs | | Issue | high | See docs | | Issue | medium | See docs | | Issue | high | See docs | | Issue | low | See docs | | Issue | medium | See docs | | Issue | medium | See docs | | Issue | high | See docs | ## When to Use This skill is applicable to execute the workflow or actions described in the overview.