Logo di Dataviz Color

Dataviz Color

Community
skthewimp
dataviz-color

Choose and assign colours for a specific chart (or a colour-formatted table). Use whenever a visualization needs a palette - picking series colours, assigning hues to categories, checking a palette for accessibility, honouring a brand palette, or seeding colours from a source chart during repair. Decides which colours to use from an available set and how to assign them, by contrast, adjacent-series distinctness, colour-vision-deficiency and grayscale survival, and focal-colour-plus-grey emphasis. Brand or style guidance, whether from an installed brand skill or supplied in the prompt, takes precedence over defaults, but a specific graph still needs a which-and-how-assigned decision. WCAG is a soft diagnostic, not a hard gate.

Panoramica

Pubblicato daskthewimp
Repositorykarthik-data-visualization-skill
Nome della skilldataviz-color
Stelle
49
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da skthewimp su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Dataviz Color in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/dataviz-color/codex
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skthewimp/karthik-data-visualization-skill.git /tmp/karthik-data-visualization-skill
mkdir -p .claude/skills
cp -r /tmp/karthik-data-visualization-skill/dataviz-color/codex .claude/skills/dataviz-color
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Dataviz Color in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Dataviz Color non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Dataviz Color non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Dataviz Colour

Own the colour decision for one visualization: which colours to use and how to assign them to this chart's series or categories. This is a decision for the specific graph, not a palette look-up - even with a brand palette or recommended set in hand, a chart with N series and a given background still needs a call on which to use and how to assign them. Don't design the form, write annotations, or set number precision (those belong to karthik-data-visualization, chart-annotations, dataviz-precision).

The assignment arithmetic lives in the dataviz MCP as recommend_colours. Use it when the server is installed; without it, apply the same rules by hand (brand first, maximise separation between series while each reads on the background, then check contrast, colour-vision deficiency and grayscale by eye on the export). Keep the judgement here. Inside the construct pipeline, that judgement (available source, focal series, semantic meaning) is made at select as a compact colour_plan, resolved by recommend_colours, and applied at build - so this full skill is the standalone authority the plan distils, not a body loaded into the build call.

1. Where the available colours come from (precedence, higher wins)

  1. A brand or style skill, if installed. Scan the available-skills list for a name matching brand, style, design-system, theme, or palette; if one exists, invoke it and honour its palette and forbidden colours. The usual way a brand arrives.
  2. Colours or style guidance in the prompt/context - hex values, a named palette, "use our greens", a pasted style guide. Honour these too.
  3. Accessibility defaults when neither exists: colour-blind-safe starting palettes (Okabe-Ito, ColorBrewer, viridis).

Whatever wins defines the available set - the input to the decision, not the answer.

2. How many colours (max series per panel, not total categories)

Size the palette to the maximum number of series sharing a single panel that must be told apart by colour - a property of the form, not the total category count. N lines in one panel need N. Small multiples with k lines per panel need k (reused across panels), not the total across panels. Small multiples with one line per panel, direct labels, or position carrying identity need 0. Focal-plus-grey needs 1. Take that count as n_series (or use the count an upstream step handed you). When it's 0 there is no colour decision.

3. Always recommend for the specific graph

Call recommend_colours(available, colour_groups, background, focal, available_source=...). Pass where the set came from: brand and prompt colours (brand-skill, prompt) are spent first, exactly as given, and the tool only generates colours when there are more series than brand colours. A proposed set or hues read off a source image (source-extracted) are a prior: a colour that cannot be told apart from one already placed, or does not read on the background, is replaced by a generated one that can. It picks and assigns by maximising the minimum separation between series while keeping each readable against the background, and pins focal to the first series. The returned palette is ordered and prefix-nested (ordered_palette): the first m colours are themselves a good m-colour palette, so a panel with fewer series uses the first that many and the mapping stays consistent across panels. Read its rationale, shortfall, suggested_additions:

  • Available set too small for the series count → add the suggested additions/substitutions or collapse series, rather than reusing a hue.
  • Colours dropped for low background contrast → respect it; a light mark on a light ground is not a real option for a thin line (a large fill tolerates less).

Picking a subset from an available set is the normal case.

3a. Categorical series vs continuous magnitude - decide this first

Before calling anything, decide what colour encodes. Two different problems:

  • Categorical - colour tells apart series or categories (lines, bars, groups). N distinct colours. This is recommend_colours, everything above and below.
  • Continuous - colour encodes one ordered quantity (a heatmap/matrix fill, a choropleth, a colour-mapped value). This is not N series; it is a scale, chosen by hand with the rules below. Do not run a magnitude through recommend_colours - it collapses the variable to one series colour and judges the ramp's stops as if they were confusable series (a sequential ramp should have close neighbours). A heatmap of scores is the common trap.

For a continuous scale:

  • Sequential vs diverging. A one-sided magnitude (0-100 scores, counts, durations - higher is just more) has no intrinsic centre; sequential is the honest default. Reach for diverging when a midpoint carries meaning and separating low / middle / high aids the read - a signed quantity straddling zero, a value above/below a target, or a dense score matrix where a diverging ramp simply discriminates better. Diverging is often the better read for a matrix; choose it on that judgement, not by rote.
  • Midpoint from the data, never a constant. If an external reference exists (a target, a break-even, zero), that is the midpoint. Otherwise derive it from the data (the median), so the ramp splits these values, not an arbitrary 50. Diverge only when a real centre exists, or when you judge the split reads better for a score matrix.
  • Colours are recommended, not hardcoded. Poles come from the brand/context pool when there is one, chosen fresh only when there isn't. Never bake a fixed red-white-blue (or any fixed ramp) into the decision - let brand and background choose the hues. The two poles must stay apart in lightness so the extremes survive grayscale and CVD, and at least one end must read on the background.
  • Missing values are off the scale. NA cells get a distinct neutral, kept separate from a near-background diverging midpoint so an empty cell never reads as a mid-value one. Never leave missing cells to fall on a scale colour.

3b. Semantic colour - use it whenever it fits

When a series carries a colour meaning the reader already holds - a "loss" that reads red, an "ocean" that reads blue, a party or brand with a known colour - honour it; a semantically apt colour is understood before the legend. Reach for this by default when appropriate, and stand down only when something argues against it: the prompt or brand guidance says not to; the convention isn't shared by this audience (colour meaning is culture-relative - red is loss in US markets, gain in Indian and Chinese ones - so decide in context, never from a fixed table); or it costs accessibility (a red/green polarity collapsing under CVD - prefer blue/orange).

You own which series means what, and its away kit. Pass it as semantic_hints:

  • {"series_index": i, "colour": "#hex"} - a hard pin, for an exact colour (brand red, fixed party colour).
  • {"series_index": i, "hue_family": "blue"} - a soft family (the usual case): name the hue family and recommend_colours picks the nearest in-family colour from the available set, so brand and accessibility still shape the shade.
  • Add "alternates": [...] (colours or family words) as away kits for when a series' colour would clash.

Priority the tool enforces: (1) series stay distinguishable - the near-hard bar; (2) semantic meaning outranks accessibility - a soft family may take a low-contrast or CVD-weaker in-family colour and is honoured, not vetoed (the returned validation still flags it); (3) contrast/CVD/grayscale are soft diagnostics. Meaning wins over accessibility, but never at the cost of two series collapsing into one colour.

Away kits (the football rule). When two series' colours would clash, one keeps home and the other switches to an away kit - a different but still-its-own colour from alternates, not a mechanical darkening. Home is kept for hard pins, then focal, then the lower series_index; the clashing series takes the first away kit that separates. With no clearing away kit the tool keeps home and flags semantic_collision - it never silently reskins a series you didn't give an alternate for; supply one that still reads as its own, or merge the series. Read semantic_findings: semantic_unmet = no in-family colour available (add one or accept the separation pick); semantic_collision = resolve with an away kit. Hints make positions identity-bound, so the palette is no longer prefix-nested (prefix_nested: false) - expected. Use semantic colour where meaning earns a hue, not to colour every series.

4. Defaults and craft rules (when choosing freely)

  • Focal colour plus grey. One series focal; the rest muted grey context, unless every series genuinely competes for attention.
  • Adjacent regions differ in hue AND lightness - never hue alone, especially stacked or touching areas.
  • Don't rely on hue to carry meaning; avoid red-versus-green as the only distinction.
  • WCAG soft targets: ~4.5:1 normal text, 3:1 large text, 3:1 against background for small/thin essential marks. Diagnostic, not a gate.

5. Repair: source colours are a prior, not a rule

Read the source's dominant hues off the image. Treat them as a prior: feed them as the available set or a focal hint and keep the semantic mapping (which series a colour stands for), then override any specific hue freely for brand or accessibility. Preserve the mapping; don't defend the exact colours.

6. Validate and iterate

recommend_colours scores its own assignment and returns the result as validation: soft fails on background contrast, adjacent-series distinctness, CVD (deutan/protan/tritan), and grayscale, each with a concrete nudge. Act on them (lighten/darken to separate, or shift a hue, then pass the adjusted set back in as available) and look at the export once it is rendered. A soft_fail is guidance, not a stop - accessible multi-colour palettes on white are genuinely hard, so weigh the findings against how the chart is actually read.

Domande frequenti

Cosa fa la skill IA Dataviz Color?

Choose and assign colours for a specific chart (or a colour-formatted table). Use whenever a visualization needs a palette - picking series colours, assigning hues to categories, checking a palette for accessibility, honouring a brand palette, or seeding colours from a source chart during repair. Decides which colours to use from an available set and how to assign them, by contrast, adjacent-series distinctness, colour-vision-deficiency and grayscale survival, and focal-colour-plus-grey emphasis. Brand or style guidance, whether from an installed brand skill or supplied in the prompt, takes...

Perché usare Dataviz Color su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Dataviz Color è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Dataviz Color in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/dataviz-color/codex. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Dataviz Color?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Dataviz Color?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Dataviz Color: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Dataviz Color è gratuita?

Sì. È pubblicata su GitHub da skthewimp con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇