Asi restricted-bigquery-dbt-environment
Safe dbt development against BigQuery using test schema isolation. Prevents accidental production writes. Triggers: dbt, bigquery, test schema, production safety.
install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/restricted-bigquery-dbt-environment" ~/.claude/skills/plurigrid-asi-restricted-bigquery-dbt-environment && rm -rf "$T"
manifest:
skills/restricted-bigquery-dbt-environment/SKILL.mdsource content
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)
{{ config( schema='test', materialized='incremental', ... ) }}
2. Verify with compile
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)
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
includedschema='test' - NEVER run dbt run without
(production write risk)schema='test' - ALWAYS get user permission before
dbt run