extension
Skill1.7k starsChanged 8 days agoMITView on GitHub
Create, test, package and publish a RAWmakase extension with the Rust SDK and cargo rawmakase. Use for "write an extension", "new RAWmakase extension", "add a command/panel/mask generator/control adapter/photo source", "watched folder", "tethering", "cargo rawmakase new", "package my extension", "publish an extension", rawmakase-extension.toml manifest errors, MockHost tests, or work on a bundled extension (MIDI, MCP, AI masks) in this repo.
- Installs packages
2 other projects use a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- unipicto/appaudittheir own version, first seen Nov 22, 2026
- msrv-tech/skillstheir own version, first seen Oct 2, 2026
Who's talking about pch/rawmakase
- A Hacker News story“Show HN: Fast, Lightroom-compatible RAW photo editor for Linux and macOS”Hacker News · Sep 30, 2026 · 9 points
- @michaelmclean.me“Open source Lightroom just dropped for Mac, Windows and Linux. Lightning fast implementation in Rust. …”Bluesky · Oct 9, 2026 · 3 likes
- @ssp.sh“nice, theres's also github.com/pch/rawmakase. great to have so many options”Bluesky · Oct 9, 2026 · 1 likes
- JamesQiu2005/SpektraLab“Bug: Canon EOS R6 Mark III CR3 files display a strong magenta cast in Windows Beta”GitHub · Nov 4, 2026
- crmne/fastframe“Use the mouse-down itself for a macOS header press”GitHub · Oct 27, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub, Bluesky and Hacker News (8 times).
On GitHub · 5
- Nov 4, 2026Bug: Canon EOS R6 Mark III CR3 files display a strong magenta cast in Windows Beta — JamesQiu2005/SpektraLab0 reactions · 3 comments
- Oct 27, 2026Use the mouse-down itself for a macOS header press — crmne/fastframe0 reactions · 3 comments
- Oct 16, 2026Permission request: using spektrafilm in RAWmakase, an MIT-licensed RAW editor — andreavolpato/spektrafilm0 reactions
- Oct 16, 2026Add rawmakase — AppImage/appimage.github.io0 reactions · 1 comment
- Oct 14, 2026Add difficult-capture reference coverage — pch/rawmakase-dataset0 reactions
On Bluesky · 2
- Oct 9, 2026Open source Lightroom just dropped for Mac, Windows and Linux. Lightning fast implementation in Rust. github.com/pch/rawmakase — @michaelmclean.me3 likes and reposts · 1 reply
- Oct 9, 2026nice, theres's also github.com/pch/rawmakase. great to have so many options — @ssp.sh1 likes and repost · 1 reply
On Hacker News · 1
- Sep 30, 2026Show HN: Fast, Lightroom-compatible RAW photo editor for Linux and macOS9 points
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- msrv-tech/skills★ 68same name
- unipicto/appaudit★ 1same 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.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
Only the command and control-adapter templates exist.
- Very specific: line 53
Read manifest.md for every key: [extension], [access], [program], [[setting]], [[command]], [[panel]], [[control-adapter]], …
- Very specific: line 93
Mask provenance: Leave provenance out. It defaults to <extension>/<id>, and any other value is refused.
- Distinctive: line 108
Use one builder, with one handler for each contribution id in the manifest:
- Very specific: line 148
Test the refusals too: cancellation, needs_setup, a proposal refused stale_target.
- Distinctive: line 187
Never answer twice, and don't keep working after you return.
- Very specific: line 251
Only for agents changing extensions/midi, extensions/mcp, extensions/ai-masks, extensions/example or adding a new bundled one.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Make a RAWmakase extension
An extension is a package with one manifest, rawmakase-extension.toml, and
usually one native program written with the SDK (crates/rawmakase-extension).
The program talks to the app over the extension protocol. The docs are the
policy. This skill is the order of operations and the traps. Where they
disagree, the docs and the types win:
- overview: trust, where things live, developer mode, installing, how the app runs programs;
- manifest and
its schema, generated from
crates/rawmakase-extension-protocol/src/manifest.rs; - protocol: deadlines, buffers, leases, proposals, error codes;
- publishing:
cargo rawmakase.
reference.md has the code sketches, all compiled and tested against the SDK, and the repo-internal checklist.
Released versions. Extensions run in v0.5.0 and later. v0.5.0 supports
api = 2; v0.6.0 added api = 3 (photo sources, retouch generators and secret
settings), so an extension that needs those needs v0.6.0 or newer. api = 4
(export destinations) is on main, not yet in a release.
1. Start
cargo install --locked --git https://github.com/pch/rawmakase cargo-rawmakase
cargo rawmakase new my-looks --id dev.me.my-looks # a command
cargo rawmakase new my-dial --id dev.me.my-dial --template control-adapter- The folder name must be lowercase letters, digits and hyphens. It becomes
the crate's name and the program's (
[program] path = "bin/<name>"). - The id is reverse-DNS and permanent, because settings and saved masks store
it.
rawmakase.*is reserved: an install of such a package is refused. --rawmakasesets the supported range. The default is the current minor (DEFAULT_RANGEintools/cargo-rawmakase/src/templates.rs).- Only the
commandandcontrol-adaptertemplates exist. For a panel, a mask generator or a photo source, start fromcommandand follow reference.md. - The template depends on the SDK by git (
rawmakase-extension = { git = ... }), so it builds againstmain.
2. Write the manifest
Read manifest.md for every key:
[extension], [access], [program], [[setting]], [[command]],
[[panel]], [[control-adapter]], [[mask-generator]] with its
[[mask-generator.tile]]s, [[source]] and [[retouch-generator]]. The rules
people hit:
- Unknown keys are errors at every level, so a typo fails instead of
silently turning a feature off. Tables the design plans but no version
reads yet (
[[filter]],[[importer]], …) are refused too. - Ids are lowercase letters, digits and hyphens, at most 64 characters, and unique within their table. A command and a panel may share an id.
api:1to3. A higher value is refused as "for a newer RAWmakase". Use the lowest one that has what you need:2adds[[mask-generator]]and the shared-memory buffers that mask requests carry;3is API 2 plus[[source]],[[retouch-generator]]andcontrol = "secret"settings (an API key kept in the system's credential store, sent to the program as a string; never log it);4is API 3 plus[[export-destination]]. The app starts the program withRAWMAKASE_EXTENSION_API, and the SDK serves that mode. API 2 and up also make the program's reader strict (step 6).- Retouch generators need an
icon: an SVG in the package, a 24-unit outline in white orcurrentColor, which is the tool's rail button.cargo rawmakase packagerefuses one RAWmakase can't draw. - Export destinations (a web gallery, an upload) need
api = 4and a program; they getexport.begin, anexport.filefor each file as it is written (answer on receipt), andexport.end(answer with a result per file), and implementExportDestination, or wrap a closure incollectedto get the whole delivery at its end. Keep a photo by itsphoto_uuid, never by an integer photo id. Per-export choices (a gallery's title) are[[export-destination.option]]s, in a[[setting]]'s shape, read withExportBegin::option_strand friends. - Sources (watched folders, tethering) need
api = 3and[program] start = "with-app". A source is off until the user turns it on for a catalog on the extension's page, so a freshly installed one reports nothing. - Viewer input. A command's
input(point,box, …) is accepted, but the app doesn't collect it yet:CommandRun::inputis alwaysnull(src/app/extensions/mod.rs,run_command). Only mask generators get viewer input today, asprompt. A generator'sinputtakesnoneandpromptonly. - Mask provenance. Leave
provenanceout. It defaults to<extension>/<id>, and any other value is refused. The one exception is the bundledrawmakase.ai-masks, which may claimsubjectandsky. - Commands, panels, adapters and mask generators all need a
[program]. placesand panelplaceare checked but not drawn yet. Commands run from keys,rawmakase control action <ext>/<cmd>and the Run button on the extension's page. Panels show on that page.[access]is declared, not enforced. Declare the truth: users see it before installing, and again when an update asks for more.
cargo rawmakase build, package and dev all parse the manifest first and
print the exact rule that failed.
3. Write the program
Use one builder, with one handler for each contribution id in the manifest:
Extension::new()
.command("brighten", brighten) // impl Command, or a closure
.panel("strength", Strength::default()) // impl Panel
.adapter("device", Device::default()) // impl ControlAdapter
.mask_generator("left", Left) // impl MaskGenerator
.source("drop", Drop::default()) // impl Source
.retouch_generator("remove", Remove) // impl RetouchGenerator
.on_event(|event, host| { /* AppEvent */ })
.run()Context gives a handler host() (reads, proposals, notify, status),
op() (this request's id, for proposals), is_cancelled() and
cancel_flag(), settings() (with every setting-changed applied),
data_dir(), cache_dir() and progress(done, text). An adapter or a
source gets only a Host, which has data_dir(), session() and, for a
source, report(..). The signatures are in
crates/rawmakase-extension/src/lib.rs, run.rs and host.rs. Worked code
is in reference.md.
4. Test it
cargo test, with rawmakase_extension::mock::MockHost standing in for the
app over the real transport (crates/rawmakase-extension/src/mock.rs):
MockHost::start(ext)answers the program's requests withnull.start_with(ext, |method, params| …)answers them your way.- An
api = 2,3or4manifest needsstart_with_options(ext, ServeOptions { api: 2 }, responder)(orapi: 3,api: 4). A mock serving API 1 refusesgenerate_maskat once, as the app does. hello()orhello_with(Hello { settings, .. }), thenrun_command,open_panel/change/click,generate_retouch(request, &image, &coverage),generate_mask(request, &image)(it returns the result and the coverage written),send_mask+cancel+wait_mask,setup_mask,event(a source's scopes start and stop throughAppEvent::SourceStarted/SourceStopped),recorded()/wait_for(..), andfinish()last.- Test the refusals too: cancellation,
needs_setup, a proposal refusedstale_target.
Worked tests: crates/rawmakase-extension/tests/sdk.rs; the example
extension, extensions/example (src/lib.rs for commands, a setting and a
panel; src/masks.rs with masks/rawmakase-extension.toml for mask
generators; src/sources.rs with sources/rawmakase-extension.toml, a
test-only source the app's own tests drive); and the bundled ones: extensions/midi (a with-app adapter and
panel, src/tests.rs), extensions/mcp (an externally launched adapter) and
extensions/ai-masks (mask generators with setup, src/tests.rs).
5. Try it in the app, package, publish
cargo rawmakase dev [--data-dir <dir>]makes a debug build, lays it out undertarget/rawmakase-dev/and registers the folder inextensions.jsonas a developer extension. In Preferences > Extensions, Developer mode adds Load from Folder… and reloads a changed manifest or program while the page is open. Rundevagain after each change.cargo rawmakase buildrunscargo build --release.cargo rawmakase package [--target T] [--program P] [--include F]writestarget/rmext/<id>-<version>-<target>.rmextand checks it as the app would.rawmakase extensions install <file.rmext | https://github.com/o/r> [--yes], or Install from File… / Install from GitHub…. Packages installed this way are marked Not reviewed.cargo rawmakase releasepackages for this computer and writes.github/workflows/rawmakase-release.yml. Push a tagv<version>and every target's package is attached to the release. Keep older releases up for users of older RAWmakase versions.
6. Rules and pitfalls
The details are in protocol.md.
- Deadlines.
hellogets 5 s, other requests 30 s,mask.generate200 s andmask.setupan hour. At the deadline the app sendscanceland fails the request 2 s later. Progress doesn't extend a deadline. Anon-demandprogram is stopped after 5 idle minutes. - One reply per request. Return from the handler and the SDK replies. Never answer twice, and don't keep working after you return.
- Honour cancel. Poll
cx.is_cancelled(), or lendcx.cancel_flag()to a model run, and returnErrorCode::Cancelled. A handler that ignores it holds the queue, and with buffers it holds the lease. Past 10 s the app treats the program as hung and kills it. - Proposals. Edit only through
host().propose_settings(cx.op(), token, changes)while the command runs, with the token of the snapshot you read. Once the command is answered, cancelled or past its deadline, a proposal is refusednot_admitted. A photo that changed since the read is refusedstale_target, photo by photo. Readappliedandrefused. Skip photos whose snapshot has anerror. A read or proposal covers at most 200 photos. - API 2 framing is strict. Any framing fault (a malformed or oversized
line, missing or extra handles) ends the program (exit status 70). Never
write to the channel yourself.
println!goes to the log, not the channel. - Buffers live only for the handler's call.
MaskAsk'simageandcoverageare borrowed. The SDK unmaps them aftergeneratereturns and before replying, so copy anything you keep. Write the coveragestridebytes per row.image_keyis a digest you can cache an analysis by. - Budgets. At most 256 MiB of buffers per request and 512 MiB in flight
per extension, counted across restarts. One JSON line is at most 1 MiB, and
a longer reply goes out as
too_large. A panel holds at most 1000 controls, nested at most 8 deep. A mask'smodelandmodel_keyare 1 to 128 bytes. - Data folder versus local data folder.
cx.data_dir()(<data>/extension-data/<id>/, which also holdslog.txt) andcx.cache_dir()(<data>/extension-cache/<id>/) sit under the data folder.RAWMAKASE_DATA_DIRmay point that at a shared or synced folder. Anything big or machine-specific (models, runtimes) belongs in the local data folder,rawmakase_protocol::paths::local_data_dir(), which is never synced. Only AI masks does that today. - Don't block the handler loop. One thread runs every handler and event
in order, while another keeps reading so cancels and replies still arrive.
So
ControlAdapter::startmust spawn its threads and return.on_eventmust be quick. Long work polls cancel. Device threads report through their ownHostclone and must stop whenstop()is called. - Adapters. Raise
epochon every connection.adapter.operatefrom an old epoch is refusedstale_target. When the app's queue is full, it refuses at once withchannel_full: drop the input or coalesce it, and don't retry in a loop. - Sources. Report only complete files: written whole and closed, never
one still being written. Each report names the scope from
source-started, the folder the source writes to (the files must be in it or below it) and 1 to 200 files.host.reportwaits for the files to be added: it retriesbusyfor up to a minute while other work holds the catalog, and it is refusednot_admittedonce the scope has stopped, so report from your own thread, never fromstart. Reporting a file again is harmless, so after a restart or a reconnection, report everything that might be missing.show: trueselects the last photo the report added, or opens it in Develop, as a tethered capture does.stop(scope)must not wait on a device. Readrefused:not_found,not_a_photo,outside_folder,linked_elsewhere(its folder belongs to a catalog folder linked to another place on this computer) orambiguous(the user adds it with Add Folder…, which asks). There is no live view and no preset on import yet. - Logging. Stdout and stderr go to
<data>/extension-data/<id>/log.txt, rotated at 1 MiB, and the extension's page links to it. Stdin is null. - Errors the app understands.
NeedsSetup { what, bytes }.error()shows a download card, thenmask.setup.Unavailablecovers a missing runtime or worker. Three crashes in a row make the extension Failed until Retry.
7. Repo-internal: bundled extensions in this repo
Only for agents changing extensions/midi, extensions/mcp,
extensions/ai-masks, extensions/example or adding a new bundled one.
Third-party authors can skip this section. AGENTS.md applies throughout,
and the checklist is in reference.md:
scripts/deps-crates.txt rules, the make check and CI package lists,
bundled.rs discovery and the packaging scripts, the release version
locations, then make check before pushing.
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.

