Logotipo de Dataviz Color

Dataviz Color

Comunidad
skthewimp
dataviz-color

Elige y asigna colores a un gráfico concreto (o a una tabla con colores). Úsala siempre que una visualización necesite una paleta: para elegir colores para las series, asignar tonos a las categorías, comprobar la accesibilidad de una paleta, respetar los colores de una marca o tomar como referencia los colores de un gráfico original al corregirlo. Decide qué colores usar de entre los disponibles y cómo asignarlos, teniendo en cuenta el contraste, la diferenciación entre series adyacentes, la legibilidad para personas con deficiencias en la visión del color y en escala de grises, y el énfasis en un color destacado frente al gris. Las directrices de marca o estilo, tanto si proceden de una habilidad de marca instalada como si se incluyen en el prompt, tienen prioridad sobre los valores predeterminados. Aun así, para un gráfico concreto hay que decidir qué colores usar y cómo asignarlos. Las pautas WCAG son una referencia de diagnóstico, no un requisito estricto.

Descripción general

Editorskthewimp
Repositoriokarthik-data-visualization-skill
Nombre de la habilidaddataviz-color
Estrellas
49
Forks
5
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por skthewimp en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Dataviz Color en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/dataviz-color/codex
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Dataviz Color en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Dataviz Color automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Dataviz Color no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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.

Preguntas frecuentes

¿Qué hace la habilidad de IA Dataviz Color?

Elige y asigna colores a un gráfico concreto (o a una tabla con colores). Úsala siempre que una visualización necesite una paleta: para elegir colores para las series, asignar tonos a las categorías, comprobar la accesibilidad de una paleta, respetar los colores de una marca o tomar como referencia los colores de un gráfico original al corregirlo. Decide qué colores usar de entre los disponibles y cómo asignarlos, teniendo en cuenta el contraste, la diferenciación entre series adyacentes, la legibilidad para personas con deficiencias en la visión del color y en escala de grises, y el énfasi...

¿Por qué usar Dataviz Color en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Dataviz Color está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Dataviz Color en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/dataviz-color/codex. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Dataviz Color?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Dataviz Color?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Dataviz Color con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Dataviz Color?

Sí. skthewimp la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇