Fujifilm X100VI AI skill: film recipes over USB with Claude Code and Codex
TL;DR x100vi-skill is an AI skill for Claude Code and Codex that manages film simulation recipes on a Fujifilm X100VI over a USB cable. You tell it what look you want or give it a link to a recipe, it shows how your own RAF files would look with it (rendered by the camera’s own processor), and then saves the one you like into the custom settings C1-C7. Under the hood it’s a single
x100vibinary for macOS, Linux and Windows.Install the skill with
npx skills add volodymyrsmirnov/x100vi-skill -g.
How I got here
I like photography, but I’m not a professional and I don’t try to be one, I just like to catch some moments when I travel or walk around and then keep them somewhere (some of them are in Moments). By the way, choix, my other project for photo culling, got a major update not so long ago. Now it’s a normal macOS app with a bunch of new features, you can grab it from the releases page, but I’ll write about it next time.
Most of the photos there are from a regular iPhone, at the time of writing it’s an iPhone 17 Pro Max, but I also own a Fujifilm X100VI. To be honest, the professional photography thing always scared me a bit. I don’t like messing with lenses and with a million settings I’m supposed to tune for each and every frame, plus all the terminology, and so on. That’s exactly why I ended up with the X100VI, which everybody praises, and I think it deserves it. The lens is fixed and the auto mode is really good.
But then you get the next problem, i.e. do you shoot RAW and edit later in Luminar Neo (awesome app), or do you use the JPEGs rendered in the camera with its post-processing like film emulation. I used to go with RAWs, but now I’m just lazy. After a trip the memory card lies for a few months and waits for a rainy weekend or for me to get a cold, so that I finally stay home and pick and edit the photos.
There are lots of sites where you can find a recipe for your taste and then create the custom settings on the camera, Fuji X Weekly for example. And all would be good, but the interface of Fujifilm cameras is something else. To find anything in their tricky menu takes minutes, and the joystick tries to misclick all the time. It’s a problem of almost all professional camera vendors I happened to see (with the exception of Leica, but I haven’t risen that high yet). The photographers’ sense of beauty ends with what gets into their lens. And picking the settings feels like the UI of some industrial machine that grinds grain into flour, but for sure not like an intuitive device.
Anyway, my suffering ended with Claude and me deciding that we can’t live like this anymore, and the result is a skill that lets you do everything over a USB cable without looking into the horrible depths of the camera menu.
How to install it and what it can do
You install it with the skills CLI, and it works both in Claude Code and in Codex:
npx skills add volodymyrsmirnov/x100vi-skill -g
That’s basically it. The x100vi tool behind the skill is one self-contained binary per platform: macOS (universal, for Apple silicon and Intel), Linux x64 and arm64, and Windows x64. Every push to main publishes a GitHub release with these binaries and their checksums. The skill has a small launcher inside, which downloads the binary for your system from the latest release the first time the agent needs it, checks it against the release checksums and keeps it in a cache folder. Nothing else has to be installed. If you want only the CLI without any agent, download the binary from the releases page and put it on your PATH.
There is one thing you have to do with your hands on the camera, and no software can do it for you, sorry. Go to MENU > NETWORK/USB SETTING > CONNECTION MODE and pick USB RAW CONV./BACKUP RESTORE, and only then plug the cable in. Most cameras are in USB CARD READER mode I think, and in that mode the camera just hides all its settings.
After that you just ask for what you want, like:
- “I’m going to Dubai and want cool photos of deserts. Show me three options on this RAF and put the best one in C3.”
- “Use this recipe: (a link to a recipe page). Put it in C2 and call it PORTRA.”
- “Make me a moody black-and-white street look and show it on
DSCF4158.RAF.” - “What’s in my C1 to C7? Save them to
my-camera.json.”
So what it does is:
- It makes recipes. You can give it the exact settings, or a web page with a recipe, or just describe what you want in plain words, and then the agent comes up with two or three candidates on its own. A recipe is a small JSON file with film simulation, grain, color chrome, white balance, dynamic range, highlight, shadow, color, sharpness, noise reduction and clarity in it.
- It shows you a preview. The agent sends a RAF from your X100VI to the camera, the camera develops it one time for each recipe, and you get back the JPEGs plus a contact sheet with all of them. It can also make HEIF, or 8- and 16-bit TIFF at full resolution.
- It saves the recipe into one of the custom settings C1-C7 (with a name), or applies it to what the camera is set to right now. Also, it can read the live settings and C1-C7 and back them up to a single JSON file, or save the camera’s own settings file with every menu setting in it and restore it later.
These are two of my photos from Dubai, the way I shot them and then with four of the starter recipes that are shipped with the skill:

Before it writes anything to the camera the agent asks you, and if a custom setting already has a recipe in it, it won’t replace it until you clearly say yes. Even then the old contents are saved to a file first, and the same goes for a restore. ISO, exposure compensation, focus and drive modes can’t be reached over USB at all, so in a recipe they are just notes and you set them on the body yourself.
Separately, about Codex. It runs commands in a sandbox, and in the sandbox there are no USB devices, so for the tool the camera looks unplugged even when it’s plugged in perfectly fine. The skill asks to run the camera commands outside of the sandbox, and if you get tired of approving it, x100vi sandbox-help prints the rules that make it stop asking.
Technical details
PTP
The camera talks PTP over USB, which is the same protocol all cameras use to give photos to a computer. Vendors put their own properties on top of it.
In the card reader mode the X100VI shows four properties and none of them is a setting. Also, it turned out the X100VI has no tether shooting mode at all. So the only mode left to try was USB RAW CONV./BACKUP RESTORE, and in this mode the camera advertises 61 properties and 20 operations.
libgphoto2 doesn’t help here though, because it needs property descriptors to build its configuration tree, and in this mode the camera answers with a general error to every descriptor request. So the tool has its own small PTP client, and it reaches the camera through each system’s native camera interface:
- On macOS it’s ImageCaptureCore. The system camera service keeps running and the tool hands it complete PTP commands, so nothing has to be stopped and other camera apps can stay open.
- On Windows it’s Windows Portable Devices with Windows’ own driver, so no extra driver is needed.
- On Linux it’s the kernel’s USB interface. Only one program can hold the camera there, and your user needs access to the device (a udev rule or
sudo).
What I didn’t expect was in the list of properties. Next to the ones for the current shooting settings there was a block for the custom settings: 0xD18C selects one of the seven, 0xD18D is the name of it, and the 23 properties from 0xD18E to 0xD1A4 are the settings, i.e. you can write C1-C7 directly, value by value, and no backup file is needed.
What the registers mean
Since there are no descriptors, the camera doesn’t tell you which values a property takes, so we had to ask it in another way. The tool writes some trial value, checks if the camera took it or rejected it, and then puts the original one back. Like this we got the full range for every field, e.g. film simulation is 1 to 20, the white balance shift is from -9 to 9, Kelvin is 2500 to 10000 with a step of 10, and the name can be up to 25 characters long.
But the range doesn’t tell you which one of those 20 numbers is Classic Chrome, so every value had to be proven with real photos. The camera can’t shoot while it’s connected in this mode, so each round was like this:
- The tool loads seven test recipes into C1-C7, and each has a different combination of values.
- I unplug the cable and take one photo with each custom setting.
- I switch the camera to the card reader mode and plug it back.
- The tool downloads the files and compares the Fujifilm maker notes (decoded by ExifTool) with the recipes.
We needed three rounds of photos of nothing in particular. 393 of 393 tags matched, and it covers all 20 film simulations, 14 white balance modes, 9 noise reduction levels and 15 image sizes. After all the tests the seven custom settings were byte-identical to the snapshot the tool took before the very first write.
The camera also has some character, and the tool has to deal with it:
- Right after the camera goes into this mode, the register properties show you the current shooting settings, and if you write at this moment it copies them into the custom setting. So the selector always goes first.
- Grain Off keeps the grain size which was there before, so the size is written before it.
- If you change the Kelvin value, the white balance shift goes back to zero.
- The monochrome tint can be written only while a black-and-white simulation is selected, and under a color one it stays stored but hidden. To clear it, a recipe for a color simulation goes through Acros on its way.
- Noise reduction from -4 to +4 is encoded as
0x8000,0x7000,0x4000,0x3000,0x2000,0x1000,0x0000,0x6000,0x5000. I guess somebody at Fujifilm knows why.
Because of all this, after every write the tool reads the whole custom setting back and fails if the camera has something else in it. The full property map is in docs/protocol.md.
Rendering a RAF on the camera
The second half of the mode’s name is RAW conversion, and this is what X RAW Studio from Fujifilm uses. This app doesn’t have its own RAW converter, it just sends the RAF to the camera and the processor of the camera develops it. So the JPEG looks exactly the same as if the frame was shot with this recipe, because it’s the same hardware and the same code that make it.
The sequence is described in fujifilm-ptp-reference, and on the X100VI it goes like this:
- The tool uploads the RAF with two vendor operations,
0x900Cand0x900D. - It reads the property
0xD185, which is the conversion profile of the frame it just uploaded, 625 bytes with the settings the photo was shot with. - It writes the profile back, but with the values of the recipe patched in, and reads it again to compare.
- It writes
0xD183and this starts the conversion, in half size or in full resolution. - It waits until a new object shows up on the camera, downloads the result and deletes it from the camera.
The RAF is uploaded one time and developed one time per recipe, and nothing stays on the camera after that. To check that it really works we developed two frames with four recipes, and the maker notes of each output matched its recipe, 136 of 136 tags.
The same profile also picks the output format. HEIF works at both sizes, while TIFF comes only at full resolution, about 125 MB per image at 8 bits and 245 MB at 16 bits.
One limit I hit right away is that a RAF can’t be developed above the dynamic range it was shot with, so a DR400 recipe on a DR200 frame is rendered as DR200. The tool tells you about every setting it couldn’t apply and why, and the recipe itself stays as it was written. Also, a conversion that never finishes can leave the camera unresponsive until you switch it off and on, so the tool never retries one on its own and tells you to power-cycle instead.
Backup and restore
The other half of the mode’s name is backup and restore. The camera gives its complete configuration, every menu setting plus C1-C7, as a single PTP object of about 70 KB with the model name and a body ID inside. It also includes the network settings, so the tool treats it as a private file and never edits it. Before a restore it checks the model, the size and the body ID and saves the camera’s current file first, and after the restore it reads the file back to compare.
The camera is picky about the order here. Asking for this object without describing it first hung the X100VI until the battery came out, so now the tool’s PTP layer refuses to send those requests in the wrong order.
The CLI
All of this lives in the x100vi command-line tool, and the skill only explains to the agent how to use it:
x100vi doctor # is the camera connected and in the right mode
x100vi get all # current settings and C1-C7 as JSON
x100vi set C3 my-look.json # save a recipe, refuses if C3 is occupied
x100vi backup -o my-camera.json # live settings and C1-C7 in one file
x100vi backup --full -o camera.dat # the camera's own settings file, every menu setting
x100vi preview shot.RAF --as-shot -r desert-gold my-look.json
x100vi preview shot.RAF -r desert-gold --format heif
Every command has --json for the agent, and every error comes with an explanation and with a fix, like the wrong USB mode with the menu path, another program holding the camera, or a RAF from some other camera. The tool doesn’t touch the firmware at all.
I tested it on macOS with a real X100VI on firmware 1.31. The Windows and Linux binaries are built and unit-tested in CI on every push, against a software camera that reproduces the real one’s quirks, but I haven’t tried them with a real camera yet.