Core rules
- Judge color only from RAW files rendered by Lightroom/Camera Raw. Use ordinary camera JPGs only for composition, focus, and expression triage.
- Preserve originals and the user's master edit. Do not move, rename, delete, overwrite, or batch-edit photos unless the user asks.
- Treat a preset as a reusable starting point, not a finished edit.
- Separate technical correction from creative style. Never guess 30-50 sliders at once.
- Prefer a closed loop: inspect Lightroom state, render, adjust a small pass, render again, compare, then continue.
- Do not claim Lightroom import, visual fidelity, or manual QA passed unless it was actually performed.
Choose the route
- Read
references/workflow.mdfor every shoot. - Read
references/style-library.mdbefore choosing a style or reference direction. - If Lightroom MCP tools are available and Lightroom Classic is running, also read
references/lightroom-mcp.mdand use the closed-loop route. - Otherwise use Lightroom/Camera Raw neutral previews and the manual-preview route. State that Lightroom-side feedback is unavailable.
- If provenance is missing or ambiguous, stop color work and mark the affected item
未分類.
Closed-loop route
Use one representative RAW per lighting cluster first.
- Capture the current photo metadata and develop settings.
- If the user has an approved historical look, list presets and read it with
get_develop_preset. Use UUID or folder/scope to avoid duplicate-name ambiguity. - Export a baseline JPEG from Lightroom into a new empty review folder.
- Apply one bounded pass at a time:
- technical correction;
- tonal shape;
- color correction;
- creative look;
- detail/noise.
- Export and inspect after each pass. Compare against the baseline and any user-approved reference image.
- Create uniquely versioned checkpoints with
create_develop_presetand diff them against the approved look withcompare_develop_presets. - Keep a checkpoint log of settings and rendered files. Stop when the remaining difference needs healing or subjective user choice.
- Ask for approval on representative before/after results before copying settings across a cluster.
- Export an accepted custom/checkpoint preset with
export_develop_preset; never overwrite an existing destination. Import it into Lightroom before claiming compatibility. Use Lightroom's UI for a visible canonical preset when needed. The bundled generator remains a fallback for a verified global-setting subset.
Manual-preview route
Require Lightroom/Camera Raw exports with recorded provenance. Classify lighting clusters, choose representative files, propose style direction, and get user agreement before generating presets. Keep exposure, white balance, skin, local edits, and denoise as per-image follow-up unless the evidence supports a shared adjustment.
Safe XMP fallback
Use scripts/generate_xmp_preset.py only after style direction is agreed:
python scripts/generate_xmp_preset.py --list-styles
python scripts/generate_xmp_preset.py --list-modifiers
python scripts/generate_xmp_preset.py --style graduation-bright-natural --name "Graduation Bright Natural" --output "Graduation_Bright_Natural.xmp"
python scripts/generate_xmp_preset.py --style graduation-documentary --modifier low-light-noise-controlled --name "Graduation Documentary Low Light" --output "Graduation_Documentary_Low_Light.xmp"
The generator:
- accepts only
.xmpoutput; - refuses existing output unless
--forceis explicit; - refuses paths that look like RAW/JPG sidecar XMP files, even with
--force; - writes atomically;
- validates known Camera Raw keys, types, and ranges;
- emits point curves as RDF sequences;
- omits Profile, White Balance, and lens settings unless explicitly requested;
- uses ASCII metadata by default; use
--allow-unicode-metadataonly when the target Lightroom setup has been tested.
Use --unsafe-set KEY=VALUE only for controlled research against a Lightroom-exported golden fixture. Never use it for routine delivery.
Validation levels
Report these separately:
Parser-level: XML is well formed.Generator-level: CLI, safety checks, schema validation, and tests pass.Lightroom import-level: the target Lightroom version imports the XMP and exposes the expected fields.Visual fidelity-level: Lightroom-rendered output matches the intended/reference look.
Only the last two require real Lightroom validation.