Logo: Blog Cost Charts

Blog Cost Charts

Communautéit
akitaonrails
blog-cost-charts

Erstellt donkel Bubble-Streudiagrammer zum Verglach vu Käschten a Score a Balkendiagrammer fir d’Bewäertung vu Score/(Käschten*Zäit) fir e Blogartikel, deen LLM-Benchmarkresultater vergläicht (oder all Datensatz mat enger Score/Käschten/Zäit-Struktur). D’Diagrammer ginn op Portugisesch an Englesch erstallt, op S3 eropgelueden an an den Hugo-Artikel agebett. Benotzt dëse Skill, wann de Benotzer no Tabellen fir Diagrammer, Grafiken oder engem visuelle Verglach vu Modeller/Optiounen no enger Rankingtabell op akitaonrails.com freet.

Add to TypingMind

Iwwersiicht

Editeurakitaonrails
Repositorymy-skills
Skill-Nummblog-cost-charts
Stären
268
Forks
31
Matgeliwwert Dateien
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    akitaonrails huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Blog Cost Charts an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/akitaonrails/my-skills/tree/master/blog-cost-charts
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/akitaonrails/my-skills.git /tmp/my-skills
mkdir -p .claude/skills
cp -r /tmp/my-skills/blog-cost-charts .claude/skills/blog-cost-charts
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Blog Cost Charts an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Blog Cost Charts automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Blog Cost Charts net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Blog Cost/Value Charts

You help turn a ranking table (score, cost, time, per item) into two companion charts for a blog post on this Hugo site: a cost-vs-score bubble scatter, and a score/(cost×time) value-ranking bar chart. Both are produced dark-themed, one PNG per language the article ships in (normally pt and en), and get embedded right after the ranking table.

This came out of the v4 LLM benchmark article (content/2026/09/15/novo-llm-benchmark-v4-*), which needed exactly this pair of charts to make a 39-row table skimmable. The script here is the generalized version of the one-off script written for that post.

When to use

  • The article has a table with a numeric score, a cost, and a time (or any three comparable numeric axes) per row, and the user wants a visual "which one is the best deal" comparison instead of just the raw table.
  • Explicitly requested: "add graphs/charts after the table", "make this easier to compare visually", "cost-benefit chart", etc.

Workflow

1. Pick the dataset and scope

Not every row in a big table belongs in the chart. Decide, and say so in the chart's own footnote:

  • Which rows have a genuinely comparable cost figure? Exclude free, uncommitted, or flat-rate-plan entries that can't sit meaningfully on a dollar axis (a $0 point breaks a log scale; a flat-rate plan has no per-run dollar figure at all). Call these out by name in the footnote rather than silently dropping them.
  • If costs come from different harnesses/pricing bases (e.g. a real per-token API cost vs. a notional share of a flat subscription), don't hide that — color-code by group (see below) and say so in the footnote and in the article's own prose, the same way the source table already should.
  • A curated subset (15-25 points) reads far better than cramming all 39+ rows in; prefer restricting to the tier/category the article's own prose is actually discussing (e.g. "Tier A only") over trying to fit everything.

2. Build the JSON config

Copy scripts/config.example.json and edit it. Shape:

jsonc
{
  "slug": "v4",                    // filename prefix for the output PNGs
  "x_log": true,                    // log-scale cost axis (usually yes: cost ranges span 100x+)
  "x_lim": [0.7, 160],               // tune to the actual data range with a little padding
  "y_lim": [84.5, 102.2],
  "x_ticks": [1, 3, 10, 30, 100],
  "x_tick_fmt": "${}",
  "group_colors": { "codex": "#5fd35f", "claude": "#e8965a", "...": "..." },
  "models": [
    {"name": "GPT-6 Astra", "score": 100.0, "cost": 30.55, "minutes": 100, "group": "codex"}
  ],
  "text": {
    "pt": { "scatter_title": "...", "scatter_subtitle": "...", "scatter_xlabel": "...",
            "scatter_ylabel": "...", "groups": {"codex": "Codex (OpenAI)"},
            "footnote": "...", "ranking_title": "...", "ranking_subtitle": "...",
            "ranking_xlabel": "...", "ranking_footnote": "..." },
    "en": { /* same keys, English copy */ }
  }
}

Every key under text.<lang> must be filled per language — there's no translation step in the script, it just renders whatever string you give it. Match the site's voice rules for both languages (PT-BR: Akita's direct, skeptical voice, no em dashes; EN: New Yorker tone, same rules) — these strings are visible chart copy, not throwaway labels.

3. Tune label offsets to avoid overlap

Bubble charts with several models at a similar cost/score WILL collide on first render. Run the script once, actually look at the output image (Read tool, not just "it ran without error"), and add a label_offsets map to the config for any name whose label overlaps another:

jsonc
"label_offsets": { "GPT 5.6 sol": [14, -22], "GPT 5.6 terra": [-14, 20] }

Values are [dx, dy] in points from the bubble center. Expect 2-3 iterations of render → look → nudge before it's clean. This is the single most time-consuming part of the workflow; budget for it rather than shipping the first render.

4. Generate

bash
python3 scripts/make_charts.py path/to/config.json --outdir /path/to/scratchpad/charts

Outputs <slug>-cost-score-<lang>.png and <slug>-value-ranking-<lang>.png per language key in text. Read each image back before moving on — check for: overlapping labels, title/subtitle collisions, a legend sitting on top of data, and that the value-ranking numbers look sane (spot-check one or two by hand: score / (cost * minutes) * 1000).

5. Upload to S3 — do not skip this

Static blog posts can't reference local files. Every PNG must go up before it's embeddable:

bash
set -a; source ~/.config/zsh/secrets 2>/dev/null; set +a
for f in <slug>-cost-score-pt.png <slug>-cost-score-en.png <slug>-value-ranking-pt.png <slug>-value-ranking-en.png; do
  aws s3 cp "/path/to/scratchpad/charts/$f" "s3://new-uploads-akitaonrails/YYYY/MM/DD/$f" \
    --region us-east-2 --content-type image/png
done

Use the article's own publish date for the YYYY/MM/DD path, matching the convention already used for post images. After uploading, verify each URL actually resolves (don't just trust the upload exit code):

bash
curl -s -o /dev/null -w "%{http_code}\n" \
  "https://new-uploads-akitaonrails.s3.us-east-2.amazonaws.com/YYYY/MM/DD/<file>.png"

Expect 200 for all four.

6. Embed in the article

Insert right after the ranking table's own footnotes/caveats (before moving on to narrative sections), one language-appropriate image per post, with a short lead-in sentence and a plain-language alt text describing the axes:

markdown
![Bubble chart: dollar cost on the X axis (log scale) against score on the Y axis, bubble size is wall-clock time, color is the harness](https://new-uploads-akitaonrails.s3.us-east-2.amazonaws.com/YYYY/MM/DD/<slug>-cost-score-en.png)

Do this in both the index.md (PT) and index.en.md (EN) siblings in the same turn, each pointing at its own language's PNG — never mix languages in one post's images.

7. Rebuild and verify before committing

bash
hugo --minify
grep -o 'https://new-uploads-akitaonrails.s3[^")]*' public/<pt-path>/index.html
grep -o 'https://new-uploads-akitaonrails.s3[^")]*' public/en/<en-path>/index.html

Confirm the build has no errors and each language's page references its own PNG. Then commit both markdown files together (they're a translation pair — see the site's bilingual-editing rule) and push per the user's usual publish flow.

Design notes (why the script looks like this)

  • Dark theme, log-scale cost axis, bubble size = time: mirrors a reference chart style the user has used before (#0d1117 background, colored bubbles, muted gridlines). Cost in a benchmark context routinely spans two-plus orders of magnitude ($0.90 to $120+), so linear cost axes make cheap options indistinguishable — always log-scale it.
  • Color = group, not score: coloring by cost basis/harness (real API $ vs. notional subscription $ vs. free) visually carries the "these aren't directly comparable" caveat that the article's prose already has to state in words. Don't color by score/tier instead; that duplicates the Y axis.
  • Value index = score / (cost × time), scaled ×1000 for readable numbers: this combined ranking routinely surprises — a model with a merely-good score but very low cost AND fast wall time can out-rank the single highest-score cheap model. Call that out explicitly in the article's prose next to the chart; it's usually the actual news, not filler.
  • Never automate the "which rows to include" decision: that's an editorial judgment about the article's argument, not a data-cleaning step.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Blog Cost Charts?

Erstellt donkel Bubble-Streudiagrammer zum Verglach vu Käschten a Score a Balkendiagrammer fir d’Bewäertung vu Score/(Käschten*Zäit) fir e Blogartikel, deen LLM-Benchmarkresultater vergläicht (oder all Datensatz mat enger Score/Käschten/Zäit-Struktur). D’Diagrammer ginn op Portugisesch an Englesch erstallt, op S3 eropgelueden an an den Hugo-Artikel agebett. Benotzt dëse Skill, wann de Benotzer no Tabellen fir Diagrammer, Grafiken oder engem visuelle Verglach vu Modeller/Optiounen no enger Rankingtabell op akitaonrails.com freet.

Firwat Blog Cost Charts op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Blog Cost Charts besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Blog Cost Charts an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/akitaonrails/my-skills/tree/master/blog-cost-charts an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Blog Cost Charts benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Blog Cost Charts benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Blog Cost Charts domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Blog Cost Charts gratis?

akitaonrails huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇