[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JP7FEBHXB0ERAXK38RQGK":3,"skill-same:01M77JP7FEBHXB0ERAXK38RQGK":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},"01M77JP7FEBHXB0ERAXK38RQGK","source-mapping",null,"Drive a raw retail source table through the source-mapping gate before any silver SQL exists. Use when someone asks to map, model, profile, or onboard a new bronze table toward Power BI in the Seshat BI repo -- profile the source, decide grain\u002FPK, fill the five mapping artifacts into mappings\u002F\u003Ctable>\u002F, and stop at the gate. This skill ENFORCES the rule that no silver.* SQL is written until the map is reviewed and approved. It profiles and authors and stops; it does NOT write silver\u002Fgold SQL and does NOT build the Power BI model.","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\u002Fintegrations\u002Fclaude-code\u002Fseshat-bi\u002Fskills\u002Fsource-mapping\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: source-mapping\ndescription: >-\n  Drive a raw retail source table through the source-mapping gate before any\n  silver SQL exists. Use when someone asks to map, model, profile, or onboard a\n  new bronze table toward Power BI in the Seshat BI repo -- profile\n  the source, decide grain\u002FPK, fill the five mapping artifacts into\n  mappings\u002F\u003Ctable>\u002F, and stop at the gate. This skill ENFORCES the rule that no\n  silver.* SQL is written until the map is reviewed and approved. It profiles and\n  authors and stops; it does NOT write silver\u002Fgold SQL and does NOT build the\n  Power BI model.\n---\n\n# source-mapping\n\nThe source-mapping gate is the kit's one load-bearing rule (constitution\nPrinciple IV): **before any `silver.*` SQL is written, the source MUST be\nprofiled and mapped into committed, reviewed artifacts.** This skill runs that\ngate: profile -> author the five artifacts -> stop at judgment calls -> hard-stop\nbefore silver. It formalizes Phases 1-4 of the medallion playbook; the\nplaybook stays authoritative on HOW to decide, the templates on WHAT to record.\n\n## Scope boundary (read first)\n\nThis skill profiles a source and authors the mapping artifacts, then STOPS. It\ndoes NOT write `silver.*` or `gold.*` SQL, does NOT call pbi-cli or Power BI\nDesktop, and does NOT decide the judgment calls Principle V reserves for a human.\nSilver is downstream of an APPROVED map -- approval is the reviewer's action, not\nthis skill's.\n\n## The five artifacts (write the blanks with `seshat scaffold-source \u003Ctable>`)\n\nRun `seshat scaffold-source \u003Ctable>` to materialize the canonical blanks into\n`mappings\u002F\u003Ctable>\u002F`. Do NOT hand-author these files, and do NOT copy from a\n`templates\u002F` path: `templates\u002F` exists only in the Seshat development repo, so\nthat instruction fails for anyone who installed the kit as a tool -- and a\nhand-written `source-map.yaml` silently misses the canonical shape that\n`seshat validate` and the gold stages require (issue #488). The scaffolder ships\ninside the package and never overwrites an existing file.\n\nPer ADR 0003 (mapping-artifact location), a\ntable's filled set lives in `mappings\u002F\u003Ctable>\u002F`:\n\n1. `source-profile.md` -- Phase 1 numbers (this skill fills the mechanical ones).\n2. `source-map.yaml` -- the machine-readable spine (grain+PK first, per-column\n   keep\u002Fdrop\u002Frename\u002Ftype\u002FPII\u002Fgold-placement, the gold star, derived columns).\n3. `assumptions.md` -- which RC1-RC16 defaults were ADOPTED vs DEVIATED (each\n   deviation cites its triggering data fact).\n4. `unresolved-questions.md` -- the build-blocking judgment calls + who answers.\n5. `reconciliation-report.md` -- the blank the later live run fills (RC16).\n\n## Cleaning chain (canonical order -- the HYBRID walk)\n\nA fixed, dependency-ordered chain. The shape is **hybrid**: order-sensitive steps run as\nGLOBAL passes, intra-column steps run PER-SURVIVOR (each kept column resolved in one\nbundle), cross-row steps run as a GLOBAL tail. The agent recommends a default at every\nstep; the human decides (Principle V). NONE advance to silver -- the gate (D) is the stop.\n\n**Per-step loop:** present the step (purpose + default + its behavior on the table) ->\nhuman chooses keep \u002F enhance \u002F change the STEP -> apply -> next. The walk both cleans the\ntable AND lets the pipeline itself be refined.\n\n**A. GLOBAL-FIRST (decide across ALL columns):**\n1. **Keep \u002F Drop** (Phase 2.1 \u002F RC3) -- FIRST. One global pass over the inventory.\n2. **Grain & PK** (Phase 2.0 \u002F RC1, RC2) -- VALIDATES that the key survived step 1; ERROR\n   (or surface) if a needed key column was dropped. May choose a GENERATED SURROGATE key\n   over the natural grain (first-class option); if so, keep the natural key SILVER-ONLY\n   for the uniqueness\u002Fdedup proof and expose only the surrogate to gold (a bare surrogate\n   is unique by construction and cannot detect a double-load).\n3. **PII** (Phase 2.2 \u002F RC4) -- EARLY. A flagged NAME is NOT auto-PII: distinguish\n   individual\u002Fpatient data (sensitive -> drop default) from STAFF names (KPI dimensions)\n   and COMPANY names (B2B org) -- the latter two are legitimate non-sensitive attributes.\n\n**B. PER-SURVIVOR (one kept column at a time, decided TOGETHER):**\n4. **Rename** (2.3) + **Type** (2.5 \u002F RC7) + **Missing-value** (2.4 \u002F RC5,RC6) + **Gold\n   placement**. Missing-value is decided HERE, per column (no global `''->NULL` baseline),\n   and ONLY for columns whose profiled `missing_count > 0` (skip 0-blank columns). A\n   present-but-wrong value (e.g. a site code in a customer id) is a VALUE REMAP in a\n   derived column, NOT a missing-value sentinel.\n\n**C. GLOBAL-TAIL (cross-row):**\n5. **Row filters** (2.6) -- which rows to drop (junk\u002Fzero-value); state the count and\n   reconcile (`source - dropped = silver`, accounting for OVERLAP). ORDERING (load-bearing):\n   a filter that targets BLANKS must evaluate PRE-sentinel (before step B's sentinel\n   substitution), else `trim(col)=''` matches 0 rows and those rows wrongly survive.\n6. **Derive** (2.7-2.8 \u002F RC8, RC11, RC12) -- is_return from the AUTHORITATIVE column;\n   value remaps; surrogate keys (generate the fact SK AFTER filters so it numbers\n   surviving rows); analyst-supplied rollups; flat hierarchy. The date dim carries NO\n   `-1`\u002Funknown\u002Fsentinel member (so Power BI can mark it a date table, S8); an unmatched\n   fact date fails via `Date_SK NOT NULL`.\n\n**D. GATE (hard stop; Principle IV):**\n7. **Named-human review** -- recording the judgment-call ANSWERS is NOT map approval. No\n   `silver.*` SQL until the full map is reviewed.\n\n**Naming:** warehouse SQL identifiers are **snake_case** (`product_id`, `gross_sales`,\n`sale_sk`) -- rule **S1** flags quoted non-snake_case columns (a quoted mixed-case name\nforces a case-sensitive Postgres column, a footgun). PascalCase is a **Power BI\nmodel-layer** display choice (rename in the semantic model), NEVER a SQL identifier.\n\n> Per-column vs global is by DEPENDENCY, not preference: global when a decision is\n> table-wide (PII policy) or cross-row (filters); per-column when it depends only on that\n> column's own keep decision. See the medallion playbook, Phase 2, for the rationale.\n\n## Procedure\n\n### 1. Locate\nConfirm the bronze `schema.table` exists. Ask the analyst\u002Fagent for the candidate\nPK column(s) to test (grain is decided FIRST, Phase 2.0 \u002F RC1).\n\n### 2. Profile (mechanical) -- via `seshat profile`\nRun the mechanical profiler over a read-only connection and record the numbers\ninto `mappings\u002F\u003Ctable>\u002Fsource-profile.md`. Use the shipped CLI verb (the\ninternal `seshat.profile.profile()` API is not reachable on a pip\u002Fpipx install\n-- #400):\n\n```bash\n# needs the `db` extra + a DSN (DATABASE_URL \u002F ANALYTICS_DB_* \u002F --dsn)\nseshat profile --table bronze.\u003Ctable> --pk \u003Cpk_a>,\u003Cpk_b>            # markdown to paste\nseshat profile --table bronze.\u003Ctable> --pk \u003Cpk_a>,\u003Cpk_b> --format json\n```\n\nThe output gives: `row_count`, `column_count`, per-column `missing_count` \u002F\n`missing_pct` (measured `''OR NULL`, NEVER `IS NULL` alone -- the load-bearing\ntrap, RC5) \u002F `distinct_cardinality`, and the candidate-PK proof (`total`,\n`distinct_pk`, `null_pk`, `is_unique`). The markdown form is already shaped for\nthe source-profile.md Shape \u002F Per-column \u002F Candidate-PK sections; paste each into\nthe source-profile table\nand the Candidate grain & PK section.\n\n### 3. Profile (semantic) -- PROPOSE, do not invent (Principle V)\nThe semantic rows -- code\u003C->label 1:1 rate, dimension fan-out (`id -> name`),\nhierarchy multi-parent, the AUTHORITATIVE returns column, money-relationship\nidentities, cross-file drift -- need the table's MEANING. profile.py does NOT\ncompute these. PROPOSE each from the data + column names, then raise it as an\n`unresolved-questions.md` entry for human confirmation. Never invent a business\nrollup, a PII ruling, or the returns column.\n\n### 4. Author the map and assumptions\nStarting from the RC1-RC16 defaults, fill `source-map.yaml` (grain+PK first, then\nper-column decisions, the gold star, derived columns) and `assumptions.md`\n(adopted vs deviated, each deviation citing its triggering data fact). Keep all\ntext ASCII, snake_case silver names, short paths (Windows 260 limit).\n\n### 5. Stop-and-ask (Principle V)\nRaise `unresolved-questions.md` entries, each with a who-must-answer owner, for:\nbusiness-rollup mapping (analyst supplies the full value->group table), PII\npublish-safety (governance sign-off; default drop), grain ambiguity (candidate PK\nnot unique on the data), sentinel-vs-null choice, and any build-blocking question.\n\n### 6. GATE -- hard stop (Principle IV)\nEmit the `reconciliation-report.md` blank and STOP. Before stopping, guarantee\nthe decision ledger exists even when Step 5 raised zero questions -- run\n`seshat mapping-mirror --table \u003Ctable>`. It writes a stub only if\n`unresolved-questions.md` is absent (status derived from the committed\n`readiness-status.yaml`, never invented) and never overwrites the ledger; the\ndownstream dbt and Dagster gates hard-require this file. State plainly: no\n`silver.*` SQL may be written until the map is reviewed and approved. Hand the\nfilled set to the reviewer; do not proceed to silver.\n\n## Deferred\u002Flive-boundary mode (no DSN or no `db` extra)\n\nIf `resolve_dsn(...)` returns None or psycopg2 is not installed, do NOT traceback\nand do NOT pretend a profile ran. The live boundary is deferred BY DESIGN:\ncredentials + the optional `db` extra are user-supplied under constitution\nPrinciple VIII. In this mode:\n\n- Report the boundary and print the exact enable steps:\n  `pipx inject seshat-bi psycopg2-binary` (or `pip install \"seshat-bi[db]\"`), then\n  set `DATABASE_URL` (or the `ANALYTICS_DB_*` vars) in the gitignored `.env`. Never\n  commit a real DSN.\n- STAY USEFUL: run `seshat scaffold-source \u003Ctable>` to write the five canonical\n  blanks into `mappings\u002F\u003Ctable>\u002F` (it needs no DB), fill their STRUCTURE, mark the\n  mechanical profile numbers `[PENDING LIVE PROFILE]`, still drive the semantic\n  stop-and-ask (Step 3) and the gate (Step 6).\n\n## See also\n\n- Gate + principles: the kit architecture note, Sec 5; constitution\n  Principles IV, V.\n- Method \u002F defaults: the medallion playbook; the retail cleaning-defaults\n  decision record (RC1-RC16).\n- Live half (after silver\u002Fgold exist): the `retail-validate` skill.\n- A filled instance: a filled worked example (an\n  example, never the universal schema).\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","# source-mapping\n\nThe source-mapping gate is the kit's one load-bearing rule (constitution\nPrinciple IV): **before any `silver.*` SQL is written, the source MUST be\nprofiled and mapped into committed, reviewed artifacts.** This skill runs that\ngate: profile -> author the five artifacts -> stop at judgment calls -> hard-stop\nbefore silver. It formalizes Phases 1-4 of the medallion playbook; the\nplaybook stays authoritative on HOW to decide, the templates on WHAT to record.\n\n## Scope boundary (read first)\n\nThis skill profiles a source and authors the mapping artifacts, then STOPS. It\ndoes NOT write `silver.*` or `gold.*` SQL, does NOT call pbi-cli or Power BI\nDesktop, and does NOT decide the judgment calls Principle V reserves for a human.\nSilver is downstream of an APPROVED map -- approval is the reviewer's action, not\nthis skill's.\n\n## The five artifacts (write the blanks with `seshat scaffold-source \u003Ctable>`)\n\nRun `seshat scaffold-source \u003Ctable>` to materialize the canonical blanks into\n`mappings\u002F\u003Ctable>\u002F`. Do NOT hand-author these files, and do NOT copy from a\n`templates\u002F` path: `templates\u002F` exists only in the Seshat development repo, so\nthat instruction fails for anyone who installed the kit as a tool -- and a\nhand-written `source-map.yaml` silently misses the canonical shape that\n`seshat validate` and the gold stages require (issue #488). The scaffolder ships\ninside the package and never overwrites an existing file.\n\nPer ADR 0003 (mapping-artifact location), a\ntable's filled set lives in `mappings\u002F\u003Ctable>\u002F`:\n\n1. `source-profile.md` -- Phase 1 numbers (this skill fills the mechanical ones).\n2. `source-map.yaml` -- the machine-readable spine (grain+PK first, per-column\n   keep\u002Fdrop\u002Frename\u002Ftype\u002FPII\u002Fgold-placement, the gold star, derived columns).\n3. `assumptions.md` -- which RC1-RC16 defaults were ADOPTED vs DEVIATED (each\n   deviation cites its triggering data fact).\n4. `unresolved-questions.md` -- the build-blocking judgment calls + who answers.\n5. `reconciliation-report.md` -- the blank the later live run fills (RC16).\n\n## Cleaning chain (canonical order -- the HYBRID walk)\n\nA fixed, dependency-ordered chain. The shape is **hybrid**: order-sensitive steps run as\nGLOBAL passes, intra-column steps run PER-SURVIVOR (each kept column resolved in one\nbundle), cross-row steps run as a GLOBAL tail. The agent recommends a default at every\nstep; the human decides (Principle V). NONE advance to silver -- the gate (D) is the stop.\n\n**Per-step loop:** present the step (purpose + default + its behavior on the table) ->\nhuman chooses keep \u002F enhance \u002F change the STEP -> apply -> next. The walk both cleans the\ntable AND lets the pipeline itself be refined.\n\n**A. GLOBAL-FIRST (decide across ALL columns):**\n1. **Keep \u002F Drop** (Phase 2.1 \u002F RC3) -- FIRST. One global pass over the inventory.\n2. **Grain & PK** (Phase 2.0 \u002F RC1, RC2) -- VALIDATES that the key survived step 1; ERROR\n   (or surface) if a needed key column was dropped. May choose a GENERATED SURROGATE key\n   over the natural grain (first-class option); if so, keep the natural key SILVER-ONLY\n   for the uniqueness\u002Fdedup proof and expose only the surrogate to gold (a bare surrogate\n   is unique by construction and cannot detect a double-load).\n3. **PII** (Phase 2.2 \u002F RC4) -- EARLY. A flagged NAME is NOT auto-PII: distinguish\n   individual\u002Fpatient data (sensitive -> drop default) from STAFF names (KPI dimensions)\n   and COMPANY names (B2B org) -- the latter two are legitimate non-sensitive attributes.\n\n**B. PER-SURVIVOR (one kept column at a time, decided TOGETHER):**\n4. **Rename** (2.3) + **Type** (2.5 \u002F RC7) + **Missing-value** (2.4 \u002F RC5,RC6) + **Gold\n   placement**. Missing-value is decided HERE, per column (no global `''->NULL` baseline),\n   and ONLY for columns whose profiled `missing_count > 0` (skip 0-blank columns). A\n   present-but-wrong value (e.g. a site code in a customer id) is a VALUE REMAP in a\n   derived column, NOT a missing-value sentinel.\n\n**C. GLOBAL-TAIL (cross-row):**\n5. **Row filters** (2.6) -- which rows to drop (junk\u002Fzero-value); state the count and\n   reconcile (`source - dropped = silver`, accounting for OVERLAP). ORDERING (load-bearing):\n   a filter that targets BLANKS must evaluate PRE-sentinel (before step B's sentinel\n   substitution), else `trim(col)=''` matches 0 rows and those rows wrongly survive.\n6. **Derive** (2.7-2.8 \u002F RC8, RC11, RC12) -- is_return from the AUTHORITATIVE column;\n   value remaps; surrogate keys (generate the fact SK AFTER filters so it numbers\n   surviving rows); analyst-supplied rollups; flat hierarchy. The date dim carries NO\n   `-1`\u002Funknown\u002Fsentinel member (so Power BI can mark it a date table, S8); an unmatched\n   fact date fails via `Date_SK NOT NULL`.\n\n**D. GATE (hard stop; Principle IV):**\n7. **Named-human review** -- recording the judgment-call ANSWERS is NOT map approval. No\n   `silver.*` SQL until the full map is reviewed.\n\n**Naming:** warehouse SQL identifiers are **snake_case** (`product_id`, `gross_sales`,\n`sale_sk`) -- rule **S1** flags quoted non-snake_case columns (a quoted mixed-case name\nforces a case-sensitive Postgres column, a footgun). PascalCase is a **Power BI\nmodel-layer** display choice (rename in the semantic model), NEVER a SQL identifier.\n\n> Per-column vs global is by DEPENDENCY, not preference: global when a decision is\n> table-wide (PII policy) or cross-row (filters); per-column when it depends only on that\n> column's own keep decision. See the medallion playbook, Phase 2, for the rationale.\n\n## Procedure\n\n### 1. Locate\nConfirm the bronze `schema.table` exists. Ask the analyst\u002Fagent for the candidate\nPK column(s) to test (grain is decided FIRST, Phase 2.0 \u002F RC1).\n\n### 2. Profile (mechanical) -- via `seshat profile`\nRun the mechanical profiler over a read-only connection and record the numbers\ninto `mappings\u002F\u003Ctable>\u002Fsource-profile.md`. Use the shipped CLI verb (the\ninternal `seshat.profile.profile()` API is not reachable on a pip\u002Fpipx install\n-- #400):\n\n```bash\n# needs the `db` extra + a DSN (DATABASE_URL \u002F ANALYTICS_DB_* \u002F --dsn)\nseshat profile --table bronze.\u003Ctable> --pk \u003Cpk_a>,\u003Cpk_b>            # markdown to paste\nseshat profile --table bronze.\u003Ctable> --pk \u003Cpk_a>,\u003Cpk_b> --format json\n```\n\nThe output gives: `row_count`, `column_count`, per-column `missing_count` \u002F\n`missing_pct` (measured `''OR NULL`, NEVER `IS NULL` alone -- the load-bearing\ntrap, RC5) \u002F `distinct_cardinality`, and the candidate-PK proof (`total`,\n`distinct_pk`, `null_pk`, `is_unique`). The markdown form is already shaped for\nthe source-profile.md Shape \u002F Per-column \u002F Candidate-PK sections; paste each into\nthe source-profile table\nand the Candidate grain & PK section.\n\n### 3. Profile (semantic) -- PROPOSE, do not invent (Principle V)\nThe semantic rows -- code\u003C->label 1:1 rate, dimension fan-out (`id -> name`),\nhierarchy multi-parent, the AUTHORITATIVE returns column, money-relationship\nidentities, cross-file drift -- need the table's MEANING. profile.py does NOT\ncompute these. PROPOSE each from the data + column names, then raise it as an\n`unresolved-questions.md` entry for human confirmation. Never invent a business\nrollup, a PII ruling, or the returns column.\n\n### 4. Author the map and assumptions\nStarting from the RC1-RC16 defaults, fill `source-map.yaml` (grain+PK first, then\nper-column decisions, the gold star, derived columns) and `assumptions.md`\n(adopted vs deviated, each deviation citing its triggering data fact). Keep all\ntext ASCII, snake_case silver names, short paths (Windows 260 limit).\n\n### 5. Stop-and-ask (Principle V)\nRaise `unresolved-questions.md` entries, each with a who-must-answer owner, for:\nbusiness-rollup mapping (analyst supplies the full value->group table), PII\npublish-safety (governance sign-off; default drop), grain ambiguity (candidate PK\nnot unique on the data), sentinel-vs-null choice, and any build-blocking question.\n\n### 6. GATE -- hard stop (Principle IV)\nEmit the `reconciliation-report.md` blank and STOP. Before stopping, guarantee\nthe decision ledger exists even when Step 5 raised zero questions -- run\n`seshat mapping-mirror --table \u003Ctable>`. It writes a stub only if\n`unresolved-questions.md` is absent (status derived from the committed\n`readiness-status.yaml`, never invented) and never overwrites the ledger; the\ndownstream dbt and Dagster gates hard-require this file. State plainly: no\n`silver.*` SQL may be written until the map is reviewed and approved. Hand the\nfilled set to the reviewer; do not proceed to silver.\n\n## Deferred\u002Flive-boundary mode (no DSN or no `db` extra)\n\nIf `resolve_dsn(...)` returns None or psycopg2 is not installed, do NOT traceback\nand do NOT pretend a profile ran. The live boundary is deferred BY DESIGN:\ncredentials + the optional `db` extra are user-supplied under constitution\nPrinciple VIII. In this mode:\n\n- Report the boundary and print the exact enable steps:\n  `pipx inject seshat-bi psycopg2-binary` (or `pip install \"seshat-bi[db]\"`), then\n  set `DATABASE_URL` (or the `ANALYTICS_DB_*` vars) in the gitignored `.env`. Never\n  commit a real DSN.\n- STAY USEFUL: run `seshat scaffold-source \u003Ctable>` to write the five canonical\n  blanks into `mappings\u002F\u003Ctable>\u002F` (it needs no DB), fill their STRUCTURE, mark the\n  mechanical profile numbers `[PENDING LIVE PROFILE]`, still drive the semantic\n  stop-and-ask (Step 3) and the gate (Step 6).\n\n## See also\n\n- Gate + principles: the kit architecture note, Sec 5; constitution\n  Principles IV, V.\n- Method \u002F defaults: the medallion playbook; the retail cleaning-defaults\n  decision record (RC1-RC16).\n- Live half (after silver\u002Fgold exist): the `retail-validate` skill.\n- A filled instance: a filled worked example (an\n  example, never the universal schema).\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","integrations\u002Fclaude-code\u002Fseshat-bi\u002Fskills\u002Fsource-mapping",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 source-mapping",{"tool":37,"command":38},"bunx","bunx skills add Kemetra\u002FSeshat-BI --skill source-mapping",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Kemetra\u002FSeshat-BI --skill source-mapping","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-code\u002Fseshat-bi\u002Fskills\u002Fsource-mapping\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",[],[]]