agentleFS
mantleCurvemantleCurve/claude-skills/skills/cutout-type-posters/SKILL.md

cutout-type-posters

Skill0 starsChanged 8 days agoMITView on GitHub

Use when turning one photo of a person into premium Instagram posts — birthday, milestone, announcement or "make this photo look premium" — with bold uppercase typography, subject cutouts, clean whites or flat colour, deliberate crops. Also when asked for many style variations of one photo (10, 50, 100 designs), a 4:5 feed post, or to make an edit look like a top design account instead of a filter.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the person shares an example they made, treat it as the quality bar, never the template: match its confidence, not its layout.

    line 15
  2. Distinctive:

    Only the real photo. Never warp, stretch or AI-regenerate the face.

    line 33
  3. Distinctive:

    Don't enlarge a crop past ~1.6× CSS px of source pixels — faces go soft.

    line 35
  4. Distinctive:

    No real brand names, logos or imitations of a real product UI.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cutout type posters

One real photo + a clean subject cutout + bold UPPERCASE type + a deliberate layout = a post that looks designed, not filtered. Everything is HTML/CSS rendered by headless Chrome at 2160×2700 (Instagram 4:5 at 2×), so every design is exact, editable and re-renderable.

What "premium" means here (learned the hard way)

Rejected as cheap: warm hazy "luxury" grades, gold foil, script fonts, thin high-contrast serifs (Bodoni-style), italic serif headlines, wedding-invitation layouts, font specimen pickers. Approved: ALL-CAPS heavy grotesks (condensed, normal or extended widths), clean neutral whites or one flat bold colour, the subject cut out and interacting with the type, cuts/strips/grids, tiny tracked labels as a second voice. See references/craft.md.

When the person shares an example they made, treat it as the quality bar, never the template: match its confidence, not its layout.

Workflow

  1. Prep the photo (macOS, on-device, nothing uploaded): scripts/prep.sh <photo> <project>/assets → clean.png (bright neutral grade), bw.png, cutout.png (RGBA), cutout-dark.png (eroded edge for dark backgrounds), comp-bw-color.png (B&W room, subject in colour), mask.png, subject.json (subject bounding box). Note the face box by eye from a preview; layouts must never cut through it.
  2. Start from a template in templates/ (copy it and base.css + fit.js into the project):
    • strips.html — photo cut into stepped vertical strips (wide centre strip holds the face), B&W room / colour subject, rotated type column.
    • block.html — flat colour poster, giant condensed words behind the cutout, name in extended white caps in front of the legs.
    • swiss.html — waist-up crop over extra-wide stacked caps, one red accent word, rule + 4-field info row.
    • balloon.html — the subject holding a giant number on a string; big two-line headline in the empty corner. Fill the {{PLACEHOLDERS}} and the config block at the top of the script (crop origin/scale, face-safe widths, anchor and hand points from subject.json).
  3. Render and look: scripts/render.sh <project> <name> [...] → out/<name>.png, .jpg, preview-<name>.jpg. Read every preview. Then zoom (ffmpeg crop=) on the face, cutout edges, joins (string ↔ hand, knot ↔ number) and the smallest text before calling it done.
  4. Many variations: pick distinct concepts from references/styles.md (100 styles in 5 families). For 20+ designs, split into batches of ~20 per subagent, each with its own folder, numbered files, the shared brief (rules below + craft.md) and its own concept list, so no two batches overlap. Give each batch a different headline font per design. Watch for stalls (no new render for 20 min). Finish with scripts/sheet.sh contact sheets and your own review pass.

Hard rules

  • 4:5, 1080×1350 CSS px, device scale 2. ALL TEXT UPPERCASE (text-transform: uppercase on the canvas).
  • Only the real photo. Never warp, stretch or AI-regenerate the face. Colour treatments (duotone, halftone, posterize, riso grain, B&W) are fine.
  • Cuts, strips, shards and panels never slice the face.
  • Don't enlarge a crop past ~1.6× CSS px of source pixels — faces go soft. Ask for the original camera file if the shared image is small.
  • Key text inside 48 px margins, never over the face, never clipped by accident. Words hidden behind the subject must stay readable.
  • No real brand names, logos or imitations of a real product UI.
  • Outputs go in a real project folder the person owns — never /tmp or a session scratchpad.
  • Fonts from Google Fonts via <link>; list every face in window.FACES so fit.js waits for it before measuring.

Pitfalls that cost real iterations

SymptomCauseFix
Fitted headline far too smallmeasured the element box (scrollWidth of a block = container width)measure the text with a Range (fit.js does)
Fitted size random between rendersmeasured before the web font loadeddocument.fonts.load() every face first (window.FACES)
Rotated type hugemeasured after rotate(-90deg) (bbox width = line height)measure first, rotate in afterFit
One short word becomes enormouseach line fitted to full widthfit the longest line, give the others the same size
Light halo round the subject on dark groundsmask edge contains wall pixelsuse cutout-dark.png (eroded mask); a faint rim that is real backlight in the photo stays
String "stabbed" into a balloon numberline started inside the glyphmeasure ink bottom with canvas actualBoundingBoxDescent, add a knot, draw the string behind the subject so the hand covers its end
Headless Chrome exits with no PNGseveral renders at oncerender.sh retries and checks the file
Accented capitals (Ê, Å) hit the row abovetight stacked line-height (.74 in block.html)loosen to ~.84 for that row or avoid accents in stacked words
A red banner covers the renderfit.js caught an error: unfilled {{PLACEHOLDER}}, font not loaded, missing image, crop gap, bad configread the banner text and fix that, never ship a bannered render

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.