[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AK5FFVSE24T073M48VC94Y":3,"skill-same:01M7AK5FFVSE24T073M48VC94Y":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AK5FFVSE24T073M48VC94Y","data-engineering",null,"Production data engineering reference covering ELT\u002FETL patterns, dbt project structure, orchestration (Airflow\u002FDagster\u002FPrefect), Python data stack (pandas\u002FPolars\u002FDuckDB\u002FSpark), cloud warehouses (Snowflake\u002FBigQuery\u002FAzure Fabric), lakehouse formats (Iceberg\u002FDelta\u002FHudi), CDC with Debezium, SCD2, data quality, feature stores, and ML productionization with MLflow. Use when answering questions about data pipelines, SQL optimization, warehouse cost control, Python data tools, gradient boosting, A\u002FB testing, or modern data stack architecture.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fai-and-data\u002Fskills\u002Fdata-engineering\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: data-engineering\ndescription: \"Production data engineering reference covering ELT\u002FETL patterns, dbt project structure, orchestration (Airflow\u002FDagster\u002FPrefect), Python data stack (pandas\u002FPolars\u002FDuckDB\u002FSpark), cloud warehouses (Snowflake\u002FBigQuery\u002FAzure Fabric), lakehouse formats (Iceberg\u002FDelta\u002FHudi), CDC with Debezium, SCD2, data quality, feature stores, and ML productionization with MLflow. Use when answering questions about data pipelines, SQL optimization, warehouse cost control, Python data tools, gradient boosting, A\u002FB testing, or modern data stack architecture.\"\n---\n\n# Data Engineering & Data Science Production Reference\n\n## ELT vs ETL — Decision Framework\n\n**ELT is the production default** on modern cloud warehouses (Snowflake, BigQuery, Databricks). Load raw data first, transform in-warehouse with dbt. Storage\u002Fcompute decoupling makes this cheaper and operationally simpler than a separate transformation tier.\n\n**ETL still wins when:**\n- Compliance requires pre-load masking\u002Ftokenization (HIPAA, PCI DSS)\n- Source data must be filtered before reaching governed storage\n- Destination is an operational system, not a warehouse\n\n**ELT advantages:** preserves raw data for reprocessing when business logic changes; no transformation infrastructure to manage; one pipeline to operate.\n\n---\n\n## Pipeline Design Principles\n\n- **Idempotency is non-negotiable** — re-running a job must produce the same result; enables safe backfills and retries\n- **At-least-once semantics** (with idempotent writes\u002Fdedup) for most analytics; exactly-once is expensive and rarely necessary\n- **Late-arriving data**: handle with watermarks and windowing\n- **Late-arriving dimensions** (fact arrives before its dimension): use placeholder\u002Finferred dimension rows rather than dropping facts or accepting null FKs\n- **Watermark storage**: store in an audit table in the target DB, not just an orchestrator variable — makes it debuggable\n\n---\n\n## Incremental Loads & CDC\n\n**Watermark-based incremental**: pull rows where `updated_at > last_watermark`. Store the watermark in the target DB audit table.\n\n**Debezium** (dominant open-source CDC):\n- Reads the database transaction log (WAL\u002Fbinlog) via Kafka Connect — not polling\n- Captures every insert\u002Fupdate\u002Fdelete in order with minimal source impact\n- Supports MySQL, Postgres, MongoDB, SQL Server, Oracle\n- **Incremental snapshots** (v1.6+): interleaves snapshotting with streaming using watermark approach (from Netflix's DBLog paper) — no long table locks\n- Note: log-based CDC on Postgres may require config changes and a restart\n\n---\n\n## SCD2 Implementation\n\nUse `effective_from` \u002F `effective_to` \u002F `is_current` columns.\n\n**Reliable cross-platform pattern (two steps):**\n1. Close changed rows (set `effective_to`, `is_current = 0`)\n2. Insert new current versions\n\nA single MERGE cannot do both UPDATE and INSERT from one source row without the nested INSERT-over-MERGE-OUTPUT trick.\n\n**Options:**\n- **dbt snapshots**: cleaner when Silver layer is dbt-managed\n- **Manual MERGE**: more control (e.g., Spark Delta MERGE in lakehouse pipelines)\n\n**Query patterns:**\n- Current state: `WHERE is_current = 1`\n- Historical: `WHERE order_date BETWEEN effective_from AND effective_to`\n- Forgetting these joins duplicates fact rows\n\n---\n\n## dbt Project Structure\n\nThree-layer architecture:\n\n| Layer | Description | Materialization | Rules |\n|---|---|---|---|\n| **Staging** | 1:1 with sources; rename\u002Fcast\u002Fbasic categorization | Views | No joins; prefix `stg_` |\n| **Intermediate** | Business logic, joins, re-graining | Ephemeral | Referenced by only one downstream (if more, make it a macro) |\n| **Marts** | Wide\u002Fdenormalized entities | Tables | ≤4–6 joins; prefix by domain |\n\n**Materialization progression:** view → table (when query is slow) → incremental (only when table builds are too slow).\n\n**Anti-patterns to avoid:**\n- `finance_orders` vs `marketing_orders` — build one source of truth instead\n- Splitting ML vs reporting marts\n- Using seeds to load source data\n- Using tags instead of folders as primary selectors\n\n**dbt tests**: `not_null`, `unique`, `accepted_values`, `relationships` on every model. Using thresholds\u002Fseverities to suppress failing tests hides anomalies and erodes audit trust.\n\n---\n\n## Orchestration — Tool Selection\n\n| Tool | Best for | Weakness |\n|---|---|---|\n| **Airflow** | Enterprise, 100+ pipelines, 1,000+ providers (MWAA\u002FCloud Composer\u002FAstronomer) | Steeper learning curve; needs running instance to test DAGs |\n| **Dagster** | Greenfield\u002Fdbt-centric platforms; software-defined assets, local testing (swap Snowflake for DuckDB) | ~1\u002F4 of Airflow's integrations |\n| **Prefect** | Python-native, fastest laptop-to-production | Serverless cold starts 5–15s; near-real-time workloads feel this |\n\n**Migration rule:** 50+ working Airflow DAGs → stay and adopt TaskFlow incrementally; Dagster migration runs ~10–20 DAGs\u002Fmonth via `dagster-airflow`.\n\n---\n\n## Data Quality — Layered Approach\n\n- **dbt tests**: shift-left checks inside transformation layer\n- **Great Expectations**: 300+ expectations, automated profiling, human-readable Data Docs; expressive Python validation-as-code\n- **Soda Core**: YAML-based, SQL-native, lightweight\n- **Deequ** (Amazon, Spark-native): massive-scale checks without sampling\n- **Pandera**: DataFrame schema validation (pandas, Polars, PySpark, Ibis backends); use for feature-engineering checks, drift detection, ETL decorators\n\nMost mature teams combine dbt tests (model layer) + Great Expectations or Soda Core (distribution\u002Fprofiling checks dbt can't express).\n\n---\n\n## Python Data Stack\n\n### pandas\n- Optimize memory: categorical dtypes for low-cardinality strings, downcast numerics, chunk large CSVs (`chunksize`), Arrow-backed dtypes (pandas 2.x)\n- Avoid row-wise `apply`\u002F`iterrows` — vectorize\n- Single-threaded for most ops (GIL-bound)\n\n### Polars (Rust-based, columnar Arrow)\n- Multi-threaded by default\n- **Lazy API**: predicate pushdown, projection pruning, operation fusion, streaming mode for larger-than-RAM data\n- Benchmarks vs pandas (NYC taxi 12.7M rows): 25× faster CSV reads, 5–10× faster aggregations, joins up to ~13.75×\n- 650GB Delta test on 32GB EC2: Polars 12 min vs PySpark >1 hour\n- Parquet write performance converges (both delegate to PyArrow C++)\n\n### DuckDB (in-process OLAP)\n- Vectorized execution; reads Parquet\u002FS3 directly with columnar pushdown\n- 1M-row query: ~3.84s vs pandas' ~19.57s\n- 5–10× faster group-bys on >100M rows\n- Best for local\u002Fembedded analytics and as a dbt\u002Ftest backend\n\n### PySpark\n- Use DataFrame API (Catalyst optimizer) over RDDs\n- Avoid data skew (salting, AQE); prefer broadcast joins when one side fits in memory\n- **Only reach for Spark when data won't fit on a single node** or you need distributed\u002Fstreaming\u002FMLlib\n\n### Arrow\u002FPyArrow\nZero-copy columnar IPC — the lingua franca between Polars, DuckDB, pandas 2.x, and Spark.\n\n---\n\n## Data Quality at Scale — Pydantic vs Pandera\n\n**Pandera**: tabular validation (DataFrameSchema or class-based DataFrameModel); use for DataFrame-level checks.\n\n**Pydantic V2**: record\u002Fobject validation; core rewritten in Rust as `pydantic-core` — \"about 17× faster than V1.\" Use for API\u002Frecord validation.\n\nIntegration: Pandera uses Pydantic for coercion; embed Pydantic models row-wise only for very small (~100-row) frames.\n\n---\n\n## Batch vs Streaming Decision\n\n| Need | Recommendation |\n|---|---|\n| Sub-second latency, business acts on it (fraud, dynamic pricing) | True streaming (Flink or Kafka + consumer) |\n| Seconds of latency acceptable | Micro-batch (Spark Structured Streaming) |\n| Minutes\u002Fhours acceptable | Batch ELT |\n\n**Flink**: true event-at-a-time, p99 latencies \u003C100ms; more resource-efficient for low-latency.\n**Spark Streaming**: ~2–5s; wins when you share resources across batch and streaming or already run Databricks\u002FDelta.\n\n**Cost lever**: BigQuery streaming costs $0.01\u002F200MB; micro-batch loading is free — a major difference at scale.\n\n---\n\n## SQL & CTE Best Practices\n\n### CTE vs subquery vs temp table\n- CTEs and subqueries are **performance-equivalent** in modern engines (Postgres 12+, BigQuery, Snowflake)\n- CTEs win on readability and avoiding repeated scans\n- Postgres ≤11 materialized CTEs (optimization fence); Postgres 12+ inlines them\n- Snowflake: CTE referenced twice scanned 1.3MB vs 2.7MB for repeated subquery\n- Temp tables benefit from indexing for complex multi-step manipulation\n\n### Window Functions\n- `ROW_NUMBER` (unique sequential), `RANK` (gaps on ties), `DENSE_RANK` (no gaps)\n- `LAG`\u002F`LEAD` (prior\u002Fnext row), `FIRST_VALUE`\u002F`LAST_VALUE`\n- **Critical**: `ROWS` vs `RANGE` frames — RANGE includes all peer rows with equal ordering values; the default `RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW` can produce surprising results with ties\n\n### Query Optimization\n- Read EXPLAIN ANALYZE plans; confirm partition pruning fires and predicate pushdown reaches scans\n- **BigQuery**: partition on DATE\u002FTIMESTAMP\u002FINT, cluster on high-cardinality filter columns; filtering one month of 5-year table scans ~1\u002F60th\n- **Snowflake**: automatic micro-partitioning with min\u002Fmax metadata; manual clustering keys for large frequently-filtered tables (50–70% data reduction); note clustering\u002Felimination uses only first ~5 characters (so YYYYMMDD clusters by YYYYM effectively)\n\n### Anti-patterns\n- Correlated subqueries (re-execute per outer row — rewrite as joins)\n- `DISTINCT` to paper over join fan-out (fix the join grain instead)\n- Implicit type coercion (silently kills index\u002Fpartition usage)\n- `SELECT *` on columnar stores (BigQuery bills full column scan regardless of LIMIT)\n\n---\n\n## Cloud Warehouse Cost Controls\n\n### Snowflake\n- **Auto-suspend at 60s** for ETL\u002Fshort bursts; 5–10 min for cache-sensitive BI\n- Enable auto-resume; use **Economy scaling policy** for batch to avoid cluster thrashing\n- Multi-cluster scales out for concurrency, not single-query speed\n- Capacity pricing (1–3 yr) saves ~15–25% vs on-demand\n- **Cost killers**: zombie warehouses (`AUTO_SUSPEND=0`), over-provisioned dev XL warehouses, excessive Time Travel retention on truncate-reload tables, runaway reclustering on high-churn tables\n\n### BigQuery\n- On-demand: $6.25\u002FTiB scanned (first 1 TiB\u002Fmonth free); `SELECT *` on 10TB = $62.50; LIMIT does not reduce cost\n- Editions (Standard\u002FEnterprise\u002FEnterprise Plus) charge per slot-hour; autoscaling GA Feb 2025\n- Break-even from on-demand to slots: ~300–500 TiB\u002Fmonth steady scanning\n- Use `INFORMATION_SCHEMA.JOBS` \u002F `JOBS_TIMELINE` for cost attribution\n- Tables untouched 90 days → long-term storage at half price automatically\n\n### Azure \u002F Microsoft Fabric\n- **Fabric Lakehouse** (Spark-primary) vs **Fabric Warehouse** (T-SQL-primary, full read\u002Fwrite)\n- All data in OneLake (Delta Parquet) — Spark notebooks, T-SQL, and Power BI Direct Lake read the same table without copies\n- Synapse dedicated pool → Fabric Warehouse migration: ~30–50% cost reduction vs always-on Synapse; expect 4–8 weeks per pool\n- Databricks: reserved\u002Fcommitted compute + predictive optimization + right-sized clusters = 30–70% savings\n\n---\n\n## Lakehouse Table Formats\n\n| Format | Best for | Notes |\n|---|---|---|\n| **Iceberg** | Interoperability standard; partition evolution as metadata operation | Databricks acquired Tabular (Iceberg creators); AWS S3 Tables, Snowflake Polaris catalog |\n| **Delta** | Largest installed base; Microsoft Fabric default | Most large enterprises; Databricks default |\n| **Hudi** | Streaming\u002FCDC upserts (Merge-on-Read first-class) | Vendor (Onehouse) benchmarks favor it for upserts — run your own TPC-DS |\n\n---\n\n## Azure Databricks Optimization\n\n- `OPTIMIZE`: compacts small files (~1GB target)\n- `ZORDER BY`: co-locates data for high-cardinality filter columns\n- `VACUUM`: removes unreferenced files (default 7-day retention via `delta.deletedFileRetentionDuration`)\n- **Liquid clustering** (`CLUSTER BY`, GA DBR 15.2+): redefine clustering keys without rewriting data\n- **Automatic liquid clustering** (`CLUSTER BY AUTO`, DBR 15.4+) + **predictive optimization**: Unity Catalog auto-selects keys and runs OPTIMIZE\u002FVACUUM\u002FANALYZE on serverless compute\n- Limit clustering to 1–4 high-value filter\u002Fjoin columns; don't partition tables under ~1TB\n\n---\n\n## Schema Evolution & Data Contracts\n\n- Use a schema registry (Confluent) with Avro for Kafka to enforce backward\u002Fforward compatibility\n- **Open Data Contract Standard (ODCS) v3.1.0** (Apache 2.0, maintained by Bitol under Linux Foundation AI & Data): machine-readable producer-consumer agreements covering schema + semantics + SLAs\n- **Data Contract CLI**: lint, test against Snowflake\u002FBigQuery\u002FDatabricks, detect breaking changes, export to dbt\u002FAvro\u002FJSON Schema\n- **Rule of thumb**: one person → skip the contract; two+ teams depend on it in production → write one\n\n---\n\n## Feature Stores\n\n**Solve:** training-serving skew, online\u002Foffline consistency, feature reuse.\n\n| Store | Type | Best for |\n|---|---|---|\n| **Feast** (Linux Foundation) | Open-source, bring-your-own-infra | Cost\u002Fflexibility\u002Fno lock-in; you own pipeline and writes to online store |\n| **Tecton** (ex-Uber Michelangelo team) | Managed; includes transformation\u002Fcompute | Mission-critical real-time; eliminates skew \"by construction\"; sub-10ms p99 online serving |\n\n**Offline store**: BigQuery\u002FSnowflake\u002FS3 for point-in-time-correct training sets.\n**Online store**: Redis\u002FDynamoDB for low-latency inference.\n\nUse Feast for flexibility; Tecton for managed SLAs on real-time use cases.\n\n---\n\n## MLflow — Production Patterns\n\nFour components: **Tracking** (log params\u002Fmetrics\u002Fartifacts per run), **Projects** (reproducible packaging), **Models** (flavors for deployment), **Model Registry** (versioning + lineage + lifecycle).\n\n**Modern champion\u002Fchallenger pattern (MLflow 2.9.0+):**\n- Fixed stages (`Staging\u002FProduction\u002FArchived`) are deprecated\n- Use **aliases**: mutable named pointers like `champion`\u002F`challenger`\n- Reference: `models:\u002FMyModel@champion`\n- Promote by reassigning the alias\n\n**Production deployment patterns:**\n- Batch scoring for non-latency-sensitive use\n- Online inference behind managed endpoint for real-time\n- **Shadow mode**: run new model on live traffic without acting, before promotion\n- **Champion\u002Fchallenger**: controlled rollout via alias reassignment\n\n---\n\n## ML Modeling Best Practices\n\n### Feature Engineering\n- Target encoding for high-cardinality categoricals (with CV\u002Fsmoothing to prevent leakage)\n- One-hot for low cardinality; embeddings for very high cardinality\n- Temporal features (lags, rolling windows): build carefully to avoid leakage\n- **Never compute encodings\u002Fscalers on full dataset before splitting**\n\n### Model Validation\n- **Time-series CV** (expanding\u002Frolling window) for temporal data — never shuffle-split\n- **Group-k-fold** when records cluster (same user\u002Fentity)\n- Calibrate probabilities (Platt\u002Fisotonic) for reliable scores\n- scikit-learn `Pipeline + ColumnTransformer`: canonical leakage guard — preprocessing fit only on training folds\n\n### Gradient Boosting (Tabular Data Default)\nAll three are competitive; no significant differences under Wilcoxon–Holm analysis (arXiv 2407.00956):\n\n| Library | Strength | Weakness |\n|---|---|---|\n| **LightGBM** | Fastest (~7× vs XGBoost); best for very large datasets | Leaf-wise growth overfits small data |\n| **CatBoost** | Best with many categorical features (native handling); strong defaults | |\n| **XGBoost** | Slight accuracy\u002Fgeneralization edge in some benchmarks; Kaggle workhorse | Slowest grid search on large data |\n\n**Tuning sequence**: benchmark all three with defaults → tune the frontrunner: lower `learning_rate` + more estimators with early stopping, reduce `max_depth`\u002F`num_leaves`, raise L1\u002FL2, subsample.\n\n### A\u002FB Testing\n- Pre-compute sample size from MDE, alpha, and power (typically 80%)\n- **Peeking problem**: checking results repeatedly inflates Type I error\n- **Fixed-horizon tests**: no peeking, decide at planned N — maximum rigor\n- **Sequential testing** (O'Brien-Fleming or Pocock alpha-spending): valid peeking and early stopping\n- A\u002FA tests validate randomization\n- Multi-armed bandits: good for many-armed, low-stakes optimization; not for clean causal readouts\n\n---\n\n## Data Mesh — What Actually Works\n\nIncremental product mindset (in order):\n1. **Ownership**: every dataset has a named accountable owner\n2. **Contracts**: written quality\u002Ffreshness\u002Fcompleteness SLAs in YAML\n3. **Discoverability**: catalog registration\n4. **Governance**: automatic access control, audit, lineage\n\nThe \"full mesh topology\" without a self-serve platform fails — domain teams default to ad-hoc pipelines. The self-serve platform is the most underinvested principle.\n\n---\n\n## Staged Implementation Roadmap\n\n**Stage 1 (weeks 0–8):** ELT on cloud warehouse + dbt (staging\u002Fintermediate\u002Fmarts). Enable cost guardrails: Snowflake auto-suspend 60s + Economy; BigQuery partitioning\u002Fclustering; Databricks Unity Catalog + predictive optimization. Add dbt tests on every model.\n\n**Stage 2 (months 2–4):** Layer Great Expectations or Soda Core for distribution\u002Fprofiling checks. Data contracts (ODCS + Data Contract CLI) for datasets two+ teams depend on. Deploy orchestrator matched to team. SCD2 via dbt snapshots or two-step MERGE.\n\n**Stage 3 (months 4–8):** Replace pandas bottlenecks with Polars\u002FDuckDB before reaching for Spark — only adopt Spark when data genuinely exceeds single-node memory. CDC via Debezium with incremental snapshots. Streaming only where sub-second latency drives business action.\n\n**Stage 4 (months 6–12):** scikit-learn Pipeline + ColumnTransformer to prevent leakage; time-series\u002Fgroup CV; MLflow Registry aliases (champion\u002Fchallenger). Gradient boosting (benchmark LightGBM\u002FCatBoost\u002FXGBoost). Feature store only when reuse and training-serving skew are real pain points.\n","# Data Engineering & Data Science Production Reference\n\n## ELT vs ETL — Decision Framework\n\n**ELT is the production default** on modern cloud warehouses (Snowflake, BigQuery, Databricks). Load raw data first, transform in-warehouse with dbt. Storage\u002Fcompute decoupling makes this cheaper and operationally simpler than a separate transformation tier.\n\n**ETL still wins when:**\n- Compliance requires pre-load masking\u002Ftokenization (HIPAA, PCI DSS)\n- Source data must be filtered before reaching governed storage\n- Destination is an operational system, not a warehouse\n\n**ELT advantages:** preserves raw data for reprocessing when business logic changes; no transformation infrastructure to manage; one pipeline to operate.\n\n---\n\n## Pipeline Design Principles\n\n- **Idempotency is non-negotiable** — re-running a job must produce the same result; enables safe backfills and retries\n- **At-least-once semantics** (with idempotent writes\u002Fdedup) for most analytics; exactly-once is expensive and rarely necessary\n- **Late-arriving data**: handle with watermarks and windowing\n- **Late-arriving dimensions** (fact arrives before its dimension): use placeholder\u002Finferred dimension rows rather than dropping facts or accepting null FKs\n- **Watermark storage**: store in an audit table in the target DB, not just an orchestrator variable — makes it debuggable\n\n---\n\n## Incremental Loads & CDC\n\n**Watermark-based incremental**: pull rows where `updated_at > last_watermark`. Store the watermark in the target DB audit table.\n\n**Debezium** (dominant open-source CDC):\n- Reads the database transaction log (WAL\u002Fbinlog) via Kafka Connect — not polling\n- Captures every insert\u002Fupdate\u002Fdelete in order with minimal source impact\n- Supports MySQL, Postgres, MongoDB, SQL Server, Oracle\n- **Incremental snapshots** (v1.6+): interleaves snapshotting with streaming using watermark approach (from Netflix's DBLog paper) — no long table locks\n- Note: log-based CDC on Postgres may require config changes and a restart\n\n---\n\n## SCD2 Implementation\n\nUse `effective_from` \u002F `effective_to` \u002F `is_current` columns.\n\n**Reliable cross-platform pattern (two steps):**\n1. Close changed rows (set `effective_to`, `is_current = 0`)\n2. Insert new current versions\n\nA single MERGE cannot do both UPDATE and INSERT from one source row without the nested INSERT-over-MERGE-OUTPUT trick.\n\n**Options:**\n- **dbt snapshots**: cleaner when Silver layer is dbt-managed\n- **Manual MERGE**: more control (e.g., Spark Delta MERGE in lakehouse pipelines)\n\n**Query patterns:**\n- Current state: `WHERE is_current = 1`\n- Historical: `WHERE order_date BETWEEN effective_from AND effective_to`\n- Forgetting these joins duplicates fact rows\n\n---\n\n## dbt Project Structure\n\nThree-layer architecture:\n\n| Layer | Description | Materialization | Rules |\n|---|---|---|---|\n| **Staging** | 1:1 with sources; rename\u002Fcast\u002Fbasic categorization | Views | No joins; prefix `stg_` |\n| **Intermediate** | Business logic, joins, re-graining | Ephemeral | Referenced by only one downstream (if more, make it a macro) |\n| **Marts** | Wide\u002Fdenormalized entities | Tables | ≤4–6 joins; prefix by domain |\n\n**Materialization progression:** view → table (when query is slow) → incremental (only when table builds are too slow).\n\n**Anti-patterns to avoid:**\n- `finance_orders` vs `marketing_orders` — build one source of truth instead\n- Splitting ML vs reporting marts\n- Using seeds to load source data\n- Using tags instead of folders as primary selectors\n\n**dbt tests**: `not_null`, `unique`, `accepted_values`, `relationships` on every model. Using thresholds\u002Fseverities to suppress failing tests hides anomalies and erodes audit trust.\n\n---\n\n## Orchestration — Tool Selection\n\n| Tool | Best for | Weakness |\n|---|---|---|\n| **Airflow** | Enterprise, 100+ pipelines, 1,000+ providers (MWAA\u002FCloud Composer\u002FAstronomer) | Steeper learning curve; needs running instance to test DAGs |\n| **Dagster** | Greenfield\u002Fdbt-centric platforms; software-defined assets, local testing (swap Snowflake for DuckDB) | ~1\u002F4 of Airflow's integrations |\n| **Prefect** | Python-native, fastest laptop-to-production | Serverless cold starts 5–15s; near-real-time workloads feel this |\n\n**Migration rule:** 50+ working Airflow DAGs → stay and adopt TaskFlow incrementally; Dagster migration runs ~10–20 DAGs\u002Fmonth via `dagster-airflow`.\n\n---\n\n## Data Quality — Layered Approach\n\n- **dbt tests**: shift-left checks inside transformation layer\n- **Great Expectations**: 300+ expectations, automated profiling, human-readable Data Docs; expressive Python validation-as-code\n- **Soda Core**: YAML-based, SQL-native, lightweight\n- **Deequ** (Amazon, Spark-native): massive-scale checks without sampling\n- **Pandera**: DataFrame schema validation (pandas, Polars, PySpark, Ibis backends); use for feature-engineering checks, drift detection, ETL decorators\n\nMost mature teams combine dbt tests (model layer) + Great Expectations or Soda Core (distribution\u002Fprofiling checks dbt can't express).\n\n---\n\n## Python Data Stack\n\n### pandas\n- Optimize memory: categorical dtypes for low-cardinality strings, downcast numerics, chunk large CSVs (`chunksize`), Arrow-backed dtypes (pandas 2.x)\n- Avoid row-wise `apply`\u002F`iterrows` — vectorize\n- Single-threaded for most ops (GIL-bound)\n\n### Polars (Rust-based, columnar Arrow)\n- Multi-threaded by default\n- **Lazy API**: predicate pushdown, projection pruning, operation fusion, streaming mode for larger-than-RAM data\n- Benchmarks vs pandas (NYC taxi 12.7M rows): 25× faster CSV reads, 5–10× faster aggregations, joins up to ~13.75×\n- 650GB Delta test on 32GB EC2: Polars 12 min vs PySpark >1 hour\n- Parquet write performance converges (both delegate to PyArrow C++)\n\n### DuckDB (in-process OLAP)\n- Vectorized execution; reads Parquet\u002FS3 directly with columnar pushdown\n- 1M-row query: ~3.84s vs pandas' ~19.57s\n- 5–10× faster group-bys on >100M rows\n- Best for local\u002Fembedded analytics and as a dbt\u002Ftest backend\n\n### PySpark\n- Use DataFrame API (Catalyst optimizer) over RDDs\n- Avoid data skew (salting, AQE); prefer broadcast joins when one side fits in memory\n- **Only reach for Spark when data won't fit on a single node** or you need distributed\u002Fstreaming\u002FMLlib\n\n### Arrow\u002FPyArrow\nZero-copy columnar IPC — the lingua franca between Polars, DuckDB, pandas 2.x, and Spark.\n\n---\n\n## Data Quality at Scale — Pydantic vs Pandera\n\n**Pandera**: tabular validation (DataFrameSchema or class-based DataFrameModel); use for DataFrame-level checks.\n\n**Pydantic V2**: record\u002Fobject validation; core rewritten in Rust as `pydantic-core` — \"about 17× faster than V1.\" Use for API\u002Frecord validation.\n\nIntegration: Pandera uses Pydantic for coercion; embed Pydantic models row-wise only for very small (~100-row) frames.\n\n---\n\n## Batch vs Streaming Decision\n\n| Need | Recommendation |\n|---|---|\n| Sub-second latency, business acts on it (fraud, dynamic pricing) | True streaming (Flink or Kafka + consumer) |\n| Seconds of latency acceptable | Micro-batch (Spark Structured Streaming) |\n| Minutes\u002Fhours acceptable | Batch ELT |\n\n**Flink**: true event-at-a-time, p99 latencies \u003C100ms; more resource-efficient for low-latency.\n**Spark Streaming**: ~2–5s; wins when you share resources across batch and streaming or already run Databricks\u002FDelta.\n\n**Cost lever**: BigQuery streaming costs $0.01\u002F200MB; micro-batch loading is free — a major difference at scale.\n\n---\n\n## SQL & CTE Best Practices\n\n### CTE vs subquery vs temp table\n- CTEs and subqueries are **performance-equivalent** in modern engines (Postgres 12+, BigQuery, Snowflake)\n- CTEs win on readability and avoiding repeated scans\n- Postgres ≤11 materialized CTEs (optimization fence); Postgres 12+ inlines them\n- Snowflake: CTE referenced twice scanned 1.3MB vs 2.7MB for repeated subquery\n- Temp tables benefit from indexing for complex multi-step manipulation\n\n### Window Functions\n- `ROW_NUMBER` (unique sequential), `RANK` (gaps on ties), `DENSE_RANK` (no gaps)\n- `LAG`\u002F`LEAD` (prior\u002Fnext row), `FIRST_VALUE`\u002F`LAST_VALUE`\n- **Critical**: `ROWS` vs `RANGE` frames — RANGE includes all peer rows with equal ordering values; the default `RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW` can produce surprising results with ties\n\n### Query Optimization\n- Read EXPLAIN ANALYZE plans; confirm partition pruning fires and predicate pushdown reaches scans\n- **BigQuery**: partition on DATE\u002FTIMESTAMP\u002FINT, cluster on high-cardinality filter columns; filtering one month of 5-year table scans ~1\u002F60th\n- **Snowflake**: automatic micro-partitioning with min\u002Fmax metadata; manual clustering keys for large frequently-filtered tables (50–70% data reduction); note clustering\u002Felimination uses only first ~5 characters (so YYYYMMDD clusters by YYYYM effectively)\n\n### Anti-patterns\n- Correlated subqueries (re-execute per outer row — rewrite as joins)\n- `DISTINCT` to paper over join fan-out (fix the join grain instead)\n- Implicit type coercion (silently kills index\u002Fpartition usage)\n- `SELECT *` on columnar stores (BigQuery bills full column scan regardless of LIMIT)\n\n---\n\n## Cloud Warehouse Cost Controls\n\n### Snowflake\n- **Auto-suspend at 60s** for ETL\u002Fshort bursts; 5–10 min for cache-sensitive BI\n- Enable auto-resume; use **Economy scaling policy** for batch to avoid cluster thrashing\n- Multi-cluster scales out for concurrency, not single-query speed\n- Capacity pricing (1–3 yr) saves ~15–25% vs on-demand\n- **Cost killers**: zombie warehouses (`AUTO_SUSPEND=0`), over-provisioned dev XL warehouses, excessive Time Travel retention on truncate-reload tables, runaway reclustering on high-churn tables\n\n### BigQuery\n- On-demand: $6.25\u002FTiB scanned (first 1 TiB\u002Fmonth free); `SELECT *` on 10TB = $62.50; LIMIT does not reduce cost\n- Editions (Standard\u002FEnterprise\u002FEnterprise Plus) charge per slot-hour; autoscaling GA Feb 2025\n- Break-even from on-demand to slots: ~300–500 TiB\u002Fmonth steady scanning\n- Use `INFORMATION_SCHEMA.JOBS` \u002F `JOBS_TIMELINE` for cost attribution\n- Tables untouched 90 days → long-term storage at half price automatically\n\n### Azure \u002F Microsoft Fabric\n- **Fabric Lakehouse** (Spark-primary) vs **Fabric Warehouse** (T-SQL-primary, full read\u002Fwrite)\n- All data in OneLake (Delta Parquet) — Spark notebooks, T-SQL, and Power BI Direct Lake read the same table without copies\n- Synapse dedicated pool → Fabric Warehouse migration: ~30–50% cost reduction vs always-on Synapse; expect 4–8 weeks per pool\n- Databricks: reserved\u002Fcommitted compute + predictive optimization + right-sized clusters = 30–70% savings\n\n---\n\n## Lakehouse Table Formats\n\n| Format | Best for | Notes |\n|---|---|---|\n| **Iceberg** | Interoperability standard; partition evolution as metadata operation | Databricks acquired Tabular (Iceberg creators); AWS S3 Tables, Snowflake Polaris catalog |\n| **Delta** | Largest installed base; Microsoft Fabric default | Most large enterprises; Databricks default |\n| **Hudi** | Streaming\u002FCDC upserts (Merge-on-Read first-class) | Vendor (Onehouse) benchmarks favor it for upserts — run your own TPC-DS |\n\n---\n\n## Azure Databricks Optimization\n\n- `OPTIMIZE`: compacts small files (~1GB target)\n- `ZORDER BY`: co-locates data for high-cardinality filter columns\n- `VACUUM`: removes unreferenced files (default 7-day retention via `delta.deletedFileRetentionDuration`)\n- **Liquid clustering** (`CLUSTER BY`, GA DBR 15.2+): redefine clustering keys without rewriting data\n- **Automatic liquid clustering** (`CLUSTER BY AUTO`, DBR 15.4+) + **predictive optimization**: Unity Catalog auto-selects keys and runs OPTIMIZE\u002FVACUUM\u002FANALYZE on serverless compute\n- Limit clustering to 1–4 high-value filter\u002Fjoin columns; don't partition tables under ~1TB\n\n---\n\n## Schema Evolution & Data Contracts\n\n- Use a schema registry (Confluent) with Avro for Kafka to enforce backward\u002Fforward compatibility\n- **Open Data Contract Standard (ODCS) v3.1.0** (Apache 2.0, maintained by Bitol under Linux Foundation AI & Data): machine-readable producer-consumer agreements covering schema + semantics + SLAs\n- **Data Contract CLI**: lint, test against Snowflake\u002FBigQuery\u002FDatabricks, detect breaking changes, export to dbt\u002FAvro\u002FJSON Schema\n- **Rule of thumb**: one person → skip the contract; two+ teams depend on it in production → write one\n\n---\n\n## Feature Stores\n\n**Solve:** training-serving skew, online\u002Foffline consistency, feature reuse.\n\n| Store | Type | Best for |\n|---|---|---|\n| **Feast** (Linux Foundation) | Open-source, bring-your-own-infra | Cost\u002Fflexibility\u002Fno lock-in; you own pipeline and writes to online store |\n| **Tecton** (ex-Uber Michelangelo team) | Managed; includes transformation\u002Fcompute | Mission-critical real-time; eliminates skew \"by construction\"; sub-10ms p99 online serving |\n\n**Offline store**: BigQuery\u002FSnowflake\u002FS3 for point-in-time-correct training sets.\n**Online store**: Redis\u002FDynamoDB for low-latency inference.\n\nUse Feast for flexibility; Tecton for managed SLAs on real-time use cases.\n\n---\n\n## MLflow — Production Patterns\n\nFour components: **Tracking** (log params\u002Fmetrics\u002Fartifacts per run), **Projects** (reproducible packaging), **Models** (flavors for deployment), **Model Registry** (versioning + lineage + lifecycle).\n\n**Modern champion\u002Fchallenger pattern (MLflow 2.9.0+):**\n- Fixed stages (`Staging\u002FProduction\u002FArchived`) are deprecated\n- Use **aliases**: mutable named pointers like `champion`\u002F`challenger`\n- Reference: `models:\u002FMyModel@champion`\n- Promote by reassigning the alias\n\n**Production deployment patterns:**\n- Batch scoring for non-latency-sensitive use\n- Online inference behind managed endpoint for real-time\n- **Shadow mode**: run new model on live traffic without acting, before promotion\n- **Champion\u002Fchallenger**: controlled rollout via alias reassignment\n\n---\n\n## ML Modeling Best Practices\n\n### Feature Engineering\n- Target encoding for high-cardinality categoricals (with CV\u002Fsmoothing to prevent leakage)\n- One-hot for low cardinality; embeddings for very high cardinality\n- Temporal features (lags, rolling windows): build carefully to avoid leakage\n- **Never compute encodings\u002Fscalers on full dataset before splitting**\n\n### Model Validation\n- **Time-series CV** (expanding\u002Frolling window) for temporal data — never shuffle-split\n- **Group-k-fold** when records cluster (same user\u002Fentity)\n- Calibrate probabilities (Platt\u002Fisotonic) for reliable scores\n- scikit-learn `Pipeline + ColumnTransformer`: canonical leakage guard — preprocessing fit only on training folds\n\n### Gradient Boosting (Tabular Data Default)\nAll three are competitive; no significant differences under Wilcoxon–Holm analysis (arXiv 2407.00956):\n\n| Library | Strength | Weakness |\n|---|---|---|\n| **LightGBM** | Fastest (~7× vs XGBoost); best for very large datasets | Leaf-wise growth overfits small data |\n| **CatBoost** | Best with many categorical features (native handling); strong defaults | |\n| **XGBoost** | Slight accuracy\u002Fgeneralization edge in some benchmarks; Kaggle workhorse | Slowest grid search on large data |\n\n**Tuning sequence**: benchmark all three with defaults → tune the frontrunner: lower `learning_rate` + more estimators with early stopping, reduce `max_depth`\u002F`num_leaves`, raise L1\u002FL2, subsample.\n\n### A\u002FB Testing\n- Pre-compute sample size from MDE, alpha, and power (typically 80%)\n- **Peeking problem**: checking results repeatedly inflates Type I error\n- **Fixed-horizon tests**: no peeking, decide at planned N — maximum rigor\n- **Sequential testing** (O'Brien-Fleming or Pocock alpha-spending): valid peeking and early stopping\n- A\u002FA tests validate randomization\n- Multi-armed bandits: good for many-armed, low-stakes optimization; not for clean causal readouts\n\n---\n\n## Data Mesh — What Actually Works\n\nIncremental product mindset (in order):\n1. **Ownership**: every dataset has a named accountable owner\n2. **Contracts**: written quality\u002Ffreshness\u002Fcompleteness SLAs in YAML\n3. **Discoverability**: catalog registration\n4. **Governance**: automatic access control, audit, lineage\n\nThe \"full mesh topology\" without a self-serve platform fails — domain teams default to ad-hoc pipelines. The self-serve platform is the most underinvested principle.\n\n---\n\n## Staged Implementation Roadmap\n\n**Stage 1 (weeks 0–8):** ELT on cloud warehouse + dbt (staging\u002Fintermediate\u002Fmarts). Enable cost guardrails: Snowflake auto-suspend 60s + Economy; BigQuery partitioning\u002Fclustering; Databricks Unity Catalog + predictive optimization. Add dbt tests on every model.\n\n**Stage 2 (months 2–4):** Layer Great Expectations or Soda Core for distribution\u002Fprofiling checks. Data contracts (ODCS + Data Contract CLI) for datasets two+ teams depend on. Deploy orchestrator matched to team. SCD2 via dbt snapshots or two-step MERGE.\n\n**Stage 3 (months 4–8):** Replace pandas bottlenecks with Polars\u002FDuckDB before reaching for Spark — only adopt Spark when data genuinely exceeds single-node memory. CDC via Debezium with incremental snapshots. Streaming only where sub-second latency drives business action.\n\n**Stage 4 (months 6–12):** scikit-learn Pipeline + ColumnTransformer to prevent leakage; time-series\u002Fgroup CV; MLflow Registry aliases (champion\u002Fchallenger). Gradient boosting (benchmark LightGBM\u002FCatBoost\u002FXGBoost). Feature store only when reuse and training-serving skew are real pain points.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fai-and-data\u002Fskills\u002Fdata-engineering",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill data-engineering",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill data-engineering",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill data-engineering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fai-and-data\u002Fskills\u002Fdata-engineering\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]