[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CGX4XCNHMR6GAWAZ0159CX":3,"skill-same:01M7CGX4XCNHMR6GAWAZ0159CX":74},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7CGX4XCNHMR6GAWAZ0159CX","better-colors",null,"Builds and checks color systems by generating palettes, naming semantic tokens, converting between formats and measuring contrast.","harunonsystem\u002Fharunon-harness-slim","harunonsystem","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34958457?v=4","01M7CGJNZEEY4GZ845775PPBV1","harunon","01M7CGJP01K9B4N0F5HMNGYC8Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: better-colors\ndescription: Builds and checks color systems by generating palettes, naming semantic tokens, converting between formats and measuring contrast.\n---\n\n# Colors\n\nThis skill builds and audits color systems. It generates ramps, maps their steps to roles and token names, converts notation and measures rendered contrast pairs.\n\nNever report a contrast value you did not measure, and never estimate a color you could compute. Notation, a tinted neutral and a gradient's interpolation space are project choices, not findings. A broken role mapping, a failing pair and an out-of-gamut step are findings. Perceived lightness throughout means OKLCH `L`, from `0` to `1`.\n\nWhether a pair is required to pass belongs to `better-accessibility`. Surfaces, shadows and icon color belong to `better-ui`.\n\n## Match the project's color system\n\nReuse the project's tokens and notation. A consistent hex system beats hex with `oklch()` scattered through it.\n\nFor a new system, `oklch()` is the best default, because its numbers behave the way the ramp rules below describe. Everywhere else, a color library produces the same ramp in the project's own notation ([color-formats.md](color-formats.md)).\n\n## A system is ramps, not colors\n\nOne neutral ramp, one accent ramp and only the status ramps the product actually renders. A `warning` ramp nothing imports is maintenance for zero pixels. A second accent hue earns its place only when two things must be distinguishable at a glance. Otherwise use more steps of the one accent ramp.\n\n## Every step has a job\n\nA ramp is not a gradient to pick from by eye. Each step exists because a role needs it: page background, component hover, border, solid fill, body text. Do not generate a step no role consumes. Both the Tailwind `50`–`950` and Radix `1`–`12` conventions map to those roles ([palette-structure.md](palette-structure.md)).\n\n## Name primitives by hue, semantics by role\n\nPrimitives name a value (`--blue-600`) and are never applied in a component. Semantic tokens name a job (`--color-text-secondary`), point at a primitive and are the only tier components reference. That seam is what lets a theme repoint colors without touching components ([token-naming.md](token-naming.md)).\n\n## Use a token only in its role\n\nNever borrow a token because its value is right today. A separator used as a text color works until borders get lighter, and then the text goes with them. If a role has no token, add the token.\n\n## Hold the hue across the ramp\n\nA ramp holds one hue end to end, peaks in vividness mid-ramp and steps more finely at the light end. Build it with a color library, never by eye ([palette-generation.md](palette-generation.md)).\n\n## One color, one meaning\n\nUse a color for one purpose across the whole interface, treating anything within `15°` of OKLCH hue as the same color ([color-usage.md](color-usage.md)). Never let color be the only carrier of meaning. Pair it with an icon or a label, a requirement `better-accessibility` owns.\n\n## Fill exactly one action per view\n\nWhen filled color encodes primary emphasis, one primary action gets it and peers stay neutral. Put the color on the background, not the label. A filled button reads as primary across the room; accent-colored text on a neutral button reads as a link.\n\nKeep an established hierarchy that already signals emphasis another way. Several colored backgrounds are fine when they encode distinct states or categories rather than competing as peers.\n\n## Measure the rendered pair, then report\n\nMeasure a foreground against the background it actually renders on, not the page background. When a pair fails, report the pair, its measured value and the threshold it misses, then leave the colors alone. They are a design decision. Change them only when asked, and remeasure after ([contrast.md](contrast.md)).\n\n## Pick a gradient's interpolation space\n\nThe space is a look, not a correctness setting. Default to `in oklab`, and reach for `in oklch` when a two-hue gradient goes gray in the middle ([color-usage.md](color-usage.md)).\n\n## Before you finish\n\n| Pattern | Fix |\n| --- | --- |\n| A hex, `rgb(` or `oklch(` literal in a component file where a token exists | Reuse or add the role token, in the project's notation |\n| One `oklch(` value in a codebase otherwise written in hex | Write it in the established notation unless a migration is in scope |\n| `var(--blue-600)` or `bg-blue-600` in a component file | Point a semantic token at the primitive and use that |\n| A semantic name containing a hue or a component, as in `--color-blue-button` or `--color-sidebar-gray` | Rename it for its role: `--color-accent-solid`, `--color-bg-surface` |\n| `--color-primary` and `--color-text-primary` both defined | Rename the brand token `accent` |\n| A `border` or `separator` token inside `color:`, or a `text` token inside `background:` | Add a token for the missing role |\n| `hsl(` ramp values that differ only in lightness | Rebuild with a constant perceived hue, in the project's notation |\n| `50`–`200` stepping as far apart in OKLCH `L` as mid-ramp steps do | Tighten the light end to about `0.04`–`0.05` per step |\n| One chroma or saturation number copied across every hue's ramp | Use the same proportion of each hue's own maximum |\n| A status hue within `15°` of the accent hue | Move it at least `15°` away, or give the destructive action a distinct treatment |\n| Dark tokens equal to the light ramp in reverse step order | Lower the accent's chroma, widen the dark end and remeasure every pair |\n| Color tokens set under both `prefers-color-scheme` and a `.dark` class | Pick one switching mechanism and use it throughout |\n| A contrast fix that changes hue and leaves lightness | Change lightness, the channel contrast responds to |\n| `prefers-contrast: more` overriding a color for both appearances in one block | Give each appearance its own increased-contrast value |\n| Text on a color with alpha, such as `\u002F50`, `rgba(` or `color-mix(` with `transparent` | Measure the rendered result, or use a solid token |\n| `text-white` on a Tailwind `500` fill | Measure it; white on most `500` hues fails 4.5:1, so move the fill to `600` |\n| `oklch()` chroma beyond sRGB with no sRGB value declared before it | Declare the sRGB value first, then the vivid one inside `@media (color-gamut: p3)` |\n\n## Reporting\n\n**Severity.** `HIGH` makes content unreadable or assigns a misleading semantic color. `MEDIUM` is a noticeable theme, token or gamut failure. `LOW` is isolated polish.\n\nThree symptoms are `HIGH` on sight whatever the surface, matching `better-interface`'s escalation triggers. They are body or control text whose rendered pair fails its required ratio, state or meaning carried by color alone and a semantic color used against its meaning.\n\n**Verification.** Without a browser: token values, the gamut of every declared color, both theme blocks present and contrast computed from the declared token pair. With one: the background actually rendered behind the text, including opacity and any image beneath it, measured in both light and dark. Report every check you could not run as `Not verified`.\n\n**Format.** Group findings under the principle each violates, ordered by severity, one row per root cause listing every location it appears in:\n\n| Severity | Location | Before | After | Why |\n| --- | --- | --- | --- | --- |\n\n`Location` is `path\u002Fto\u002Ffile:line`. `Why` names the principle and the user impact.\n\nEnd with `Block` when any `HIGH` remains, `Approve` otherwise, leaving the rest in the table as work to do. Never `Approve` coverage you did not inspect. With nothing to report, state \"No actionable color findings\" and report verification.\n","# Colors\n\nThis skill builds and audits color systems. It generates ramps, maps their steps to roles and token names, converts notation and measures rendered contrast pairs.\n\nNever report a contrast value you did not measure, and never estimate a color you could compute. Notation, a tinted neutral and a gradient's interpolation space are project choices, not findings. A broken role mapping, a failing pair and an out-of-gamut step are findings. Perceived lightness throughout means OKLCH `L`, from `0` to `1`.\n\nWhether a pair is required to pass belongs to `better-accessibility`. Surfaces, shadows and icon color belong to `better-ui`.\n\n## Match the project's color system\n\nReuse the project's tokens and notation. A consistent hex system beats hex with `oklch()` scattered through it.\n\nFor a new system, `oklch()` is the best default, because its numbers behave the way the ramp rules below describe. Everywhere else, a color library produces the same ramp in the project's own notation ([color-formats.md](color-formats.md)).\n\n## A system is ramps, not colors\n\nOne neutral ramp, one accent ramp and only the status ramps the product actually renders. A `warning` ramp nothing imports is maintenance for zero pixels. A second accent hue earns its place only when two things must be distinguishable at a glance. Otherwise use more steps of the one accent ramp.\n\n## Every step has a job\n\nA ramp is not a gradient to pick from by eye. Each step exists because a role needs it: page background, component hover, border, solid fill, body text. Do not generate a step no role consumes. Both the Tailwind `50`–`950` and Radix `1`–`12` conventions map to those roles ([palette-structure.md](palette-structure.md)).\n\n## Name primitives by hue, semantics by role\n\nPrimitives name a value (`--blue-600`) and are never applied in a component. Semantic tokens name a job (`--color-text-secondary`), point at a primitive and are the only tier components reference. That seam is what lets a theme repoint colors without touching components ([token-naming.md](token-naming.md)).\n\n## Use a token only in its role\n\nNever borrow a token because its value is right today. A separator used as a text color works until borders get lighter, and then the text goes with them. If a role has no token, add the token.\n\n## Hold the hue across the ramp\n\nA ramp holds one hue end to end, peaks in vividness mid-ramp and steps more finely at the light end. Build it with a color library, never by eye ([palette-generation.md](palette-generation.md)).\n\n## One color, one meaning\n\nUse a color for one purpose across the whole interface, treating anything within `15°` of OKLCH hue as the same color ([color-usage.md](color-usage.md)). Never let color be the only carrier of meaning. Pair it with an icon or a label, a requirement `better-accessibility` owns.\n\n## Fill exactly one action per view\n\nWhen filled color encodes primary emphasis, one primary action gets it and peers stay neutral. Put the color on the background, not the label. A filled button reads as primary across the room; accent-colored text on a neutral button reads as a link.\n\nKeep an established hierarchy that already signals emphasis another way. Several colored backgrounds are fine when they encode distinct states or categories rather than competing as peers.\n\n## Measure the rendered pair, then report\n\nMeasure a foreground against the background it actually renders on, not the page background. When a pair fails, report the pair, its measured value and the threshold it misses, then leave the colors alone. They are a design decision. Change them only when asked, and remeasure after ([contrast.md](contrast.md)).\n\n## Pick a gradient's interpolation space\n\nThe space is a look, not a correctness setting. Default to `in oklab`, and reach for `in oklch` when a two-hue gradient goes gray in the middle ([color-usage.md](color-usage.md)).\n\n## Before you finish\n\n| Pattern | Fix |\n| --- | --- |\n| A hex, `rgb(` or `oklch(` literal in a component file where a token exists | Reuse or add the role token, in the project's notation |\n| One `oklch(` value in a codebase otherwise written in hex | Write it in the established notation unless a migration is in scope |\n| `var(--blue-600)` or `bg-blue-600` in a component file | Point a semantic token at the primitive and use that |\n| A semantic name containing a hue or a component, as in `--color-blue-button` or `--color-sidebar-gray` | Rename it for its role: `--color-accent-solid`, `--color-bg-surface` |\n| `--color-primary` and `--color-text-primary` both defined | Rename the brand token `accent` |\n| A `border` or `separator` token inside `color:`, or a `text` token inside `background:` | Add a token for the missing role |\n| `hsl(` ramp values that differ only in lightness | Rebuild with a constant perceived hue, in the project's notation |\n| `50`–`200` stepping as far apart in OKLCH `L` as mid-ramp steps do | Tighten the light end to about `0.04`–`0.05` per step |\n| One chroma or saturation number copied across every hue's ramp | Use the same proportion of each hue's own maximum |\n| A status hue within `15°` of the accent hue | Move it at least `15°` away, or give the destructive action a distinct treatment |\n| Dark tokens equal to the light ramp in reverse step order | Lower the accent's chroma, widen the dark end and remeasure every pair |\n| Color tokens set under both `prefers-color-scheme` and a `.dark` class | Pick one switching mechanism and use it throughout |\n| A contrast fix that changes hue and leaves lightness | Change lightness, the channel contrast responds to |\n| `prefers-contrast: more` overriding a color for both appearances in one block | Give each appearance its own increased-contrast value |\n| Text on a color with alpha, such as `\u002F50`, `rgba(` or `color-mix(` with `transparent` | Measure the rendered result, or use a solid token |\n| `text-white` on a Tailwind `500` fill | Measure it; white on most `500` hues fails 4.5:1, so move the fill to `600` |\n| `oklch()` chroma beyond sRGB with no sRGB value declared before it | Declare the sRGB value first, then the vivid one inside `@media (color-gamut: p3)` |\n\n## Reporting\n\n**Severity.** `HIGH` makes content unreadable or assigns a misleading semantic color. `MEDIUM` is a noticeable theme, token or gamut failure. `LOW` is isolated polish.\n\nThree symptoms are `HIGH` on sight whatever the surface, matching `better-interface`'s escalation triggers. They are body or control text whose rendered pair fails its required ratio, state or meaning carried by color alone and a semantic color used against its meaning.\n\n**Verification.** Without a browser: token values, the gamut of every declared color, both theme blocks present and contrast computed from the declared token pair. With one: the background actually rendered behind the text, including opacity and any image beneath it, measured in both light and dark. Report every check you could not run as `Not verified`.\n\n**Format.** Group findings under the principle each violates, ordered by severity, one row per root cause listing every location it appears in:\n\n| Severity | Location | Before | After | Why |\n| --- | --- | --- | --- | --- |\n\n`Location` is `path\u002Fto\u002Ffile:line`. `Why` names the principle and the user impact.\n\nEnd with `Block` when any `HIGH` remains, `Approve` otherwise, leaving the rest in the table as work to do. Never `Approve` coverage you did not inspect. With nothing to report, state \"No actionable color findings\" and report verification.\n",{"name":5,"description":7},"main","d7d37ad7e79d10fc5b881a8a401979484b6ee1ac","shared-agents\u002Fskills\u002Fbetter-colors","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim","https:\u002F\u002Fgithub.com\u002Fharunonsystem","2026-11-14 07:03:55",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add harunonsystem\u002Fharunon-harness-slim --skill better-colors",{"tool":36,"command":37},"bunx","bunx skills add harunonsystem\u002Fharunon-harness-slim --skill better-colors",{"tool":39,"command":40},"pnpm","pnpm dlx skills add harunonsystem\u002Fharunon-harness-slim --skill better-colors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002FSKILL.md",true,[44,50,54,58,62,66,70],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agents\u002Fopenai.yaml","REFERENCE","参考文档",110,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Fagents\u002Fopenai.yaml",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"color-formats.md",4565,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Fcolor-formats.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"color-usage.md",5292,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Fcolor-usage.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"contrast.md",3949,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Fcontrast.md",{"path":63,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":64,"sourceHtmlUrl":65},"palette-generation.md",6096,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Fpalette-generation.md",{"path":67,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":68,"sourceHtmlUrl":69},"palette-structure.md",4923,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Fpalette-structure.md",{"path":71,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":72,"sourceHtmlUrl":73},"token-naming.md",5853,"https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fbetter-colors\u002Ftoken-naming.md",[75,82,89,96,103,110],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CH39JSS2D4J52SCASDTJ9Q","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CH36HM1KX4VEFNKNQZ37WP","wrangler","Run or troubleshoot Wrangler CLI commands in projects that have a wrangler.jsonc, wrangler.json, or wrangler.toml file, including local development, Previews, deployment, and resource management. For new projects and projects without a Wrangler configuration file, use the cf CLI instead.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CH335A6PP55E1VE1R7EXB1","workflow-modernize","パッケージ\u002FCLI更新時や定期見直し時に、自作スキル・ワークフロー・設定を監査し、不要なworkaroundの撤廃・新機能の適用・プロンプトの簡素化をGrill（壁打ち）と多角比較で提案・修正する。「workflow-modernize」「スキル監査」「ワークフロー改善」「パッケージ更新後の見直し」「モダナイズ」で起動。","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fworkflow-modernize\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7CH303YN7MP9VCSFAB7KSG7","workers-best-practices","Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fworkers-best-practices\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7CH2XJPDFMHNRBKZXQD16S0","web-perf","Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fweb-perf\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7CH2V3AFZB7F055Y9KAFXZ3","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002Fharunonsystem\u002Fharunon-harness-slim\u002Fblob\u002Fmain\u002Fshared-agents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[]]