Skip to content
Back to skills

Restricted Bigquery Dbt Environment

ASecurity

Safe dbt development against BigQuery using test schema isolation. Prevents accidental production writes. Triggers: dbt, bigquery, test schema, production safety.

  • 61 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
toolsbashsqlgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill restricted-bigquery-dbt-environment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Restricted Bigquery Dbt Environment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Restricted Bigquery Dbt Environment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-restricted-bigquery-dbt-environment/badge)](https://www.skillsdirectory.com/skills/plurigrid-restricted-bigquery-dbt-environment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: restricted-bigquery-dbt-environment
description: 'Safe dbt development against BigQuery using test schema isolation. Prevents accidental production writes. Triggers: dbt, bigquery, test schema, production safety.'
---

# Restricted BigQuery dbt Environment

Prevent accidental writes to production schemas by temporarily adding `schema='test'` to model config during local development.

## Workflow

### 1. Add schema='test' to model config (always at the top to minimize diff)

```sql
{{
  config(
    schema='test',
    materialized='incremental',
    ...
  )
}}
```

### 2. Verify with compile

```bash
uv run dbt compile --select <model_name> --profiles-dir ~/.dbt --no-use-colors
```

Confirm output contains `test` schema.

### 3. Run (REQUIRES user permission + test schema confirmation)

```bash
uv run dbt run --select <model_name> --profiles-dir ~/.dbt --no-use-colors
uv run dbt test --select <model_name> --profiles-dir ~/.dbt --no-use-colors
```

### 4. Remove schema='test' before committing

Verify with `git diff` that `schema='test'` is removed.

## Hard Rules

- NEVER commit with `schema='test'` included
- NEVER run dbt run without `schema='test'` (production write risk)
- ALWAYS get user permission before `dbt run`

Files in this skill

  • CONCOMITANT_SKILLS.md506 B
  • SKILL.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.