[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77J711FVEVCJ1YCMZEV6S9Q":3,"skill-same:01M77J711FVEVCJ1YCMZEV6S9Q":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},"01M77J711FVEVCJ1YCMZEV6S9Q","dashboard-design",null,"Design a Power BI dashboard FROM approved metric contracts in the Seshat BI repo. Use when someone asks to design a report\u002Fpage, bind visuals to metrics, or produce a dashboard layout for a subject area whose semantic model is ready. This skill is HARD-GATED on semantic_model_ready: pass (no approved metric contracts -> no design); it authors reviewable design guidance only -- a layout plan, a visual list, and a visual->contract binding map where every visual binds to exactly one approved contract. It NEVER invents a metric, NEVER publishes, NEVER opens Power BI Desktop or a DB connection, and NEVER calls the Power BI execution adapter (official Power BI MCP \u002F connection; `pbi-cli` no longer preferred) -- that is feature F016. It authors, runs static seshat check, records dashboard_ready at most as warning, and STOPS.","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\u002Fdashboard-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dashboard-design\ndescription: >-\n  Design a Power BI dashboard FROM approved metric contracts in the\n  Seshat BI repo. Use when someone asks to design a report\u002Fpage,\n  bind visuals to metrics, or produce a dashboard layout for a subject area whose\n  semantic model is ready. This skill is HARD-GATED on semantic_model_ready: pass\n  (no approved metric contracts -> no design); it authors reviewable design\n  guidance only -- a layout plan, a visual list, and a visual->contract binding\n  map where every visual binds to exactly one approved contract. It NEVER invents\n  a metric, NEVER publishes, NEVER opens Power BI Desktop or a DB connection, and\n  NEVER calls the Power BI execution adapter (official Power BI MCP \u002F connection;\n  `pbi-cli` no longer preferred) -- that is feature F016. It authors,\n  runs static seshat check, records dashboard_ready at most as warning, and STOPS.\n---\n\n# dashboard-design\n\nStage 6 of the Tower BI Readiness System, **Dashboard Ready**\n([`docs\u002Freadiness\u002Fdashboard-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fdashboard-ready.md)):\na report is designed AGAINST approved metric contracts -- never before them. This\nskill is the agent VERB that runs that stage. It reads the approved metric\ncontracts (F009) and the governed PBIP model (F010), then authors a layout plan, a\nvisual list, and a visual->contract binding map so every visual traces to a\ncontract that already exists and is approved. It is the agent expression of roadmap\nhard rule 5 (\"no dashboard design before metric contracts\") and hard rule 6 (\"no\nPower BI execution before semantic-model readiness\").\n\nThis verb is the gated, contract-binding design step that the broader\n`powerbi-dashboard-design` router (F011A, the visual-design FOUNDATION) hands the\n\"design a dashboard from approved contracts\" intent to. The router carries the\ndesign vocabulary (four surfaces, tokens, theme, blueprints, QA); this verb enforces\nthe gate and produces the binding map a human signs off.\n\n## Scope boundary (read first)\n\nThis skill AUTHORS design guidance and STOPS. Authoring is in-scope: a layout plan,\na visual list, a visual->contract binding map, and (optionally) a blank PBIR\nscaffold a human fills -- no side effects, no DB\u002FDesktop connection, the same\ncategory as `source-mapping` authoring `mappings\u002F` and `retail-build-warehouse`\nauthoring `warehouse\u002Fmigrations\u002F*.sql`. EXECUTING the design -- generating the PBIR\nreport, publishing to a workspace, calling the Power BI execution adapter (official\nPower BI MCP \u002F connection; `pbi-cli` no longer preferred) -- is the deferred,\nexecution-only F016 adapter seam and is OUT of scope here. The skill authors, runs\nstatic `seshat check` on any committed report text, and STOPS.\n\n## Hard gate (rule 5) -- verify BEFORE authoring anything\n\nBefore authoring ANY design, read the subject area's readiness status and verify\n`semantic_model_ready: pass`. \"Pass\" means BOTH:\n\n- approved metric contracts exist (F009) -- each carries a recorded approval; and\n- the governed PBIP model binds each measure to one (F010).\n\nIf `semantic_model_ready` is anything other than `pass` -- `not_started`,\n`blocked`, or `warning` -- the gate FAILS. Author no design, record\n`dashboard_ready: not_started` (the prior stage is not `pass`) with the concrete\nblocking reason, and STOP. A `warning` prior stage does NOT authorize design (the\nthing being awaited is exactly the contract approval). Never invent a metric to\nfill a visual when the gate is not pass.\n\nThis skill reads the gate; it does NOT re-derive contract approval\n([`readiness-pipeline.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-pipeline.md): \"pass\"\nof the prior stage is the entry condition).\n\n## Design vs execution boundary (rule 6)\n\n| In scope (design authoring) | Out of scope (execution owner) |\n|-------------------|--------------------------|\n| layout plan, visual list, visual->contract binding map | native PBIR authoring: official `powerbi-report-authoring` after the gate |\n| optional blank PBIR scaffold a human fills | opening Power BI Desktop or a DB connection |\n| running static `seshat check` on committed report text | calling the Power BI execution adapter (official Power BI MCP \u002F connection) |\n| recording `dashboard_ready: warning` + evidence | publishing to a workspace \u002F refreshing a model |\n\nThe skill authors, checks, and STOPS. Route native PBIR implementation through\n`powerbi-workflows` to Microsoft's official report-authoring skill when\ndiscoverable. Route live semantic-model connection\u002Frefresh\u002Fquery\u002Fpublish to the\nseparately parked F016 adapter. Never collapse these owners.\n\n## Preconditions (STOP unless ALL hold)\n\n1. `semantic_model_ready: pass` for the subject area (the hard gate above).\n2. Approved metric contracts (F009) are readable and each carries a recorded\n   approval (an unapproved-but-present contract is NOT a valid binding target).\n3. The governed PBIP model (F010) is present and binds measures to those contracts.\n4. The analyst has supplied the business questions the page must answer. This is a\n   Principle V input -- if missing, ASK for it; do NOT invent a generic page.\n5. **A committed narrative brief exists** at `mappings\u002F\u003Ctable>\u002Fnarrative-brief.md`\n   conforming to the frozen `seshat.narrative-brief\u002Fv1` schema\n   (`bi-analyst-knowledge` derivation route). This is the NEW narrative gate\n   (spec 021, FR-004): a design that binds visuals to contracts but cannot say\n   which owner decision each page serves is itself a gap. The brief must exist\n   and be committed BEFORE any layout\u002Fvisual guidance is authored, exactly as\n   contracts must exist before design. Its ABSENCE is a NAMED BLOCKER, not a\n   warning -- author no layout, record the blocking reason, and STOP.\n\nIf any precondition fails, record the matching `dashboard_ready` status + blocking\nreason and STOP.\n\n### The narrative gate (rule: no layout before narrative)\n\nBefore authoring any layout, read `mappings\u002F\u003Ctable>\u002Fnarrative-brief.md`. If it is\nabsent, author no design and STOP with the named blocker\n`narrative_brief_missing` (`next_action: \"author the narrative brief via\nbi-analyst-knowledge (the derivation route) and get it committed first\"`). The\nbrief supplies the ranked owner decision-questions (each with a stable id `Q1`,\n`Q2`, ...) that the three-way binding map below binds every visual to. Frame the\nanalysis, never invent it: the brief cites only approved contracts + the profiled\nsource; a question the data cannot answer is a `[GAP]` in the brief, never a\nvisual. This skill does NOT author the brief -- that is the `bi-analyst-knowledge`\nroute's job; this skill CONSUMES it.\n\n## Procedure (numbered; do not reorder)\n\n### 1. Read inputs\nRead the approved metric contracts (each: name, grain, formula intent, owner +\napproval) and the business questions the page must answer. Confirm the governed\nmodel is `semantic_model_ready: pass`.\n\n### 2. Author the layout plan\nAuthor the page\u002Fsection structure as reviewable text: which business questions the\npage answers, in what reading order, one question per region. (For the section\nvocabulary -- header \u002F KPI strip \u002F main insight \u002F diagnostic \u002F exception-detail \u002F\nfilter rail \u002F footer-status -- and design principles, use the F011A foundation:\n`docs\u002Fpowerbi\u002Fvisual-design-system.md` and\n`..\u002Fpowerbi-dashboard-design\u002Fworkflows\u002Fpage-blueprint.md`.)\n\n### 3. Author the visual list\nFor each proposed visual record: its type, the ONE approved metric contract it\nbinds to, AND the brief decision-question(s) it answers (by id -- `Q1`, `Q5`, ...).\nChoose the visual type to fit the contract's GRAIN (a single additive measure ->\nKPI card; a measure by a dimension -> bar\u002Fcolumn; a measure over time -> line;\nrow-level detail -> table). Two things a visual MUST NOT be: with no backing\napproved contract (an unbound orphan), or answering no brief decision-question (a\nnarrative orphan) -- both are defects (see Blocking reasons).\n\n### 4. Author the three-way visual -> contract -> decision-question binding map\nAuthor the committed note proving each visual binds to exactly one approved\ncontract AND answers at least one brief decision-question. This is the THREE-WAY\nmap (spec 021, FR-005): the F011 two-way map (visual -> contract) extended with\nthe decision-question leg. It is the artifact the design review signs off.\n\nGive the map a machine-readable `seshat.binding-map\u002Fv1` fenced-`yaml` front section\n(mirroring the brief) so `seshat narrative-check --binding-map` can read it. Each\nvisual records: `visual_id`, `page`, `region`, `visual_type`, `contract`\n(approved), `decision_questions` (a LIST of brief question ids -- one visual may\nanswer more than one owner decision, e.g. a basket-value card that is both a\nheadline number and the basket-value answer), and `headline` (true for KPI-card\nclass). Rules the map obeys, each an orphan\u002Fcoverage defect:\n\n- **No orphan visual, either direction (FR-005)**: every visual MUST bind to one\n  approved `contract` (present + declared in the brief) AND name >=1\n  `decision_questions` entry, each a question the brief declares. A visual missing\n  either leg -- an undeclared\u002Fabsent contract, or answering no owner decision --\n  is an orphan.\n- **No unanswered question (FR-005)**: every ranked brief decision-question MUST\n  be answered by >=1 visual. A decision the design declares but serves no visual\n  for is an orphan question.\n- **No page serves nothing**: every declared page carries >=1 question-bearing\n  visual.\n- **No bare-total headline (FR-006)**: every `headline: true` (KPI-card class)\n  visual MUST answer at least one `stage: overview` question. Because the brief\n  forces every overview question to name a `comparison` (never \"none\"), this is\n  how \"the headline carries a comparison\" is enforced -- a bare total on a\n  headline is a defect; offer the framing catalog's comparisons as the fix.\n\nIf more approved contracts exist than visuals on the page, record each DROPPED\ncontract with a reason (e.g. \"covered by the Stage 7 handoff pack, not the\ndashboard\") -- never a silent omission. The generic taught shape lives in\n`bi-analyst-knowledge\u002Fexample-specialty-retail.md` (the three-way map section).\n\n### 4a. Run the read-only narrative check (evidence for the review)\nBefore requesting the design review, run `seshat narrative-check --table \u003Ctable>`\n(the brief) and `seshat narrative-check --table \u003Ctable> --binding-map` (the\nthree-way map). Both are READ-ONLY, categorical, and grant NO approval -- a clean\ncheck is EVIDENCE for the human review, never a substitute for it. A finding is a\nSTOP: fix the brief\u002Fmap and re-run. A missing\u002Fmalformed brief or map fails closed\n(named blocker), never a silent pass.\n\n### 5. Record readiness (warning, never pass)\nRecord `dashboard_ready: warning` with `evidence[]` (the committed layout plan +\nvisual list + binding map) and `next_action: \"get the design review\n(visual->contract binding) signed off by the BI report owner\"`. Use the four\nstatuses only (`not_started` \u002F `blocked` \u002F `warning` \u002F `pass`) -- NEVER a numeric\nconfidence score.\n\n### 6. STOP\nStop at the design-review boundary. The skill never writes `dashboard_ready: pass`\nitself (see No self-granted pass). Hand the design to the BI report owner for the\nvisual->contract binding review.\n\n## R1 \u002F relative-reference note\n\nWhen a committed PBIR report exists for the subject area, confirm `seshat check`\n(rule R1) stays exit 0 -- the report references the governed model by a RELATIVE\npath, not an absolute\u002Fremote ref. On failure, record `dashboard_ready: blocked`\nwith the reason (\"PBIR references the model by absolute\u002Fremote path -- R1 fails\")\nand STOP; the relative-reference fix is the human's. This skill reuses the existing\nR1 rule; it adds no new `seshat check` rule.\n\n## Blocking reasons (each maps to a STOP)\n\n- `semantic_model_ready` is not `pass` (the hard gate -- contracts must exist first).\n- No committed `narrative-brief.md` (the narrative gate -- `narrative_brief_missing`).\n- A visual has no backing approved metric contract, or one not declared in the\n  brief (unbound orphan visual, FR-005).\n- A visual answers no brief decision-question, or an undeclared one (narrative\n  orphan visual, FR-005).\n- A brief decision-question is answered by no visual (unanswered question, FR-005).\n- A declared page carries no question-bearing visual (page serves no decision).\n- A headline (KPI-card class) visual answers no `overview` question -- a bare\n  total on the headline (FR-006).\n- A metric is invented at design time instead of reusing an approved contract.\n- The PBIR references the model by an absolute\u002Fremote path (R1 fails).\n\n## No invented metrics\n\nThe skill binds ONLY to existing approved contracts. It NEVER defines, alters, or\ninvents a metric -- metric definition is F009's job, not this skill's. An\nunapproved-but-present contract is not a valid binding target; a visual that would\nneed it is an orphan -> STOP. If a needed metric does not exist as an approved\ncontract, the gap is recorded (\"orphan visual: no approved contract for\n\u003Cquestion>\") and the skill STOPS rather than inventing one.\n\n## No self-granted pass\n\nThe skill NEVER writes `dashboard_ready: pass`. The highest status it records is\n`warning`, with `next_action: \"get the design review (visual->contract binding)\nsigned off by the BI report owner\"`. A `pass` requires an `approvals[]` entry --\n`{stage: dashboard_ready, owner: \u003Cbi-report-owner>, at: \u003Cdate>}` -- written by the\nREVIEWER, not by this skill. When that approval is recorded by the reviewer,\n`dashboard_ready` may become `pass` and `next_action` points to Stage 7\n([`publish-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fpublish-ready.md)).\n\n## Edge cases\n\n- **More approved contracts than visuals**: not every contract must appear on the\n  page, but each dropped contract MUST be recorded with a reason -- no silent\n  omission.\n- **Grain mismatch** (e.g. a row-level contract asked to be a single KPI card):\n  record a `warning`-class design note, propose the grain-appropriate visual, and\n  never silently mis-bind.\n- **A contract exists but is not approved**: treat only APPROVED contracts as\n  bindable -> the visual is an orphan -> STOP.\n- **Subject area spans multiple tables\u002Fmodels**: bind visuals only to contracts\n  within the governed model(s) that are `semantic_model_ready: pass`; a visual\n  needing an out-of-model metric is an orphan -> STOP.\n- **No business questions supplied**: design is question-driven -- ASK for the\n  questions (a Principle V input); do not invent a generic page.\n\n## What the agent must NOT do\n\n- Do NOT invent, define, or alter a metric at design time -- only bind to approved\n  contracts (metric definition is F009).\n- Do NOT author any layout before a committed `narrative-brief.md` exists (the\n  narrative gate, FR-004) -- the brief supplies the decision-questions the map\n  binds to; author the brief via `bi-analyst-knowledge` first.\n- Do NOT emit a visual that answers no brief decision-question (narrative orphan),\n  nor a headline visual that answers no `overview` question (bare-total headline).\n- Do NOT design any visual before its metric contract exists \u002F before\n  `semantic_model_ready: pass` (rule 5).\n- Do NOT call the Power BI execution adapter (official Power BI MCP \u002F connection;\n  `pbi-cli` no longer preferred), generate or publish the PBIR, or refresh a model --\n  that is feature F016 (rule 6), execution-only and gated.\n- Do NOT open a DB or Power BI Desktop connection.\n- Do NOT self-grant `dashboard_ready: pass` -- the highest this skill records is\n  `warning`; `pass` needs the reviewer's `approvals[]` entry.\n- Do NOT fabricate a confidence score -- use the four statuses + evidence + blockers.\n- Do NOT bake any real connection host or secret into any output (G6).\n\n## Generic, not C086\n\nThis skill and any template scaffold it uses are GENERIC (roadmap rule 7). No\nC086\u002Fpharmacy specifics (billing codes, segment rollups, insurance\u002FPII columns,\npharmacy grain keys, real metric names) appear in the skill text or any committed\ntemplate. Worked values belong only to a per-subject-area instance; C086 is the\nfirst worked example, not the schema (Principle VII).\n\n## See also\n\n- The stage contract: [`docs\u002Freadiness\u002Fdashboard-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fdashboard-ready.md).\n- The prior stage \u002F gate: [`docs\u002Freadiness\u002Fsemantic-model-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fsemantic-model-ready.md).\n- Status + evidence + blockers: [`docs\u002Freadiness\u002Freadiness-model.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-model.md).\n- Hard rules 5\u002F6\u002F7\u002F8: [`docs\u002Froadmap\u002Froadmap.md`](..\u002F..\u002F..\u002Fdocs\u002Froadmap\u002Froadmap.md).\n- The visual-design FOUNDATION this verb reasons with: the `powerbi-dashboard-design`\n  router skill + `docs\u002Fpowerbi\u002F` + `templates\u002F` + `design\u002F` + `themes\u002F` +\n  `reports\u002Fblueprints\u002F` (F011A).\n- The narrative gate + framing catalog (spec 021): the `bi-analyst-knowledge`\n  pack (INDEX.md, `derivation-route.md`, the eight `framing-*.md` cards,\n  `story-order.md`, and the worked examples). The brief this skill consumes is\n  authored via that route.\n- The read-only evidence surface: `seshat narrative-check --table \u003Ct>` (brief) and\n  `seshat narrative-check --table \u003Ct> --binding-map` (three-way map).\n- Generic scaffolds: `templates\u002Fdashboard-layout.md`,\n  `templates\u002Fvisual-contract-binding-map.md`.\n\n## Orchestration\n\nWhen a table is driven end-to-end, the `retail-orchestrate` conductor sequences\nthis verb after `semantic_model_ready` is `pass` and runs the self-heal loop\nagainst the gate exit code. This skill stays single-purpose: it authors the design,\nrecords `dashboard_ready: warning`, and STOPS at the human design-review boundary.\nThe loop lives only in `retail-orchestrate`, never here.\n","# dashboard-design\n\nStage 6 of the Tower BI Readiness System, **Dashboard Ready**\n([`docs\u002Freadiness\u002Fdashboard-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fdashboard-ready.md)):\na report is designed AGAINST approved metric contracts -- never before them. This\nskill is the agent VERB that runs that stage. It reads the approved metric\ncontracts (F009) and the governed PBIP model (F010), then authors a layout plan, a\nvisual list, and a visual->contract binding map so every visual traces to a\ncontract that already exists and is approved. It is the agent expression of roadmap\nhard rule 5 (\"no dashboard design before metric contracts\") and hard rule 6 (\"no\nPower BI execution before semantic-model readiness\").\n\nThis verb is the gated, contract-binding design step that the broader\n`powerbi-dashboard-design` router (F011A, the visual-design FOUNDATION) hands the\n\"design a dashboard from approved contracts\" intent to. The router carries the\ndesign vocabulary (four surfaces, tokens, theme, blueprints, QA); this verb enforces\nthe gate and produces the binding map a human signs off.\n\n## Scope boundary (read first)\n\nThis skill AUTHORS design guidance and STOPS. Authoring is in-scope: a layout plan,\na visual list, a visual->contract binding map, and (optionally) a blank PBIR\nscaffold a human fills -- no side effects, no DB\u002FDesktop connection, the same\ncategory as `source-mapping` authoring `mappings\u002F` and `retail-build-warehouse`\nauthoring `warehouse\u002Fmigrations\u002F*.sql`. EXECUTING the design -- generating the PBIR\nreport, publishing to a workspace, calling the Power BI execution adapter (official\nPower BI MCP \u002F connection; `pbi-cli` no longer preferred) -- is the deferred,\nexecution-only F016 adapter seam and is OUT of scope here. The skill authors, runs\nstatic `seshat check` on any committed report text, and STOPS.\n\n## Hard gate (rule 5) -- verify BEFORE authoring anything\n\nBefore authoring ANY design, read the subject area's readiness status and verify\n`semantic_model_ready: pass`. \"Pass\" means BOTH:\n\n- approved metric contracts exist (F009) -- each carries a recorded approval; and\n- the governed PBIP model binds each measure to one (F010).\n\nIf `semantic_model_ready` is anything other than `pass` -- `not_started`,\n`blocked`, or `warning` -- the gate FAILS. Author no design, record\n`dashboard_ready: not_started` (the prior stage is not `pass`) with the concrete\nblocking reason, and STOP. A `warning` prior stage does NOT authorize design (the\nthing being awaited is exactly the contract approval). Never invent a metric to\nfill a visual when the gate is not pass.\n\nThis skill reads the gate; it does NOT re-derive contract approval\n([`readiness-pipeline.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-pipeline.md): \"pass\"\nof the prior stage is the entry condition).\n\n## Design vs execution boundary (rule 6)\n\n| In scope (design authoring) | Out of scope (execution owner) |\n|-------------------|--------------------------|\n| layout plan, visual list, visual->contract binding map | native PBIR authoring: official `powerbi-report-authoring` after the gate |\n| optional blank PBIR scaffold a human fills | opening Power BI Desktop or a DB connection |\n| running static `seshat check` on committed report text | calling the Power BI execution adapter (official Power BI MCP \u002F connection) |\n| recording `dashboard_ready: warning` + evidence | publishing to a workspace \u002F refreshing a model |\n\nThe skill authors, checks, and STOPS. Route native PBIR implementation through\n`powerbi-workflows` to Microsoft's official report-authoring skill when\ndiscoverable. Route live semantic-model connection\u002Frefresh\u002Fquery\u002Fpublish to the\nseparately parked F016 adapter. Never collapse these owners.\n\n## Preconditions (STOP unless ALL hold)\n\n1. `semantic_model_ready: pass` for the subject area (the hard gate above).\n2. Approved metric contracts (F009) are readable and each carries a recorded\n   approval (an unapproved-but-present contract is NOT a valid binding target).\n3. The governed PBIP model (F010) is present and binds measures to those contracts.\n4. The analyst has supplied the business questions the page must answer. This is a\n   Principle V input -- if missing, ASK for it; do NOT invent a generic page.\n5. **A committed narrative brief exists** at `mappings\u002F\u003Ctable>\u002Fnarrative-brief.md`\n   conforming to the frozen `seshat.narrative-brief\u002Fv1` schema\n   (`bi-analyst-knowledge` derivation route). This is the NEW narrative gate\n   (spec 021, FR-004): a design that binds visuals to contracts but cannot say\n   which owner decision each page serves is itself a gap. The brief must exist\n   and be committed BEFORE any layout\u002Fvisual guidance is authored, exactly as\n   contracts must exist before design. Its ABSENCE is a NAMED BLOCKER, not a\n   warning -- author no layout, record the blocking reason, and STOP.\n\nIf any precondition fails, record the matching `dashboard_ready` status + blocking\nreason and STOP.\n\n### The narrative gate (rule: no layout before narrative)\n\nBefore authoring any layout, read `mappings\u002F\u003Ctable>\u002Fnarrative-brief.md`. If it is\nabsent, author no design and STOP with the named blocker\n`narrative_brief_missing` (`next_action: \"author the narrative brief via\nbi-analyst-knowledge (the derivation route) and get it committed first\"`). The\nbrief supplies the ranked owner decision-questions (each with a stable id `Q1`,\n`Q2`, ...) that the three-way binding map below binds every visual to. Frame the\nanalysis, never invent it: the brief cites only approved contracts + the profiled\nsource; a question the data cannot answer is a `[GAP]` in the brief, never a\nvisual. This skill does NOT author the brief -- that is the `bi-analyst-knowledge`\nroute's job; this skill CONSUMES it.\n\n## Procedure (numbered; do not reorder)\n\n### 1. Read inputs\nRead the approved metric contracts (each: name, grain, formula intent, owner +\napproval) and the business questions the page must answer. Confirm the governed\nmodel is `semantic_model_ready: pass`.\n\n### 2. Author the layout plan\nAuthor the page\u002Fsection structure as reviewable text: which business questions the\npage answers, in what reading order, one question per region. (For the section\nvocabulary -- header \u002F KPI strip \u002F main insight \u002F diagnostic \u002F exception-detail \u002F\nfilter rail \u002F footer-status -- and design principles, use the F011A foundation:\n`docs\u002Fpowerbi\u002Fvisual-design-system.md` and\n`..\u002Fpowerbi-dashboard-design\u002Fworkflows\u002Fpage-blueprint.md`.)\n\n### 3. Author the visual list\nFor each proposed visual record: its type, the ONE approved metric contract it\nbinds to, AND the brief decision-question(s) it answers (by id -- `Q1`, `Q5`, ...).\nChoose the visual type to fit the contract's GRAIN (a single additive measure ->\nKPI card; a measure by a dimension -> bar\u002Fcolumn; a measure over time -> line;\nrow-level detail -> table). Two things a visual MUST NOT be: with no backing\napproved contract (an unbound orphan), or answering no brief decision-question (a\nnarrative orphan) -- both are defects (see Blocking reasons).\n\n### 4. Author the three-way visual -> contract -> decision-question binding map\nAuthor the committed note proving each visual binds to exactly one approved\ncontract AND answers at least one brief decision-question. This is the THREE-WAY\nmap (spec 021, FR-005): the F011 two-way map (visual -> contract) extended with\nthe decision-question leg. It is the artifact the design review signs off.\n\nGive the map a machine-readable `seshat.binding-map\u002Fv1` fenced-`yaml` front section\n(mirroring the brief) so `seshat narrative-check --binding-map` can read it. Each\nvisual records: `visual_id`, `page`, `region`, `visual_type`, `contract`\n(approved), `decision_questions` (a LIST of brief question ids -- one visual may\nanswer more than one owner decision, e.g. a basket-value card that is both a\nheadline number and the basket-value answer), and `headline` (true for KPI-card\nclass). Rules the map obeys, each an orphan\u002Fcoverage defect:\n\n- **No orphan visual, either direction (FR-005)**: every visual MUST bind to one\n  approved `contract` (present + declared in the brief) AND name >=1\n  `decision_questions` entry, each a question the brief declares. A visual missing\n  either leg -- an undeclared\u002Fabsent contract, or answering no owner decision --\n  is an orphan.\n- **No unanswered question (FR-005)**: every ranked brief decision-question MUST\n  be answered by >=1 visual. A decision the design declares but serves no visual\n  for is an orphan question.\n- **No page serves nothing**: every declared page carries >=1 question-bearing\n  visual.\n- **No bare-total headline (FR-006)**: every `headline: true` (KPI-card class)\n  visual MUST answer at least one `stage: overview` question. Because the brief\n  forces every overview question to name a `comparison` (never \"none\"), this is\n  how \"the headline carries a comparison\" is enforced -- a bare total on a\n  headline is a defect; offer the framing catalog's comparisons as the fix.\n\nIf more approved contracts exist than visuals on the page, record each DROPPED\ncontract with a reason (e.g. \"covered by the Stage 7 handoff pack, not the\ndashboard\") -- never a silent omission. The generic taught shape lives in\n`bi-analyst-knowledge\u002Fexample-specialty-retail.md` (the three-way map section).\n\n### 4a. Run the read-only narrative check (evidence for the review)\nBefore requesting the design review, run `seshat narrative-check --table \u003Ctable>`\n(the brief) and `seshat narrative-check --table \u003Ctable> --binding-map` (the\nthree-way map). Both are READ-ONLY, categorical, and grant NO approval -- a clean\ncheck is EVIDENCE for the human review, never a substitute for it. A finding is a\nSTOP: fix the brief\u002Fmap and re-run. A missing\u002Fmalformed brief or map fails closed\n(named blocker), never a silent pass.\n\n### 5. Record readiness (warning, never pass)\nRecord `dashboard_ready: warning` with `evidence[]` (the committed layout plan +\nvisual list + binding map) and `next_action: \"get the design review\n(visual->contract binding) signed off by the BI report owner\"`. Use the four\nstatuses only (`not_started` \u002F `blocked` \u002F `warning` \u002F `pass`) -- NEVER a numeric\nconfidence score.\n\n### 6. STOP\nStop at the design-review boundary. The skill never writes `dashboard_ready: pass`\nitself (see No self-granted pass). Hand the design to the BI report owner for the\nvisual->contract binding review.\n\n## R1 \u002F relative-reference note\n\nWhen a committed PBIR report exists for the subject area, confirm `seshat check`\n(rule R1) stays exit 0 -- the report references the governed model by a RELATIVE\npath, not an absolute\u002Fremote ref. On failure, record `dashboard_ready: blocked`\nwith the reason (\"PBIR references the model by absolute\u002Fremote path -- R1 fails\")\nand STOP; the relative-reference fix is the human's. This skill reuses the existing\nR1 rule; it adds no new `seshat check` rule.\n\n## Blocking reasons (each maps to a STOP)\n\n- `semantic_model_ready` is not `pass` (the hard gate -- contracts must exist first).\n- No committed `narrative-brief.md` (the narrative gate -- `narrative_brief_missing`).\n- A visual has no backing approved metric contract, or one not declared in the\n  brief (unbound orphan visual, FR-005).\n- A visual answers no brief decision-question, or an undeclared one (narrative\n  orphan visual, FR-005).\n- A brief decision-question is answered by no visual (unanswered question, FR-005).\n- A declared page carries no question-bearing visual (page serves no decision).\n- A headline (KPI-card class) visual answers no `overview` question -- a bare\n  total on the headline (FR-006).\n- A metric is invented at design time instead of reusing an approved contract.\n- The PBIR references the model by an absolute\u002Fremote path (R1 fails).\n\n## No invented metrics\n\nThe skill binds ONLY to existing approved contracts. It NEVER defines, alters, or\ninvents a metric -- metric definition is F009's job, not this skill's. An\nunapproved-but-present contract is not a valid binding target; a visual that would\nneed it is an orphan -> STOP. If a needed metric does not exist as an approved\ncontract, the gap is recorded (\"orphan visual: no approved contract for\n\u003Cquestion>\") and the skill STOPS rather than inventing one.\n\n## No self-granted pass\n\nThe skill NEVER writes `dashboard_ready: pass`. The highest status it records is\n`warning`, with `next_action: \"get the design review (visual->contract binding)\nsigned off by the BI report owner\"`. A `pass` requires an `approvals[]` entry --\n`{stage: dashboard_ready, owner: \u003Cbi-report-owner>, at: \u003Cdate>}` -- written by the\nREVIEWER, not by this skill. When that approval is recorded by the reviewer,\n`dashboard_ready` may become `pass` and `next_action` points to Stage 7\n([`publish-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fpublish-ready.md)).\n\n## Edge cases\n\n- **More approved contracts than visuals**: not every contract must appear on the\n  page, but each dropped contract MUST be recorded with a reason -- no silent\n  omission.\n- **Grain mismatch** (e.g. a row-level contract asked to be a single KPI card):\n  record a `warning`-class design note, propose the grain-appropriate visual, and\n  never silently mis-bind.\n- **A contract exists but is not approved**: treat only APPROVED contracts as\n  bindable -> the visual is an orphan -> STOP.\n- **Subject area spans multiple tables\u002Fmodels**: bind visuals only to contracts\n  within the governed model(s) that are `semantic_model_ready: pass`; a visual\n  needing an out-of-model metric is an orphan -> STOP.\n- **No business questions supplied**: design is question-driven -- ASK for the\n  questions (a Principle V input); do not invent a generic page.\n\n## What the agent must NOT do\n\n- Do NOT invent, define, or alter a metric at design time -- only bind to approved\n  contracts (metric definition is F009).\n- Do NOT author any layout before a committed `narrative-brief.md` exists (the\n  narrative gate, FR-004) -- the brief supplies the decision-questions the map\n  binds to; author the brief via `bi-analyst-knowledge` first.\n- Do NOT emit a visual that answers no brief decision-question (narrative orphan),\n  nor a headline visual that answers no `overview` question (bare-total headline).\n- Do NOT design any visual before its metric contract exists \u002F before\n  `semantic_model_ready: pass` (rule 5).\n- Do NOT call the Power BI execution adapter (official Power BI MCP \u002F connection;\n  `pbi-cli` no longer preferred), generate or publish the PBIR, or refresh a model --\n  that is feature F016 (rule 6), execution-only and gated.\n- Do NOT open a DB or Power BI Desktop connection.\n- Do NOT self-grant `dashboard_ready: pass` -- the highest this skill records is\n  `warning`; `pass` needs the reviewer's `approvals[]` entry.\n- Do NOT fabricate a confidence score -- use the four statuses + evidence + blockers.\n- Do NOT bake any real connection host or secret into any output (G6).\n\n## Generic, not C086\n\nThis skill and any template scaffold it uses are GENERIC (roadmap rule 7). No\nC086\u002Fpharmacy specifics (billing codes, segment rollups, insurance\u002FPII columns,\npharmacy grain keys, real metric names) appear in the skill text or any committed\ntemplate. Worked values belong only to a per-subject-area instance; C086 is the\nfirst worked example, not the schema (Principle VII).\n\n## See also\n\n- The stage contract: [`docs\u002Freadiness\u002Fdashboard-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fdashboard-ready.md).\n- The prior stage \u002F gate: [`docs\u002Freadiness\u002Fsemantic-model-ready.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Fsemantic-model-ready.md).\n- Status + evidence + blockers: [`docs\u002Freadiness\u002Freadiness-model.md`](..\u002F..\u002F..\u002Fdocs\u002Freadiness\u002Freadiness-model.md).\n- Hard rules 5\u002F6\u002F7\u002F8: [`docs\u002Froadmap\u002Froadmap.md`](..\u002F..\u002F..\u002Fdocs\u002Froadmap\u002Froadmap.md).\n- The visual-design FOUNDATION this verb reasons with: the `powerbi-dashboard-design`\n  router skill + `docs\u002Fpowerbi\u002F` + `templates\u002F` + `design\u002F` + `themes\u002F` +\n  `reports\u002Fblueprints\u002F` (F011A).\n- The narrative gate + framing catalog (spec 021): the `bi-analyst-knowledge`\n  pack (INDEX.md, `derivation-route.md`, the eight `framing-*.md` cards,\n  `story-order.md`, and the worked examples). The brief this skill consumes is\n  authored via that route.\n- The read-only evidence surface: `seshat narrative-check --table \u003Ct>` (brief) and\n  `seshat narrative-check --table \u003Ct> --binding-map` (three-way map).\n- Generic scaffolds: `templates\u002Fdashboard-layout.md`,\n  `templates\u002Fvisual-contract-binding-map.md`.\n\n## Orchestration\n\nWhen a table is driven end-to-end, the `retail-orchestrate` conductor sequences\nthis verb after `semantic_model_ready` is `pass` and runs the self-heal loop\nagainst the gate exit code. This skill stays single-purpose: it authors the design,\nrecords `dashboard_ready: warning`, and STOPS at the human design-review boundary.\nThe loop lives only in `retail-orchestrate`, never here.\n",{"name":5,"description":7},"main","6266e304556a72b75d951b9433fd833481c61233",".claude\u002Fskills\u002Fdashboard-design",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 dashboard-design",{"tool":37,"command":38},"bunx","bunx skills add Kemetra\u002FSeshat-BI --skill dashboard-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Kemetra\u002FSeshat-BI --skill dashboard-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdashboard-design\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",[],[]]