/visual-communications:run-fal-generationfrom visual-communications
Use when the user wants to execute a saved prompt against the fal REST API and save the resulting image or video into the project's visuals directory.
Ships in visual-communications. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Execute a saved prompt against fal's REST API with $FAL_KEY (supply it from your own secrets manager or shell), then save the output into the project's visuals/ directory and update the prompt YAML. No MCP server is involved.
prompts/<slug>.yaml and wants to generate the visual.All calls send Authorization: Key $FAL_KEY.
Discovery:
GET https://api.fal.ai/v1/models?q=<keywords>&limit=5 (add &category=text-to-image etc.)GET https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=<model id>GET https://api.fal.ai/v1/models/pricing?endpoint_id=<model id> (returns unit_price, unit)Execution (queue API):
POST https://queue.fal.run/<model id> with the input JSON. Returns request_id, status_url, response_url, cancel_url.GET <status_url> until status is COMPLETED (values IN_QUEUE, IN_PROGRESS, COMPLETED; failures carry error).GET <response_url>.PUT <cancel_url>.fal-ai/flux/dev) status and result use only owner/app, and a hand-built URL with the subpath returns 405.POST https://fal.run/<model id> instead.Outputs are CDN URLs, not local paths. This skill downloads them.
Example:
bash -c '
R=$(curl -s https://queue.fal.run/fal-ai/flux/dev -H "Authorization: Key $FAL_KEY" \
-H "Content-Type: application/json" -d @input.json)
S=$(echo "$R" | jq -r .status_url); O=$(echo "$R" | jq -r .response_url)
until [ "$(curl -s -H "Authorization: Key $FAL_KEY" "$S" | jq -r .status)" = COMPLETED ]; do sleep 3; done
curl -s -H "Authorization: Key $FAL_KEY" "$O" > result.json'
prompts/<slug>.yaml to executedata: URI or staged to a URLVerify the key. FAL_KEY must be set (test -n "$FAL_KEY"). If not, tell the user and stop.
Load project + prompt. Read ${CLAUDE_PLUGIN_DATA:-$HOME/.local/share/claude-plugins}/visual-communications/projects/<project>/project.yaml and prompts/<slug>.yaml.
Pick the model (if not set). If the prompt YAML lacks a concrete fal model id (e.g. fal-ai/flux/dev, fal-ai/flux-pro, fal-ai/minimax/video-01), search the models endpoint with a keyword. Confirm the choice with the user if there's ambiguity.
Sanity-check inputs and price. Fetch the OpenAPI schema to confirm parameter names (image models commonly take prompt, image_size / aspect_ratio, num_images, negative_prompt; video models often take prompt, image_url, duration). Optionally query the pricing endpoint and surface the cost to the user before running.
Reference images if needed. For image-to-image or video-from-image, pass the local file as a data:image/png;base64,... URI in image_url / image_urls (check the schema for which). For large files, stage with cloud-storage:stage-file (stage.sh <file> gives a presigned URL; delete after) and pass that URL.
Run the model. Submit to the queue, poll status_url, fetch response_url (see routes above). The synchronous fal.run endpoint is fine for short jobs; use the queue for anything over ~60s, such as most video.
Download the outputs. Parse output URLs from the result (typical fields: images[].url, video.url, audio.url). For each, download to:
${CLAUDE_PLUGIN_DATA:-$HOME/.local/share/claude-plugins}/visual-communications/projects/<project>/visuals/<slug>-vN.<ext>
Use curl -L -o <dest> <url> (or wget). Auto-increment the vN suffix; never overwrite existing files without confirmation.
Update the prompt YAML. Append every saved file to generated_files::
generated_files:
- ../visuals/hero-vN.png
model_used: fal-ai/flux/dev
generated_at: 2026-04-30T22:15:00+03:00
Report. Show the saved paths, the model id used, and the price (if the pricing endpoint was queried). Offer next steps: regenerate with tweaks, run a new prompt, or upscale an output (search the models endpoint for "upscale" if asked).
fal-ai/flux/dev is a good default for stills; fal-ai/flux-pro/v1.1 for higher fidelity.square_hd, landscape_16_9, etc.) — the OpenAPI schema is the source of truth.negative_prompt; check the schema before passing it.visuals/ without explicit user confirmation.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/generate-visual-promptUse when the user wants to convert a chosen visual concept into an optimised text-to-image, image-to-image, or video prompt./ideate-visualsUse when the user wants to brainstorm visual ideas for a project's source content./list-visual-projectsUse when the user wants to see all visual-communications projects with their status./onboard-visual-projectUse when the user wants to set up a new visual-communications project for content enhancement./visual-style-referenceUse when the user wants to look up resolution guidelines per platform or style modifier vocabulary for visual generation.visual-communications@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin visual-communications