{"data":{"slug":"discovered-ace8f771fb94eb87ec2804993b167b0f6d92a5a38b3fbcc6","title":"LightCraft","summary":"Manage and develop raw\/JPEG photos with non-destructive edits, imports, ratings, keywords, albums, merges (HDR, panorama), and exports\/print\/slideshows using the LightCraft CLI or app. Requires a photo library or raw\/JPEG files for full functionality.","url":"https:\/\/skillshunter.net\/skills\/discovered-ace8f771fb94eb87ec2804993b167b0f6d92a5a38b3fbcc6","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-ace8f771fb94eb87ec2804993b167b0f6d92a5a38b3fbcc6","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-ace8f771fb94eb87ec2804993b167b0f6d92a5a38b3fbcc6.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-ace8f771fb94eb87ec2804993b167b0f6d92a5a38b3fbcc6\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Use `--library DIR` with real images for any operation that modifies bytes; demo photos have no file and cannot be exported. Background tasks require `wait: true` to complete before the process exits.","instructions":"---\nname: lightcraft\ndescription: Use when managing a photo library or developing raw\/JPEG photos: importing, rating, keywords, albums, non-destructive edits (exposure, curves, masks, crop, spot removal, denoise, faces), merges (HDR, panorama), export\/print\/slideshow, when running lightcraft-cli, or when connecting to the LightCraft app (storytold) on this machine\n---\n\n# LightCraft\n\nField notes from a first full headless round, last tested on **LightCraft 0.22.0** (Linux AppImage\n`lightcraft-cli`). LightCraft is a non-destructive photo library and raw developer in Rust; the CLI, the MCP\nserver and the app's control channel run the same engine commands. If `lightcraft-cli --version` is newer,\nre-check anything here before relying on it.\n\n## Setup\n\n- **CLI:** `~\/AppImages\/lightcraft-cli` (self-contained, no window). Never run `--version` on the AppImage.\n- **Headless modes:** `run --demo` (procedural 24-photo demo library, state is per process) or\n  `run --library DIR` (creates\/opens a library; edits, presets and templates persist). `--import PATH`\n  imports before the first command.\n- **One process, many commands:** `lightcraft-cli run [--demo|--library DIR] [--keep-going] COMMAND key=value \u2026 COMMAND \u2026`\n  prints one JSON line per command: `{\"command\",\"ok\",\"result\"|\"error\",\"ms\"}`, exit \u2260 0 on a failure.\n  Use `--script -` with JSON lines `{\"command\": id, \"params\": {\u2026}}` for complex params.\n- **Single render:** `lightcraft-cli render IN -o OUT --set control=value \u2026 --size N --quality Q --opt key=value`.\n- **Merges from the shell:** `lightcraft-cli merge hdr|panorama|hdr-panorama|hdr-batch FILES\u2026` (writes\n  `<first>-HDR.dng` \/ `-Pano.dng` beside the first file); `synth-merge hdr|panorama -o DIR` makes test inputs.\n- **MCP:** `lightcraft-cli mcp [--demo|--library DIR] [--compact]`, stdio JSON-RPC; every command stays reachable.\n- **Live app:** `--connect` \/ `lightcraft --control` \u2014 not exercised in this round; do not open windows on the\n  user's screen without being asked.\n\n## Where things are\n\n| File in `reference\/` | Read it for | Sections |\n|---|---|---|\n| `cli.md` | Subcommands, run\/script forms, output shape, demo vs library, render\/merge\/synth-merge, what is headless | Commands worth running from a shell; Modes; Output |\n| `library-and-import.md` | Import, folders, auto-import, previews, albums (incl. smart), stacks, versions, history\/undo, view state (filter\/sort\/source\/selection) | Import and folders; Albums; Stacks and versions; View, filter, selection |\n| `develop.md` | Develop sliders (122 controls), crop\/straighten, curves, white balance, targeted adjustments, before\/after, point colour, HDR | Develop values; Controls; Crop and geometry; Curves; White balance; Before\/after |\n| `masks-and-repair.md` | Masks (brush, linear, radial, sky, subject, background, range), mask effects, spot removal, red eye | Masks; Mask effects; Spot removal; Red eye |\n| `metadata-keywords-labels.md` | Ratings\/flags\/labels, titles\/captions\/copyright\/GPS, keywords and keyword sets, metadata presets, filter presets, find similar | Per-photo metadata; Keywords; Labels; Metadata presets; Filter presets |\n| `export-print-slideshow.md` | Export formats and options, export presets, contact sheets, print layouts\/templates\/PDF, slideshows and their export | Export; Export presets; Print; Slideshow |\n| `merge-and-models.md` | HDR\/panorama merges, denoise, faces, segmentation, lens database, GPU\/memory, background tasks | Merge; Denoise; Faces; Segmentation; Profiles; App |\n| `command-catalogue.md` | Every id (389), grouped by family, with the evidence status and the field that changed | \u2014 |\n| `newer-commands.md` | What each version added or changed | 0.18.1; 0.19.0 |\n| `log.md` | Dated log of what was tested when | Log |\n\n## CLI essentials (verified)\n\n```\nlightcraft-cli --version                          # 0.19.0\nlightcraft-cli commands --json                    # every id + params (389 ids)\nlightcraft-cli controls --json                    # every develop control with min\/max\/default (122)\nlightcraft-cli run --demo catalog.query limit=3   # {\"command\":\"catalog.query\",\"ok\":true,\"result\":{\"photos\":[\u2026]}}\nlightcraft-cli run --library ~\/lc-lib --import ~\/Pictures --keep-going library.info\nlightcraft-cli run --library ~\/lc-lib library.select ids=[12] develop.set control=light.exposure value=0.7 app.export path=\/tmp\/x.jpg longEdge=1600\nlightcraft-cli render in.cr3 -o out.jpg --set light.exposure=0.5 --size 1600 --quality 90\nlightcraft-cli merge panorama a.jpg b.jpg c.jpg --projection=auto --preview \/tmp\/p.png\nlightcraft-cli synth-merge panorama -o \/tmp\/panels    # view-0.png \u2026 for testing merge\n```\n\n- `run` words without `=` start the next command; a value is JSON when it parses (`1`, `true`, `[1,2]`, `{}`),\n  else a string \u2014 so `aspect=\"1x1\"` (quoted in a shell) stays a string.\n- Without `--keep-going` the run stops at the first failed command.\n- Read state back with a real field, e.g. `photo.inspect id=N` returns the whole develop tree and `meta`;\n  `develop.get id=N` returns settings only; `library.state` returns view\/filter\/sort\/selection.\n- Commands addressed to \"the selection\" or \"the active photo\" need `library.select ids=[\u2026]` first in the same script.\n\n## Traps\n\n- **Demo photos have no file.** `--demo` photos are generated: export to `dng`\/`original`, `photo.duplicate`,\n  `photo.editExternal`, `photo.saveMetadataToFile` and every merge refuse with *\"a generated demo photo has no\n  file\"*. Use a `--library` with real images for anything that touches bytes.\n- **Background work dies with the process.** `slideshow.export` returns a task and runs in the background;\n  in a one-shot `run` the process exits first and leaves `out.pdf.part`. Pass `wait: true` (verified: pdf, jpeg,\n  video). `library.buildPreviews wait:true` likewise.\n- **Demo state is per process; library state persists.** A preset created with `--demo` is gone in the next\n  process; with `--library` it is on disk (`preset.create` \u2192 id like `user.43.libp1`).\n- **`folder.rename` \/ `folder.move` rename the real folder on disk** (verified: in2 \u2192 in2-renamed). Never point\n  them at a user's photo folder without asking.\n- **Folder commands only accept folders the library imported from**, by the exact path `library.folders` shows.\n  A folder imported only by `--import` at startup was reported as *\"no photo in the library was imported from\n  it\"*; a folder added later with `library.import` worked.\n- **Two different rating enums.** `album.createSmart`\/`album.setRules` rules take `atLeast|exactly|atMost`;\n  `library.selectBy` takes `gte|eq|lte`. Mixing them is an \"unknown variant\" refusal.\n- **Control ids are not inspect paths.** `develop.set control=light.exposure` is right; the inspect tree shows\n  `develop.light.exposure`, and camel-case controls (`detail.sharpenAmount`, `curve.splitShadows`) appear as\n  snake_case. An unknown control (e.g. `light.vibrance`; the real one is `color.vibrance`) fails the call.\n- **`render --set` takes only controls, never commands.** `--set treatment=bw` is refused (\"not a finite number\").\n- **Masks `object` and `prompt` need the SAM 3 model (~3.4 GB)** and are refused without it; `subject`, `sky`,\n  `background`, `brush`, `linear`, `radial`, `luminanceRange`, `colorRange` all work headless.\n- **`mask.update` wants the complete shape** (kind, center{x,y}, rx, ry, angle, feather, invert), not a diff.\n- **Faces, blemish finding and face boxes need models**: YuNet (232 KB) for detection, a recognition model for\n  indexing; `spot.findBlemishes` refused for the same YuNet reason. Model downloads were never run here.\n- **`redeye.catchlight` only exists on pet eyes** (`redeye.add \u2026 pet=true` first).\n- **`photo.setRegion`\/`photo.removeRegion` edit existing face\/pet regions**; with none, \"no such region\".\n- **`develop.updateProcess` is refused when the photo is already on the current process** \u2014 that is success,\n  not failure.\n- **`export.addToPhotos` is macOS-only** (\"Apple Photos is only available on macOS\").\n- **`denoise.toggle` applies to raw photos only**; JPEGs are refused.\n- **Attach the background task id**: `slideshow.export`\/`activity.cancel` use task ids from `activity.list`.\n\n## Verify before reporting\n\n- Read the same field before and after in one run: `photo.inspect` (develop, meta, rating, flag, label,\n  versions, spots, red_eye, masks), `library.state` (source, filter, sort, selection, visibleCount, undo),\n  `albums.list`, `keyword.list`, `presets.list`, `print.get`, `slideshow.<section>`.\n- For bytes, check the file: PIL size\/mean for images, file size for PDFs\/MP4s; `render` at a small size is\n  the cheapest visual proof (exposure +1 changed 172,800 px of a 480\u00d7360 render; vignette \u221250 changed 103,946).\n- A history-length or `edited` change alone is not proof of a specific effect \u2014 downgrade it.\n","use_cases":["Import and organize photos with ratings and keywords","Apply non-destructive edits like exposure, curves, masks, and crop","Merge photos into HDR or panorama formats","Export photos in various formats (JPEG, DNG, etc.)","Create and manage albums, stacks, and versions of photos"],"limitations":[],"compatibility":[],"setup_tip":"- **CLI:** `~\/AppImages\/lightcraft-cli` (self-contained, no window). Never run `--version` on the AppImage.\n- **Headless modes:** `run --demo` (procedural 24-photo demo library, state is per process) or\n  `run --library DIR` (creates\/opens a library; edits, presets and templates persist). `--import PATH`\n  imports before the first command.\n- **One process, many commands:** `lightcraft-cli run [--demo|--library DIR] [--keep-going] COMMAND key=value \u2026 COMMAND \u2026`\n  prints one JSON line per command: `{\"command\",\"ok\",\"result\"|\"error\",\"ms\"}`, exit \u2260 0 on a failure.\n  Use `--script -` with JSON lines `{\"command\": id, \"params\": {\u2026}}` for complex params.\n- **Single render:** `lightcraft-cli render IN -o OUT --set control=value \u2026 --size N --quality Q --opt key=value`.\n- **Merges from the shell:** `lightcraft-cli merge hdr|panorama|hdr-panorama|hdr-batch FILES\u2026` (writes\n  `<first>-HDR.dng` \/ `-Pano.dng` beside the first file); `synth-merge hdr|panorama -o DIR` makes test inputs.\n- **MCP:** `lightcraft-cli mcp [--demo|--library DIR] [--compact]`, stdio JSON-RPC; every command stays reachable.\n- **Live app:** `--connect` \/ `lightcraft --control` \u2014 not exercised in this round; do not open windows on the\n  user's screen without being asked.","sample_input":null,"sample_output":null,"source_url":"https:\/\/gitlab.com\/e1dred\/agent-skills\/-\/blob\/038fce8ee73c2630a28e1c903f9e541197d2e3b2\/lightcraft\/SKILL.md","source_commit":"038fce8ee73c2630a28e1c903f9e541197d2e3b2","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-11-30T09:06:32.000000Z","updated_at":"2026-12-03T16:19:54.000000Z","seo_title":"LightCraft Photo Library and Raw Developer","seo_description":"Non-destructive photo management and development with LightCraft: import, rate, edit, merge, and export photos using the CLI or app. Supports HDR, panorama, and more.","seo_keywords":["photo library","raw photo development","non-destructive edits","HDR merge","panorama merge","LightCraft CLI","photo management"]}}