Skip to content
Back to skills

New Silver Model

ASecurity

Create a new dbt Silver model with SQL + YAML contract. Use when adding a new Silver layer model from a raw source table.

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
ai-agentsbashsql

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add spideystreet/medox --skill new-silver-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of New Silver Model?

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

Security grade badge for New Silver Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/spideystreet-new-silver-model/badge)](https://www.skillsdirectory.com/skills/spideystreet-new-silver-model)

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: new-silver-model
description: Create a new dbt Silver model with SQL + YAML contract. Use when adding a new Silver layer model from a raw source table.
disable-model-invocation: true
argument-hint: "<source>__<entity>"
---

# Skill: Add a New Silver dbt Model

## Steps

1. **Identify the raw source table** — check `dbt/models/sources.yml`; add it if missing.

2. **Create the SQL model** at `dbt/models/silver/<layer>_<source>__<entity>.sql`:
   ```sql
   {{ config(materialized='table') }}

   SELECT
       {{ clean_text('col') }}   AS col,
       {{ parse_bdpm_date('date_col') }} AS date_col
   FROM {{ source('raw', 'table_name') }}
   WHERE {{ is_valid_cis('cis') }}
   ```

3. **Create the contract** at `dbt/models/silver/<layer>_<source>__<entity>.yml`:
   ```yaml
   version: 2
   models:
     - name: <layer>_<source>__<entity>
       description: "..."
       columns:
         - name: <pk>
           data_tests: [unique, not_null]
   ```

4. **Add a new macro** in `dbt/macros/` if any transformation is reused across models.

5. **Validate** locally:
   ```bash
   uv run dotenv -f dbt/.env run -- uv run dbt run --project-dir dbt --profiles-dir dbt --select <model_name>
   uv run dotenv -f dbt/.env run -- uv run dbt test --project-dir dbt --profiles-dir dbt --select <model_name>
   ```

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.

Comments

Loading comments…

Newsletter

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