Skip to content
Back to skills

color-grading

ASecurity

Deterministic colour grading / colour correction execution Skill for the AI Video Production Ecosystem. Use it when a caller (normally video-production-agent) has already decided which colour treatment to apply to a video and needs it executed safely - HDR (PQ/HLG, BT.2020) to SDR BT.709 tone mapping with an explicit curve, application of a 3D .cube LUT, rewriting colour tags (BT.709 / BT.2020 PQ / BT.2020 HLG / BT.601) without a re-encode, removing a Dolby Vision RPU, or typed primary colour...

  • 10 stars
  • 0 votes
  • 4 copies
  • 23 views
  • Added October 26, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add kajisho5/color-grading-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of color-grading?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for color-grading
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kajisho5-color-grading/badge)](https://www.skillsdirectory.com/skills/kajisho5-color-grading)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: color-grading
description: Deterministic colour grading / colour correction execution Skill for the AI Video Production Ecosystem. Use it when a caller (normally video-production-agent) has already decided which colour treatment to apply to a video and needs it executed safely - HDR (PQ/HLG, BT.2020) to SDR BT.709 tone mapping with an explicit curve, application of a 3D .cube LUT, rewriting colour tags (BT.709 / BT.2020 PQ / BT.2020 HLG / BT.601) without a re-encode, removing a Dolby Vision RPU, or typed primary colour correction (exposure, contrast, saturation, white balance via temperature + tint, gamma, three-way shadows/highlights via lift + gain, levels, or a curves preset), soft-clipping into broadcast-legal levels (LEGALIZE, BT.709 or EBU R 103; the shares of samples out of range are measured before and after only when ffmpeg-skill has check --levels and the picture is Y'CbCr, otherwise the report sets measured to false), matching one camera to a reference camera from a frame pair the caller names (MATCH_CAMERA), or an OpenColorIO / ACES colour-space transform named by a config (camera log -> ACEScct -> Rec.709 or Rec.2100 PQ; optional PyOpenColorIO extra) - as a typed operation graph with validated outputs and provenance. Do NOT use it to decide which colour treatment, look, LUT or correction values to apply (video-production-agent), to measure or analyse media (media-analysis-skill), to edit video (video-editing-skill), or to run arbitrary ffmpeg commands or filters (it refuses them). WHITE_BALANCE is accepted as an alias of PRIMARY_CORRECTION restricted to temperature/tint (resolved at validation; results report PRIMARY_CORRECTION).
---

# color-grading

Machine interface: `color-grading run - --json` with a `color-grading/request@1` document on stdin; exactly one
`color-grading/response@1` document on stdout. `skill --json` prints the contract, `doctor --json` the environment,
`plan - --json` a dry run, `validate - --json` a schema check.

Rules for a calling agent:
1. Decide first (video-production-agent): which operation, which LUT, which tonemap curve, which retag target.
   This skill has no defaults for creative parameters that matter (LUT path, retag target) and never guesses which
   colour treatment to apply.
2. Give explicit, typed parameters: `HDR_TO_SDR` needs nothing but has typed `tonemap`/`peak_nits`/`desat`/`force`
   (without `tonemap` the curve follows the input's transfer: `mobius` for HLG, `hable` for PQ and anything else, ADR-28);
   `LUT_APPLY` needs `lut_path`; `RETAG` needs `target`; `PRIMARY_CORRECTION` needs nothing but has typed
   `exposure`/`contrast`/`saturation`/`temperature`/`tint`/`gamma`/`lift`/`gain`/`levels_in_black`/
   `levels_in_white`/`levels_out_black`/`levels_out_white`/`curves`, each independently optional and defaulting to
   unchanged (`curves` defaults to no preset); `OCIO_TRANSFORM` needs `source_space` and either `destination_space`
   or `display` + `view` (names from the config), optional `config`/`look`/`lut_size`/`output_tags`; `MATCH_CAMERA`
   needs `reference_path` (camera A), with `at`/`reference_at`, `model`, optional `patches`, `lut_size`. Tone-mapping curve and correction values are always the caller's,
   never automatic.
3. Never send commands, argv, filter strings or executable paths: the request is rejected. A LUT path is data,
   resolved through its own path policy and hashed into provenance; it is never a filter string.
4. Keep outputs inside the workspace, never at the input path; set `overwrite: true` deliberately. An output's
   container must match the source's (this skill does not convert containers; that is ffmpeg-skill/export).
5. Read `results[].status`, `outputs[].provenance` and `error` from the JSON; the exit code is 0 only when `ok`
   is true.
6. An alpha source (ProRes 4444, qtrle, PNG) keeps its alpha through `LUT_APPLY` / `PRIMARY_CORRECTION` when ffmpeg-skill
   has `--keep-alpha`; other re-encoding operations refuse it (`alpha_not_preserved`). Say how its colour is stored with
   `project.source.alpha_mode: straight | premultiplied` (unsaid: PNG is straight, anything else is taken as straight
   with a warning). Premultiplied grading requires the installed color tool to declare `--source-alpha-mode`.
   Older engines return `alpha_premultiplied`. The contract's `alpha` block states that baseline refusal; where both
   capabilities in `alpha_extensions.premultiplied_grading.requires` are `supported` in `doctor`, that extension
   applies instead (ADR-33 addendum 1). `project.source.drop_alpha: true` asks for an opaque result instead (ADR-33).

See README.md for the schemas, operation table, error codes and limitations.

Files in this skill

  • CHANGELOG.md956 B
  • SECURITY.md1.3 KB
  • SKILL.md2.9 KB
  • brand/app-icon-dark.png79 KB
  • brand/app-icon.png79.9 KB
  • docs/architecture.md9.7 KB
  • docs/decisions.md21.4 KB
  • docs/ffmpeg-skill.md18.6 KB
  • docs/security.md5.5 KB
  • docs/testing.md6.2 KB
  • pyproject.toml888 B
  • tests/conftest.py3.9 KB
  • tests/test_compat.py11.3 KB
  • tests/test_contract.py5.3 KB
  • tests/test_integration.py30.9 KB
  • tests/test_security.py13.6 KB
  • tests/test_unit.py31.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.