media
Skill2 starsChanged 3 months agoMITView on GitHub
Media pipeline. Takes files from inbox/media/, converts photos to WebP/AVIF with size variants (srcset), videos to WebM+MP4 with posters. Lands them in site/media/.
- Installs packages
11 other projects use a version of this.
Adopted by
Most recently taken up by
- bartholomewtj/mediahub-mcptheir own version, first seen Nov 8, 2026
- wubinKKK/private-ai-workbenchtheir own version, first seen Nov 8, 2026
- ayrshare/ayrshare-social-media-api-claude-plugintheir own version, first seen Oct 13, 2026
- build-dezineer/skills-nuxt4-tw-webapptheir own version, first seen Oct 13, 2026
- jneaimi/media-skilltheir own version, first seen Sep 4, 2026
- niqinggood/openkitty-skillstheir own version, first seen Jun 26, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- ayrshare/ayrshare-social-media-api-claude-plugin★ 19same name
- niqinggood/openkitty-skills★ 4same name
- wubinKKK/private-ai-workbench★ 4same name
- Epistates/sparX★ 3same name
- Ahmadjamil888/imos★ 1same name
- anandpareek-hub/claude-skills-toolkit★ 1same name
- MateoGs013/eros★ 1same name
- bartholomewtj/mediahub-mcp★ 0same name
- build-dezineer/skills-nuxt4-tw-webapp★ 0same name
- jneaimi/media-skill★ 0same name
1 more not listed
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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- animationSkill
- auditSkill
- blocksSkill
- briefSkill
- buildSkill
- copy-analyzeSkill
- deploySkill
- design-lockSkill
- iconsSkill
- inboxSkill
- mobileSkill
- refsSkill
- tokensSkill
- typographySkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
After /inbox (materials validated).
- Distinctive: line 13
Every time a new batch of media arrives.
- Distinctive: line 19
If tools are missing — inform the user, provide install commands.
- Distinctive: line 111
Verify: SVGs are clean (no embedded raster, text outlined).
- Distinctive: line 123
If missing — warn the user, needed for social preview.
- Very specific: line 150
Do not redo what's already done: If a file is already in site/media/ and the inbox-file hash is unchanged — skip.
- Distinctive: line 157
Do not delete files from inbox/.
- Distinctive: line 158
Do not pull in anything not in brief (e.g.
- Very specific: line 159
Do not change colors/crop/retouch — that's not /media, that's a designer's task.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/media
Solves the assets-optimization bottleneck (usually done twice in a naive workflow).
When to use
- After
/inbox(materials validated). - Every time a new batch of media arrives.
Requirements
- Tools available:
ffmpeg(for video + posters),cwebp/avifenc/sharp(for photos). - On Windows the simplest path: node.js +
sharp(npm install -g sharp-cli) +ffmpeg. - If tools are missing — inform the user, provide install commands.
Process
Step 1. Read config
brief/00-priority.md— desktop-first or mobile-first (affects priority sizes).brief/06-technical.md— media hosting decision (local / Vercel / R2).brief/blocks/video-embed.md— hero-loop needed? formats?
Step 2. Walk inbox/media/photos/
For each photo:
A. Determine purpose
- From filename /
brief/04-content.md. - Hero — priority, LCP-critical.
- Portrait / case — standard.
- Icon-size (small) — optimize differently.
B. Generate size variants
For desktop-first:
- 480w, 768w, 1200w, 1920w, 2400w.
For mobile-first:
- 320w, 480w, 768w, 1200w, 1920w.
C. Convert to formats
.webp(required, quality ~80-85)..avif(optional, quality ~60-70 — better compression).- Original
.jpgfallback — only if old-browser support needed (usually not).
D. Save in site/media/
Naming: <name>-<width>.webp
Example:
site/media/
├── hero-480.webp
├── hero-768.webp
├── hero-1200.webp
├── hero-1920.webp
└── hero-2400.webpE. Generate srcset-snippet for this file
Save to site/media/_srcset-snippets.md for use in /build:
<img src="/media/hero-1200.webp"
srcset="/media/hero-480.webp 480w,
/media/hero-768.webp 768w,
/media/hero-1200.webp 1200w,
/media/hero-1920.webp 1920w,
/media/hero-2400.webp 2400w"
sizes="(max-width: 768px) 100vw, 60vw"
alt="TBD"
loading="lazy" decoding="async">Step 3. Walk inbox/media/videos/
For each video:
A. Format
.webm(VP9, main) — required..mp4(H.264, fallback) — required.
B. Optimization
- Bitrate: 2-4 Mbps for 1080p hero-loop (no more).
- Muted, no audio track for hero-loop (rule).
- Cut to 30s if longer (except case videos).
C. Poster (first frame in WebP)
ffmpeg -i video.mp4 -vframes 1 -f image2 - | cwebp - -o video-poster.webpD. Naming
site/media/videos/
├── hero-loop.webm
├── hero-loop.mp4
└── hero-loop-poster.webpStep 4. Walk brand/logo/
Copy SVGs into site/media/:
logo.svglogo-white.svglogo-mark.svg(for mobile-header and favicon fallback).
Verify: SVGs are clean (no embedded raster, text outlined).
Step 5. Favicon
From brand/logo/logo-mark.svg:
site/media/favicon.svg(main, SVG).site/media/apple-touch-icon.png(180×180, PNG for iOS).site/media/favicon-32.png(fallback for old browsers).
Step 6. OG-image
Check for inbox/media/og-image.png (1200×630).
If missing — warn the user, needed for social preview. Offer to generate from hero + logo overlay.
Step 7. Report
site/media/_media-report.md:
# Media pipeline report — 2026-08-08
## Photos
- hero: 5 sizes × webp + avif = 10 files (total 480 KB)
- founder: 3 sizes × webp = 3 files (180 KB)
...
## Videos
- hero-loop: webm 1.2 MB, mp4 1.8 MB, poster 40 KB
## Total
- Before: 45 MB (raw)
- After: 3.2 MB (-93%)
## Next
- srcset-snippets ready in _srcset-snippets.md — use in /build
- OG-image missing — 1200×630 requiredRules
- Do not redo what's already done. If a file is already in site/media/ and the inbox-file hash is unchanged — skip. (Hashes in
site/media/_hashes.json.) - Verify after each conversion.
identify hero-1200.webp— matches size? - Do not crop beyond need. Preserve alpha in PNG for logo. Do not change aspect.
- No backup needed. Originals stay in inbox/, we do not write there.
What NOT to do
- Do not delete files from inbox/.
- Do not pull in anything not in brief (e.g. default stock icons).
- Do not change colors/crop/retouch — that's not
/media, that's a designer's task.
Next
/icons— hybrid icon set./build— uses size variants via srcset./audit— verifies all photos use optimized formats.
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.

