Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Bi Sql Knowledge

ASecurity

SQL reasoning, validation, reconciliation, transformation, diagnostics, and anti-pattern knowledge layer for Seshat BI agents. Use when a task involves reasoning about source SQL: source profiling, table grain, keys & uniqueness, joins & fan-out amplification, aggregation correctness, COUNT/NULL semantics, deduplication, validation queries, reconciliation queries, silver/gold transformation logic, window/date-time analytics, SQL anti-patterns, or basic SQL performance reasoning, or interpreta...

2 stars
0 votes
0 copies
1 views
Added 9/29/2026
datagoshellsqlapidatabaseperformance

Works with

cliapi

Security Analysis

A100/100

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

Scanned 9/29/2026

$npx -y skills add Kemetra/Seshat-BI --skill bi-sql-knowledge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bi Sql Knowledge?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Bi Sql Knowledge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kemetra-bi-sql-knowledge-seshat-bi/badge)](https://www.skillsdirectory.com/skills/kemetra-bi-sql-knowledge-seshat-bi)

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

Download with Pro
Files
SKILL.md
---
name: bi-sql-knowledge
description: >-
  SQL reasoning, validation, reconciliation, transformation, diagnostics, and anti-pattern
  knowledge layer for Seshat BI agents. Use when a task involves reasoning about source SQL:
  source profiling, table grain, keys & uniqueness, joins & fan-out amplification, aggregation
  correctness, COUNT/NULL semantics, deduplication, validation queries, reconciliation queries,
  silver/gold transformation logic, window/date-time analytics, SQL anti-patterns, or basic SQL
  performance reasoning, or interpretation of a supplied sanitized PostgreSQL JSON execution
  plan. The SQL counterpart to bi-dax-knowledge. It is a thinking & validation layer, not a
  database executor, runtime validator, dbt/Dagster project, or automatic tuning service.
---

# BI SQL Knowledge (Seshat BI)

A navigational interface to a SQL **reasoning and validation** knowledge base. It teaches an
agent to reason about SQL correctly -- with table **grain** and **aggregation correctness** as
its foundation, the way filter context is the foundation of `bi-dax-knowledge`.

This file is short by design. **It does not contain the knowledge base.** Do not read every
file in this skill. Follow the flow below.

## Mandatory flow (do not skip a step, do not lose the compass)

```text
Router  ->  this SKILL.md  ->  INDEX.md  ->  ONLY the relevant file(s)  ->  output contract / checklist
```

1. **Open `INDEX.md` first.** It routes by task and by symptom to the specific file(s) you need.
2. **Read only what the route names** -- one or two knowledge files, one JSON, one checklist.
   Reading the whole base is an anti-pattern; it wastes context and dilutes the answer.
3. **Ground the grain before anything else.** State what one row of the input/result means
   (`knowledge/sql-core-concepts.md`, SC-003). Most SQL bugs are grain errors.
4. **End on an artifact:** a validation gate (`patterns/sql-validation-patterns.json`, VP-*),
   a checklist (`checklists/`), or a diagnostic verdict (`knowledge/sql-diagnostics-playbook.md`,
   PB-SQL-*). Never end on prose alone.

## What this skill is for

Reasoning about, reviewing, and validating SQL used in BI pipelines: profiling a source;
grain / keys / uniqueness; joins and **fan-out amplification**; aggregation correctness
(`COUNT` / `SUM` / `AVG`, `GROUP BY`); `COUNT` and `NULL` semantics; deduplication; **validation**
and **reconciliation** queries; silver/gold transformation logic (DML, reshaping, cleaning,
set operations, date recipes, gaps/islands, hierarchy, metadata-driven profiling); window and
date/time analytics; SQL anti-patterns (including shell/encoding pitfalls like matching a
non-ASCII/RTL literal on a command line); basic performance reasoning; and evidence-gated,
read-only interpretation of supplied PostgreSQL JSON execution plans.

## What this skill is NOT for

Not a SQL tutorial; not a chapter-by-chapter book summary; not a replacement for any book;
not a database execution tool; not a runtime validator; not a dbt/Dagster project; not an
automatic PostgreSQL tuning service; not the Power BI dashboard or DAX layer. It reasons about
SQL and supplied plans; it never runs them.

## Routing boundaries (pick the right skill before working)

| The task is about... | Route to |
|---|---|
| Source mapping / retail pipeline readiness | `source-mapping` / `retail-onboard-table` (the readiness spine) |
| SQL reasoning / profiling / validation / reconciliation / transformation logic | **`bi-sql-knowledge`** (this skill) |
| DAX generation / review / performance / model prerequisites | `bi-dax-knowledge` |
| Dashboard / visual / page design | `powerbi-dashboard-design` |

Where it sits in the pipeline:

```text
source -> [source-mapping / retail-onboard-table: mapping / readiness]
       -> [bi-sql-knowledge: profile / validate / reconcile / transform -> silver/gold]
       -> [bi-dax-knowledge: measures / model]
       -> [powerbi-dashboard-design: visuals / pages]
```

A validated gold table with a known grain and verified unique keys is the hand-off to
`bi-dax-knowledge`: grain and uniqueness feed DAX additivity reasoning.

## Stop rules

- **Stop and ask for metadata, do not guess.** When two cheap checks -- a `COUNT(*)` comparison
  and a uniqueness check -- can't localize a problem, request schema/source metadata (primary
  keys, expected grain, null semantics, SLA, expected volumes). Establishing these facts is the
  job; inventing them is not.
- **Stop at the routing boundary.** If the real task is DAX, a dashboard, or source mapping,
  hand off to the skill above instead of answering here.
- **Stop before executing.** This layer produces SQL *reasoning* and *gate shapes*. It does not
  run queries, wire a runtime, build a CLI, or publish anything.
- **Stop without plan evidence.** Bare SQL can support a hypothesis, not a PostgreSQL performance
  verdict. Plan review requires a supplied, sanitized JSON plan and representative context.
- **Never fake a pass.** Validation/reconciliation results are evidence-based; a gate with no
  evidence is `blocked`, never `pass`.

## ID conventions (full detail in `references/id-conventions.md`)

Concepts `SC-001..070` - plan concepts `EP-001..014` - plan patterns `EP-PAT-*` -
anti-patterns `SQL-AP-001..061` - validation gates `VP-*` - diagnostic playbooks
`PB-SQL-01..19` - analyzer-rule candidates `SARC-*` (staged) - promoted draft analyzer rules
`SAR-*` (static draft, not runtime-enforced).

## Boundaries

Not implementation, not database execution, not dbt/Dagster, not a runtime validator
(validation patterns are reasoning templates, not an executing engine), not a replacement for
any book, not automatic PostgreSQL tuning. An agent knowledge layer. All examples are original
Seshat BI / retail examples on a fictional schema; no book text or datasets are reproduced
(`references/copyright-safety.md`).

Attribution

KemetraKemetra
View sourceSee grades on GitHubMore from Kemetra →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Rank Tracker

This skill helps you track, analyze, and report on keyword ranking positions over time. It monitors both traditional SERP rankings and AI/GEO visibility to provide comprehensive search performance insights.

1821 votes

Youtube Competitor Analyzer

Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...

31 votes

Xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the...

1798860 votes

Weather Fetcher

Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API

671710 votes

Weather

Get current weather and forecasts (no API key required).

486960 votes
View all in data →