
Segment Cdp
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-codeInstalls 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
| 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 |
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- Upstash Qstash162
- Fastmcp Server154
- Memory Search139
- Design To Code135
- Accessibility Auditor
- Active Directory Attacks
- Agent Development
- API Fuzzing For Bug Bounty
- API Integration Specialist
- AWS Penetration Testing
- Broken Authentication Testing
- Burp Suite Web Application Testing
- Claude Code Guide
- Cloud Penetration Testing
- Command Development
- Cross Site Scripting And HTML Injection Testing
- Data Privacy Compliance
- Email Composer
- Error Resolver
- Ethical Hacking Methodology
- Excel Analysis
- File Path Traversal Testing
- Git Commit Helper
- Hook Development