[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77J9WYFSRZ0AQE3WH2K3721":3,"skill-same:01M77J9WYFSRZ0AQE3WH2K3721":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},"01M77J9WYFSRZ0AQE3WH2K3721","pbir-authoring-adapter",null,"The Power BI report-AUTHORING adapter (F034 completion). Use when someone asks to apply a generated theme to a committed PBIR report, or (later increments) to set visual formatting or a page background by writing the report's PBIR JSON directly -- the settings a human sets by hand in the Power BI UI. This is a COMPANION execution\u002Fauthoring adapter (the F029-dbt \u002F F030-Dagster pattern), NOT part of the static DEFINE\u002FCHECK core. It writes committed PBIR JSON within a tight allow-list, deterministically and validated; it uses NO pbi-cli, NO live Power BI, NO external dependency, and NO network. It grants no readiness pass and emits no score.","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\u002Fpbir-authoring-adapter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pbir-authoring-adapter\ndescription: >-\n  The Power BI report-AUTHORING adapter (F034 completion). Use when someone asks to\n  apply a generated theme to a committed PBIR report, or (later increments) to set\n  visual formatting or a page background by writing the report's PBIR JSON directly\n  -- the settings a human sets by hand in the Power BI UI. This is a COMPANION\n  execution\u002Fauthoring adapter (the F029-dbt \u002F F030-Dagster pattern), NOT part of the\n  static DEFINE\u002FCHECK core. It writes committed PBIR JSON within a tight allow-list,\n  deterministically and validated; it uses NO pbi-cli, NO live Power BI, NO external\n  dependency, and NO network. It grants no readiness pass and emits no score.\n---\n\n# pbir-authoring-adapter\n\nThe adapter that completes F034: it writes the committed PBIR report the kit\npreviously left for a human to build in Power BI Desktop. Authorized by\n**ADR 0015** (owner-ratified 2026-07-05), which lifts spec-001 FR-008\u002FFR-009 *for\nthis bounded adapter only* -- the static core stays forbidden from writing PBIR.\n\n## What it is (and is NOT)\n\n- It **is** a companion authoring adapter: reads a generated theme (Slice 1\n  `retail theme-gen`) + committed PBIR, WRITES committed PBIR JSON within an\n  allow-list, and validates every write.\n- It is **NOT** the brain: it defines no metric, mapping, or semantic logic; it\n  writes formatting\u002Fwiring, never business meaning.\n- It is **NOT** publish-capable: it stops at the committed on-disk PBIR. Publishing\n  to a live workspace is the parked F016 adapter (separate, gated).\n- It does **NOT** build a dashboard from nothing: it restyles\u002Fpositions visuals a\n  human authored. \"Great professional dashboards\" is a design-intelligence layer\n  that would ride on top -- this adapter is the mechanism, not that layer.\n\n## The boundary (carry into every increment)\n\n1. **Allow-list only.** Write ONLY the declared formatting\u002Fwiring properties (see\n   `templates\u002Fpbir-adapter-contract.md`). Increment A's allow-list: the report's\n   `themeCollection.baseTheme` + its `resourcePackages` item + the BaseTheme\n   resource file. Nothing else -- no `visual.json`, no `page.json` geometry, no\n   semantic-model file.\n2. **No external dependency.** No pbi-cli, no Power BI MCP, no live connection, no\n   network. stdlib `json` + `pathlib` only. The tool is complete in itself.\n3. **Deterministic + validated + reversible.** Byte-identical re-run; reviewable git\n   diff; stage -> validate (valid JSON + `$schema` preserved + round-trip stable +\n   R1 model-ref + R2 authoring-lint) -> commit-or-roll-back; all-or-nothing.\n4. **Evidence, not approval.** A successful write is evidence formatting was applied;\n   it moves NO readiness stage and emits NO score (hard rule #9). The\n   `dashboard_ready` \u002F design-review sign-off stays a named human's decision.\n5. **The core polices; the adapter writes.** `seshat check` R2 is the read-only core\n   lint over the written report; the writer (`src\u002Fseshat\u002Fpbir_theme_apply.py`) is the\n   adapter. The core never writes PBIR (ADR 0015 decision 1).\n\n## Increment A -- apply a generated theme (SHIPPED)\n\n`retail pbir-apply-theme --repo \u003Croot> --table \u003Ctable> --theme \u003Ctheme.json> --report \u003C*.Report\u002F>` writes the theme\nas a BaseTheme resource and repoints `report.json`'s `themeCollection` at it. Works\non an empty report page (no visuals needed). This is the safe smallest slice.\n\n## Increment B -- per-visual formatting (SHIPPED)\n\n`retail pbir-format-visual --repo \u003Croot> --table \u003Ctable> --visual \u003Cvisual.json> --formatting \u003Cjson>` sets\nallow-listed formatting under a visual's `objects` (chart-content: legend, labels,\ndataPoint, axes) and `visualContainerObjects` (chrome: border, title, subTitle,\nbackground, dropShadow) subtrees. **The FR-003 guarantee:** the visual's data\nbinding (`query` + `visualType`) is asserted byte-identical before+after; the write\nis refused if it would change. It formats a visual a human already authored -- it\nnever binds data or creates a visual. (Latent until a human builds a visual in\nDesktop; there is no live target to format yet.)\n\n## Increment C -- page background (SHIPPED)\n\n`retail pbir-set-page-background --repo \u003Croot> --table \u003Ctable> --asset \u003Cimg> --report \u003C*.Report\u002F> --page \u003Cname>\n[--scaling Fit|Fill|Normal]` sets a page's canvas background to a committed surface-2\nimage asset: it copies the asset into `StaticResources\u002FRegisteredResources\u002F`,\nregisters it in `report.json` (the RegisteredResources package), and references it\nfrom `page.json` `objects.background` via a `ResourcePackageItem` URL + name +\nscaling. Allow-list-only: touches ONLY `objects.background` + the RegisteredResources\npackage -- every other page object (e.g. `outspacePane`) and report key is preserved.\nSurface-2 purity: references a static image, bakes no data into it. The wire format\n(`ResourcePackageItem`, `PackageType: 1`) was taken verbatim from a real\nDesktop-authored sample -- it was NOT guessed (increment C was held until that sample\nexisted).\n\n## Increment D -- visual geometry \u002F layout (SHIPPED)\n\n`retail pbir-set-geometry --repo \u003Croot> --table \u003Ctable> --visual \u003Cvisual.json> --position \u003Cjson>` writes ONLY a\nvisual's layout rectangle -- `x`, `y`, `width`, `height`, `z` (stack\u002Ftab order) -- for\na visual that already exists and is already on the approved binding-map. It repositions\nexisting truth; it NEVER changes `visualType`, creates\u002Fdeletes a visual, or adds\u002Fremoves\na page (creation is authoring truth, out of scope here). Off-canvas positions are\nrejected; overlap is allowed (a design judgment). Authorized separately by ADR 0016\n(the formatting-only ADR 0015 deliberately refuses geometry). No `--force`: position\nkeys always pre-exist, so a differs-then-refuse gate would block every real move;\noverwrite safety is the reviewable git diff + human ratification.\n\n## Hard stops\n\n- STOP before writing anything outside the current increment's allow-list.\n- STOP unless the exact table's readiness record is committed and clean, with\n  `semantic_model_ready: pass` and a complete named-human `dashboard_ready`\n  approval. The command gate checks this before reading a mutation payload.\n- STOP if ADR 0015 is not the recorded authorization (never self-grant the lift).\n- STOP at the on-disk PBIR -- never open a live Power BI \u002F workspace (that is F016).\n\n## See also\n\n- Authorization: `docs\u002Fdecisions\u002F0015-pbir-authoring-adapter-lifts-fr008-fr009.md`\n  (A\u002FB\u002FC), `docs\u002Fdecisions\u002F0016-pbir-adapter-geometry-increment-d.md` (D geometry),\n  and `docs\u002Fdecisions\u002F0017-pbir-creation-primitive.md` (the spec-123 blueprint->PBIR\n  compiler, which CREATES pages\u002Fvisuals -- a separate capability beyond this adapter).\n- Spec \u002F plan \u002F tasks: `specs\u002F106-pbir-authoring-adapter\u002F{spec,plan,tasks}.md`.\n- The contract: `templates\u002Fpbir-adapter-contract.md`.\n- The enumerated shape + allow-list: `docs\u002Fintegrations\u002Fpbir-adapter.md`.\n- The writer + verb: `src\u002Fseshat\u002Fpbir_theme_apply.py` (`retail pbir-apply-theme`).\n- The core lint: `src\u002Fseshat\u002Frules\u002Fpbir.py` (R2).\n- The theme source consumed: `src\u002Fseshat\u002Ftheme_gen.py` (`retail theme-gen`, Slice 1).\n- The parked publish adapter (separate): F016.\n","# pbir-authoring-adapter\n\nThe adapter that completes F034: it writes the committed PBIR report the kit\npreviously left for a human to build in Power BI Desktop. Authorized by\n**ADR 0015** (owner-ratified 2026-07-05), which lifts spec-001 FR-008\u002FFR-009 *for\nthis bounded adapter only* -- the static core stays forbidden from writing PBIR.\n\n## What it is (and is NOT)\n\n- It **is** a companion authoring adapter: reads a generated theme (Slice 1\n  `retail theme-gen`) + committed PBIR, WRITES committed PBIR JSON within an\n  allow-list, and validates every write.\n- It is **NOT** the brain: it defines no metric, mapping, or semantic logic; it\n  writes formatting\u002Fwiring, never business meaning.\n- It is **NOT** publish-capable: it stops at the committed on-disk PBIR. Publishing\n  to a live workspace is the parked F016 adapter (separate, gated).\n- It does **NOT** build a dashboard from nothing: it restyles\u002Fpositions visuals a\n  human authored. \"Great professional dashboards\" is a design-intelligence layer\n  that would ride on top -- this adapter is the mechanism, not that layer.\n\n## The boundary (carry into every increment)\n\n1. **Allow-list only.** Write ONLY the declared formatting\u002Fwiring properties (see\n   `templates\u002Fpbir-adapter-contract.md`). Increment A's allow-list: the report's\n   `themeCollection.baseTheme` + its `resourcePackages` item + the BaseTheme\n   resource file. Nothing else -- no `visual.json`, no `page.json` geometry, no\n   semantic-model file.\n2. **No external dependency.** No pbi-cli, no Power BI MCP, no live connection, no\n   network. stdlib `json` + `pathlib` only. The tool is complete in itself.\n3. **Deterministic + validated + reversible.** Byte-identical re-run; reviewable git\n   diff; stage -> validate (valid JSON + `$schema` preserved + round-trip stable +\n   R1 model-ref + R2 authoring-lint) -> commit-or-roll-back; all-or-nothing.\n4. **Evidence, not approval.** A successful write is evidence formatting was applied;\n   it moves NO readiness stage and emits NO score (hard rule #9). The\n   `dashboard_ready` \u002F design-review sign-off stays a named human's decision.\n5. **The core polices; the adapter writes.** `seshat check` R2 is the read-only core\n   lint over the written report; the writer (`src\u002Fseshat\u002Fpbir_theme_apply.py`) is the\n   adapter. The core never writes PBIR (ADR 0015 decision 1).\n\n## Increment A -- apply a generated theme (SHIPPED)\n\n`retail pbir-apply-theme --repo \u003Croot> --table \u003Ctable> --theme \u003Ctheme.json> --report \u003C*.Report\u002F>` writes the theme\nas a BaseTheme resource and repoints `report.json`'s `themeCollection` at it. Works\non an empty report page (no visuals needed). This is the safe smallest slice.\n\n## Increment B -- per-visual formatting (SHIPPED)\n\n`retail pbir-format-visual --repo \u003Croot> --table \u003Ctable> --visual \u003Cvisual.json> --formatting \u003Cjson>` sets\nallow-listed formatting under a visual's `objects` (chart-content: legend, labels,\ndataPoint, axes) and `visualContainerObjects` (chrome: border, title, subTitle,\nbackground, dropShadow) subtrees. **The FR-003 guarantee:** the visual's data\nbinding (`query` + `visualType`) is asserted byte-identical before+after; the write\nis refused if it would change. It formats a visual a human already authored -- it\nnever binds data or creates a visual. (Latent until a human builds a visual in\nDesktop; there is no live target to format yet.)\n\n## Increment C -- page background (SHIPPED)\n\n`retail pbir-set-page-background --repo \u003Croot> --table \u003Ctable> --asset \u003Cimg> --report \u003C*.Report\u002F> --page \u003Cname>\n[--scaling Fit|Fill|Normal]` sets a page's canvas background to a committed surface-2\nimage asset: it copies the asset into `StaticResources\u002FRegisteredResources\u002F`,\nregisters it in `report.json` (the RegisteredResources package), and references it\nfrom `page.json` `objects.background` via a `ResourcePackageItem` URL + name +\nscaling. Allow-list-only: touches ONLY `objects.background` + the RegisteredResources\npackage -- every other page object (e.g. `outspacePane`) and report key is preserved.\nSurface-2 purity: references a static image, bakes no data into it. The wire format\n(`ResourcePackageItem`, `PackageType: 1`) was taken verbatim from a real\nDesktop-authored sample -- it was NOT guessed (increment C was held until that sample\nexisted).\n\n## Increment D -- visual geometry \u002F layout (SHIPPED)\n\n`retail pbir-set-geometry --repo \u003Croot> --table \u003Ctable> --visual \u003Cvisual.json> --position \u003Cjson>` writes ONLY a\nvisual's layout rectangle -- `x`, `y`, `width`, `height`, `z` (stack\u002Ftab order) -- for\na visual that already exists and is already on the approved binding-map. It repositions\nexisting truth; it NEVER changes `visualType`, creates\u002Fdeletes a visual, or adds\u002Fremoves\na page (creation is authoring truth, out of scope here). Off-canvas positions are\nrejected; overlap is allowed (a design judgment). Authorized separately by ADR 0016\n(the formatting-only ADR 0015 deliberately refuses geometry). No `--force`: position\nkeys always pre-exist, so a differs-then-refuse gate would block every real move;\noverwrite safety is the reviewable git diff + human ratification.\n\n## Hard stops\n\n- STOP before writing anything outside the current increment's allow-list.\n- STOP unless the exact table's readiness record is committed and clean, with\n  `semantic_model_ready: pass` and a complete named-human `dashboard_ready`\n  approval. The command gate checks this before reading a mutation payload.\n- STOP if ADR 0015 is not the recorded authorization (never self-grant the lift).\n- STOP at the on-disk PBIR -- never open a live Power BI \u002F workspace (that is F016).\n\n## See also\n\n- Authorization: `docs\u002Fdecisions\u002F0015-pbir-authoring-adapter-lifts-fr008-fr009.md`\n  (A\u002FB\u002FC), `docs\u002Fdecisions\u002F0016-pbir-adapter-geometry-increment-d.md` (D geometry),\n  and `docs\u002Fdecisions\u002F0017-pbir-creation-primitive.md` (the spec-123 blueprint->PBIR\n  compiler, which CREATES pages\u002Fvisuals -- a separate capability beyond this adapter).\n- Spec \u002F plan \u002F tasks: `specs\u002F106-pbir-authoring-adapter\u002F{spec,plan,tasks}.md`.\n- The contract: `templates\u002Fpbir-adapter-contract.md`.\n- The enumerated shape + allow-list: `docs\u002Fintegrations\u002Fpbir-adapter.md`.\n- The writer + verb: `src\u002Fseshat\u002Fpbir_theme_apply.py` (`retail pbir-apply-theme`).\n- The core lint: `src\u002Fseshat\u002Frules\u002Fpbir.py` (R2).\n- The theme source consumed: `src\u002Fseshat\u002Ftheme_gen.py` (`retail theme-gen`, Slice 1).\n- The parked publish adapter (separate): F016.\n",{"name":5,"description":7},"main","6266e304556a72b75d951b9433fd833481c61233",".claude\u002Fskills\u002Fpbir-authoring-adapter",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 pbir-authoring-adapter",{"tool":37,"command":38},"bunx","bunx skills add Kemetra\u002FSeshat-BI --skill pbir-authoring-adapter",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Kemetra\u002FSeshat-BI --skill pbir-authoring-adapter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKemetra\u002FSeshat-BI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpbir-authoring-adapter\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",[],[]]