Index of every page on this site: llms.txt
All skills
axiomhq avatar

/axiom-metrics-chart

@5b11222 official
by Axiom, Inc.axiomhq/skills18 stars
2
Run it yourself

Render saved Axiom metrics v2 or v3 JSON as line charts in a terminal or transcript. Uses Unicode/ASCII by default and supports PNG/SVG/sixel with gnuplot. Use when plotting metrics query results.

Use this Skill: https://skilld.dev/gh/axiomhq/skills/axiom-metrics-chart

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈686 tokens on demand. Your agent reads this file only when SKILL.md points to it.

axiom-metrics-chart

Renders saved Axiom metrics query results (v2 or v3 JSON) as multi-series line charts — directly in your terminal or agent transcript.

What It Does

  • Zero-dependency charts - Pure Python stdlib Unicode/braille line chart that renders in any terminal, transcript, or CI log
  • Optional high-fidelity images - If gnuplot is installed, emits PNG/SVG/sixel, displayed inline in image-capable terminals (Kitty/Ghostty, iTerm2)
  • Series reduction - Collapses overlapping lines and caps at top-N by peak, reporting how many series were dropped
  • Time-aware - Local-time x-axis by default (--tz to override); null points are drawn as gaps, not zeros
  • Readable legends - Built from the response's group_keys (e.g. 200 | GET), with the y-axis unit taken from the metadata

Installation

# Amp
amp skill add axiomhq/skills/axiom-metrics-chart

# npx (Claude Code, Cursor, Codex, and more)
npx skills add axiomhq/skills -s axiom-metrics-chart

Prerequisites

  • Python 3.9+ - standard library only; no pip packages
  • gnuplot (optional) - only for --format png|svg|sixel; the default ASCII renderer needs nothing

No ~/.axiom.toml and no network access required — this skill renders a query response you already have.

Input

For MCP results, call queryMetrics with truncate: false and save its structuredContent ({metadata, series}) as response.json. The default CSV preview can omit series and samples.

Saved API responses in v2 (application/json+metrics.v2) or v3 (application/vnd.metrics.v3+json) form also work. A per-series summary is ignored.

Usage

# Render a saved response (auto-picks an inline image or ASCII for your terminal)
scripts/metrics_chart.py response.json

# Read a saved response from stdin
scripts/metrics_chart.py < response.json

# Force a zero-dependency ASCII chart anywhere
scripts/metrics_chart.py --format ascii response.json

# High-fidelity PNG to a file
scripts/metrics_chart.py --format png --output chart.png response.json

Common options: --tz <IANA|UTC>, --top <N>, --all, --title, --width/--height, --color/--no-color. See SKILL.md for the full reference and input schema.

Scripts

Script Purpose
metrics_chart.py Render a metrics v3 (or v2) response as a line chart
test_metrics_chart.py Unit tests: python3 -m unittest test_metrics_chart

Related Skills

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts25d3 checks · Risk SAFE
  • Gen Agent Trust Hub25d

    The axiom-metrics-chart skill is a safe utility for rendering metrics as charts in a terminal or agent environment. It operates locally on provided JSON data, uses only Python's standard library, and follows security best practices for subprocess handling and file management.

  • Socket25d

    No alerts

  • Snyk25d

    Risk: LOW · No issues

Signed by skilld at 5b11222. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 hours ago.

Activeupdated last month

README badge

README badge for axiomhq/skills/axiom-metrics-chart