Logo Scientific Color Maps

Scientific Color Maps

Cộng đồng
DoiiarX
scientific-color-maps

Chọn, triển khai và kiểm tra bản đồ màu chính xác về mặt khoa học, đồng đều về cảm nhận và hỗ trợ người bị khiếm khuyết thị giác màu trong trực quan hóa dữ liệu. Dùng khi tạo hoặc xem xét biểu đồ, heatmap, bản đồ, trường vô hướng, thanh xác suất, chỉ báo tiến độ, hình minh họa khoa học, dashboard hoặc mã trực quan hóa; khi chọn bảng màu hoặc cân nhắc liệu thay đổi sắc độ có mang ý nghĩa thực sự hay không; khi thay thế thang màu cầu vồng, jet, turbo, các màu tùy ý từ thấp đến cao hoặc thang đỏ–xanh lá; hoặc khi kiểm tra khả năng đọc ở thang xám, mù màu, thanh màu, chuẩn hóa và khả năng gây sai lệch thị giác. Cũng kích hoạt với các cách viết theo Anh-Anh như colour, colour map và colour-vision deficiency.

Tổng quan

Nhà phát hànhDoiiarX
Kho mãclaude-skills
Tên kỹ năngscientific-color-maps
Sao
23
Bản fork
0
Tệp đi kèm
4
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được DoiiarX công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Scientific Color Maps trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/DoiiarX/claude-skills/tree/main/scientific-color-maps
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Scientific Color Maps trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Scientific Color Maps ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Scientific Color Maps với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Scientific Color Maps làm được gì?

Chọn, triển khai và kiểm tra bản đồ màu chính xác về mặt khoa học, đồng đều về cảm nhận và hỗ trợ người bị khiếm khuyết thị giác màu trong trực quan hóa dữ liệu. Dùng khi tạo hoặc xem xét biểu đồ, heatmap, bản đồ, trường vô hướng, thanh xác suất, chỉ báo tiến độ, hình minh họa khoa học, dashboard hoặc mã trực quan hóa; khi chọn bảng màu hoặc cân nhắc liệu thay đổi sắc độ có mang ý nghĩa thực sự hay không; khi thay thế thang màu cầu vồng, jet, turbo, các màu tùy ý từ thấp đến cao hoặc thang đỏ–xanh lá; hoặc khi kiểm tra khả năng đọc ở thang xám, mù màu, thanh màu, chuẩn hóa và khả năng gây s...

Vì sao nên dùng Scientific Color Maps trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Scientific Color Maps là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Scientific Color Maps trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/DoiiarX/claude-skills/tree/main/scientific-color-maps. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Scientific Color Maps?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Scientific Color Maps với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Scientific Color Maps với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Scientific Color Maps có miễn phí không?

Kỹ năng này được DoiiarX phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇