Seshat-BI: Skill for Claude Code

.claude/skills/retail-build-warehouse/SKILL.md

retail-build-warehouse is a skill for Claude Code from Kemetra/Seshat-BI. It costs 113 tokens per session (2,747 once invoked), scanned A, original, Apache-2.0.

A procedure for writing the SQL migrations that turn an approved retail source mapping into silver and gold warehouse tables. Silver is cleaned and typed data; gold is business-ready data arranged for reporting.

In plain words
What is it for?
Use it to author reviewable silver and gold migration files for a mapped retail table, then pass them to the later validation and execution steps.
Why use it?
It provides the transformation SQL after a source mapping has been approved, while keeping execution separate for review and safety. It does not connect to the database or run the migration.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Kemetra/Seshat-BI's own configuration. It tells Claude Code how to work on Seshat-BI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Seshat-BI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Kemetra/Seshat-BI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kemetra/Seshat-BI/main/.claude/skills/retail-build-warehouse/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Kemetra/Seshat-BI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retail-build-warehouse

README.md
[![agentmods](https://agentmods.dev/badge/skills/kemetra/seshat-bi/retail-build-warehouse/github.svg)](https://agentmods.dev/skills/kemetra/seshat-bi/retail-build-warehouse)
Your own site
<a href="https://agentmods.dev/skills/kemetra/seshat-bi/retail-build-warehouse"><img src="https://agentmods.dev/badge/skills/kemetra/seshat-bi/retail-build-warehouse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retail-build-warehouse

Your own site · 80×15
<a href="https://agentmods.dev/skills/kemetra/seshat-bi/retail-build-warehouse"><img src="https://agentmods.dev/badge/skills/kemetra/seshat-bi/retail-build-warehouse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.02747
Opus 5 $0.00056 $0.01373
Sonnet 5 $0.00023 $0.00549
Haiku 4.5 $0.00011 $0.00275

Measured 11d ago against content hash 8a4bd554f36f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

retail-build-warehouse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/retail-build-warehouse/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

retail-build-warehouse

Turns an APPROVED mappings/<table>/source-map.yaml into the two migration .sql files -- silver (typed/cleaned flat table) then gold (Kimball star) -- in the order the medallion playbook proves load-bearing. It fills the silver/gold [SEAM] the retail-orchestrate conductor parks at.

The agent is the runtime: this is a procedure you follow, authoring SQL by adapting the proven warehouse/migrations/0003/0004 shape. There is NO codegen engine, NO .sql.tmpl template, and NO retail build CLI -- by design (the source-map cannot carry the transform logic; an engine would emit only boilerplate). That is a recorded design decision, not an omission to be fixed.

Author vs execute (read first)

  • You AUTHOR .sql files. That is in-scope -- writing reviewable migration text, no side effects, the same category as source-mapping authoring mappings/.
  • You NEVER execute. Do not open a DB connection, do not run the migration, do not run the Phase-5 PK dry-run or the Phase-6 orphan/reconcile checks -- those need live data and are the deferred DB-write seam (creds + the db extra, Principle VIII). Authoring -> static seshat check -> a HUMAN applies the SQL -> only then retail-validate. Never claim the silver/gold tables exist or were validated.

Preconditions (STOP unless all hold)

  1. Canonical gate signal: mappings/<table>/readiness-status.yaml -> stages.mapping_ready.status == pass WITH a matching approvals[] entry (RS1). Its human-readable mirror mappings/<table>/unresolved-questions.md Gate status: CLEARED (ZERO open rows) MUST agree. A missing readiness-status file, mapping_ready != pass, or a mismatch between the two -> STOP (Principle IV). Never self-grant.
  2. mappings/<table>/source-map.yaml parses and carries grain, primary_key, per column type/rename/drop/pii/gold_placement, the gold_star, derived_columns.
  3. Read assumptions.md (the business literals the YAML cannot hold: junk-filter list, CASE maps, is_return value set, sentinels, mojibake range) and source-profile.md (row counts to annotate, the date span for the calendar).
  4. Pick the next contiguous migration number NNNN over warehouse/migrations/ (S4a).
  5. Adapter checkpoint -- surface the choice before writing SQL by hand. Run seshat orchestration-assess and REPORT its verdict to the human before authoring migrations. This repo ships two transformation/orchestration adapters (dbt, Dagster); hand-written migrations are the default path, so without this step they get bypassed silently rather than declined on purpose (issue #489). The assessor is read-only: it emits a categorical verdict (consider / not_recommended / already_adopted), never a numeric score, and it never adopts anything. If it says already_adopted, prefer the adapter over new hand-written SQL. If it says consider, state that and let the human choose -- do NOT adopt an adapter on your own, and do NOT treat consider as permission to skip authoring. If it says not_recommended, proceed here and say so.

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 168 lines · 113 tokens per session scan A 8a4bd554f36f

Subscribe to this mod's changes

retail-build-warehouse is a skill published in the GitHub repository Kemetra/Seshat-BI (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 113 tokens to every session and 2,747 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.