All skills

Generate/edit images via fal.ai. Supports Google Nano Banana Pro and OpenAI GPT Image 2 selected from config/.env. Supports reference images and strong text rendering. ALWAYS read SKILL.md before first use.

Use this Skill: https://skilld.dev/gh/artwist-polyakov/polyakov-claude-skills/fal-ai-image

This session only. Nothing lands on disk.

referencesEDITING.md

≈634 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Editing Workflows

Generate vs Edit

Use generate.sh when the user wants a brand new image from text.

Use edit.sh when at least one source image matters:

  • preserve composition from a source
  • restyle an existing picture
  • replace or add objects
  • modify only one area of an image

Reference images

edit.sh accepts:

  • public URLs directly in --image-urls
  • local files after uploading through scripts/upload.sh

When several input images are passed to GPT edit, the mask applies to the first image.

mask_url

mask_url is currently supported only for openai/gpt-image-2/edit.

Purpose:

  • tells the model which region should be edited
  • keeps the rest of the image more stable
  • is best for inpainting-style changes such as swapping one object, changing text in one block, replacing a sign, retouching a face region, etc.

Important nuance from OpenAI's image docs:

  • with GPT Image, the mask is guidance, not a perfect hard boundary
  • the model usually follows the masked region, but may bleed slightly outside it if the prompt implies broader changes

Mask requirements

Practical requirements for reliable results:

  • mask and source image should have the same size
  • mask should have an alpha channel
  • transparent area should represent the region to replace
  • keep the prompt tightly scoped to the masked area when you want localized edits

When to use a mask

Use a mask when the user says something like:

  • "замени только вывеску"
  • "поменяй текст только в этом блоке"
  • "убери объект справа, остальное не трогай"
  • "сделай ретушь только лица"

Do not bother with mask_url when the user wants a broad restyle of the whole image. In that case plain edit.sh with references is simpler.

Prompting tips for masked edits

  • explicitly mention what must stay unchanged
  • name the target area in the prompt
  • avoid global style rewrites unless you actually want spillover outside the mask

Example:

sh scripts/edit.sh \
  --model gpt \
  --image-urls "https://example.com/base.png" \
  --mask-url "https://example.com/mask.png" \
  --image-size auto \
  --quality medium \
  --prompt "Replace only the masked area with a matte red ceramic mug. Keep the rest of the poster unchanged."

References:

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill enables image generation and editing using the fal.ai API. It supports two model providers (Google Nano Banana and OpenAI GPT Image 2) and includes scripts for uploading local images and managing generation queues. The skill is well-structured, using POSIX-compliant shell scripts and Python for data manipulation. Security analysis identifies standard surface areas for indirect prompt injection and dynamic code execution used for utility tasks, but finds no malicious intent or high-risk vulnerabilities.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    7/7 files flagged

Signed by skilld at e6ac39c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 5 months ago

README badge

README badge for artwist-polyakov/polyakov-claude-skills/fal-ai-image