weekly-working-hours

Verify working-hours dbt models build and error-detection views return zero rows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/janezlapajne/dotfiles --skill weekly-working-hours
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: weekly-working-hours
Source: https://github.com/janezlapajne/dotfiles/tree/main/conf/dotfiles/claude/scheduled-tasks/weekly-working-hours
Command: npx skills add https://github.com/janezlapajne/dotfiles --skill weekly-working-hours

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wt, uv, dbt_job.py, just, git, bq.

What problem does it solve?

It ensures your working-hours dbt models build successfully on a fixed cadence and that a specific error-detection view returns zero rows, preventing broken pipelines and silent data quality regressions.

Core Features & Use Cases

  • Weekly build verification: Syncs main, recreates an isolated worktree for the scheduled branch, resets the BigQuery sandbox, then runs targeted dbt model builds for the tenant.
  • Custom error-detection enforcement: Executes a dedicated dbt run to materialize an error-detection view and validates that the resulting BigQuery view has row_count = 0 (not just SQL compilation).
  • Safe failure handling & optional teardown: Stops immediately on build/test failures, keeps the worktree for debugging when needed, and removes the worktree on completion.

Quick Start

Run the weekly routine for weekly-working-hours (scheduled for Tuesdays at 08:00) and review the routine output for build status and the zero-row error-detection verdict.

Frequently Asked Questions about weekly-working-hours

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate dbt model build verification and error detection on a weekly schedule?▼

To automate weekly dbt model build verification, this Skill syncs your main branch, creates an isolated git worktree, resets the BigQuery sandbox, and runs targeted dbt builds to validate the error-detection view returns zero problematic rows.

How does BigQuery sandbox reset work for scheduled dbt data quality monitoring?▼

BigQuery sandbox reset for scheduled dbt data quality monitoring clears the target environment before recreating an isolated worktree, ensuring the weekly dbt_job build and run steps execute against a clean state to accurately enforce row_count equals 0.

Can I use git worktree orchestration to isolate scheduled dbt builds for specific tenants?▼

Yes, you can use git worktree orchestration to isolate scheduled dbt builds by creating a dedicated worktree for the tenant-specific working_hours_report models branch, preventing conflicts during the dbt build and BigQuery COUNT validation.

What is the best way to enforce zero-row error detection in a BigQuery view after a dbt run?▼

The best way to enforce zero-row error detection is to run a dedicated dbt job to materialize the view, then execute a BigQuery COUNT(*) check that immediately stops the process if the row_count is not equal to 0.

What happens to the git worktree if a dbt model build fails during weekly data quality checks?▼

If a dbt model build fails during weekly data quality checks, the Skill stops immediately and safely retains the isolated git worktree for debugging, rather than automatically tearing it down.

Do I need git main fast-forward sync before running dbt builds in a worktree?▼

Yes, a git main fast-forward sync is required before running dbt builds, ensuring the isolated worktree for the scheduled branch is created from the latest repository state before resetting the BigQuery sandbox.