color-grading
Skill132 starsChanged 39 days agoMITView on GitHub
Color grading video in the AI Edit Video system - delog/tonemap HDR-HLG-log footage, apply the color preset the user approved in the UI, and the visual verification workflow. Read when the edit prompt has a "Chỉnh màu" (color grading) section, when the source footage is HDR/log, or when the user asks for grading/delog.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- notivn/AIEVv2word for word, first seen Nov 8, 2026
- kajisho5/color-grading-skilltheir own version, first seen Nov 1, 2026
Other versions2 projects use a version of this.
Word for word · 1
- notivn/AIEVv2★ 136100% same
Edited · 0
None found.
Wrote their own version · 1
- kajisho5/color-grading-skill★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-illustrationsSkill
- auto-cutSkill
- background-musicSkill
- gsapSkill
- hyperframes-cliSkill
- hyperframes-registrySkill
- hyperframesSkill
- key-layoutSkill
- make-a-videoSkill
- noti-tiktok-full-textSkill
- noti-tiktok-vnSkill
- noti-youtube-editSkill
- offline-voiceSkill
- remotion-assembleSkill
- short-form-videoSkill
- skill-authoringSkill
- video-pipelineSkill
- website-to-hyperframesSkill
- webui-designSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
do not invent your own, do not "improve it further".
- Very specific: line 30
If color_transfer is arib-std-b67 (HLG - iPhone/Android HDR capture) or smpte2084 (HDR10), or color_primaries is bt2020 -> insert the …
- Very specific: line 50
Use the .graded.mp4 version throughout the ENTIRE pipeline instead of the original (meta.json srcVideo.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Color Grading - grading video footage
Rule #1: the preview IS the final result
The user already APPROVED the color in the web UI based on a preview generated from the canonical filter chains in
apps/server/src/color.ts (GRADE_PRESETS). When applying it to the real video you MUST use that exact filter chain
- do not invent your own, do not "improve it further". A different chain = a color that no longer matches what the user picked.
Source of truth for presets + manual adjustments
Read apps/server/src/color.ts:
GRADE_PRESETS- 14 color templates (tu-nhien, tuoi-sang, vivid, cinematic, teal-orange, film-vintage, mau-phim, golden-hour, am, lanh, dem-xanh, moody, pastel, den-trang) with their -vf chains.GradeAdjust- the user's manual tweaks stacked ON TOP of the preset (brightness/contrast/ saturation/gamma viaeq,colortemperature,vibrance); thebuildFilterChain(preset, tonemap, adjust)function assembles them in the correct order: tonemap -> preset -> manual adjustments.- The edit prompt already prints the complete -vf chain for each asset - JUST USE IT VERBATIM.
Delog / HDR tonemap (insert BEFORE the preset)
Inspect the footage with ffprobe:
ffprobe -v error -select_streams v:0 -show_entries stream=color_transfer,color_primaries -of csv=p=0 input.mp4If color_transfer is arib-std-b67 (HLG - iPhone/Android HDR capture) or smpte2084 (HDR10),
or color_primaries is bt2020 -> insert the tonemap BEFORE the preset:
zscale=t=linear:npl=100,tonemap=hable:desat=0,zscale=p=bt709:t=bt709:m=bt709:r=tv,format=yuv420pProfessional camera log (S-Log3, D-Log, V-Log...) whose metadata does not declare HDR needs the vendor's .cube LUT -
if that LUT is not in the system, tell the user instead of guessing.
Workflow for grading one video
- Probe the color (command above) -> decide whether a tonemap is needed.
- Produce the graded version (high quality encode, audio untouched):
ffmpeg -y -i assets/source.mp4 -vf "<tonemap-if-needed>,<preset-chain>" -c:v libx264 -crf 16 -preset medium -c:a copy assets/source.graded.mp4- Visual verification (mandatory): extract 3 frames (start / middle / end) of the graded version and LOOK at each one: are skin tones natural and not blown out orange? are highlights not clipped? are blacks not crushed? If something is wrong -> report back, do NOT silently change the filter (the user locked in the preset).
- Use the
.graded.mp4version throughout the ENTIRE pipeline instead of the original (meta.json srcVideo; transcription can use either file since the audio is copied unchanged). - Record in the asset description (assets.json) which preset was used to grade it, so it does not get graded twice later.
Known issues
- Grading twice: the
.graded.mp4gets the preset applied again in a later session -> harsh color. ALWAYS check the filename and assets.json before grading. - Grading only the main video and forgetting b-roll/inserted images: inserted images usually do not need grading (they are graphics), but b-roll shot on the same camera needs the same preset - check the asset descriptions to know which files came from the camera.
- Missing
format=yuv420pat the end of the tonemap chain -> the output is 10-bit and HyperFrames/browsers may not play it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

