agentleFS
maxedappsmaxedapps/agent-skills/skills/generate-image/SKILL.md

generate-image

Skill60 starsChanged 2 months agoMITView on GitHub

Generates and edits images through fal.ai. Use this skill when a task needs text-to-image generation, reference-image editing, image upload, schema inspection, or queued-job recovery. Do not use for video, audio, 3D, local-only image manipulation, or non-image workflows.

  • Reads credentials

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use edit-image, generate-video and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SamurAIGPTSkill

    edit-image

    Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.

    Also in 3 projects that use this

  • aslanzubairaevSkill

    generate-video

    Generate background videos using Veo 3 (Google Gemini) or Seedance 2 (PiAPI). Use when creating or regenerating video backgrounds for Reels slides.

    Also in 3 projects that use this

  • ZanderRussSkill

    scientific-slides

    Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

    Also in 3 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 4 projects that use this

  • AnthropicSkill

    xlsx

    Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

    Also in 3 projects that use this

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use scripts/generate-image.ts.

    line 18
  2. Very specific:

    Never read or expose .env or FAL_KEY values.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 19 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.

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

Generate Image

Rules

  • Use scripts/generate-image.ts; check --help when needed.
  • Defaults: generate → xai/grok-imagine-image/v2.0/text-to-image; edit → xai/grok-imagine-image/v2.0/edit.
  • edit requires prompt and 1–3 image_urls; upload local references first.
  • Override --endpoint only when the user requests another model; run schema before unfamiliar fields or endpoints.
  • Never read or expose .env or FAL_KEY values.
  • Generation is billable: clarify ambiguous requests and never blindly resubmit an uncertain request.
  • Inspect outputs; composite official marks from real assets.

Commands

bun run scripts/generate-image.ts --help
bun run scripts/generate-image.ts schema
bun run scripts/generate-image.ts generate --input '{"prompt":"editorial photo of a red fox in Tokyo at night"}'
bun run scripts/generate-image.ts upload --file ./reference.png
bun run scripts/generate-image.ts edit --input '{"prompt":"make the sky stormy","image_urls":["<uploaded-url>"]}'

generate and edit queue, poll, and download to a temporary directory by default. Retain the reported endpoint and request ID to resume a job.

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.