Scientific Color Mapsのロゴ

Scientific Color Maps

コミュニティ
DoiiarX
scientific-color-maps

データ可視化向けに、科学的に正確で知覚的に均一、かつ色覚多様性に配慮したカラーマップを選定、実装、監査します。プロット、ヒートマップ、地図、スカラー場、確率バー、進捗インジケーター、科学図表、ダッシュボード、可視化コードの作成やレビューに使います。パレットの選定や、色相の変化に実際の意味を持たせるべきかを判断するとき、虹色、jet、turbo、根拠のない低・中・高の色分け、赤緑スケールを置き換えるとき、グレースケールでの読みやすさ、色覚特性、カラーバー、正規化、視覚的な歪みの可能性を確認するときにも使います。colour、colour map、colour-vision deficiencyなど、英国式の綴りにも反応します。

概要

公開者DoiiarX
リポジトリclaude-skills
スキル名scientific-color-maps
スター
23
フォーク
0
同梱ファイル
4
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    DoiiarXがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Scientific Color Maps」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/DoiiarX/claude-skills/tree/main/scientific-color-maps
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DoiiarX/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/scientific-color-maps .claude/skills/scientific-color-maps
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでScientific Color Mapsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にScientific Color Mapsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Scientific Color Mapsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Scientific Color Maps

Treat color as a quantitative axis, not decoration. Preserve the structure of the data, make the mapping interpretable, and keep it readable under common color-vision deficiencies and grayscale reproduction.

Workflow

  1. Inspect the data and intended claim before choosing colors.
  2. Identify whether color is the primary quantitative channel or only reinforces position, length, height, or labels.
  3. Classify the variable and select the matching map class.
  4. Decide whether hue changes have a defensible semantic or perceptual purpose.
  5. Choose a documented perceptually uniform palette.
  6. Separate direct visualization evidence from adjacent color-psychology evidence.
  7. Implement the scale, normalization, limits, and color bar together.
  8. Validate the result under grayscale, color-vision simulation, and the final background.
  9. Report the exact palette and mapping decisions when reproducibility matters.

Read references/selection-and-audit.md when selecting among map classes, auditing an existing figure, or needing implementation guidance.

Read references/evidence-and-tools.md when applying visual-weight research, standardizing colors across figures, evaluating evidence strength, or deciding which validation tools to use.

Classify the Data

  • Use a sequential map for ordered values progressing from low to high.
  • Use a diverging map only when a meaningful reference value separates two directions, such as zero, an anomaly, or a target. Place the visual midpoint at that value.
  • Use a cyclic map for periodic values whose endpoints are equivalent, such as phase, angle, time of day, or orientation.
  • Use categorical colors for unordered groups. Do not imply magnitude through a continuous gradient.
  • Use a discrete form of the appropriate ordered map when values are binned. Keep bin boundaries explicit.

Do not choose a diverging map merely because the data contain positive and negative values; require a meaningful center. Do not choose a categorical palette for continuous measurements.

Decide Whether Hue Carries Meaning

Do not interpret “different values need different colors” as permission to assign unrelated hues. First identify the role of color:

  • When position, length, height, area, or text already carries the value, treat color as redundant reinforcement. Prefer one fixed hue with monotonic lightness or saturation. Keep zero, missing, disabled, and out-of-domain states visually separate.
  • When color is the primary quantitative channel in a dense heatmap, image, map, or scalar field, allow a documented perceptually uniform sequential map to vary in hue if its lightness remains ordered and its transitions do not create false boundaries.
  • Use distinct categorical hues only for genuinely unordered identities or states.
  • Use discrete threshold hues only when thresholds define real named business or scientific states. Label the thresholds; otherwise retain a continuous sequential scale.
  • Use opposing hues only for a diverging variable with a meaningful center.
  • Use cyclic hue progression only for periodic variables whose endpoints are equivalent.

For compact probability bars, progress bars, meters, ranked bars, and sparklines, default to a single-hue ordered ramp when bar height or length already expresses magnitude. Do not map arbitrary low, medium, and high bands to blue, amber, and green unless those bands are established operational states with documented thresholds and actions.

Respect Evidence Scope

  • Give direct scientific-visualization evidence priority for quantitative encoding decisions.
  • Use product, marketing, and object-perception studies only to identify possible salience, weight, size, or stability biases. Do not turn them into universal hue rankings or quantitative palette prescriptions.
  • Keep decorative and editorial goals separate from data encoding. A color treatment that makes a cover, card, or product feel stable can still bias a chart.
  • Avoid directional decorative gradients inside bars, areas, nodes, and other quantitative marks. A bottom-dark/top-light gradient can alter perceived weight or stability independently of the encoded value.
  • Do not state that warm colors are always heavier, red is always heaviest, or yellow is always lightest. Lightness, saturation, area, position, background, culture, and task interact.

Preserve Semantic Consistency

  • Keep the same entity, category, state, and reference value mapped to the same color across related figures.
  • Maintain a palette registry when a report, dashboard, paper, or product contains multiple views.
  • Do not reuse one color for incompatible meanings such as “high risk” in one figure and an ordinary category in another.
  • Record palette name and version, exact samples, normalization, limits, center, missing-data treatment, and background when reproducibility matters.

Preserve Data Meaning

  • Prefer palettes with approximately uniform perceptual change along the scale and a monotonic lightness path where the class permits it.
  • Prefer the least complex color encoding that preserves the intended comparison. Adding hue is not automatically more informative.
  • Avoid rainbow, jet, and rainbow-like scales, including turbo, for quantitative scientific data. Their uneven lightness and color transitions can invent boundaries, hide variation, and overemphasize arbitrary ranges.
  • Avoid red-green encoding at similar lightness. Never rely on hue alone for critical distinctions.
  • Keep palette sampling uniform. Do not squeeze, stretch, splice, or reorder sections of a validated palette.
  • Use nonlinear normalization only when justified by the data or task. Label it explicitly and ensure the color bar uses the same transformation.
  • Set limits from a defensible rule. Disclose clipping, saturation, winsorization, logarithmic transforms, and asymmetric ranges.
  • Keep a visible, labeled color bar for continuous or ordered color encodings unless values are directly labeled.
  • Account for the final background, neighboring marks, interpolation, transparency, and print conditions.

Prefer Trusted Palette Families

Start with maintained, documented families rather than inventing a palette:

  • Matplotlib perceptually uniform maps: viridis, cividis, magma, inferno, plasma.
  • Fabio Crameri Scientific Colour Maps: sequential, diverging, cyclic, discrete, and categorical options with diagnostics and versioned releases.
  • cmocean: parameter-oriented sequential, diverging, and cyclic maps.
  • ColorBrewer: especially useful for discrete sequential, diverging, and qualitative maps.
  • CET palettes: broad coverage, but verify the specific palette because quality varies across the collection.

Match the palette to the data semantics; a reputable palette from the wrong class is still misleading.

For unordered categories, consider an established color-universal-design palette such as Okabe-Ito as a starting point, then validate it at the actual mark size and background. Do not treat any categorical palette as universally safe.

Use the Bundled Audit Tool

Run scripts/audit_palette.py when exact palette samples are available:

bash
python3 scripts/audit_palette.py audit --class sequential \
  '#b8e3dc' '#8dd2c7' '#62c0b1' '#36ad9a' '#1b9283'

Discover usage incrementally with python3 scripts/audit_palette.py and python3 scripts/audit_palette.py audit --help. Use --format json for stable machine-readable output, --stdin in pipelines, and --warnings-as-errors for CI-style screening. Treat the report as a screening diagnostic, not certification: it measures CIELAB lightness, CIE76 color differences, grayscale spacing, and class-specific structural checks, but it does not model viewing environment, simultaneous contrast, or color-vision deficiency.

Validate Before Delivery

Perform checks on the rendered output, not only on palette swatches:

  • Convert to grayscale and confirm ordering, extrema, and important structures remain legible.
  • Simulate deuteranopia, protanopia, and tritanopia when tools permit.
  • Check that equal data steps do not produce conspicuously unequal visual steps.
  • Check whether every hue transition has a data-semantic or perceptual justification. Remove hue changes that merely decorate an already encoded magnitude.
  • Check that the most visually salient point corresponds to a meaningful value rather than an accidental bright band.
  • Confirm that the center, endpoints, limits, ticks, units, and missing-data color are unambiguous.
  • Check legends and annotations independently; accessibility of the continuous map does not guarantee accessibility of every overlay.

When only a raster image is available, label findings as visual heuristics. Do not claim perceptual uniformity has been measured unless the palette samples or source code are available for analysis in a perceptual color space.

Deliver Actionable Results

When creating a visualization, state the selected map class, palette name, normalization, limits, center if any, missing-data treatment, and validation performed. When auditing, distinguish:

  • definite defects visible in the artifact,
  • likely risks that require source data or palette samples to verify,
  • concrete replacements and code-level changes.

Preserve the user's plotting library and visual conventions unless they conflict with accurate representation or accessibility.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Scientific Color Maps」では何ができますか?

データ可視化向けに、科学的に正確で知覚的に均一、かつ色覚多様性に配慮したカラーマップを選定、実装、監査します。プロット、ヒートマップ、地図、スカラー場、確率バー、進捗インジケーター、科学図表、ダッシュボード、可視化コードの作成やレビューに使います。パレットの選定や、色相の変化に実際の意味を持たせるべきかを判断するとき、虹色、jet、turbo、根拠のない低・中・高の色分け、赤緑スケールを置き換えるとき、グレースケールでの読みやすさ、色覚特性、カラーバー、正規化、視覚的な歪みの可能性を確認するときにも使います。colour、colour map、colour-vision deficiencyなど、英国式の綴りにも反応します。

TypingMindでScientific Color Mapsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Scientific Color Mapsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにScientific Color Mapsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/DoiiarX/claude-skills/tree/main/scientific-color-mapsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Scientific Color Mapsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Scientific Color Mapsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもScientific Color Mapsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Scientific Color Maps」は無料ですか?

DoiiarXがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇