[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JCK29Z2Y1EA79SXWV0TPN":3,"skill-same:01M77JCK29Z2Y1EA79SXWV0TPN":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M77JCK29Z2Y1EA79SXWV0TPN","retail-govern",null,"Run the Seshat BI governance checker and interpret its findings. Use when someone asks to check, validate, or gate Power BI \u002F DAX \u002F TMDL \u002F PBIR \u002F SQL work in the Seshat BI repo, when `seshat check` reports a rule violation, or when you need to know what a rule id (D8, C2, S2, G1, …) means and where to fix it. Invoke-and-interpret only: this skill does NOT build models, run pbi-cli, or auto-fix — it runs the checker and maps ids to fixes.","Kemetra\u002FSeshat-BI","Kemetra","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206601658?v=4","01M77J5APND9QAJK8XMBH5B1A8","01M77J5AR4TM1GN2G4GS5KH02J",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fretail-govern\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: retail-govern\ndescription: >-\n  Run the Seshat BI governance checker and interpret its findings. Use when\n  someone asks to check, validate, or gate Power BI \u002F DAX \u002F TMDL \u002F PBIR \u002F SQL\n  work in the Seshat BI repo, when `seshat check` reports a rule\n  violation, or when you need to know what a rule id (D8, C2, S2, G1, …) means\n  and where to fix it. Invoke-and-interpret only: this skill does NOT build\n  models, run pbi-cli, or auto-fix — it runs the checker and maps ids to fixes.\n---\n\n# retail-govern\n\nSeshat BI's conventions are enforced by a static checker, `seshat check`. This\nskill teaches you to **run it, read its findings, and map each rule id to the file\nand fix it points at**. The authoritative catalog is the glossary's \"Static check\nrules\" section, which mirrors the checker's live rule registry; the rules manifest\nis the machine-readable inventory. (An older 23-rule governance-layer design doc\nis a historical record, NOT the current count -- do not cite it for the catalog.)\n\n## Scope boundary (read this first)\n\nThis skill is **invoke-and-interpret only**. It does **not** orchestrate a Power BI\nbuild, does **not** call `pbi-cli` or Power BI Desktop, and does **not** auto-fix or\nself-heal violations. Those are deferred D-layer work (spec §9). Here you run the\nchecker, explain a finding, and tell the user (or the `powerbi-analyst` agent) the\nsingle place to change — then stop.\n\n## Run the checker\n\nFrom the repo root:\n\n```\nseshat check\n```\n\nIt parses the committed TMDL \u002F PBIR \u002F SQL \u002F git text — **no Power BI Desktop, no\n`pbi-cli`, no network** — and exits non-zero if any `error`-severity finding exists.\n`warning` and `info` findings are printed but do not fail the build. Severity is\nlayer-aware (see the recorded severity-posture inventory\nfor the observed per-rule posture), so treat that record — not a hardcoded list here —\nas the source of truth for which ids warn vs error. (`G2` emits an `info` \"no PBIP\nproject present\" when the repo has no model yet.)\n\n## Read a finding\n\nEach finding carries four fields: `rule_id`, `severity` (`error` \u002F `warning` \u002F\n`info`), a one-line `message`, and a `locator`. The locator is the **most specific**\npointer available — `path:line` for an in-file violation, otherwise a file path, git\nref, or commit SHA (the git-metadata rules have no natural line number). Start at the\nlocator; the rule id tells you which fix below applies.\n\n## Rule id → meaning → where to fix\n\n\u003C!-- SESHAT-RULE-FIX-TABLE START -->\nThis table covers all **82** registered rules. It is GENERATED from\n`rule-fixes.yaml` -- edit that file and run\n`python scripts\u002Fexport_rule_fix_table.py`, never this table.\n\n| Rule | Means | Where to fix |\n|------|-------|--------------|\n| `A1` | A route-registry target does not resolve and is not honestly marked planned | Fix the path or mark the route planned in the route registry (`routes.py`) |\n| `A3` | Knowledge-map route ids ↔ `routes.yaml` ids are not in bijection | Reconcile the two id sets (`routes_coverage.py`) |\n| `AD1` | A metric's additivity class is composed illegally with its lineage parents (or is absent\u002Fambiguous) | Set\u002Ffix the additivity class + lineage (`additivity_consistency.py`) |\n| `AL1` | A metric contract is `blocked` (+reasons) yet carries a SETTLED gold binding | Either resolve the assumption (unblock) or revert the binding to a placeholder (`assumptions.py`) |\n| `AL2` | Contracts on one gold table record contradictory decided ambiguity rulings | Reconcile the conflicting rulings across the contracts (`assumption_coherence.py`) |\n| `AP1` | visual-qa and dashboard-qa list the same anti-patterns with matching numbering and names | align the divergent anti-pattern name or number in `visual-qa.md` |\n| `AQ1` | A decision-question route dangles (Seeded but missing) or a Planned marker is stale | Fix the route target or its planned marker (`answerability_reconciler.py`) |\n| `B1` | Module-scope DB\u002Fnetwork import in the static core | Make the DB\u002Fnetwork import lazy (inside the function) (`never_execute.py`) |\n| `B3` | A live-surface module keeps a module-scope DB\u002Fnetwork import | Move the import lazy in the live-surface module (`live_surface_boundary.py`) |\n| `C1` | Connection-string literal in a source | Replace the server\u002Fdatabase arg with a parameter identifier (`git_meta.py`) |\n| `C2` | Committed secret \u002F connection context (`.env`, DSN, DO cluster slug) | Remove it, gitignore `.env`, rotate; move real values to `.env` (`git_meta.py`) |\n| `CB1` | a growth\u002Fcomparison metric contract declares a comparison baseline and a primary date field | add the baseline (e.g. SPLY) and date field to the contract in the `retail-kpi-knowledge` contracts set |\n| `CT1` | declared text\u002Fbackground colour pairs meet the declared WCAG contrast floor | adjust the `text.*` hex values or `accessibility.min_text_contrast_ratio` in `*-design-tokens.yaml` |\n| `CT2` | adjacent `colors.data_colors` entries clear the declared deltaE76 floor | adjust the adjacent hex values or `accessibility.min_adjacent_delta_e` in `*-design-tokens.yaml` |\n| `CT3` | every pair of `colors.data_colors` entries clears the declared whole-set deltaE76 floor | adjust the closest `data_colors` pair or `accessibility.min_categorical_deltae` in the tokens YAML |\n| `D1` | Measure not `PascalCase` | Rename the measure in its `.tmdl` (`dax.py`) |\n| `D2` | Measure missing `displayFolder` | Add a `displayFolder` to the measure block (`dax.py`) |\n| `D3` | Duplicated measure logic | Replace the inlined body with a `[Name]` reference (`dax.py`) |\n| `D4` | `\u002F` in a measure | Replace with `DIVIDE(num, den)` (`dax.py`) |\n| `D5` | Implicit aggregation (WARNING) | Set `summarizeBy: none` or annotate the exception (`dax.py`) |\n| `D6` | Bidirectional relationship | Set `crossFilteringBehavior: singleDirection`, or justify (`dax.py`) |\n| `D7` | Time-intelligence without a date-table marker | Mark a date table in the model (`dax.py`) |\n| `D8` | Model sources a non-`gold` schema | Repoint the partition\u002Fexpression `Schema=`\u002F`FROM` to `gold` (`dax.py`) |\n| `D9` | Hardcoded date literal in a measure | Anchor on the date table instead of a literal (`dax.py`) |\n| `D10` | `FILTER(ALL\u002FALLSELECTED\u002FALLEXCEPT(...))` full-table-scan anti-pattern | Rewrite without the full-table scan (`dax.py`) |\n| `D11` | Measure missing a `\u002F\u002F\u002F` doc comment | Add a `\u002F\u002F\u002F` doc comment above the measure (`dax.py`) |\n| `DF1` | A parked-on dependency edge contradicts tracked-file evidence | Fix the parked-on edge or the evidence (`parked_on.py`) |\n| `DL1` | Theme JSON is impure (carries more than styling defaults) | Strip non-default content from the theme file (surface 3) (`design_theme.py`) |\n| `DL2` | A page background spec carries dynamic\u002Fdata-bound content (not static structure) | Remove the dynamic content from the background spec (surface 2) (`design_background.py`) |\n| `DL3` | a theme's background and dataColors stay faithful to the design tokens they compile from | correct the drifted `background` or `dataColors[i]` in the `*.theme.json`, or its source tokens YAML |\n| `DL4` | a filled design-review evidence record carries every required field, non-placeholder | fill the missing or placeholder required field in that page's `design-review-evidence.md` |\n| `DL5` | a layout grid's column\u002Frow arithmetic closes against its canvas and margins | correct the canvas\u002Fmargin\u002Fgrid numbers or the stale `arithmetic_check` booleans in `design\u002Fgrids\u002F*.yaml` |\n| `DL6` | a visual-spec that self-attests an anti-pattern also records a blocking reason | add a real (non-placeholder) `readiness.blocking_reasons` entry to the `visual-spec.yaml` instance |\n| `DL7` | formatting-plan rows cite a real principle\u002Ftoken, use allowed statuses, and never self-ratify | fix the row's `principle_cited`\u002F`token_cited`\u002F`status`\u002F`ratified_by` in `formatting-plan.md` |\n| `DL8` | theme sentiment colours stay faithful to a human-declared `meta.sentiment_map` | correct the drifted theme sentiment value, or the `meta.sentiment_map` entry in the tokens YAML |\n| `DL9` | a filled Report Intent record carries every required field, non-placeholder | fill the missing field (audience, purpose, owner, evidence) in `report-intent.yaml`, creating the file if absent |\n| `DL10` | A page-section name is declared on one design surface but not the others, or a filled blueprint uses a section outside the declared vocabulary | Align the section keys across `design\u002Fgrids\u002F16x9-grid.yaml`, `mobile-grid.yaml` and `templates\u002Fdashboard-page-blueprint.yaml`, or fix the offending `section:` value in the filled blueprint (`design_section_vocabulary.py`) |\n| `DL11` | A design `grid_ref`\u002F`theme_ref` names a file that does not exist, or a `value_typography_ref` dotted path resolves in no token file | Point the `*_ref` at a committed target, or set it to `none` if there deliberately is not one (`design_ref_resolution.py`) |\n| `DR1` | no tracked file sits under a known-bad path prefix and no known-stale prose phrase survives | delete the file under the flagged prefix, or remove the phrase named in `design-stale-phrases.yaml` |\n| `DS1` | Decision Store records carry a valid id\u002Fstatus\u002Fdecision_type\u002Fscope and leak no PII or secrets | fix the malformed field or mask the PII\u002Fsecret value in `.seshat\u002Fsemantic-decisions.yaml` |\n| `DS2` | an approved decision's approval block is complete, named-human-shaped, and evidence-identified | fill the missing `approved_by`\u002F`evidence_identity` in `.seshat\u002Fsemantic-decisions.yaml` |\n| `DS3` | a decision batch excludes critical types and records valid members, evidence, and confirmation | fix the batch's `members`\u002F`excluded`\u002F`evidence`\u002F`confirmed_by` in the decision store |\n| `DS4` | supersession references resolve and no two active decisions conflict on the same scope | fix the dangling `supersedes`\u002F`superseded_by` id, or resolve the scope conflict, in the decision store |\n| `DS5` | every approved decision carries non-empty evidence before a pass verdict can rest on it | add `approval.evidence` to the approved decision record in `.seshat\u002Fsemantic-decisions.yaml` |\n| `G1` | `.gitignore` missing a required entry | Add `**\u002F.pbi\u002FlocalSettings.json`, `**\u002F.pbi\u002Fcache.abf`, `.env`; never ignore `definition\u002F` (`git_meta.py`) |\n| `G2` | A `definition\u002F` artifact is untracked, or a cache file is tracked | `git add` the definition; stop tracking `.pbi\u002FlocalSettings.json` \u002F `cache.abf` (`git_meta.py`) |\n| `G3` | UTF-8 BOM in a committed text file | Re-save as UTF-8 without BOM (`git_meta.py`) |\n| `G4` | `.gitattributes` EOL entry missing | Add the glob→eol mapping (TMDL\u002FPBIR\u002FJSON=CRLF; SQL\u002FMD\u002FPY=LF) (`git_meta.py`) |\n| `G5` | Repo-relative path > 200 chars | Shorten the PBIP project\u002Ftable name (`git_meta.py`) |\n| `G6` | Real host\u002Fvalue in a committed PBIP parameter | Replace with a `\u003Cplaceholder>`; real value comes from `.env` at refresh (`g6.py`) |\n| `HR1` | a dimension shared by two or more gold stars is declared conformed or distinct, and matches | declare the dimension's status in `conformed-dimension-map.yaml`, creating the file if absent |\n| `HR4` | when `meta.freshness` is present, its `expected_cadence` and `max_staleness` are well-formed | fix or add `meta.freshness.expected_cadence`\u002F`max_staleness` in the table's `source-map.yaml` |\n| `HR5` | an A10-flagged metric contract declares a valid `time_additivity` value | set `time_additivity` to fully\u002Fsemi\u002Fnon (never fully when A10-flagged) in the metric contract |\n| `HR6` | each RLS role contract's filter binds to a real column on a committed gold dimension | fix `filter.gold_table`\u002F`filter.column` in `mappings\u002F\u003Ctable>\u002Froles\u002F\u003Cfile>.yaml` to name a real `dim_*` column |\n| `HR7` | a non-full-rebuild gold load (append\u002Fupsert\u002Fpartial delete) declares its reload\u002Fdedup key | add `ON CONFLICT`, a `-- reload-strategy: \u003Ckey>` header, or an entry in the warehouse load policy, creating the file if absent |\n| `HR8` | `dim_date`'s generate_series uses a one-day step and non-reversed literal bounds | use `INTERVAL '1 day'` and correct the start\u002Fend order in the `dim_date` INSERT |\n| `HR9` | every column\u002Fmeasure reference in contracts, TMDL DAX, and dashboard bindings resolves | rename the orphaned reference to match a real TMDL column\u002Fmeasure, or fix the stale `visual-contract-binding-map.md` |\n| `HR11` | a metric's two or more bound columns share the same declared unit and currency | align the mismatched `columns[].unit`\u002F`currency` values in the table's `source-map.yaml` |\n| `HR12` | when present, `source-data-contract.yaml` has a filled schema, arrival cadence, restatement policy | fill `schema`\u002F`arrival.cadence`\u002F`restatement.policy` in `mappings\u002F\u003Ctable>\u002Fsource-data-contract.yaml` |\n| `HR13` | every `columns[].gold_placement` `dim:` prefix resolves to a dimension the map itself declares | fix the `dim:` prefix or dimension name in `columns[].gold_placement` in the source-map |\n| `KP1` | a metric contract opting into provenance fields keeps them well-formed and resolvable | fix `generic_kpi_ref`\u002F`custom`\u002F`decision_refs`\u002F`source_evidence` in the metric contract |\n| `KR1` | generic KPI registry entries are well-formed, unique, and free of client or physical-layer leakage | fix the entry, or remove the leaked token, in the `retail-kpi-knowledge` registry |\n| `P1` | PBIP outside `powerbi\u002F`, or SQL outside `warehouse\u002F` | Move the file to the right folder (`git_meta.py`) |\n| `P2` | Commit subject off-convention | Reword to `^(feat\\ |\n| `PP1` | A required handoff-pack section is unfilled (incl. the publish-approval slot) | Fill the section in the handoff pack (never self-grant the approval) (`publish_pack.py`) |\n| `R1` | Report model reference is absolute \u002F `byConnection` | Make `datasetReference.byPath.path` relative in `definition.pbir` (`pbir.py`) |\n| `R2` | a PBIR `report.json` is valid JSON, keeps its `$schema`, resolves BaseTheme refs, defines no logic | remove the business-logic key, or fix the BaseTheme path, in the report's `definition\u002Freport.json` |\n| `RS1` | A readiness-status file is internally inconsistent (status\u002Fevidence\u002Fblockers\u002Fapprovals\u002Fcurrent-stage disagree) | Fix the offending field in `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` (`readiness_status.py`) |\n| `S1` | Non-snake_case SQL identifier | Rename the identifier in `warehouse\u002F**\u002F*.sql` (`sql.py`) |\n| `S2` | Stale `raw`\u002F`marts` schema token (only in schema position) | Rename the schema to `bronze`\u002F`silver`\u002F`gold` (`sql.py`) |\n| `S3` | View missing `vw_` prefix | Rename the `CREATE VIEW` object (`sql.py`) |\n| `S4a` | Migration filename \u002F numbering broken | Rename to `^\\d{4}_.+\\.sql$`; contiguous + unique (`sql.py`) |\n| `S4b` | Bare `CREATE`\u002F`ALTER` (layer-aware WARNING) | Use a guarded form (`IF NOT EXISTS`, `CREATE OR REPLACE VIEW`) (`sql.py`) |\n| `S5` | Type discipline (RC7): money\u002Fqty not exact NUMERIC, or leading-zero id not TEXT | Fix the cast\u002Ftype in the silver SQL (`sql.py`) |\n| `S6` | Gold dim missing its `-1` unknown member (RC14) | Add the `-1` unknown member + FK COALESCE in the gold dim (`sql_gold_members.py`) |\n| `S7` | Date dim not a contiguous `generate_series` calendar (RC15) | Build the date dim as a contiguous generated calendar (`sql.py`) |\n| `S8` | A marked date table carries a `-1`\u002FNULL member | Remove the sentinel member from the date dim (`sql_gold_members.py`) |\n| `S9` | A junk filter targeting `''` runs after nulling, so it is dead and the junk rows survive | Move the junk-row filter ahead of the `''`->NULL conversion (`sql.py`) |\n| `SC1` | A prose status claim (planned\u002Fbuilt) contradicts tracked-file evidence | Correct the stale prose claim (`status_claims.py`) |\n| `SC2` | A prose \"N rules\" count claim disagrees with the authoritative count | Update the count + the `rule-count-claims.yaml` anchor together (`rule_count_claims.py`) |\n| `SF1` | same-basename checklists shared across skills are declared shared\u002Fdistinct and shared copies match | declare or fix the basename's shared\u002Fdistinct status in `shared-spine.yaml`, creating the file if absent |\n| `SL1` | A coverage scorecard is malformed (bad status enum \u002F unnamed blocker \u002F a percentage) | Fix the scorecard structure (`scorecard.py`) |\n\u003C!-- SESHAT-RULE-FIX-TABLE END -->\n\n## What to do after interpreting\n\nReport the failing ids, their locators, and the one fix each needs. Hand DAX\u002FPBIP\nfixes to the `powerbi-analyst` agent; SQL fixes belong in `warehouse\u002F`. Then **stop** —\nre-running `seshat check` to confirm green is the user's (or agent's) next call, not an\nautomated loop this skill performs.\n\n## Orchestration\n\nWhen a table is being driven end-to-end, the `retail-orchestrate` conductor skill\nsequences this verb with the others and runs the self-heal loop against the gate\nexit code. This skill stays single-purpose: it does its job and STOPS. The loop\n(run gate -> classify findings -> auto-fix mechanical \u002F HARD-STOP judgment calls ->\nre-run) lives ONLY in `retail-orchestrate`, never here.\n","# retail-govern\n\nSeshat BI's conventions are enforced by a static checker, `seshat check`. This\nskill teaches you to **run it, read its findings, and map each rule id to the file\nand fix it points at**. The authoritative catalog is the glossary's \"Static check\nrules\" section, which mirrors the checker's live rule registry; the rules manifest\nis the machine-readable inventory. (An older 23-rule governance-layer design doc\nis a historical record, NOT the current count -- do not cite it for the catalog.)\n\n## Scope boundary (read this first)\n\nThis skill is **invoke-and-interpret only**. It does **not** orchestrate a Power BI\nbuild, does **not** call `pbi-cli` or Power BI Desktop, and does **not** auto-fix or\nself-heal violations. Those are deferred D-layer work (spec §9). Here you run the\nchecker, explain a finding, and tell the user (or the `powerbi-analyst` agent) the\nsingle place to change — then stop.\n\n## Run the checker\n\nFrom the repo root:\n\n```\nseshat check\n```\n\nIt parses the committed TMDL \u002F PBIR \u002F SQL \u002F git text — **no Power BI Desktop, no\n`pbi-cli`, no network** — and exits non-zero if any `error`-severity finding exists.\n`warning` and `info` findings are printed but do not fail the build. Severity is\nlayer-aware (see the recorded severity-posture inventory\nfor the observed per-rule posture), so treat that record — not a hardcoded list here —\nas the source of truth for which ids warn vs error. (`G2` emits an `info` \"no PBIP\nproject present\" when the repo has no model yet.)\n\n## Read a finding\n\nEach finding carries four fields: `rule_id`, `severity` (`error` \u002F `warning` \u002F\n`info`), a one-line `message`, and a `locator`. The locator is the **most specific**\npointer available — `path:line` for an in-file violation, otherwise a file path, git\nref, or commit SHA (the git-metadata rules have no natural line number). Start at the\nlocator; the rule id tells you which fix below applies.\n\n## Rule id → meaning → where to fix\n\n\u003C!-- SESHAT-RULE-FIX-TABLE START -->\nThis table covers all **82** registered rules. It is GENERATED from\n`rule-fixes.yaml` -- edit that file and run\n`python scripts\u002Fexport_rule_fix_table.py`, never this table.\n\n| Rule | Means | Where to fix |\n|------|-------|--------------|\n| `A1` | A route-registry target does not resolve and is not honestly marked planned | Fix the path or mark the route planned in the route registry (`routes.py`) |\n| `A3` | Knowledge-map route ids ↔ `routes.yaml` ids are not in bijection | Reconcile the two id sets (`routes_coverage.py`) |\n| `AD1` | A metric's additivity class is composed illegally with its lineage parents (or is absent\u002Fambiguous) | Set\u002Ffix the additivity class + lineage (`additivity_consistency.py`) |\n| `AL1` | A metric contract is `blocked` (+reasons) yet carries a SETTLED gold binding | Either resolve the assumption (unblock) or revert the binding to a placeholder (`assumptions.py`) |\n| `AL2` | Contracts on one gold table record contradictory decided ambiguity rulings | Reconcile the conflicting rulings across the contracts (`assumption_coherence.py`) |\n| `AP1` | visual-qa and dashboard-qa list the same anti-patterns with matching numbering and names | align the divergent anti-pattern name or number in `visual-qa.md` |\n| `AQ1` | A decision-question route dangles (Seeded but missing) or a Planned marker is stale | Fix the route target or its planned marker (`answerability_reconciler.py`) |\n| `B1` | Module-scope DB\u002Fnetwork import in the static core | Make the DB\u002Fnetwork import lazy (inside the function) (`never_execute.py`) |\n| `B3` | A live-surface module keeps a module-scope DB\u002Fnetwork import | Move the import lazy in the live-surface module (`live_surface_boundary.py`) |\n| `C1` | Connection-string literal in a source | Replace the server\u002Fdatabase arg with a parameter identifier (`git_meta.py`) |\n| `C2` | Committed secret \u002F connection context (`.env`, DSN, DO cluster slug) | Remove it, gitignore `.env`, rotate; move real values to `.env` (`git_meta.py`) |\n| `CB1` | a growth\u002Fcomparison metric contract declares a comparison baseline and a primary date field | add the baseline (e.g. SPLY) and date field to the contract in the `retail-kpi-knowledge` contracts set |\n| `CT1` | declared text\u002Fbackground colour pairs meet the declared WCAG contrast floor | adjust the `text.*` hex values or `accessibility.min_text_contrast_ratio` in `*-design-tokens.yaml` |\n| `CT2` | adjacent `colors.data_colors` entries clear the declared deltaE76 floor | adjust the adjacent hex values or `accessibility.min_adjacent_delta_e` in `*-design-tokens.yaml` |\n| `CT3` | every pair of `colors.data_colors` entries clears the declared whole-set deltaE76 floor | adjust the closest `data_colors` pair or `accessibility.min_categorical_deltae` in the tokens YAML |\n| `D1` | Measure not `PascalCase` | Rename the measure in its `.tmdl` (`dax.py`) |\n| `D2` | Measure missing `displayFolder` | Add a `displayFolder` to the measure block (`dax.py`) |\n| `D3` | Duplicated measure logic | Replace the inlined body with a `[Name]` reference (`dax.py`) |\n| `D4` | `\u002F` in a measure | Replace with `DIVIDE(num, den)` (`dax.py`) |\n| `D5` | Implicit aggregation (WARNING) | Set `summarizeBy: none` or annotate the exception (`dax.py`) |\n| `D6` | Bidirectional relationship | Set `crossFilteringBehavior: singleDirection`, or justify (`dax.py`) |\n| `D7` | Time-intelligence without a date-table marker | Mark a date table in the model (`dax.py`) |\n| `D8` | Model sources a non-`gold` schema | Repoint the partition\u002Fexpression `Schema=`\u002F`FROM` to `gold` (`dax.py`) |\n| `D9` | Hardcoded date literal in a measure | Anchor on the date table instead of a literal (`dax.py`) |\n| `D10` | `FILTER(ALL\u002FALLSELECTED\u002FALLEXCEPT(...))` full-table-scan anti-pattern | Rewrite without the full-table scan (`dax.py`) |\n| `D11` | Measure missing a `\u002F\u002F\u002F` doc comment | Add a `\u002F\u002F\u002F` doc comment above the measure (`dax.py`) |\n| `DF1` | A parked-on dependency edge contradicts tracked-file evidence | Fix the parked-on edge or the evidence (`parked_on.py`) |\n| `DL1` | Theme JSON is impure (carries more than styling defaults) | Strip non-default content from the theme file (surface 3) (`design_theme.py`) |\n| `DL2` | A page background spec carries dynamic\u002Fdata-bound content (not static structure) | Remove the dynamic content from the background spec (surface 2) (`design_background.py`) |\n| `DL3` | a theme's background and dataColors stay faithful to the design tokens they compile from | correct the drifted `background` or `dataColors[i]` in the `*.theme.json`, or its source tokens YAML |\n| `DL4` | a filled design-review evidence record carries every required field, non-placeholder | fill the missing or placeholder required field in that page's `design-review-evidence.md` |\n| `DL5` | a layout grid's column\u002Frow arithmetic closes against its canvas and margins | correct the canvas\u002Fmargin\u002Fgrid numbers or the stale `arithmetic_check` booleans in `design\u002Fgrids\u002F*.yaml` |\n| `DL6` | a visual-spec that self-attests an anti-pattern also records a blocking reason | add a real (non-placeholder) `readiness.blocking_reasons` entry to the `visual-spec.yaml` instance |\n| `DL7` | formatting-plan rows cite a real principle\u002Ftoken, use allowed statuses, and never self-ratify | fix the row's `principle_cited`\u002F`token_cited`\u002F`status`\u002F`ratified_by` in `formatting-plan.md` |\n| `DL8` | theme sentiment colours stay faithful to a human-declared `meta.sentiment_map` | correct the drifted theme sentiment value, or the `meta.sentiment_map` entry in the tokens YAML |\n| `DL9` | a filled Report Intent record carries every required field, non-placeholder | fill the missing field (audience, purpose, owner, evidence) in `report-intent.yaml`, creating the file if absent |\n| `DL10` | A page-section name is declared on one design surface but not the others, or a filled blueprint uses a section outside the declared vocabulary | Align the section keys across `design\u002Fgrids\u002F16x9-grid.yaml`, `mobile-grid.yaml` and `templates\u002Fdashboard-page-blueprint.yaml`, or fix the offending `section:` value in the filled blueprint (`design_section_vocabulary.py`) |\n| `DL11` | A design `grid_ref`\u002F`theme_ref` names a file that does not exist, or a `value_typography_ref` dotted path resolves in no token file | Point the `*_ref` at a committed target, or set it to `none` if there deliberately is not one (`design_ref_resolution.py`) |\n| `DR1` | no tracked file sits under a known-bad path prefix and no known-stale prose phrase survives | delete the file under the flagged prefix, or remove the phrase named in `design-stale-phrases.yaml` |\n| `DS1` | Decision Store records carry a valid id\u002Fstatus\u002Fdecision_type\u002Fscope and leak no PII or secrets | fix the malformed field or mask the PII\u002Fsecret value in `.seshat\u002Fsemantic-decisions.yaml` |\n| `DS2` | an approved decision's approval block is complete, named-human-shaped, and evidence-identified | fill the missing `approved_by`\u002F`evidence_identity` in `.seshat\u002Fsemantic-decisions.yaml` |\n| `DS3` | a decision batch excludes critical types and records valid members, evidence, and confirmation | fix the batch's `members`\u002F`excluded`\u002F`evidence`\u002F`confirmed_by` in the decision store |\n| `DS4` | supersession references resolve and no two active decisions conflict on the same scope | fix the dangling `supersedes`\u002F`superseded_by` id, or resolve the scope conflict, in the decision store |\n| `DS5` | every approved decision carries non-empty evidence before a pass verdict can rest on it | add `approval.evidence` to the approved decision record in `.seshat\u002Fsemantic-decisions.yaml` |\n| `G1` | `.gitignore` missing a required entry | Add `**\u002F.pbi\u002FlocalSettings.json`, `**\u002F.pbi\u002Fcache.abf`, `.env`; never ignore `definition\u002F` (`git_meta.py`) |\n| `G2` | A `definition\u002F` artifact is untracked, or a cache file is tracked | `git add` the definition; stop tracking `.pbi\u002FlocalSettings.json` \u002F `cache.abf` (`git_meta.py`) |\n| `G3` | UTF-8 BOM in a committed text file | Re-save as UTF-8 without BOM (`git_meta.py`) |\n| `G4` | `.gitattributes` EOL entry missing | Add the glob→eol mapping (TMDL\u002FPBIR\u002FJSON=CRLF; SQL\u002FMD\u002FPY=LF) (`git_meta.py`) |\n| `G5` | Repo-relative path > 200 chars | Shorten the PBIP project\u002Ftable name (`git_meta.py`) |\n| `G6` | Real host\u002Fvalue in a committed PBIP parameter | Replace with a `\u003Cplaceholder>`; real value comes from `.env` at refresh (`g6.py`) |\n| `HR1` | a dimension shared by two or more gold stars is declared conformed or distinct, and matches | declare the dimension's status in `conformed-dimension-map.yaml`, creating the file if absent |\n| `HR4` | when `meta.freshness` is present, its `expected_cadence` and `max_staleness` are well-formed | fix or add `meta.freshness.expected_cadence`\u002F`max_staleness` in the table's `source-map.yaml` |\n| `HR5` | an A10-flagged metric contract declares a valid `time_additivity` value | set `time_additivity` to fully\u002Fsemi\u002Fnon (never fully when A10-flagged) in the metric contract |\n| `HR6` | each RLS role contract's filter binds to a real column on a committed gold dimension | fix `filter.gold_table`\u002F`filter.column` in `mappings\u002F\u003Ctable>\u002Froles\u002F\u003Cfile>.yaml` to name a real `dim_*` column |\n| `HR7` | a non-full-rebuild gold load (append\u002Fupsert\u002Fpartial delete) declares its reload\u002Fdedup key | add `ON CONFLICT`, a `-- reload-strategy: \u003Ckey>` header, or an entry in the warehouse load policy, creating the file if absent |\n| `HR8` | `dim_date`'s generate_series uses a one-day step and non-reversed literal bounds | use `INTERVAL '1 day'` and correct the start\u002Fend order in the `dim_date` INSERT |\n| `HR9` | every column\u002Fmeasure reference in contracts, TMDL DAX, and dashboard bindings resolves | rename the orphaned reference to match a real TMDL column\u002Fmeasure, or fix the stale `visual-contract-binding-map.md` |\n| `HR11` | a metric's two or more bound columns share the same declared unit and currency | align the mismatched `columns[].unit`\u002F`currency` values in the table's `source-map.yaml` |\n| `HR12` | when present, `source-data-contract.yaml` has a filled schema, arrival cadence, restatement policy | fill `schema`\u002F`arrival.cadence`\u002F`restatement.policy` in `mappings\u002F\u003Ctable>\u002Fsource-data-contract.yaml` |\n| `HR13` | every `columns[].gold_placement` `dim:` prefix resolves to a dimension the map itself declares | fix the `dim:` prefix or dimension name in `columns[].gold_placement` in the source-map |\n| `KP1` | a metric contract opting into provenance fields keeps them well-formed and resolvable | fix `generic_kpi_ref`\u002F`custom`\u002F`decision_refs`\u002F`source_evidence` in the metric contract |\n| `KR1` | generic KPI registry entries are well-formed, unique, and free of client or physical-layer leakage | fix the entry, or remove the leaked token, in the `retail-kpi-knowledge` registry |\n| `P1` | PBIP outside `powerbi\u002F`, or SQL outside `warehouse\u002F` | Move the file to the right folder (`git_meta.py`) |\n| `P2` | Commit subject off-convention | Reword to `^(feat\\ |\n| `PP1` | A required handoff-pack section is unfilled (incl. the publish-approval slot) | Fill the section in the handoff pack (never self-grant the approval) (`publish_pack.py`) |\n| `R1` | Report model reference is absolute \u002F `byConnection` | Make `datasetReference.byPath.path` relative in `definition.pbir` (`pbir.py`) |\n| `R2` | a PBIR `report.json` is valid JSON, keeps its `$schema`, resolves BaseTheme refs, defines no logic | remove the business-logic key, or fix the BaseTheme path, in the report's `definition\u002Freport.json` |\n| `RS1` | A readiness-status file is internally inconsistent (status\u002Fevidence\u002Fblockers\u002Fapprovals\u002Fcurrent-stage disagree) | Fix the offending field in `mappings\u002F\u003Ctable>\u002Freadiness-status.yaml` (`readiness_status.py`) |\n| `S1` | Non-snake_case SQL identifier | Rename the identifier in `warehouse\u002F**\u002F*.sql` (`sql.py`) |\n| `S2` | Stale `raw`\u002F`marts` schema token (only in schema position) | Rename the schema to `bronze`\u002F`silver`\u002F`gold` (`sql.py`) |\n| `S3` | View missing `vw_` prefix | Rename the `CREATE VIEW` object (`sql.py`) |\n| `S4a` | Migration filename \u002F numbering broken | Rename to `^\\d{4}_.+\\.sql$`; contiguous + unique (`sql.py`) |\n| `S4b` | Bare `CREATE`\u002F`ALTER` (layer-aware WARNING) | Use a guarded form (`IF NOT EXISTS`, `CREATE OR REPLACE VIEW`) (`sql.py`) |\n| `S5` | Type discipline (RC7): money\u002Fqty not exact NUMERIC, or leading-zero id not TEXT | Fix the cast\u002Ftype in the silver SQL (`sql.py`) |\n| `S6` | Gold dim missing its `-1` unknown member (RC14) | Add the `-1` unknown member + FK COALESCE in the gold dim (`sql_gold_members.py`) |\n| `S7` | Date dim not a contiguous `generate_series` calendar (RC15) | Build the date dim as a contiguous generated calendar (`sql.py`) |\n| `S8` | A marked date table carries a `-1`\u002FNULL member | Remove the sentinel member from the date dim (`sql_gold_members.py`) |\n| `S9` | A junk filter targeting `''` runs after nulling, so it is dead and the junk rows survive | Move the junk-row filter ahead of the `''`->NULL conversion (`sql.py`) |\n| `SC1` | A prose status claim (planned\u002Fbuilt) contradicts tracked-file evidence | Correct the stale prose claim (`status_claims.py`) |\n| `SC2` | A prose \"N rules\" count claim disagrees with the authoritative count | Update the count + the `rule-count-claims.yaml` anchor together (`rule_count_claims.py`) |\n| `SF1` | same-basename checklists shared across skills are declared shared\u002Fdistinct and shared copies match | declare or fix the basename's shared\u002Fdistinct status in `shared-spine.yaml`, creating the file if absent |\n| `SL1` | A coverage scorecard is malformed (bad status enum \u002F unnamed blocker \u002F a percentage) | Fix the scorecard structure (`scorecard.py`) |\n\u003C!-- SESHAT-RULE-FIX-TABLE END -->\n\n## What to do after interpreting\n\nReport the failing ids, their locators, and the one fix each needs. Hand DAX\u002FPBIP\nfixes to the `powerbi-analyst` agent; SQL fixes belong in `warehouse\u002F`. Then **stop** —\nre-running `seshat check` to confirm green is the user's (or agent's) next call, not an\nautomated loop this skill performs.\n\n## Orchestration\n\nWhen a table is being driven end-to-end, the `retail-orchestrate` conductor skill\nsequences this verb with the others and runs the self-heal loop against the gate\nexit code. This skill stays single-purpose: it does its job and STOPS. The loop\n(run gate -> classify findings -> auto-fix mechanical \u002F HARD-STOP judgment calls ->\nre-run) lives ONLY in `retail-orchestrate`, never here.\n",{"name":5,"description":7},"main","6266e304556a72b75d951b9433fd833481c61233",".claude\u002Fskills\u002Fretail-govern",0,"https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI","https:\u002F\u002Fpypi.org\u002Fproject\u002Fseshat-bi\u002F","https:\u002F\u002Fgithub.com\u002FKemetra","2026-11-11 21:44:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Kemetra\u002FSeshat-BI --skill retail-govern",{"tool":37,"command":38},"bunx","bunx skills add Kemetra\u002FSeshat-BI --skill retail-govern",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Kemetra\u002FSeshat-BI --skill retail-govern","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fretail-govern\u002FSKILL.md",true,[],[46,53,58,64,69,76],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M77JWCTJ88JWPDD25WZ2NEY8","fake-skill","A fixture skill with declaring frontmatter, used as positive shipped evidence.","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Funlisted\u002F.claude\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":54,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M77JWA0BTG4JB2HR52Q99216","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Forphan\u002F.claude\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M77JW6VE59XEFHWBTNDYAS2Q","bare-skill-no-frontmatter","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Forphan\u002F.claude\u002Fskills\u002Fbare-skill-no-frontmatter\u002FSKILL.md",[],[],{"skillNo":65,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M77JW4TD1FNFSBNP5C0WXAA5","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Ftests\u002Funit\u002Ffixtures\u002Fcapability_inventory\u002Fgood\u002F.claude\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M77JVWCVE3WZ82ZNFCSFVDCP","retail-kpi-knowledge","Retail KPI \u002F metric-contract reasoning layer for BI agents in the Seshat BI project. Use when an agent must reason about the BUSINESS MEANING of a retail KPI before any implementation — defining a KPI in business terms, classifying additivity (fully\u002Fsemi\u002Fnon-additive), identifying grain, listing required source fields, resolving ambiguity (gross vs net, VAT, returns, cost method, same-store), choosing an MVP KPI pack, reviewing a metric contract for completeness, or preparing a clean handoff to an implementation layer. Also use it to classify KPI sufficiency or prepare an owner policy decision packet. This is a meaning\u002Fdefinition + review layer, not an executor: it does not write DAX\u002FSQL\u002FPython, grant readiness, approve policy, or design dashboards. See INDEX.md for live\u002Fplanned routes; registry.yaml is the authoritative machine-readable inventory.","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Fskills\u002Fretail-kpi-knowledge\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M77JVNDM1NGYGSCPTBW9ZCF5","bi-sql-knowledge","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\u002FNULL semantics, deduplication, validation queries, reconciliation queries, silver\u002Fgold transformation logic, window\u002Fdate-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\u002FDagster project, or automatic tuning service.","https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Fskills\u002Fbi-sql-knowledge\u002FSKILL.md",[],[]]