powerbi-mockup-builder
Converts visual mockups into functional Power BI reports.
Install
mkdir -p .claude/skills/powerbi-mockup-builder && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12863" && unzip -o skill.zip -d .claude/skills/powerbi-mockup-builder && rm skill.zipInstalls to .claude/skills/powerbi-mockup-builder
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Build or update a Power BI PBIP report from a UI mockup (HTML/Figma/PNG) with UX improvements. Use when asked to implement or refine a Power BI app to match a mockup, map visuals to a semantic model, add measures, or edit PBIP report/semantic model files.Key capabilities
- →Map visuals from mockup to semantic model
- →Add required DAX measures
- →Update PBIP report files
- →Update PBIP semantic model files
- →Create report spec from mockup
- →Implement UX improvements
How it works
This skill converts a UI mockup into a Power BI PBIP report by identifying visuals, mapping them to a semantic model, adding DAX measures, and updating report and semantic model artifacts.
Inputs & outputs
When to use powerbi-mockup-builder
- →Create PBIP report
- →Add DAX measures
- →Update Power BI visuals
- →Map mockups to model
About this skill
PowerBI Mockup Builder
Overview
Turn a mockup into a real PBIP report by mapping visuals to the semantic model, adding required measures, and updating PBIP artifacts safely.
Workflow Decision Tree
- Mockup type?
- HTML: Extract page titles, KPIs, charts, tables, filters, interactions.
- Image/Figma: Identify sections and visuals; if labels are unclear, ask one question.
- PBIP present?
- Yes: Update existing
.Reportand.SemanticModelartifacts. - No: Create a report spec first, then build PBIP.
- Yes: Update existing
- Model gaps?
- Missing fields/measures: Add DAX measures or document a workaround.
- Missing tables: Exclude visuals or propose a spec change.
Quick Start
- Locate artifacts and mockups:
- Find
.pbip,.Report,.SemanticModel, and mockup files.
- Find
- Read the semantic model:
- Tables/columns, measures, relationships, date table.
- Convert mockup → page spec:
- Page list, KPIs, charts, tables, slicers, interactions.
- Add required measures:
- Prefer reusable measures; set format strings.
- Implement PBIP changes:
- Update
.SemanticModelTMDL (measures, tables if needed). - Update
.Reportreport.json for pages/visuals.
- Update
- Validate:
- No broken fields, visuals match grain, filters use date table.
Implementation Steps (PBIP)
-
Inventory
- Identify PBIP root and related folders.
- Note report theme and display names.
-
Model mapping
- Build a field map: mockup labels → tables/columns/measures.
- Flag any mismatch immediately.
-
Measures
- Add measures in the fact table or a dedicated measures table.
- Provide DAX + format + description.
- Avoid implicit aggregation in visuals.
-
Pages & visuals
- Create/rename sections to match mockup tabs.
- Add visuals with explicit fields and filters.
- Set interactions intentionally (cross-filter/highlight/none).
-
Filters & slicers
- Use the model's date table.
- Keep consistent slicers across pages if the mockup implies it.
-
UX improvements (safe)
- Improve legibility, alignment, and hierarchy.
- Keep layout consistent with mockup.
- Avoid scope creep beyond the mockup unless asked.
-
Validation
- Check for missing fields/measures.
- Verify relationships support visuals.
- Confirm totals won't double-count.
Visual Configuration Patterns
Time-Formatted Measures (MM:SS)
For duration metrics, use this DAX pattern:
AHT Formatted =
VAR TotalSeconds = [Avg Handle Time (sec)]
VAR Minutes = INT(TotalSeconds / 60)
VAR Seconds = MOD(TotalSeconds, 60)
RETURN FORMAT(Minutes, "0") & ":" & FORMAT(Seconds, "00")
Table Data Bars
Apply conditional formatting for inline data visualization:
- Select measure column → Conditional formatting → Data bars
- Configure min (0 or auto), max (auto), bar color
- Accessibility: Power BI generates "data bar XX%" screen reader text
Treemap Hierarchy
For multi-level treemaps:
- Group: Parent category field (e.g., CSQ Name)
- Details: Child metrics (Total, Handled, Abandoned)
- Use distinct colors per category
Navigation Buttons
Button actions:
- Page navigation: Links to another report page
- Web URL: Opens external link
- Bookmark: Applies filter state or shows/hides visuals
Place navigation buttons consistently (left sidebar or top).
Wallboard Layout Pattern
For real-time operational dashboards:
- Row 1: Large KPI cards (4-6) for critical live metrics
- Row 2: Status tables (Agent Status, Queue Status)
- Row 3: Summary KPIs for daily totals
- No slicers: Operators need full unfiltered view
- Large fonts: Readable from distance
Dark Theme Color Palette
| Purpose | Color | Hex |
|---|---|---|
| Background | Navy | #1B2838 |
| Primary Accent | Teal | #00A99D |
| Secondary Accent | Yellow | #F4D03F |
| Warning | Orange | #E67E22 |
| Text Primary | White | #FFFFFF |
| Text Secondary | Light Gray | #CCCCCC |
Output Requirements
- Provide a concise change summary.
- List files changed.
- Provide a short manual test checklist (refresh, slicers, key visuals).
- Ask only one clarifying question if blocked.
References
- PBIP structure guide:
references/pbip-files.md
When not to use it
- →When not building or updating a Power BI PBIP report
- →When not working from a UI mockup
- →When not needing UX improvements
Limitations
- →Requires a UI mockup as input
- →Limited to Power BI PBIP reports
- →UX improvements are limited to safe changes
How it compares
This workflow provides a structured approach to translate visual mockups into functional Power BI reports, including specific DAX patterns and UX considerations, which goes beyond manual report creation.
Compared to similar skills
powerbi-mockup-builder side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| powerbi-mockup-builder (this skill) | 0 | 4mo | No flags | Advanced |
| report-generation | 3 | 4mo | No flags | Advanced |
| state-county-rankings | 0 | 5mo | Review | Beginner |
| data-analyst | 0 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by cdrguru
View all by cdrguru →You might also like
report-generation
apconw
通用的报告生成技能,根据用户诉求生成各类数据分析报告,包括数据库查询、统计分析和 HTML 图表可视化
state-county-rankings
amkessler
This skill should be used when users need ranked county-level demographic metrics within a state from a local CSV file, such as income, population, poverty, or rent.
data-analyst
k1lgor
Senior data analyst skill for extracting statistically rigorous insights from structured and semi-structured data. Covers exploratory data analysis, A/B test evaluation with significance testing, cohort analysis, funnel analysis, data quality assessment, and insight narrative construction. Use this
design
Hainrixz
Greenfield database design — pick the right engine for a new project, compare it against the boring default, and hand back a starter data model with a diagram. Recommendation mode (module M0); never scored, never destructive. Use when the user is starting fresh and asks what database to use, how to
grafana-dashboards
wshobson
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
reconciliation
anthropics
Reconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-subledger recs, intercompany reconciliations, or identifying and categorizing reconciling items.