color-space

Generate native color-space converters and tests from a TypeScript reference.

1|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/caryden/special --skill color-space
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: color-space
Source: https://github.com/caryden/special/tree/main/skills/color-space
Command: npx skills add https://github.com/caryden/special --skill color-space

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of native color-space conversion code from a formal TypeScript-based specification and verified reference, eliminating manual translation errors and speeding up cross-language implementation.

Core Features & Use Cases

  • Supports a full suite of color spaces (srgb, linear-rgb, hsl, hwb, xyz-d65, xyz-d50, lab-d65, lab-d50, lch-d65, oklab, oklch) with tests and provenance.
  • Generates language-specific implementations (TypeScript, Python, Rust, Go) from a canonical reference, ensuring deterministic translation, documentation headers, and 100% test coverage in the reference.
  • Facilitates subset extraction and progressive disclosure in generated artifacts for maintainability and scope control.

Quick Start

Generate the full library by selecting all nodes and a target language, then review the generated artifacts.

Frequently Asked Questions about color-space

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate cross-language color-space conversion code from a TypeScript reference?

You can generate native color-space converters from a verified TypeScript reference by selecting target languages like Python, Rust, or Go. This ensures deterministic translation with 100% reference-test coverage and explicit provenance headers.

What color spaces are supported for cross-language code generation?

Supported color spaces include srgb, linear-rgb, hsl, hwb, xyz-d65, xyz-d50, lab-d65, lab-d50, lch-d65, oklab, and oklch. Each generated implementation includes tests and provenance documentation from the canonical TypeScript reference.

Does color-space code generation support subset extraction for specific target languages?

Yes, the generation process supports subset extraction and progressive disclosure in generated artifacts. This allows you to maintain scope control and generate only the necessary color-space converters for your specific language requirements.

How do I ensure deterministic translation when implementing color spaces across multiple languages?

Deterministic translation is ensured by generating language-specific implementations from a canonical TypeScript reference. The process includes 100% test coverage in the reference, explicit provenance headers, and support for multi-hop translation.

Can I use this to generate color-space converters for Python, Rust, and Go?

Yes, this generates language-specific implementations for TypeScript, Python, Rust, and Go from a canonical reference. It eliminates manual translation errors and provides documentation headers with strict provenance for each target language.

What's the best way to maintain provenance when translating color-space specifications across languages?

The best way to maintain provenance is generating code from a verified TypeScript reference with explicit provenance headers. This approach supports multi-hop translation and ensures 100% reference-test coverage across all generated artifacts.