/nexus-agents:docs-chartfrom nexus-agents
Generates dark-mode-compatible inline SVG charts (bar, donut, line, lollipop, area, radar) for nexus-agents docs from quantitative data like metrics, fitness scores, and success rates.
Ships in nexus-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use inline SVG charts when nexus-agents docs reference quantitative data:
| Data source | Best chart type |
|---|---|
| OutcomeStore success-rate-by-CLI | Horizontal bar |
Per-call cost from usage-log.jsonl | Donut (per model) |
| Fitness audit history (target ≥ 90/100) | Line chart |
| CLI success rate over time | Line / area |
| Voter approval distribution | Lollipop |
| Cost-per-success comparison | Grouped bar |
| Multi-dimensional model scoring (reasoning / speed / cost / quality) | Radar |
Mermaid handles sequence / state / flow diagrams (see docs-mermaid),
but renders quantitative charts ugly and inflexibly. SVG is the right
tool for "compare these numbers." Each rendered chart is dark-mode-
compatible (uses currentColor for text + transparent backgrounds) and
includes a role="img" + aria-label for accessibility.
Look at the data pattern:
| Pattern | Chart type |
|---|---|
| Before/after comparison (claude vs codex success rates) | Grouped bar |
| Ranked factors / correlations (per-CLI categories) | Lollipop |
| Parts of whole / market share (cost split per model) | Donut |
| Trend over time (fitness score by week) | Line |
| Percentage improvement (single dimension) | Horizontal bar |
| Distribution / range (latency p50/p99) | Area |
| Multi-dimensional scoring | Radar |
Don't reuse the same chart type for unrelated data within the same section, but feel free to use it again where the data shape repeats — e.g., two horizontal-bar comparisons in different parts of an architecture doc is fine.
All charts share this shell (viewBox may be tuned per chart):
<svg
viewBox="0 0 560 380"
style="max-width: 100%; height: auto; font-family: 'Inter', system-ui, sans-serif"
role="img"
aria-label="<one-line description with the headline number>"
>
<title>Chart Title</title>
<desc>Description for screen readers with all key data points and source.</desc>
<!-- Chart content (axes, bars, labels) -->
<text x="280" y="372" text-anchor="middle" font-size="10"
fill="currentColor" opacity="0.35">
Source: Source Name (Year)
</text>
</svg>
Color palette (dark-mode safe, all text uses currentColor):
| Color | Hex | Use case |
|---|---|---|
| Orange | #f97316 | Primary / highest value |
| Sky blue | #38bdf8 | Secondary / comparison |
| Purple | #a78bfa | Tertiary / special category |
| Green | #22c55e | Quaternary / positive indicator |
For text inside colored fills, use fill="white" with font-weight:800.
For nexus-agents-specific data, reach for these existing surfaces rather than asking the operator for raw numbers:
| Need | Read from |
|---|---|
| Per-call cost / latency / success | <NEXUS_DATA_DIR>/usage/usage-YYYY-MM.jsonl |
| Per-CLI rolling success rate | weather_report MCP tool output |
| Vote outcomes by role | <NEXUS_DATA_DIR>/voting/*.jsonl |
| Fitness audit history | <NEXUS_DATA_DIR>/audit/fitness-*.json |
| Routing decision distribution | query_trace MCP tool output |
When the data isn't available locally, ask the operator for a JSONL or CSV path — don't fabricate numbers.
This skill is the quantitative-charts lane. Redirect when the request fits a different lane:
docs-mermaiddocs-imagedocumentation-managementSay the rule of thumb when redirecting: "Charts are for numbers; for 'show me how X works', use docs-mermaid."
docs-mermaid.currentColor so the doc's existing
theme handles light/dark. Don't override.references/chart-types.md — copy-pasteable templates for all seven
chart types with nexus-agents-flavored examples.nexus-agents usage --format=json — JSON output suitable for direct
ingestion by chart rendering.What SKILL.md sets; muted values are Claude Code's defaults
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.PreToolUse.0: Hook matcher "hooks" must be an array of hook entries; received undefined; hooks.PreToolUse.1: Hook matcher "hooks" must be an array of hook entries; received undefined — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.PreToolUse.0: Hook matcher "hooks" must be an array of hook entries; received undefined; hooks.PreToolUse.1: Hook matcher "hooks" must be an array of hook entries; received undefined — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
34 skills in this plugin
/api-and-interface-designDesign stable, hard-to-misuse interfaces — REST endpoints, MCP tool
schemas, module boundaries, type contracts. Apply when defining new
surfaces or evolving public ones. Triggers on "API design", "interface",
"schema", "contract", "module boundary", "type design".
/browser-testing-with-devtoolsTest UI in real browsers via Chrome DevTools MCP. Apply when debugging
rendering issues, console errors, network behavior, performance, or
accessibility — anywhere static code analysis can't see runtime state.
Triggers on "browser test", "DOM inspect", "console errors",
"network trace", "core web vitals in browser", "ui bug repro".
/bug-fixFix a bug following project standards.
Use when fixing defects, debugging issues, or resolving reported problems.
Triggers on "fix bug", "debug", "fix issue", "resolve bug".
/code-simplificationReduce nesting, extract names, eliminate redundancy without changing
behavior. Apply after features work and tests pass — never as a
drive-by during feature work. Triggers on "simplify", "refactor for clarity",
"this is hard to read", "code review flagged complexity".
/codex-delegatorDelegate code generation tasks to Codex CLI for optimal performance.
Use when implementing features, generating tests, refactoring code, or
making bulk code changes. Triggers on "delegate to codex", "route to codex",
"use codex", "code generation".
/context-engineeringCurate what the agent sees, when, and how it's structured. Apply when
starting a session, when output quality drifts, when fanning out
subagents, or when configuring rules files. Triggers on
"context engineering", "rules file", "agent context",
"subagent fan-out", "context budget".
Other plugins' skills for the same job