Communitygithub.com

print-preflight

Check a PDF before it goes to the printer — bleed, trim size, image resolution at placed size, embedded fonts, RGB vs CMYK vs spot colors, total ink coverage, hairlines, transparency, layers and annotations — and explain each problem with the fix for InDesign, Illustrator, Affinity, Canva or Figma. Use whenever the user is about to print something (flyer, poster, business card, book, zine, packaging) or asks "is my file OK for print", "why did the printer reject my file", or wants a PDF checked.

print-preflight とは?

print-preflight is a Claude Code agent skill that check a PDF before it goes to the printer — bleed, trim size, image resolution at placed size, embedded fonts, RGB vs CMYK vs spot colors, total ink coverage, hairlines, transparency, layers and annotations — and explain each problem with the fix for InDesign, Illustrator, Affinity, Canva or Figma. Use whenever the user is about to print something (flyer, poster, business card, book, zine, packaging) or asks "is my file OK for print", "why did the printer reject my file", or wants a PDF checked.

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Remicht0/graphic-design-skills/tree/HEAD/skills/print-preflight

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Print preflight

scripts/preflight.py inspects the PDF structure and reports FAIL / WARN / PASS findings in plain language. Your job is to run it with the right settings for the job, then turn the report into a short, prioritized list of fixes the user can actually do in their software.

Workflow

  1. Ask (or infer) the job if it isn't clear: what is printed, by whom, and how. It changes the settings:
    JobSettings
    Flyer, poster, card at a print shop (default)--bleed 3
    Large format (posters > A2, banners)--bleed 5 --min-ppi 150 --low-ppi 100 (seen from a distance)
    Offset / professional printerdefaults, and treat every RGB warning as a real problem
    Home or office printer--bleed 0 (they can't print to the edge anyway)
    Screen PDF, portfolio, slides--target digital
    If the printer gave specs (bleed, PDF/X, ink limit), use them: they override everything here.
  2. Run it:
    python3 scripts/preflight.py file.pdf -o report.md --json report.json [settings]
    
  3. Answer with the verdict first, then only the problems, most serious first, each with its fix. Don't paste the whole report unless asked; send report.md as a file if the user wants it.
  4. If something can only be judged by eye (does the background really touch the edge? is that image meant to be pixelated?), look at the page: render it to PNG if a tool is available, or ask the user.

Fixes, by problem

No bleed / bleed too small. Backgrounds and images that touch the edge must extend past it by the bleed (usually 3 mm).

  • InDesign: Document Setup → Bleed 3 mm, pull edge elements to the red bleed line, then Export PDF → Marks and Bleeds → "Use Document Bleed Settings" + Crop Marks.
  • Illustrator: Document Setup → Bleed 3 mm; Save as PDF → Marks and Bleeds.
  • Affinity (Publisher/Designer): Document Setup → Bleed; Export PDF → More → "Include bleed".
  • Canva: File → View settings → Show print bleed; Download → PDF Print → tick "Crop marks and bleed".
  • Figma: no bleed setting. Make the frame 6 mm larger in both directions (e.g. A4 = 216 × 303 mm), keep important content 3 mm inside the trim, and tell the printer the trim size.

Low image resolution. The report gives the pixel width needed. Fix by using the original file (not a screenshot or a social-media download), placing the image smaller, or, as a last resort, AI upscaling and checking the result at 100 %. Pixel-art or dithered images are fine if they were made big enough with nearest-neighbour scaling.

Font not embedded. Re-export as "PDF (print)" / "High quality print". InDesign and Affinity embed by default unless the font's license forbids it; then convert the text to outlines. Canva and Figma always embed.

RGB. Digital print shops convert RGB automatically and it's usually fine. For offset printing or exact brand colors: convert images in Photoshop (Edit → Convert to Profile, the printer's profile, often FOGRA39 / FOGRA51 in Europe, GRACoL / SWOP in the US) and set swatches to CMYK. Warn that very bright RGB blues, greens and oranges cannot be reproduced in CMYK.

Spot color. Only correct if the job is printed with that special ink (and paid for). Otherwise: InDesign Swatches → Swatch Options → Color Type "Process", or Ink Manager → "All Spots to Process".

Total ink over limit. Dark areas with too much ink smear and dry slowly. Use a standard rich black (60/40/40/100) instead of 100/100/100/100, and convert images with the printer's profile, which caps the total ink.

Registration color used for content. It prints with every ink at 100 %. Replace it with black.

Hairlines. Lines under 0.25 pt may vanish or break. Set strokes to at least 0.25 pt (0.5 pt for light colors or reversed-out lines).

Annotations / form fields / layers. Comments and fields often don't print; layers may print differently. Re-export without comments, flatten form fields, and merge or hide layers deliberately.

Transparency. Fine for PDF/X-4 and modern printers. Only if the printer asks for PDF/X-1a, export with that preset (it flattens transparency) and check the result for white lines or color shifts.

Limits (say so when relevant)

The script reads the PDF's structure; it doesn't render pages. It cannot tell whether content actually reaches the page edge, measure ink coverage of RGB artwork, spot text that is too small or too close to the trim, check overprint settings, or validate full PDF/X conformance. For a critical or expensive job, recommend the printer's own preflight or Acrobat Pro's Preflight as a final check.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

art-direction-analyzer

Break down the art direction of a live website — typography, color palette, grid and spacing, motion and interactions, imagery — by inspecting the rendered page (computed styles, screenshots, hover states), and save a structured reference file with screenshots for a design inspiration library. Use whenever the user wants to study, deconstruct, scrape or reverse-engineer a site's design, visual identity, UI or motion, save a site as a reference or moodboard entry, or asks "how did they do this" about a website — even without the word "analysis".

dither

Turn photos and images into dithered, halftoned or bitmap graphics (Floyd–Steinberg, Atkinson, Bayer, halftone dots, duotone, risograph-style color) as PNG or SVG, sized for screen or print. Use when the user wants a dithered, 1-bit, pixel, halftone, newspaper, risograph, screen-print or "old Mac" look, a bitmap/trame effect, or an image prepared for laser engraving or a plotter.

editorial-layout

Design editorial, magazine-style PDF layouts in HTML/CSS — briefs, reports, portfolios, zines, presentations, posters, Instagram carousels — on a 12-column print grid with extreme type scale, one accent color, bleeding images and varied compositions, then render to a print-ready PDF (with bleed) plus PNG previews and automatic layout checks. Use whenever the user wants a document, PDF, deck, booklet or boards that look designed rather than templated, or asks for a magazine, editorial or Swiss-style layout.

palette

Build, check and export color palettes — extract one from a photo or moodboard, generate tints and shades (50–950) or harmonies in OKLCH, check WCAG contrast, and export to CSS variables, Tailwind, design tokens, Adobe ASE (Illustrator/InDesign/Photoshop), GIMP/Krita GPL or a swatch sheet. Use whenever the user wants a color palette, a color scale, "colors that go with" something, a contrast or accessibility check, or swatches for a design tool.

関連スキル