p00318821-eng/skills-plugins-hooks-agents/deneb-visuals
Claude Code and agent skill by p00318821-eng/skills-plugins-hooks-agents
- community
Checking that the SKILL.md file is still in the repository.
Deneb visual creation, Vega/Vega-Lite spec authoring, and Deneb best practices for PBIR reports. Automatically invoke whenever the user mentions "Deneb" in any context, or asks about Vega/Vega-Lite specs in Power BI, Deneb cross-filtering, Deneb interactivity, pbiColor theme integration, Deneb field name escaping, or Deneb rendering issues.
Install
npx vskill@latest install p00318821-eng/skills-plugins-hooks-agents/deneb-visualsSKILL.md
Deneb Visuals in Power BI (PBIR)
Report modification requires tooling. Two paths exist:1. `pbir` CLI (preferred) -- use thepbircommand and thepbir-cliskill. Install withuv tool install pbir-cliorpip install pbir-cli. Check availability withpbir --version.2. Direct JSON modification -- ifpbiris not available, use thepbir-formatskill (pbip plugin) for PBIR JSON structure and patterns. Validate every change withjq empty <file.json>.If neither thepbir-cliskill nor thepbir-formatskill is loaded, ask the user to install the appropriate plugin before proceeding with report modifications.
Deneb is a certified custom visual for Power BI that enables Vega and Vega-Lite declarative visualization specs directly inside reports. Author specs using this skill.
Provider Policy
Prefer Vega-Lite for new Deneb visuals unless specific Vega-only features are required (signals, event streams, custom projections, force/voronoi layouts). Vega-Lite is more concise, easier to maintain, and covers most chart types. For advanced Vega features, see references/vega-patterns.md and the Vega documentation.
Visual Identity
- visualType:
deneb7E15AEF80B9E4D4F8E12924291ECE89A - Bundled runtime: Vega 6.2.0 / Vega-Lite 6.4.1 (since Deneb 1.8; use
v6.jsonschema URLs) - Data role: Single
datasetrole (all fields go into one "Values" well) - Default row limit: 10,000 rows (override via
dataLimit.override) - Provider:
vegaLite(default) orvega(when Vega-specific features needed) - Render modes:
svg(default, sharp text) orcanvas(better for large datasets)
Custom Visual Registration (Required)
Register deneb7E15AEF80B9E4D4F8E12924291ECE89A in report.json publicCustomVisuals array manually. Without this, the visual shows "Can't display this visual."
For more information, use the pbir-format skill and check the report.md reference.
Workflow: Creating a Deneb Visual
Step 1: Add the Visual
Create the visual.json file manually (see pbir-format skill in the pbip plugin for JSON structure) with visualType: deneb7E15AEF80B9E4D4F8E12924291ECE89A, field bindings for the columns and measures you need, and position/size as required.
All fields bind to the single dataset role. Use Table.Column for columns and Table.Measure for measures. Field names in bindings must match those used in the Vega/Vega-Lite spec.
Step 2: Write the Spec
Create a Vega-Lite (or Vega) JSON spec file. Key difference:
- Vega-Lite:
"data": {"name": "dataset"}(object) - Vega:
"data": [{"name": "dataset"}](array)
See examples/spec/ for complete spec files (Vega and Vega-Lite) and examples/visual/ for full PBIR visual.json files. Field names in the spec must match the nativeQueryRef (display name) from the field bindings.
Step 3: Inject the Spec
Set the spec and config in the visual's objects.vega[0].properties as single-quoted DAX literal strings. The jsonSpec property holds the Vega spec (stringified JSON), jsonConfig holds the config, and provider is set to 'vega' or 'vegaLite'. See the PBIR structure reference (references/pbir-structure.md) for the full encoding pattern.
Escaping rules for visual.json injection:
The spec JSON must be stringified into a single line and wrapped in single quotes inside the expr.Literal.Value:
- The entire JSON spec is flattened to one line
- All inner double quotes (
") become\"(standard JSON string escaping) - The stringified JSON is wrapped in single quotes:
'...' - Field names with spaces inside Vega expressions use doubled single quotes:
datum[''Sales Amount''] - See
examples/visual/for complete real-world visual.json files showing this encoding
Step 3b: Review
Before presenting the spec to the user, dispatch the deneb-reviewer agent to validate syntax and provide design feedback.
Step 4: Validate
Validate JSON syntax with jq empty <visual.json> and inspect the visual.json to confirm spec content and field bindings.
Spec Authoring Rules
Data Binding
- Vega:
"data": [{"name": "dataset"}](array form) - Vega-Lite:
"data": {"name": "dataset"}(object form) - Fields reference display names. Special characters (
.,[,],\,") become_ - Spaces are NOT replaced -- field names keep their spaces (e.g.,
"Order Lines")
Field Name Escaping in Expressions (Critical)
Escaping depends on whether the spec is standalone or injected into a PBIR visual.json:
Standalone spec files (in examples/spec/): use double quotes with JSON escaping:
Inside PBIR visual.json (in examples/visual/): the entire spec is a single-quoted DAX literal string. Field names with spaces use doubled single quotes (''):
Single quotes that are NOT part of field name escaping (e.g., string literals in filter expressions like datum.Series == 'Actuals') work as-is because they don't conflict with the outer single-quote wrapper.
Responsive Sizing (Vega)
Use Deneb's built-in signals for responsive container sizing:
The offsets account for padding. For absolute positioning of text marks, use {"signal": "width"} instead of hardcoded pixel values.
Config (Separate from Spec)
Always provide a config file for consistent styling. See the Standard Config section in references/vega-patterns.md. Key settings: autosize: fit, view.stroke: transparent, font: Segoe UI.
Theme Integration
Use Power BI theme colors instead of hardcoded hex values:
| Function/Scheme | Purpose | Usage in Vega | |
|---|---|---|---|
pbiColor(index) | Theme color by index (0-based) | {"signal": "pbiColor(0)"} | |
pbiColor(0, -0.3) | Darken theme color by 30% | Shade: -1 (dark) to 1 (light) | |
pbiColor("negative") | Sentiment colors | "min", "middle", "max", "negative", "positive" | |
pbiColor("bad") | Aliases for sentiment | "bad" = "negative", "good" = "positive", "neutral" = "middle" | |
pbiColorNominal | Categorical palette (distinct) | "range": {"scheme": "pbiColorNominal"} | |
pbiColorOrdinal | Ordinal palette (ordered categories) | "range": {"scheme": "pbiColorOrdinal"} | |
pbiColorLinear | Continuous gradient | "range": {"scheme": "pbiColorLinear"} | |
pbiColorDivergent | Divergent gradient | "range": {"scheme": "pbiColorDivergent"} |
Interactivity
Enable interactivity via the vega objects in visual.json:
| Feature | Property | Default | Notes | |
|---|---|---|---|---|
| Tooltips | enableTooltips | true | Use "tooltip": {"signal": "datum"} in encode | |
| Context menu | enableContextMenu | true | Right-click drill-through | |
| Cross-filtering | enableSelection | false | Requires __selected__ handling | |
| Cross-highlighting | enableHighlight | false | Creates <field>__highlight fields |
Cross-Filtering
When enableSelection is true, handle __selected__ ("on", "off", "neutral") in encode blocks. Selection modes: simple (auto-resolves) or advanced (requires event definitions, Vega only). See references/vega-patterns.md for the full pattern.
Cross-Highlighting
Use layered marks -- background at reduced opacity, foreground shows <field>__highlight values. See references/vega-patterns.md for details.
Special Runtime Fields
Deneb injects runtime fields into each dataset row. See references/capabilities.md for the full table.
Key fields: __row__ (zero-based row index, replaces removed __identity__), __selected__ (selection state), <field>__highlight + <field>__highlightStatus + <field>__highlightComparator (cross-highlighting), <field>__formatted (pre-formatted value string), <field>__format (Power BI format string).
Breaking change in 1.9:__identity__and__key__were removed. Replace anydatum.__identity__withdatum.__row__.
Best Practices
- Use Vega-Lite for new visuals unless Vega-specific features are needed (signals, events, force layouts)
- Always use `autosize: fit` in config for responsive Power BI sizing
- Use `pbiContainerWidth`/`pbiContainerHeight` signals for responsive Vega specs
- Use theme colors (
pbiColor,pbiColorNominal) instead of hex values - Use `enter`/`update`/`hover` encode blocks for clean state management (Vega only)
- Enable tooltips with
"tooltip": {"signal": "datum"}on marks - Mind row limits -- 10K default; set
dataLimit.overrideand userenderMode: canvasfor large datasets - Test field names -- verify
nativeQueryRefmatches spec field references - Avoid external data -- AppSource certification prevents loading external URLs
- Escaping depends on context -- double quotes in standalone specs, doubled single quotes in PBIR visual.json (see escaping rules above)
When to Use Deneb
Deneb is the preferred choice for advanced custom visuals that need interactivity (cross-filtering, tooltips, hover effects) and go beyond what native Power BI visuals offer. Use Deneb when you need:
- Custom chart types not available natively (bullet charts, beeswarms, sankeys, etc.)
- Fine-grained control over visual encoding, animation, and interactivity
- Vector-based rendering (crisp at any size)
Use SVG measures instead for simple inline graphics in tables/cards (sparklines, data bars, progress bars) where interactivity is not needed. Use Python/R instead for statistical visualizations (distribution analysis, regression, correlation) where the focus is analytical rigor over interactivity.
References
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deneb-visuals/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/p00318821-eng/skills-plugins-hooks-agents/deneb-visuals)