[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMM9Q7HC6W3D46V6P8YFYV":3,"skill-same:01M7EMM9Q7HC6W3D46V6P8YFYV":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EMM9Q7HC6W3D46V6P8YFYV","colormap-theory",null,"Choosing colormaps scientifically — perceptual uniformity, color-vision deficiency, and matching map to data type.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-colormap-theory\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: colormap-theory\ndescription: Choosing colormaps scientifically — perceptual uniformity, color-vision deficiency, and matching map to data type.\ncategory: scientific\n---\n\n## Overview\n\nA colormap is a visual encoding function: data value → color. Bad ones\n(rainbow\u002Fjet) create false structure and hide real structure; good ones\nare perceptually uniform and readable by everyone. This skill covers\nmatching colormap type to data (sequential, diverging, cyclic,\nqualitative), perceptual uniformity, color-vision-deficiency safety, and\npractical selection in matplotlib, Plotly, and beyond.\n\n## When to use\n\n- Choosing a colormap for a heatmap, contour plot, or 3D surface\n- Fixing a figure that uses rainbow\u002Fjet\n- Encoding signed data (anomalies, differences) with a diverging map\n- Making figures readable for colorblind viewers and in grayscale\n- Designing a custom colormap for a specific variable\n\n## Core concepts\n\n- **Perceptual uniformity:** equal data steps should look like equal color steps — measured in CIELAB space; viridis, cividis, batlow, and ColorBrewer maps qualify; jet\u002Frainbow emphatically don't (their sharp yellow\u002Fcyan bands invent boundaries).\n- **Map types:** sequential (low→high, one hue ramp: viridis, plasma, Blues), diverging (two ramps around a meaningful center: RdBu, Vik, coolwarm — center must be meaningful, e.g., zero anomaly), cyclic (phase\u002Fangle: twilight, hsv — ends must match), qualitative\u002Fcategorical (distinct hues: Tab10, Set2 — never a continuous map for categories).\n- **Lightness carries the information:** the human visual system reads data primarily through lightness variation — a good sequential map is monotonic in lightness; test by converting to grayscale.\n- **Color-vision deficiency:** ~8% of men have red–green deficiency — avoid red–green encodings for critical distinctions; cividis was designed for maximal CVD safety; simulate with CVD simulators before publishing.\n- **Background matters:** dark-background figures need different map tuning than white-background ones; transparency\u002Falpha encodings interact with the background color.\n- **The data's dynamic range:** skewed data need nonlinear normalization (log, power-law, asinh) more than they need a fancy map — fix the mapping before blaming the colors.\n\n- **CIELAB and perceptual distance:** professional colormap design happens in perceptually uniform spaces (CIELAB, CIECAM02) — equal steps in data become equal ΔE steps in color; RGB interpolation is not perceptually uniform.\n- **The rainbow's specific sins:** non-monotonic lightness (bright yellow\u002Fcyan bands), false contours at hue boundaries, and high-frequency name boundaries — each creates structure the data doesn't have.\n- **Bivariate colormaps:** encoding two variables in one map (e.g., value + uncertainty) — powerful but hard to read; use only with a clear legend and when the joint distribution is the message.\n\n## Practical workflow\n\n### 1. Classify your data, then choose\n\n| Data | Map type | Examples |\n|---|---|---|\n| Sequential, zero-based | Sequential | viridis, plasma, batlow, Blues |\n| Diverging around meaningful center | Diverging | RdBu_r, Vik, coolwarm |\n| Phase \u002F orientation | Cyclic | twilight, phase |\n| Categories | Qualitative | Tab10, Set2, Okabe-Ito |\n\n### 2. Apply correctly\n\n```python\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import CenteredNorm, LogNorm, PowerNorm\n# Diverging data around zero: center the map explicitly\nplt.imshow(anomaly, cmap=\"RdBu_r\", norm=CenteredNorm(vcenter=0))\n# Skewed positive data: log or power-law normalization\nplt.imshow(counts, cmap=\"viridis\", norm=LogNorm())\n```\n\n1. Set vmin\u002Fvmax (or norm) deliberately — autoscaling to outliers wastes the dynamic range; consider robust limits (percentiles) with out-of-range marking.\n2. For diverging maps, center exactly on the meaningful midpoint — an off-center \"diverging\" map lies.\n3. Always include a colorbar with labeled ticks and units — a heatmap without a scale is decoration.\n\n### 3. Test accessibility\n\n1. Convert to grayscale: is the structure still visible? (If not, the map fails its primary job.)\n2. Simulate deuteranopia\u002Fprotanopia\u002Ftritanopia — check that critical distinctions survive.\n3. Print in black and white if the venue might — many readers still do.\n\n### 4. Go beyond defaults when needed\n\n1. For publication series, define one palette per variable and reuse it — consistency builds reader intuition.\n2. Build custom maps with perceptually uniform interpolation (viscm, cmaputil) rather than hand-picking RGB stops.\n3. Document the colormap and normalization in the caption or methods — reproducibility includes the visual encoding.\n\n### 5. Design a custom colormap\n\n1. Define the data mapping first (sequential\u002Fdiverging\u002Fcyclic, normalization, center) — the map serves the mapping, not vice versa.\n2. Build in a perceptual colorspace: interpolate in CIELAB between chosen control colors, enforcing monotonic lightness for sequential maps.\n3. Test with viscm-style diagnostics: perceptual-delta plots should be flat (uniform), and test images (sine waves, wedges) should show no false banding — iterate until clean.\n\n## Common pitfalls\n\n- **Rainbow\u002Fjet:** non-uniform, creates false contours, CVD-hostile — the single most common visualization error in science; replace on sight.\n- **Diverging map without a meaningful center:** a diverging map centered at an arbitrary value implies structure that isn't there.\n- **Continuous map for categories:** implies ordering and interpolation between classes that don't exist.\n- **Autoscale to outliers:** one hot pixel flattens everything else — use robust limits.\n- **Missing colorbar:** no scale, no units, no interpretation — always label.\n- **3D surface + bad map:** perspective distortion plus non-uniform color is double deception — prefer 2D heatmaps with good maps for quantitative reading.\n- **Alpha as a second encoding:** transparency interacts with background color unpredictably — overlapping transparent marks create false dark spots read as data.\n- **Colormap applied to already-encoded data:** double-encoding (e.g., contour lines + colormap of the same variable) adds ink without information — pick one encoding per variable.\n","## Overview\n\nA colormap is a visual encoding function: data value → color. Bad ones\n(rainbow\u002Fjet) create false structure and hide real structure; good ones\nare perceptually uniform and readable by everyone. This skill covers\nmatching colormap type to data (sequential, diverging, cyclic,\nqualitative), perceptual uniformity, color-vision-deficiency safety, and\npractical selection in matplotlib, Plotly, and beyond.\n\n## When to use\n\n- Choosing a colormap for a heatmap, contour plot, or 3D surface\n- Fixing a figure that uses rainbow\u002Fjet\n- Encoding signed data (anomalies, differences) with a diverging map\n- Making figures readable for colorblind viewers and in grayscale\n- Designing a custom colormap for a specific variable\n\n## Core concepts\n\n- **Perceptual uniformity:** equal data steps should look like equal color steps — measured in CIELAB space; viridis, cividis, batlow, and ColorBrewer maps qualify; jet\u002Frainbow emphatically don't (their sharp yellow\u002Fcyan bands invent boundaries).\n- **Map types:** sequential (low→high, one hue ramp: viridis, plasma, Blues), diverging (two ramps around a meaningful center: RdBu, Vik, coolwarm — center must be meaningful, e.g., zero anomaly), cyclic (phase\u002Fangle: twilight, hsv — ends must match), qualitative\u002Fcategorical (distinct hues: Tab10, Set2 — never a continuous map for categories).\n- **Lightness carries the information:** the human visual system reads data primarily through lightness variation — a good sequential map is monotonic in lightness; test by converting to grayscale.\n- **Color-vision deficiency:** ~8% of men have red–green deficiency — avoid red–green encodings for critical distinctions; cividis was designed for maximal CVD safety; simulate with CVD simulators before publishing.\n- **Background matters:** dark-background figures need different map tuning than white-background ones; transparency\u002Falpha encodings interact with the background color.\n- **The data's dynamic range:** skewed data need nonlinear normalization (log, power-law, asinh) more than they need a fancy map — fix the mapping before blaming the colors.\n\n- **CIELAB and perceptual distance:** professional colormap design happens in perceptually uniform spaces (CIELAB, CIECAM02) — equal steps in data become equal ΔE steps in color; RGB interpolation is not perceptually uniform.\n- **The rainbow's specific sins:** non-monotonic lightness (bright yellow\u002Fcyan bands), false contours at hue boundaries, and high-frequency name boundaries — each creates structure the data doesn't have.\n- **Bivariate colormaps:** encoding two variables in one map (e.g., value + uncertainty) — powerful but hard to read; use only with a clear legend and when the joint distribution is the message.\n\n## Practical workflow\n\n### 1. Classify your data, then choose\n\n| Data | Map type | Examples |\n|---|---|---|\n| Sequential, zero-based | Sequential | viridis, plasma, batlow, Blues |\n| Diverging around meaningful center | Diverging | RdBu_r, Vik, coolwarm |\n| Phase \u002F orientation | Cyclic | twilight, phase |\n| Categories | Qualitative | Tab10, Set2, Okabe-Ito |\n\n### 2. Apply correctly\n\n```python\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import CenteredNorm, LogNorm, PowerNorm\n# Diverging data around zero: center the map explicitly\nplt.imshow(anomaly, cmap=\"RdBu_r\", norm=CenteredNorm(vcenter=0))\n# Skewed positive data: log or power-law normalization\nplt.imshow(counts, cmap=\"viridis\", norm=LogNorm())\n```\n\n1. Set vmin\u002Fvmax (or norm) deliberately — autoscaling to outliers wastes the dynamic range; consider robust limits (percentiles) with out-of-range marking.\n2. For diverging maps, center exactly on the meaningful midpoint — an off-center \"diverging\" map lies.\n3. Always include a colorbar with labeled ticks and units — a heatmap without a scale is decoration.\n\n### 3. Test accessibility\n\n1. Convert to grayscale: is the structure still visible? (If not, the map fails its primary job.)\n2. Simulate deuteranopia\u002Fprotanopia\u002Ftritanopia — check that critical distinctions survive.\n3. Print in black and white if the venue might — many readers still do.\n\n### 4. Go beyond defaults when needed\n\n1. For publication series, define one palette per variable and reuse it — consistency builds reader intuition.\n2. Build custom maps with perceptually uniform interpolation (viscm, cmaputil) rather than hand-picking RGB stops.\n3. Document the colormap and normalization in the caption or methods — reproducibility includes the visual encoding.\n\n### 5. Design a custom colormap\n\n1. Define the data mapping first (sequential\u002Fdiverging\u002Fcyclic, normalization, center) — the map serves the mapping, not vice versa.\n2. Build in a perceptual colorspace: interpolate in CIELAB between chosen control colors, enforcing monotonic lightness for sequential maps.\n3. Test with viscm-style diagnostics: perceptual-delta plots should be flat (uniform), and test images (sine waves, wedges) should show no false banding — iterate until clean.\n\n## Common pitfalls\n\n- **Rainbow\u002Fjet:** non-uniform, creates false contours, CVD-hostile — the single most common visualization error in science; replace on sight.\n- **Diverging map without a meaningful center:** a diverging map centered at an arbitrary value implies structure that isn't there.\n- **Continuous map for categories:** implies ordering and interpolation between classes that don't exist.\n- **Autoscale to outliers:** one hot pixel flattens everything else — use robust limits.\n- **Missing colorbar:** no scale, no units, no interpretation — always label.\n- **3D surface + bad map:** perspective distortion plus non-uniform color is double deception — prefer 2D heatmaps with good maps for quantitative reading.\n- **Alpha as a second encoding:** transparency interacts with background color unpredictably — overlapping transparent marks create false dark spots read as data.\n- **Colormap applied to already-encoded data:** double-encoding (e.g., contour lines + colormap of the same variable) adds ink without information — pick one encoding per variable.\n",{"name":5,"category":24,"description":7},"scientific","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-colormap-theory",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill colormap-theory",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill colormap-theory",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill colormap-theory","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-colormap-theory\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]