This one gets you set up with Segment's customer data platform, covering both Analytics.js for browser tracking and server-side implementation with Node. It includes patterns for tracking plan design using Object + Action naming conventions and connecting to Protocols for validation. The anti-patterns section warns against common mistakes like dynamic event names and forgetting to identify users before tracking events. The sharp edges table flags eight known issues ranging from low to high severity, though the specifics aren't detailed here. Useful if you're implementing Segment and want to avoid the usual pitfalls around identity resolution and event schema design.

skills.sh installs
162
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill segment-cdp --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Data Science & ML, Productivity & Planning, Marketing & SEO
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1jezweb avatardeep-debugjezweb/claude-skillsMulti-agent investigation for stubborn bugs. Use when: going in circles debugging, need to investigate browser/API interactions, complex bugs resisting normal d162skills.sh installs
2sundial-org avatarddg-searchsundial-org/awesome-openclaw-skillsPerform web searches using DuckDuckGo. Use when web search is needed and no API key is available or Brave Search is not preferred.162skills.sh installs
3blessonism avatarcontent-extractblessonism/openclaw-search-skillsRobust URL-to-Markdown extraction for OpenClaw workflows. Use when the user wants to "extract/summarize/convert a webpage to markdown" (especially WeChat mp.wei161skills.sh installs
4sundial-org avataropenclaw-feedssundial-org/awesome-openclaw-skillsRSS news aggregator. Fetches headlines from curated feeds across three categories: news, games, and finance. Use when the user asks about current news, headline160skills.sh installs
5microsoft avatarpr-reviewmicrosoft/win-dev-skillsMulti-dimensional review of a PR or feature branch in microsoft/win-dev-skills. Activate on "review my PR / changes / branch", "vet before pushing", "PR review"158skills.sh installs
6stellar avatarstellar-devstellar/stellar-dev-skillEnd-to-end Stellar development playbook. Covers Soroban smart contracts (Rust SDK), Stellar CLI, JavaScript/Python/Go SDKs for client apps, Stellar RPC (preferr158skills.sh installs