Seshat-BI: Skill for Claude Code

.claude/skills/retail-govern/SKILL.md

retail-govern is a skill for Claude Code from Kemetra/Seshat-BI. It costs 129 tokens per session (4,420 once invoked), scanned A, original, Apache-2.0.

A skill for running and interpreting Seshat BI's governance checker. Seshat BI is a business-intelligence project using Power BI, DAX, TMDL, PBIR, and SQL; the checker reports rule violations in that work.

In plain words
What is it for?
Use it to validate Power BI or related BI files with seshat check, understand error and warning messages, and locate the appropriate fix.
Why use it?
It explains checker findings, maps rule IDs to the relevant files, and identifies where a violation should be fixed without changing the project automatically.

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-govern/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-govern

README.md
[![agentmods](https://agentmods.dev/badge/skills/kemetra/seshat-bi/retail-govern/github.svg)](https://agentmods.dev/skills/kemetra/seshat-bi/retail-govern)
Your own site
<a href="https://agentmods.dev/skills/kemetra/seshat-bi/retail-govern"><img src="https://agentmods.dev/badge/skills/kemetra/seshat-bi/retail-govern/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-govern

Your own site · 80×15
<a href="https://agentmods.dev/skills/kemetra/seshat-bi/retail-govern"><img src="https://agentmods.dev/badge/skills/kemetra/seshat-bi/retail-govern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,420 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.00129 $0.04420
Opus 5 $0.00064 $0.02210
Sonnet 5 $0.00026 $0.00884
Haiku 4.5 $0.00013 $0.00442

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

Security

Grade A, and why

retail-govern 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-govern/SKILL.md · 160 lines

How it starts

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

retail-govern

Seshat BI's conventions are enforced by a static checker, seshat check. This skill teaches you to run it, read its findings, and map each rule id to the file and fix it points at. The authoritative catalog is the glossary's "Static check rules" section, which mirrors the checker's live rule registry; the rules manifest is the machine-readable inventory. (An older 23-rule governance-layer design doc is a historical record, NOT the current count -- do not cite it for the catalog.)

Scope boundary (read this first)

This skill is invoke-and-interpret only. It does not orchestrate a Power BI build, does not call pbi-cli or Power BI Desktop, and does not auto-fix or self-heal violations. Those are deferred D-layer work (spec §9). Here you run the checker, explain a finding, and tell the user (or the powerbi-analyst agent) the single place to change — then stop.

Run the checker

From the repo root:

seshat check

It parses the committed TMDL / PBIR / SQL / git text — no Power BI Desktop, no pbi-cli, no network — and exits non-zero if any error-severity finding exists. warning and info findings are printed but do not fail the build. Severity is layer-aware (see the recorded severity-posture inventory for the observed per-rule posture), so treat that record — not a hardcoded list here — as the source of truth for which ids warn vs error. (G2 emits an info "no PBIP project present" when the repo has no model yet.)

Read a finding

Each finding carries four fields: rule_id, severity (error / warning / info), a one-line message, and a locator. The locator is the most specific pointer available — path:line for an in-file violation, otherwise a file path, git ref, or commit SHA (the git-metadata rules have no natural line number). Start at the locator; the rule id tells you which fix below applies.

Rule id → meaning → where to fix

This table covers all 82 registered rules. It is GENERATED from rule-fixes.yaml -- edit that file and run python scripts/export_rule_fix_table.py, never this table.

Read the full file on GitHub · 160 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 · 160 lines · 129 tokens per session scan A c632c3363406

Subscribe to this mod's changes

retail-govern is a skill published in the GitHub repository Kemetra/Seshat-BI (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 129 tokens to every session and 4,420 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.

Related

Other skills, from other repositories

ktx-analytics

Use when answering a question that needs data from a ktx-connected database - investigating, analyzing, "how many", "show me", "what's the breakdown of", finding records by value, exploring tables, comparing periods, explaining metrics, or any data-analysis request. Triggers even when the user does not say…

Kaelio/ktx · 86 tokens

metabase_ingest

Convert Metabase questions, models, and metrics into ktx Semantic Layer source definitions. Covers result-metadata to KSL column type mapping, FK/PK detection, near-duplicate deduplication, pre-aggregation decomposition, join-graph connectivity, and how to react to priorProvenance from earlier ingest syncs. Load when…

Kaelio/ktx · 90 tokens

sl_capture

How to capture new reusable patterns into ktx's semantic layer - when a measure, segment, or join belongs in the catalog and how to write it generically so it stays small and useful over time. Loaded by the post-turn memory-agent only. The research agent does not write to the SL.

Kaelio/ktx · 63 tokens

looker_ingest

Extract durable ktx knowledge and semantic-layer contribution proposals from staged Looker runtime dashboard, Look, and explore JSON. Load for WorkUnits whose raw files are under explores/, dashboards/, or looks/.

Kaelio/ktx · 44 tokens

metricflow_ingest

Map a MetricFlow semanticmodel or metric into ktx semantic layer sources. Covers the MetricFlow to ktx primitive table, extends: inheritance flattening, metric-type handling (simple / derived / ratio / cumulative / conversion), model: ref('x') resolution, and four worked examples. Load when the turn contains…

Kaelio/ktx · 0 tokens

lookml_ingest

Map a LookML view/model/explore into ktx semantic layer sources. Covers the LookML to ktx primitive table, provenance tagging, and three worked examples (overlay, standalone from derivedtable, standalone with sqlalwayswhere). Load when the turn contains .lkml content.

Kaelio/ktx · 63 tokens