SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

comfy-prompt

Design e Frontend

Write production-grade prompts for ComfyUI Cloud (cloud.comfy.org) and local ComfyUI blueprints. Provides MCSLA prompt structure (Model · Camera · Subject · Look · Action), cinematic vocabulary, model routing across BFL Flux, OpenAI DALL-E, Stability SD3, Ideogram, xAI Grok, ByteDance Seedance, Pika, Runway, Vidu, Recraft, Reve, Google nano-banana, plus the 60+ local blueprints in ~/ComfyUI/bluepr

1estrelas
Ver no GitHub ↗Autor: 404kidwizLicença: NOASSERTION

Comfy Prompt Skill

Sister skill to comfyui-cli. This writes the prompt. comfyui-cli runs it.

Language rule: Reply in whatever language the user writes in.


HARD RULES — pre-delivery checklist

Run this checklist BEFORE sending any prompt response. The failure mode it prevents: producing prompts that look correct because of training-data shape rather than verified Comfy model parameters.

Confirm in order:

  1. Routing line first. First line names model + path (cloud/local) + workflow. Example: Routing: cloud → flux-pro (text-to-image, sync, 1024×1024). Missing routing line = response incomplete.

  2. Model exists and is verified. Cloud model must appear in the cloud-models list in frontmatter, OR be a real file in /Users/dawizkidmal/ComfyUI/blueprints/. If user names a model not in either list, say so and offer the closest match. NEVER invent model names. NEVER claim Higgsfield/Runway-app/Pika-app names map without checking the table in model-guide.md.

  3. MCSLA structure intact on video prompts. Model · Camera · Subject · Look · Action. Five layers, every video prompt, unless user explicitly opts out.

  4. Camera/motion vocabulary verified. Camera preset names come from vocab.md. If user names one not in the file, say so and ask for clarification.

  5. Negative constraints appended. Pull from shared/negative-constraints.md. Do not paraphrase — use file phrasing.

  6. Aspect ratio uses correct flag per model family. Comfy Cloud models have different parameter conventions for dimensions:

    • BFL Flux (flux-pro, flux-ultra, flux-2): --width INT --height INT
    • Stability / Ideogram / Reve / Vidu / Grok: --aspect_ratio STRING
    • Seedance: --ratio ENUM --resolution ENUM
    • Runway: --ratio ENUM
    • DALL-E / Recraft: --size "WxH"
    • Pika (t2v): --aspectRatio FLOAT (camelCase!)
    • kontext / fill / expand / rmbg / nano-banana: no dimension flag (uses source)

    Use the translator script to avoid schema errors:

    $(python3 ~/.claude/skills/comfy-prompt/scripts/aspect_flags.py <model> <aspect>)
    

    Or via cf wrapper: --platform tiktok|reel|wide|square auto-translates. Never hand-write --aspect_ratio — it only works for some models. Anamorphic / 2.35:1 / 2.39:1 are style register (Look line), not output ratios.

  7. Prompt under 200 words. Going over = padding. Tighten.

  8. Execution command appended. End with the exact comfy generate ... or comfy run --workflow ... command the user can paste.

If items 1–8 incomplete, the response is incomplete. Fix before sending.


Two execution paths

PathWhenSkill that runs it
Cloud (comfy generate <model>)Need access to BFL Flux, DALL-E, Seedance, Grok, etc. Fast, no local setup. Requires COMFY_API_KEY.comfyui-cli § Comfy Cloud
Local (comfy run --workflow)Have models downloaded, want full workflow control, no per-call cost. Need comfy launch --background first.comfyui-cli § Local

Default: cloud for fast prototyping, local for repeat / batch / privacy.


Workflow

Fast Path — Simple Creative Requests

User gives clear creative intent, no specific constraints ("write me a prompt for a car chase at night"). Generate immediately with premium-first defaults:

ParameterDefault
Aspect ratio16:9
Quality tierS (premium) — pass --budget to downshift to B
Image model (S)nano-banana --model gemini-3-pro-image-preview (Gemini 3 Pro)
Image model (B fallback)flux-pro
Image-text (poster, sign)ideogram (S — strongest text rendering)
Image edit (S)flux-kontext-max
Video model (S)kling --model_name kling-v3 (latest, top quality)
Video model (A)seedance (cinematic motion)
Video model (B fallback)hailuo
Image-to-video (S)kling-i2v --model_name kling-v3
Local imageText to Image (Flux.2 Dev).json
Local videoText to Video (Wan 2.2).json
StyleCinematic
Duration (video)5s (cloud sync limits), 10s local

Resolve via cf auto <task> "<prompt>" — auto-picks tier-correct model.

Do not ask clarifying questions on Fast Path. Deliver ready-to-paste prompt + command.

Full Path — Production Requests

User signals production intent (multi-shot, specific model, budget concern, client work). Confirm in one message:

Required:

  • Generation type: Image / Video / Edit / Upscale
  • Aspect ratio: 16:9 / 9:16 / 1:1 / 4:5 / 3:4
  • Path: Cloud or Local
  • Model preference (or ask me to recommend — see model-guide.md)

Optional (skip if user provided):

  • Visual style
  • Reference image path (for image-to-image / image-to-video)
  • Duration (video)
  • Negative constraints

Ask everything in ONE message — do not split rounds.


Route to the right model — tier system

Full mapping → model-guide.md. Premium-first tier table (S default):

TaskS (premium default)ABC (budget)
imagenano-banana --model gemini-3-pro-image-previewflux-ultraflux-pronano-banana (Gemini 2.5 Flash)
image-editflux-kontext-maxflux-kontextnano-bananarecraft-i2i
image-text (poster, sign)ideogramnano-banana (Gemini 3 Pro)dallenano-banana (Gemini 2.5 Flash)
illustrationrecraftideogramstability-sd3recraft
inpaintflux-fillflux-fillrecraft-inpaintrecraft-inpaint
outpaintflux-expand
bg-removerecraft-rmbg
bg-replacerecraft-replace-bgrecraft-replace-bgideogram-bg
vectorizerecraft-vectorize
upscalerecraft-upscale-creativestability-upscale-creativerecraft-upscalestability-upscale-fast
video-t2vkling --model_name kling-v3seedancehailuopika
video-i2vkling-i2v --model_name kling-v3runway-i2vvidu-i2vpika-i2v

Local fallback (for privacy, no-cost iteration, ControlNet):

  • T2I: Text to Image (Flux.2 Dev).json
  • I2I edit: Image Edit (Flux.2 Klein 4B).json
  • T2V: Text to Video (Wan 2.2).json
  • Upscale: Image Upscale(Z-image-Turbo).json
  • Inpaint: Image Inpainting (Flux.1 Fill Dev).json

Resolution shortcut: cf auto <task> "<prompt>" [--quality s|a|b|c] [--budget] routes automatically.


Check templates for genre match

Before writing from scratch, check templates/:

User request matchesTemplate
Chase, pursuit, action, parkourtemplates/01-action.md
Product, commercial, ad, UGCtemplates/02-product.md
Portrait, character intro, close-uptemplates/03-portrait.md
Landscape, nature, establishing shottemplates/04-landscape.md
Sci-fi, cyberpunk, VFX, spacetemplates/05-scifi.md
Cinematic still image with shot framingtemplates/06-cinematic-still.md

Adapt the template — don't paste verbatim.


MCSLA Formula

Five layers, every prompt:

MCSLA
ModelCameraSubjectLookAction

Core rules:

  • Name specific camera presets from vocab.md
  • Describe VFX concretely (not "magical effects")
  • Subject → Action → Camera → Style is the most reliable order
  • Keep prompts under 200 words

Output format

Single prompt:

**Model**: <model name> (<cloud/local>)
**Aspect ratio**: <ratio>  **Duration**: <Xs>  **Style**: <style>

<Prompt body — MCSLA composed>

**Camera**: <camera preset name from vocab.md>
**Negative**: <pulled from shared/negative-constraints.md>

**Run**:
```bash
<exact comfy generate or comfy run command>

**Two versions (when style varies):**

Version 1 — <Style Name>

<Prompt> **Run**: `<command>`

Version 2 — <Style Name>

Como adicionar

/plugin marketplace add 404kidwiz/comfy-prompt-skill

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.