/olko-creative:galleryfrom olko-creative
Create photo galleries with AI-assisted layout curation. Orchestrates atomic scripts and sub-agents. Use when user wants to create a gallery from photos, mentions "/gallery", or asks about photo layout and sequencing.
Ships in olko-creative. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Composed skill that creates photo galleries by orchestrating atomic scripts and sub-agents.
This skill applies principles from masters of photo sequencing and curation:
"The individual pages have to give up their independence in order to form a union." (Keith Smith)
For detailed principles, see docs/photo-layout-principles.md.
/gallery {folder} "{title}" {slug}
Example: /gallery cabo-2025 "CABO 2025" cabo
Important: All paths are relative to the current project directory. The {folder} argument is a path within the project (e.g., ./photos/cabo-2025 or just cabo-2025). Do NOT search the filesystem for folders: assume the user's folder exists in the current working directory.
Before starting, identify the gallery's organizational mode:
| Mode | Definition | Implication |
|---|---|---|
| Series | Chronological journey (default) | Respect timestamp order; adjust only within temporal clusters |
| Group | Thematic collection | Order is flexible; optimize for visual rhythm |
| Sequence | Strict order with meaning | Order is sacred; only adjust layout, not arrangement |
Most travel/event galleries are Series.
Atomic Scripts (reusable):
├── init-gallery-manifest.ts Create manifest from EXIF
├── merge-gallery-batches.ts Combine batch files
├── validate-gallery-manifest.ts Fix common errors
└── generate-gallery-files.ts Generate .astro pages
Sub-Agent Skill:
└── review-image-batch AI reviews images → batch-NN.json
bun scripts/init-gallery-manifest.ts {folder} "{title}" {slug}
Creates:
src/data/gallery-manifests/{folder}.json (images array, empty blocks)/tmp/gallery-batches/{folder}/ (clean directory for batch files)Spawn sub-agents to review images. Each writes to its own file (parallel-safe).
For batchIndex in 0..ceil(imageCount/8):
Task(
subagent_type: "general-purpose",
description: "Review gallery batch {batchIndex}",
prompt: <see below>
)
Sub-agent prompt template:
Review batch {batchIndex} for {folder} gallery.
Read:
- Manifest: src/data/gallery-manifests/{folder}.json
- Layout guide: {plugin_base_dir}/skills/review-image-batch/references/layout-guide.md
(The plugin base directory is provided in the skill invocation header)
Images to review: indices {startImage} to {endImage}
(Calculate: startImage = batchIndex * 8, endImage = min(startImage + 7, totalImages - 1))
Workflow:
1. Read manifest to get image filenames
2. Read layout guide for rules
3. View each image file with Read tool
4. Create layout blocks using your visual judgment
5. Write JSON to: /tmp/gallery-batches/{folder}/batch-{NN}.json
where NN = batchIndex padded to 2 digits (00, 01, 02...)
6. Return TEXT SUMMARY ONLY
Output file format:
{
"batchIndex": {batchIndex},
"startImage": {startImage},
"endImage": {endImage},
"blocks": [
{ "layout": "WideImage", "images": ["DSCF1234.jpeg"], "props": {}, "notes": "..." }
]
}
LAYOUT PHILOSOPHY:
Apply visual judgment, not mechanical rules. A gallery needs rhythm and variety.
Single-image (WideImage, OffsetImage, InsetImage, FullBleed):
- Strong standalones, portraits, quiet moments
Multi-image (TwoUp, ThreeUp):
- Use when juxtaposition creates meaning beyond either image alone
- Apply Lyons's test: Temporal? Spatial? Formal echo? Emotional pairing? Transformation?
- A good TwoUp is BETTER than two mediocre WideImages
- A true sequence (entering→through→emerging) deserves ThreeUp
Spacer: Add breathing room after powerful images
Chapter: Insert at location/theme changes
Parallel execution: Sub-agents can run in parallel since each writes to its own file.
After all batches complete:
bun scripts/merge-gallery-batches.ts {folder}
bun scripts/validate-gallery-manifest.ts src/data/gallery-manifests/{folder}.json
This combines all batch files and validates the result.
Before generating, review the merged manifest for overall coherence:
bun scripts/generate-gallery-files.ts {folder}
Creates:
src/data/{folder}.ts (data file with chapters)src/pages/photographing/{slug}/index.astro.astro files for each chapter (if multi-chapter)If interrupted, check /tmp/gallery-batches/{folder}/ for existing batch files:
ls /tmp/gallery-batches/{folder}/
Only run missing batches, then merge.
A gallery needs rhythm and variety: loud moments, quiet moments, pairings that create meaning.
| Layout | Purpose |
|---|---|
| WideImage | Strong standalone landscapes |
| OffsetImage | Portraits, quiet moments, breathing room |
| FullBleed | Hero shots, climactic moments |
| InsetImage | Intimate details, visual whispers |
| Spacer | Pacing, section breaks |
| TwoUp | Images that speak to each other |
| ThreeUp | True sequences (entering→through→emerging) |
| SplitLayout | Asymmetric pairs, one frames the other |
| Chapter | Location/theme breaks |
Pair images when juxtaposition creates meaning beyond either image alone:
A strong TwoUp is better than two mediocre WideImages.
When complete:
/photographing/{slug}/src/data/gallery-manifests/{folder}.jsonsrc/data/{folder}.tssrc/pages/photographing/{slug}/*.astroEach piece is reusable:
# Just extract EXIF
bun scripts/init-gallery-manifest.ts photos "Photos" photos
# Just merge existing batches
bun scripts/merge-gallery-batches.ts photos
# Just regenerate pages from manifest
bun scripts/generate-gallery-files.ts photos
# Validate any manifest
bun scripts/validate-gallery-manifest.ts src/data/gallery-manifests/photos.json
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub oleg-koval/agent-skills --plugin olko-creative7 skills in this plugin
/carousel-makerUse when someone wants Instagram or LinkedIn carousel slides from a topic, a brief or pasted copy. A fixed brand template sets the text on every slide, and an optional library of hand-drawn illustrations, drawn once in code per brand and reused across decks, supplies the pictures. No image models or stock./fill-music-playerUse when a user wants to fill a portable music player (Walkman, iPod, USB drive) with a curated random selection from a music library on a NAS or local directory. Handles format filtering, artist/album diversity balancing, and size targeting./music-to-plexAcquire music and make it playable in Plex/Plexamp: single albums (via mtp-bot), DJ tracklists/crates, and YouTube playlists. Use ONLY when the user explicitly wants to ADD or DOWNLOAD music to Plex (e.g. 'add to Plex', 'get me this album', 'download this playlist', a timestamped DJ tracklist, or a plain 'Artist - Title' list). NOT for podcasts or non-music; for albums already on disk that won't show up, bulk library repair, or Plex scanner/DB problems, hand off to plex-music-ingest./shorts-animatorUse when someone wants a narrated, painted or hand-drawn animated short (TikTok, Reels, YouTube Shorts) from a script or topic and a look described in words. Every frame is drawn in code and GPU-painted, voiced locally, captioned and scored into an MP4; no image models or stock./vinted-listingCreate, edit, and safely publish a Vinted listing through the signed-in browser, using verified item details and the owner's original photos. Suggests title, description, category, brand, condition, colour and parcel size from the photos, saves a draft first, and requires explicit confirmation before publishing. Use when the user wants to list, sell, relist or price an item on Vinted, or says "put this on Vinted", "create a Vinted listing", "sell this on Vinted", "edit my Vinted draft", or "publish that listing". Browser workflow, not an API integration.
/wikipedia-uk-editorDraft policy-compliant Ukrainian Wikipedia edits: translate an English article into uk, expand or source an existing uk article, or fix a maintenance backlog item, and return ready-to-paste wikitext plus an edit summary. Use when given a uk.wikipedia.org or en.wikipedia.org URL or article title to edit, translate, source, or improve, or when planning what to contribute to ukwiki next.