{"data":{"slug":"github-claude-office-skills-skills-etl-pipeline-a73f2e222f0f","title":"ETL Pipeline for Data Integration and Analytics","summary":"Design and automate Extract, Transform, Load (ETL) pipelines to integrate data from PostgreSQL, MySQL, MongoDB, APIs, and files into BigQuery, Snowflake, Redshift, and data lakes. Deliver transformed datasets, pipeline status reports, data quality metrics, and error logs.","url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-etl-pipeline-a73f2e222f0f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-claude-office-skills-skills-etl-pipeline-a73f2e222f0f","markdown_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-etl-pipeline-a73f2e222f0f.md","download_url":"https:\/\/skillshunter.net\/skills\/github-claude-office-skills-skills-etl-pipeline-a73f2e222f0f\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure source database connections, transformation rules, target schema definitions, and schedule configurations are prepared before pipeline execution. Choose the target data warehouse (e.g., BigQuery, Snowflake) based on your analytics requirements.","instructions":"---\nname: ETL Pipeline\ndescription: Design and automate Extract, Transform, Load data pipelines for data integration and analytics\nversion: 1.0.0\nauthor: Claude Office Skills\ncategory: data\ntags:\n  - etl\n  - data-pipeline\n  - integration\n  - analytics\n  - automation\ndepartment: engineering\nmodels:\n  - claude-3-opus\n  - claude-3-sonnet\n  - gpt-4\nmcp:\n  server: data-mcp\n  tools:\n    - postgres_query\n    - mysql_query\n    - mongodb_aggregate\n    - bigquery_load\n    - snowflake_api\ncapabilities:\n  - Data extraction from multiple sources\n  - Data transformation and cleaning\n  - Automated data loading\n  - Pipeline orchestration\ninput:\n  - Source database connections\n  - Transformation rules\n  - Target schema definitions\n  - Schedule configurations\noutput:\n  - Transformed datasets\n  - Pipeline status reports\n  - Data quality metrics\n  - Error logs\nlanguages:\n  - en\nrelated_skills:\n  - sheets-automation\n  - database-sync\n  - api-integration\n---\n\n# ETL Pipeline\n\nComprehensive skill for designing and automating Extract, Transform, Load data pipelines.\n\n## Pipeline Architecture\n\n### Core ETL Flow\n\n```\nDATA PIPELINE ARCHITECTURE:\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502                     EXTRACT                              \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Postgres\u2502  MySQL  \u2502 MongoDB \u2502  APIs   \u2502  Files (CSV\/JSON)\u2502\n\u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n     \u2502         \u2502         \u2502         \u2502              \u2502\n     \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                              \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502                    TRANSFORM                             \u2502\n\u2502  \u2022 Clean & Validate    \u2022 Aggregate & Join               \u2502\n\u2502  \u2022 Normalize           \u2022 Calculate Metrics              \u2502\n\u2502  \u2022 Deduplicate         \u2022 Apply Business Rules           \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                         \u25bc\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502                      LOAD                                \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502  BigQuery   \u2502  Snowflake  \u2502  Redshift   \u2502  Data Lake    \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n## Source Connectors\n\n### Database Connections\n\n```yaml\nsources:\n  postgres:\n    type: postgresql\n    host: db.example.com\n    port: 5432\n    database: production\n    ssl: true\n    extraction:\n      method: incremental\n      key: updated_at\n      batch_size: 10000\n\n  mysql:\n    type: mysql\n    host: mysql.example.com\n    port: 3306\n    database: analytics\n    extraction:\n      method: cdc\n      binlog: true\n\n  mongodb:\n    type: mongodb\n    connection_string: mongodb+srv:\/\/...\n    database: app_data\n    extraction:\n      method: change_streams\n```\n\n### API Sources\n\n```yaml\napi_sources:\n  stripe:\n    type: rest_api\n    base_url: https:\/\/api.stripe.com\/v1\n    auth: bearer_token\n    endpoints:\n      - \/charges\n      - \/customers\n      - \/subscriptions\n    pagination: cursor\n    rate_limit: 100\/second\n\n  salesforce:\n    type: salesforce\n    instance_url: https:\/\/company.salesforce.com\n    auth: oauth2\n    objects:\n      - Account\n      - Opportunity\n      - Contact\n    bulk_api: true\n```\n\n## Transformation Layer\n\n### Common Transformations\n\n```python\n# Data Cleaning\ntransformations = {\n    \"clean_nulls\": {\n        \"operation\": \"fill_null\",\n        \"columns\": [\"email\", \"phone\"],\n        \"value\": \"unknown\"\n    },\n    \n    \"standardize_dates\": {\n        \"operation\": \"date_parse\",\n        \"columns\": [\"created_at\", \"updated_at\"],\n        \"format\": \"ISO8601\"\n    },\n    \n    \"normalize_currency\": {\n        \"operation\": \"convert_currency\",\n        \"source_column\": \"amount\",\n        \"currency_column\": \"currency\",\n        \"target\": \"USD\"\n    },\n    \n    \"deduplicate\": {\n        \"operation\": \"distinct\",\n        \"key_columns\": [\"customer_id\", \"transaction_id\"],\n        \"keep\": \"latest\"\n    }\n}\n```\n\n### Aggregation Rules\n\n```sql\n-- Daily Revenue Aggregation\nSELECT \n    DATE(created_at) as date,\n    product_category,\n    COUNT(*) as transactions,\n    SUM(amount) as total_revenue,\n    AVG(amount) as avg_order_value,\n    COUNT(DISTINCT customer_id) as unique_customers\nFROM orders\nWHERE created_at >= '${start_date}'\nGROUP BY 1, 2\n```\n\n### Join Operations\n\n```yaml\njoins:\n  - name: enrich_orders\n    left: orders\n    right: customers\n    type: left\n    on:\n      - left: customer_id\n        right: id\n    select:\n      - orders.*\n      - customers.email\n      - customers.segment\n      - customers.lifetime_value\n\n  - name: add_product_details\n    left: enriched_orders\n    right: products\n    type: left\n    on:\n      - left: product_id\n        right: id\n```\n\n## Load Strategies\n\n### BigQuery Load\n\n```yaml\nbigquery_load:\n  project: my-project\n  dataset: analytics\n  table: fact_orders\n  \n  schema:\n    - name: order_id\n      type: STRING\n      mode: REQUIRED\n    - name: customer_id\n      type: STRING\n    - name: amount\n      type: NUMERIC\n    - name: created_at\n      type: TIMESTAMP\n  \n  load_config:\n    write_disposition: WRITE_APPEND\n    create_disposition: CREATE_IF_NEEDED\n    clustering_fields: [customer_id]\n    time_partitioning:\n      field: created_at\n      type: DAY\n```\n\n### Snowflake Load\n\n```yaml\nsnowflake_load:\n  warehouse: ETL_WH\n  database: ANALYTICS\n  schema: PUBLIC\n  table: FACT_ORDERS\n  \n  staging:\n    stage: '@MY_STAGE'\n    file_format: JSON\n  \n  copy_options:\n    on_error: CONTINUE\n    purge: true\n    match_by_column_name: CASE_INSENSITIVE\n```\n\n## Pipeline Orchestration\n\n### DAG Definition\n\n```yaml\npipeline:\n  name: daily_analytics_etl\n  schedule: \"0 2 * * *\"  # 2 AM daily\n  \n  tasks:\n    - id: extract_orders\n      type: extract\n      source: postgres\n      query: \"SELECT * FROM orders WHERE date = '${execution_date}'\"\n      \n    - id: extract_customers\n      type: extract\n      source: postgres\n      query: \"SELECT * FROM customers\"\n      \n    - id: transform_data\n      type: transform\n      dependencies: [extract_orders, extract_customers]\n      operations:\n        - join_customers\n        - calculate_metrics\n        - apply_business_rules\n      \n    - id: load_warehouse\n      type: load\n      dependencies: [transform_data]\n      target: bigquery\n      table: fact_orders\n      \n    - id: notify_complete\n      type: notification\n      dependencies: [load_warehouse]\n      channel: slack\n      message: \"Daily ETL completed successfully\"\n```\n\n### Error Handling\n\n```yaml\nerror_handling:\n  retry:\n    max_attempts: 3\n    delay_seconds: 300\n    exponential_backoff: true\n  \n  on_failure:\n    - log_error\n    - send_alert\n    - save_failed_records\n  \n  dead_letter:\n    enabled: true\n    destination: s3:\/\/etl-errors\/\n    retention_days: 30\n```\n\n## Data Quality\n\n### Validation Rules\n\n```yaml\nquality_checks:\n  - name: null_check\n    column: customer_id\n    rule: not_null\n    severity: error\n    \n  - name: range_check\n    column: amount\n    rule: between\n    min: 0\n    max: 100000\n    severity: warning\n    \n  - name: uniqueness\n    columns: [order_id]\n    rule: unique\n    severity: error\n    \n  - name: referential_integrity\n    column: product_id\n    reference_table: products\n    reference_column: id\n    severity: error\n    \n  - name: freshness\n    column: updated_at\n    rule: max_age_hours\n    value: 24\n    severity: warning\n```\n\n### Quality Metrics Dashboard\n\n```\nDATA QUALITY REPORT - ${date}\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\nTotal Records Processed: 1,250,000\nPassed Validation:       1,247,500 (99.8%)\nFailed Validation:           2,500 (0.2%)\n\nISSUES BY TYPE:\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 Issue Type      \u2502 Count  \u2502 Severity \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Null values     \u2502 1,200  \u2502 Warning  \u2502\n\u2502 Invalid format  \u2502   850  \u2502 Error    \u2502\n\u2502 Out of range    \u2502   300  \u2502 Warning  \u2502\n\u2502 Duplicates      \u2502   150  \u2502 Error    \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n## Monitoring & Alerting\n\n### Pipeline Metrics\n\n```yaml\nmetrics:\n  - name: pipeline_duration\n    type: gauge\n    labels: [pipeline_name, status]\n    \n  - name: records_processed\n    type: counter\n    labels: [pipeline_name, source, destination]\n    \n  - name: error_count\n    type: counter\n    labels: [pipeline_name, error_type]\n    \n  - name: data_freshness\n    type: gauge\n    labels: [table_name]\n```\n\n### Alert Configuration\n\n```yaml\nalerts:\n  - name: pipeline_failed\n    condition: status == 'failed'\n    channels: [pagerduty, slack]\n    \n  - name: high_error_rate\n    condition: error_rate > 0.05\n    channels: [slack]\n    \n  - name: slow_pipeline\n    condition: duration > 2 * avg_duration\n    channels: [slack]\n    \n  - name: data_freshness\n    condition: freshness_hours > 24\n    channels: [email]\n```\n\n## Best Practices\n\n1. **Incremental Loading**: Use incremental extraction when possible\n2. **Idempotency**: Ensure pipelines can be re-run safely\n3. **Partitioning**: Partition large tables by date\n4. **Monitoring**: Track pipeline health metrics\n5. **Documentation**: Document all transformations\n6. **Testing**: Test with sample data before production\n7. **Version Control**: Track pipeline changes in git\n","use_cases":["Automate daily data integration from PostgreSQL, MySQL, MongoDB, and APIs into BigQuery and Snowflake.","Transform and load customer transaction data with standardization, deduplication, and aggregation.","Orchestrate complex data workflows with scheduling and error handling for reliable analytics."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/claude-office-skills\/skills\/blob\/9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11\/etl-pipeline\/SKILL.md","source_commit":"9c4c7d5cd2813a8936bf2c9fdb174ea883b85a11","license":null,"version":"1.0.0","listing_approved_at":"2026-11-22","created_at":"2026-11-21T13:41:41.000000Z","updated_at":"2026-11-22T11:17:55.000000Z","seo_title":"ETL Pipeline for Data Integration and Analytics","seo_description":"Automate data extraction, transformation, and loading with ETL pipelines for analytics and integration across multiple sources and targets.","seo_keywords":["ETL pipeline automation","data integration tools","data transformation workflows","data loading strategies","data pipeline orchestration"]}}