bigquery-sql
BigQuery-specific SQL patterns: UNNEST for array expansion, STRUCT, ARRAY_AGG, DATE_DIFF/DATE_ADD, backtick-quoted table…
- `dbt_project_map` reports "WARNING: Models use current_date" - `dbt run` produces far more rows than expected in a date-spine model
Claude Code
$ npx -y skills add signalpilot-labs/signalpilot --skill dbt-date-spines --agent claude-code
Codex
$ npx skills add signalpilot-labs/signalpilot --skill dbt-date-spines -a codex -y
Cursor
$ npx skills add signalpilot-labs/signalpilot --skill dbt-date-spines -a cursor -y
Gemini CLI
$ npx skills add signalpilot-labs/signalpilot --skill dbt-date-spines -a gemini-cli -y
GitHub Copilot
$ npx skills add signalpilot-labs/signalpilot --skill dbt-date-spines -a github-copilot -y
OpenCode
$ npx skills add signalpilot-labs/signalpilot --skill dbt-date-spines -a opencode -y
Windsurf
$ npx skills add signalpilot-labs/signalpilot --skill dbt-date-spines -a windsurf -y
name: dbt-date-spines type: skill
These are pre-shipped model SQL files in `models/` — you have direct write access. For general date spine syntax, see `duckdb-sql` skill section 2.
Edit the model SQL directly. Replace `current_date`/`current_timestamp`/`now()` with a data-driven endpoint — a subquery from the primary fact table:
-- Before: ... CURRENT_DATE ...
-- After: ... (SELECT MAX(order_date) FROM {{ ref('stg_orders') }}) ...Use the fact table with the most rows, or the one referenced in the task instruction.
If the flagged file is in `dbt_packages/` (marked "PACKAGE MODEL" in the warning): 1. Read the full SQL from the package model file 2. Create `models/<same_filename>.sql` — dbt prioritizes local models over package models 3. Paste the entire package SQL into the new file and replace `current_date` with the data-driven endpoint 4. Add `{{ config(materialized='table') }}` at the top
Example: if `dbt_packages/shopify_source/models/stg_shopify__order.sql` uses `current_date`:
-- models/stg_shopify__order.sql (local override — copy ENTIRE package SQL here)
{{ config(materialized='table') }}
-- Replace current_date with a data-driven endpoint:
-- (SELECT MAX(order_date) FROM {{ ref('stg_orders') }})Do NOT edit files inside `dbt_packages/` directly — `dbt deps` will overwrite your changes.
Call `mcp__signalpilot__get_date_boundaries(connection_name="<id>")`. Use the primary fact table's max date (marked "USE THIS"). Never use the global max — dimension tables often have later dates.
dbt run --select <model_name>
SELECT MIN(date_col), MAX(date_col), COUNT(*) FROM <model_name>
The spine's max date must match the source data's endpoint, not today's date.
BigQuery-specific SQL patterns: UNNEST for array expansion, STRUCT, ARRAY_AGG, DATE_DIFF/DATE_ADD, backtick-quoted table…
Load when dbt run or dbt parse fails. Covers YML duplicate patches, ref errors, passthrough model warnings, current_date fixes,…
Populate the knowledge base from dbt project research. Proposes entries across all 6 categories at org, project, and connection…
Load when task involves dbt snapshots, SCD Type 2, or tracking data changes over time. Covers strategy selection, column casing,…
Load when task involves adding, writing, or fixing dbt unit tests. Covers unit_tests YAML format, given/expect blocks, edge-case…
Load when task involves dbt model versioning, creating v2 of a model, or backward-compatible model changes. Covers versions YAML…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…