photo-cull
Skill2 starsChanged 8 months agoMITView on GitHub
Pick the good photos out of a folder of camera RAW files (Sony .ARW and other RAW formats). Generates previews, scores every frame for sharpness and exposure, groups burst near-duplicates, then visually reviews the top candidates and assembles a selects/ folder. Use when asked to cull, sort, pick keepers, or find the best shots from a RAW photo shoot.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cyruspastelero/dot-agentword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- cyruspastelero/dot-agent★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- global/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- api-designSkill
- appstore-releaseSkill
- audit-app-designSkill
- backend-judgementSkill
- database-migrationsSkill
- foundation-models-on-deviceSkill
- humanizerSkill
- liquid-glass-designSkill
- marketing-screenshotsSkill
- polar-checkoutSkill
- ponytailSkill
- postgres-patternsSkill
- project-notesSkill
- python-patternsSkill
- python-testingSkill
- setup-auditSkill
- shipping-ios-appsSkill
- swift-actor-persistenceSkill
- swift-concurrency-6-2Skill
- swift-protocol-di-testingSkill
- swiftui-patternsSkill
- systematic-reasoningSkill
- verify-appSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Never modify or delete original RAW files: Read only.
- Very specific: line 86
Use the Read tool on _previews/<name>.jpg for any frame that needs a closer look than the contact sheet allows.
- Very specific: line 108
If a finalist fails, pull the burst's alternatives (contact_sheet --files) and swap in a frame that passes.
- Very specific: line 128
After confirmation, copy the chosen originals (not previews) into <shoot_folder>/selects/:
- Very specific: line 136
Use cp (copies, originals stay put).
- Distinctive: line 139
Group the selects by scene: Put each keeper into a numbered scene subfolder that follows the shoot's chronology, e.g.:
- Very specific: line 147
Call out the Instagram-worthy shots: Add selects/instagram/ containing
- Very specific: line 153
Write a short cull-report.md in the shoot folder summarizing counts, the scene groups, the keep/drop decisions, and the Instagram ranking.
≈ “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
photo-cull
First-pass culling of a RAW photo shoot. Combines objective metrics (sharpness, exposure — computed by a script) with subjective judgment (composition, expression, eyes open/closed — done by you, via vision) to pick the keepers, without ever touching the original RAW files.
When to use
The user wants to find/pick/cull/sort the "good" photos from a folder of RAW
files (e.g. a *_<date> shoot folder full of .ARW files).
Prerequisites (already present on this machine)
sips— built-in macOS CLI, reads Sony.ARWand other RAW formats natively.- Python 3 with
cv2,numpy,Pillow. - No
exiftool/dcraw/darktableneeded — the workflow avoids them.
There is no dedicated photo-culling MCP server available; this skill is the intended path.
Hard rules
- Never modify or delete original RAW files. Read only.
- Culling means selecting, not deleting rejects. Winners are copied (or
symlinked) into
selects/. - Confirm with the user before any bulk copy/move/delete.
Workflow
1. Run the scoring script
python3 ~/.claude/skills/photo-cull/cull.py <shoot_folder>This:
- extracts a downscaled JPEG of every RAW into
<shoot_folder>/_previews/(skips ones already generated — safe to re-run; add--skip-previewsto reuse existing previews), - computes per-frame sharpness (center-weighted Laplacian variance) and exposure (mean brightness, shadow/highlight clipping %),
- groups consecutive frames into bursts by capture-time gaps (a pause of
8s starts a new scene; falls back to sequence numbers if timestamps are missing),
- writes
<shoot_folder>/metrics.csvand prints a summary: total frames, burst count, flagged frames (blurry / over- / under-exposed / clipped), and a shortlist = the sharpest clean frame in each burst.
Useful flags: --max-dim 1024 (preview size), --workers N (parallelism).
Big shoots (hundreds of RAWs, ~tens of GB) take a few minutes to generate previews the first time. Tell the user it's running; it parallelizes across cores. Consider running it in the background for very large folders.
2. Read the summary, then visually review the shortlist
The script's shortlist is a mechanical pick (sharpest unflagged frame per burst). It cannot judge composition, expression, eye contact, or which of two equally-sharp frames is better. You do that by viewing the previews.
Use contact sheets to review efficiently — reviewing hundreds of previews with individual Read calls burns context. Generate labeled thumbnail grids instead:
python3 ~/.claude/skills/photo-cull/contact_sheet.py <shoot_folder> # shortlist
python3 ~/.claude/skills/photo-cull/contact_sheet.py <shoot_folder> --all # all clean frames
# Review a dense burst's alternatives (note: zsh needs ${=var} to word-split a list):
files=$(awk -F, '$2==33{printf "%s ", $1}' <shoot_folder>/metrics.csv)
python3 ~/.claude/skills/photo-cull/contact_sheet.py <shoot_folder> --files ${=files}Sheets land in <shoot_folder>/_contact_sheets/; Read those. For dense "hero"
bursts (a long portrait/posing run), the shortlist shows only ONE frame — sheet
that burst's full frame list to pick the best expression/pose.
Then, drilling in:
- Use the Read tool on
_previews/<name>.jpgfor any frame that needs a closer look than the contact sheet allows.
2b. MANDATORY: verify every finalist at full preview resolution
Contact-sheet thumbnails and the sharpness/exposure metrics are a filter, not
a verdict. Before anything lands in selects/, Read each finalist's full
_previews/ JPEG and confirm with your own eyes. Metrics and thumbnails have
demonstrably let these through:
- Closed / squinting eyes — invisible at thumbnail size, fatal for a portrait (especially shooting into the sun). Check every face.
- Sharpness ≠ good photo — a sharp shot of playground netting or a fence
outscores a soft portrait. A high
sharpnessnumber can mean "busy texture," not "great image." Confirm the subject is what's sharp. - Mislabeled content — "lone figure on beach" that is actually an empty seascape; an "establishing portrait" that is a cityscape. Verify what's in the frame before writing it into a scene group or the IG list.
- Awkward in-between frames — head down, mid-blink, fiddling with clothing — that scored fine on exposure but aren't real poses.
- Near-duplicates — three almost-identical frames; keep the single best.
If a finalist fails, pull the burst's alternatives (contact_sheet --files) and
swap in a frame that passes. Originals are copies into selects/, so revising is
cheap — but get it right before telling the user it's done.
- For each burst, confirm or override the script's pick based on: subject in focus, eyes open, good expression, framing/composition, no distracting clipping. Within a burst the frames are near-identical, so compare and keep the single best (occasionally two if genuinely different).
- Reconsider "blurry"-flagged frames only if the blur is intentional (motion, bokeh) — otherwise trust the flag.
Batch your Read calls (view several previews per turn) to move quickly.
3. Propose the selects, get confirmation
Present a concise list: chosen file per burst + one-line reason, and note any bursts you dropped entirely (all blurry/eyes-closed/etc.). Ask the user to confirm or adjust before copying anything.
4. Assemble selects/
After confirmation, copy the chosen originals (not previews) into
<shoot_folder>/selects/:
mkdir -p <shoot_folder>/selects
cp <shoot_folder>/DSC07818.ARW <shoot_folder>/selects/Use cp (copies, originals stay put). Use ln -s instead only if the user
prefers symlinks to save disk.
Group the selects by scene. Put each keeper into a numbered scene subfolder that follows the shoot's chronology, e.g.:
selects/01_establishing/ 02_beach_portraits/ 03_golden_hour/
04_sunset_yoga/ 05_morning_beach/Call out the Instagram-worthy shots. Add selects/instagram/ containing
ranked symlinks (01_<file>, 02_<file>, …) to the ~6–10 strongest frames
in posting order — no extra disk, and the rank prefix sorts them. Favor: a
single clear subject, golden-hour/silhouette light, clean composition/negative
space, and a strong "vibe." Explain the ranking in the report.
Write a short cull-report.md in the shoot folder summarizing counts, the
scene groups, the keep/drop decisions, and the Instagram ranking.
Metric reference
| Metric | Meaning | Flagged when |
sharpness | center-weighted Laplacian variance | < 60 (blurry) |
mean | average brightness 0–255 | <50 dark / >205 bright |
shadow_clip_pct | % pixels crushed to black | >10% |
highlight_clip_pct | % pixels blown to white | >10% |
burst | near-duplicate group id (by seq number) | — |
Thresholds are tuned for 1024px previews and live at the top of cull.py.
They're starting points — if a particular shoot (e.g. deliberately dark/moody,
or lots of intentional motion blur) trips too many false flags, say so and
adjust the constants rather than blindly trusting the flags.
Notes
_previews/andmetrics.csvare derived/disposable — regenerable any time.- The script is non-destructive: it only reads RAWs and writes into
_previews/andmetrics.csv. - See the workspace
AGENTS.mdfor folder conventions.
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.

