# svg-reviewer

svg-reviewer is a Claude Code subagent that checks SVG DAX measures for markup and DAX issues and comments on their design before they are shared with a user.

- subagent · `type=agent` · Claude Code, Codex, Cursor, GitHub Copilot · ★ 1104 repo stars
- Author: Kurt Buhler
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/reports/agents/svg-reviewer.agent.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/svg-reviewer

## What it does

The subagent inspects how a DAX measure produces SVG, including its image prefix, `xmlns` and `viewBox` attributes, colors, and quoting. It also checks string escaping, the `HASONEVALUE` guard, the `ImageUrl` category, variable layout, and the SVG Y-axis direction.

Design feedback covers output size, coordinate precision, `CONCATENATEX` use, intended visual type, and color choices. The response lists failed checks, gives up to three suggestions, and ends with `READY` or `NEEDS CHANGES`. It reviews rather than edits the measure; its available tools are `Read`, `Grep`, and `Glob`.

## Requirements
- Works with: Power BI

## Install

### GitHub Copilot (native platform)

**Manually: put the files in place**
- File: `.github/agents/svg-reviewer.agent.md`

### Claude Code

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add data-goblin/power-bi-agentic-development
```
In the agent chat (not a shell):
```text
/plugin install reports@power-bi-agentic-development
```

2. **Manually: put the files in place**
- File: `.claude/agents/svg-reviewer.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention. Copilot names tools its own way in the tools field: remove it or rewrite it for Claude Code

### Codex

**Manually: put the files in place**
- File: `.codex/agents/svg-reviewer.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/svg-reviewer.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/reports/agents/svg-reviewer.agent.md

## When to use it
- check the image prefix in a DAX SVG measure
- catch SVG attribute and string-escaping errors
- verify single-category context handling
- review variable structure and SVG coordinates
- get feedback on visual size and color choices

## Example prompts
- Review this DAX SVG measure before I show it to the user.
- Check this measure's SVG markup and DAX string escaping.
- Assess the size and design of this SVG for a matrix cell.

## Similar
- [power-bi-dax-optimization](https://affpapa.org/en/nevibecode/skills/power-bi-dax-optimization.md) — skill · 9100 installs
- [power-bi-model-design-review](https://affpapa.org/en/nevibecode/skills/power-bi-model-design-review.md) — skill · 9000 installs
- [power-bi-build](https://affpapa.org/en/nevibecode/skills/power-bi-build.md) — skill · 688 installs
- [power-bi-salespulse-360-dashboard](https://affpapa.org/en/nevibecode/skills/power-bi-salespulse-360-dashboard.md) — skill · 661 installs
- [power-bi-retail-analytics-salespulse360](https://affpapa.org/en/nevibecode/skills/power-bi-retail-analytics-salespulse360.md) — skill · 659 installs
- [DAX Terminal](https://affpapa.org/en/nevibecode/prompts/dax-terminal.md) — prompt · ★ 178201 repo stars

From the same set: [data-goblin/power-bi-agentic-development](https://affpapa.org/en/nevibecode/by/data-goblin/power-bi-agentic-development.md) — 59 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
