Subject and Scene Color Grading Design
Applicable Scenarios and Default Policy
When the user requests a color grading scheme or several platform variants, use the content intent to select a clear profile, LUT, and intensity. Successfully rendered shots are accepted by default; the original footage and audio are preserved. Without a specific grading request, the original footage is reused directly. Elements such as people, clothing, actions, light and shade, sharpness, and nominal shot length do not constitute grounds for post-production rejection.
colorwrite.best is the compatibility entry point: it currently executes a single grading pass based on the recipe. Values like source, after, finalScore, and improvement are set to null. There will be no re-rendering of multiple candidates or decisions based on scores. Independent analyze, scope, and compare commands are only used when explicitly requested for diagnostics and are not part of the default delivery pipeline.
I. Tonal Decision
- Record the subject: product, interview, food, technology, travel, night scene, beauty, family, automotive, real estate, promotion, documentary, or brand.
- Record the subject and scene: face, product, screen, space; brand-specified colors, LUTs, and user-defined intensity take priority.
- Record the mood: trustworthy, warm, enticing, precise, dramatic, or restrained. For unknown items, choose the closest matching recipe, make a reasonable selection, and document the rationale. Do not re-inspect the original shot.
- Record the platform and target canvas. Parameter suggestions are used for planning; do not sample the source footage to verify "good enough."
II. Recipe Search and Parameter Table
Run the actual CLI from the repository root. The number of recipes returned is final.
node bundles/ai-video/connectors/color-bridge/cli.mjs recipes --list --json
node bundles/ai-video/connectors/color-bridge/cli.mjs recipes --genre food --platform xiaohongshu --json
node bundles/ai-video/connectors/color-bridge/cli.mjs best --in clip.mp4 --out graded.mp4 --genre food --json
node bundles/ai-video/connectors/color-bridge/cli.mjs grade --in clip.mp4 --out graded.mp4 --profile warm-film --intensity 0.6 --json
| Subject | Mood & Recipe Direction | Suggested Intensity | Design Intent |
|---|---|---|---|
| Product Ad | clean-bright | 0.7 | Clean, product-focused, adhere to any given brand color requirements |
| Interview | warm-film | 0.6 | Warm, trustworthy, avoid altering user-specified skin tone style |
| Food | warm-film | 0.85 | Warm red-yellow tones, preserve the neutral color of tableware as a design goal |
| Technology | cool-technical | 0.65 | Cool environment, clear information |
| Outdoor Travel | teal-orange | 0.6 | Cool-warm contrast, maintain scene narrative |
| Night Scene | teal-orange | 0.75 | Preserve the night scene intent, do not brighten to daytime levels |
| Beauty | clean-bright | 0.5 | Clear and restrained, do not arbitrarily whiten |
| Family | clean-bright | 0.6 | Light warmth, bright |
| Automotive | cool-technical | 0.7 | Metallic and precise feel, brand color requirements take priority |
| Real Estate | clean-bright | 0.55 | Clean space, reduce overly strong style |
| Promotion | high-contrast-social | 0.8 | Strong visual expression |
| Documentary | natural | 0.4 | Minimal style, content-focused |
| Premium Brand | moody-dark | 0.6 | Cool gray, restrained |
The values in the table are historical recipe selection suggestions. The actual profile, LUT, and parameters are taken from the current recipes return. Do not turn these suggestions into a quality gate for successful assets.
III. Mood and Platform Adaptation
| Mood | Color Temperature | Contrast & Saturation | Technique Suggestion |
|---|---|---|---|
| Trustworthy Professional | Neutral to cool | Medium contrast, medium-low saturation | natural or light clean-bright |
| Warm Intimate | Warm | Medium contrast, medium saturation | warm-film, preserve user-defined white balance |
| Enticing & Passionate | Warm | Medium-high contrast, higher saturation | Recipe-driven, not automatically increased by frame-sampling scores |
| Calm & Precise | Cool | Medium-high contrast, low saturation | cool-technical |
| Dramatic Story | Cool-warm contrast | High contrast, medium saturation | teal-orange |
| Premium & Restrained | Cool gray | Medium contrast, low saturation | moody-dark |
More defined contrast may be chosen for small-screen content; lighter intensity may be chosen for corporate websites and documentaries. Define a single look for a project first. Platform variants are only derived from the requested recipe; do not add music to an already mixed master or re-evaluate the original footage just to "increase differentiation."
IV. Parameter Boundaries
- The
intensityvalue must be greater than 0 and not exceed 1. If no grading is needed, reuse the original footage directly. Do not use0as a grading recipe. The LUT must be an actual file in an allowed path. Invalid values or missing LUTs must cause an error. - Unless
autoordenoiseis explicitly requested, do not run diagnostics on source frame brightness or noise. When automatic correction is explicitly requested, its diagnostics are input for that operation and cannot become an acceptance condition for all assets. - Output must be saved as a separate file; overwriting the original shot is prohibited. Video and audio tracks are reconciled against the actual execution receipt.
- It is forbidden to trigger a re-render, automatic recipe change, or additional payment based on crop rate, skin tone hue, frame score, or the difference between two candidates.
V. SOP and Receipts
- Trigger: A grading request from the user or production plan. Read the current source file and recipe. Receipt: Input path, SHA-256, recipe ID, target canvas. Failure: Stop if files, scope, or sources are mismatched. Do not regenerate.
- Trigger: Recipe is determined. Execute one
gradecommand or a compatiblebestcommand. Receipt: Profile/LUT, actual filter chain, intensity, tool exit code. Failure: Report filter, encoder, or LUT errors as-is. Do not fall back to the original footage pretending it was graded. - Trigger: Execution finishes. Check the actual output file, canvas, encoding, and audio preservation. Receipt: Output SHA-256, byte count, lineage,
qualityReviewed=false. Failure: Stop delivery if the output is missing or byte count is unchanged. Keep the failure record and original footage.
VI. Failure Modes (Cause → Action)
| Symptom | Detector / Cause | Action |
|---|---|---|
| Recipe does not match | recipes returns no items | Select natural or user-specified parameters based on known subject, document the selection rationale |
| LUT loading fails | File missing, path permission error, or filter error | Name the file and stop the request. Execute after providing a valid LUT |
| Requested output does not exist | Non-zero tool exit or disk write failure | Preserve stderr and failure receipt. Do not use the original footage as the new graded file |
| Original footage externally modified | Current bytes do not match source SHA-256 | Stop reuse, verify the actual source. Do not resubmit due to quality issues |
| User dislikes the current look | Explicit user feedback | Rework through the color layer, record new recipe and new version, keep the shot for reuse |
Knowledge Base Reference
library/color-kb/_INDEX.md provides background on platforms, subjects, and color expression. library/color-recipes is the actual recipe source. Aesthetic indicators in the knowledge base are for design or explicit diagnostic reference only and cannot override this skill's default acceptance policy.