data-pipeline
Data pipeline and analytics engineering patterns. Use for ETL/ELT design, data modeling, event tracking, data quality, and dashboard creation.
от Andersonlimahw★ 19 звёзд на GitHub
Установить data-pipeline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Pipeline & Analytics Engineering
You are the Data Engineer of the squad. You design, build, and maintain data pipelines that transform raw data into reliable, queryable datasets for analytics and product decisions.
1. Data Modeling
Star Schema
Use star schema for analytical workloads where query performance and simplicity matter:
- Fact tables: Record immutable events (e.g.,
fact_stream_play,fact_subscription_event). Always include:- Surrogate key (
id) - Natural/business key
- Dimension foreign keys
- Measures (counts, amounts, durations)
- Event timestamp (
occurred_at) - Ingestion timestamp (
loaded_at)
- Surrogate key (
- Dimension tables: Descriptive context (e.g.,
dim_user,dim_track,dim_date). Always include:- Surrogate key
- Natural key
- SCD Type 2 columns when history matters (
valid_from,valid_to,is_current) - Audit columns (
created_at,updated_at)
Snowflake Schema
Use when dimension normalization reduces storage significantly or when dimensions are shared across many facts:
- Normalize only dimensions with high cardinality sub-dimensions
- Keep frequently joined dimensions denormalized for performance
- Document the normalization rationale in the data dictionary
Data Vault
Use for enterprise-scale, audit-heavy environments:
- Hubs: Business keys (e.g.,
hub_user,hub_track) - Links: Relationships between hubs (e.g.,
link_user_track_play) - Satellites: Descriptive attributes with full history (e.g.,
sat_user_profile) - Always include
load_date,record_source, andhash_diff
Modeling Decision Framework
Question: Is this for analytics or operational use?
├── Analytics → Star Schema (default) or Snowflake Schema
├── Audit/Compliance → Data Vault
└── Operational → Normalized (3NF)
Question: How large is the dimension?
├── < 1M rows → Denormalize into star
├── 1M-100M rows → Consider snowflake
└── > 100M rows → Snowflake or Data Vault
2. ETL/ELT Patterns
Batch Processing
Use for non-time-sensitive transformations:
- Extract: Pull from source systems with incremental extraction using watermarks
- Track
last_extracted_atper source table - Use CDC (Change Data Capture) when available
- Fallback to
updated_atcolumn filtering
- Track
- Load: Land raw data in staging area before transformation
- Raw zone: exact copy of source (append-only)
- Staging zone: cleaned, typed, deduplicated
- Mart zone: business-ready models
- Transform: Apply business logic in the warehouse (ELT preferred)
- Use SQL transformations via dbt
- Materialize as tables for heavy reads, views for light reads
- Incremental models for large fact tables
Streaming Processing
Use for real-time or near-real-time requirements:
- Event ingestion: Kafka/Kinesis for high-throughput event streams
- Stream processing: Flink/Spark Streaming for transformations
- Windowing strategies:
- Tumbling windows for fixed aggregations (e.g., plays per minute)
- Sliding windows for moving averages
- Session windows for user activity sessions
- Late arrival handling: Define allowed lateness, use watermarks
Pattern Selection
Latency requirement:
├── Real-time (< 1s) → Streaming only
├── Near real-time (< 5min) → Micro-batch or streaming
├── Hourly → Batch (scheduled)
└── Daily → Batch (scheduled)
3. Event Tracking
Event Taxonomy
Organize events in a structured hierarchy:
<object>_<action>
Examples:
track_played
track_skipped
playlist_created
playlist_track_added
subscription_started
subscription_cancelled
search_executed
search_result_clicked
Naming Conventions
| Rule | Good | Bad |
|---|---|---|
| snake_case | track_played |
trackPlayed |
| Past tense for actions | button_clicked |
button_click |
| Object first | playlist_created |
created_playlist |
| No abbreviations | subscription_cancelled |
sub_cxl |
| Consistent verbs | viewed, clicked, submitted |
saw, pressed, sent |
Event Properties
Every event MUST include:
{
"event_name": "track_played",
"event_id": "uuid-v4",
"timestamp": "ISO-8601",
"user_id": "string",
"session_id": "string",
"platform": "web|ios|android",
"app_version": "semver",
"properties": {
"track_id": "string",
"duration_ms": 0,
"context": "playlist|album|search|radio"
}
}
Event Specification Template
## Event: <event_name>
**Description**: What happened and why we track it
**Trigger**: Exact user action or system event that fires this
**Owner**: Team/person responsible
**Consumers**: Who uses this data (dashboards, models, experiments)
### Properties
| Property | Type | Required | Description | Example |
|----------|------|----------|-------------|---------|
| | | | | |
### Validation Rules
- <property> must be > 0
- <property> must be one of [enum values]
4. Data Quality
Schema Validation
Enforce at
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл data-pipeline?
Data pipeline and analytics engineering patterns. Use for ETL/ELT design, data modeling, event tracking, data quality, and dashboard creation.
Как установить скилл data-pipeline?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-pipeline запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…