bigquery-sql
BigQuery-specific SQL patterns: UNNEST for array expansion, STRUCT, ARRAY_AGG, DATE_DIFF/DATE_ADD, backtick-quoted table…
HR & operations rules: SCD current-record filtering, issue resolution metrics.
Claude Code
$ npx -y skills add signalpilot-labs/signalpilot --skill domain-hr --agent claude-code
Codex
$ npx skills add signalpilot-labs/signalpilot --skill domain-hr -a codex -y
Cursor
$ npx skills add signalpilot-labs/signalpilot --skill domain-hr -a cursor -y
Gemini CLI
$ npx skills add signalpilot-labs/signalpilot --skill domain-hr -a gemini-cli -y
GitHub Copilot
$ npx skills add signalpilot-labs/signalpilot --skill domain-hr -a github-copilot -y
OpenCode
$ npx skills add signalpilot-labs/signalpilot --skill domain-hr -a opencode -y
Windsurf
$ npx skills add signalpilot-labs/signalpilot --skill domain-hr -a windsurf -y
name: domain-hr description: "HR & operations rules: SCD current-record filtering, issue resolution metrics."
When aggregating workforce or issue metrics, drive FROM the fact/event table (issues, tickets, time_entries), not the dimension table (employees, teams, projects). Employees with zero activity MUST NOT appear in activity reports - they have no data to aggregate.
Exception: if a parent/entity table exists whose primary key matches the GROUP BY key AND some parent rows have no matching children in the detail table, drive FROM the parent and LEFT JOIN the detail. Parent rows with zero children must appear with count=0, not be silently dropped.
Tables with `_fivetran_start`/`_fivetran_end` or `valid_from`/`valid_to` columns track historical state. You MUST filter to the current record before aggregating.
Current record: `_fivetran_end = '9999-12-31'` OR `_fivetran_end IS NULL` - verify the sentinel value by querying 3-5 rows before assuming.
For `_fivetran_active` columns, always use `WHERE COALESCE(_fivetran_active, true)` - never `WHERE _fivetran_active = true` because NULL values (meaning "active") would be filtered out.
NEVER aggregate across all historical rows without filtering to current records first - doing so double-counts entities that changed state.
Include ONLY closed issues in resolution time calculations - open issues have no close timestamp.
NEVER substitute `current_date` for a missing close timestamp - this produces artificially inflated resolution times that corrupt the metric.
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,…