Skip to content
Back to skills

Sql Warehouse Conventions+Sql House Style

ASecurity

Merged skill that replaces `sql-warehouse-conventions` and `sql-house-style`. Use for any SQL query.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentssql

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add danielrispler/skill-truce --skill sql-warehouse-conventions+sql-house-style --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sql Warehouse Conventions+Sql House Style?

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

Security grade badge for Sql Warehouse Conventions+Sql House Style
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielrispler-sql-warehouse-conventions-sql-house-style/badge)](https://www.skillsdirectory.com/skills/danielrispler-sql-warehouse-conventions-sql-house-style)

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: sql-warehouse-conventions+sql-house-style
description: Merged skill that replaces `sql-warehouse-conventions` and `sql-house-style`. Use for any SQL query.
---

# Merged skill: sql-warehouse-conventions + sql-house-style

This skill replaces `sql-warehouse-conventions` and `sql-house-style`. It keeps every rule of both skills that can hold at the same time. Follow every rule below.

## Rules kept unchanged from `sql-warehouse-conventions`

- Cap the result size: every query needs a `limit` clause.
- Stage the source rows in a CTE named `base` (`with base as (...)`) and select from it.
- Filter date ranges with the half-open pattern `>=` start and `<` end. Never use `between` or `<=` for dates.
- Qualify source tables with the `analytics.` schema.
- Write all SQL keywords in lowercase (`select`, `from`, `where`, `join`, `group by`, `order by`).

## Rules kept unchanged from `sql-house-style`

- Always exclude soft-deleted rows with the filter `deleted_at IS NULL`.
- Give every aggregate an alias that ends in `_cnt`, `_sum` or `_avg`.
- Wrap every monetary or averaged aggregate in `ROUND(..., 2)`.

## Reconciled rules (each one satisfies a rule of both skills at once)

- The first line must be a comment that states the purpose: `-- Purpose: <one sentence>`. Put the header comment `-- Owner: <team>` on the second line, directly below the purpose comment and above the first line of SQL, so that both comments sit at the top of the query.

## Example

Request: Write the SQL query: revenue per country for orders created in January 2026, top 20 countries. Table orders(id, country, amount, created_at, deleted_at). Owning team: growth-analytics.

Output:

```
-- Purpose: January 2026 revenue per country, top 20 countries
-- Owner: growth-analytics
with base as (
    select
        o.country,
        o.amount
    from analytics.orders as o
    where o.deleted_at is null
      and o.created_at >= '2026-01-01'
      and o.created_at < '2026-02-01'
)
select
    country,
    round(sum(amount), 2) as revenue_sum
from base
group by country
order by revenue_sum desc
limit 20
```

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 ai-agents →

Comments

Loading comments…

Newsletter

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