{"id":"d70c544e-b928-4429-8036-1b0a742fe042","shortId":"DUHt5p","kind":"skill","title":"Stable Diffusion Prompt Optimizer","tagline":"Analyzes and enhances Stable Diffusion prompts using the Automatic1111 WebUI API /sdapi/v1/txt2img endpoint. Applies prompt weighting, negative prompt generation, and A1111-specific syntax like (keyword:weight).","description":"# Stable Diffusion Prompt Optimizer\n\nAnalyzes and enhances Stable Diffusion prompts using the Automatic1111 WebUI API /sdapi/v1/txt2img endpoint. Applies prompt weighting, negative prompt generation, and A1111-specific syntax like (keyword:weight).\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- conda env create -f environment.yaml\n- conda activate ldm\n- conda install pytorch torchvision -c pytorch\n- pip install transformers==4.19.2 diffusers invisible-watermark\n\nRequirements and caveats from upstream:\n- python scripts/txt2img.py --prompt \"a photograph of an astronaut riding a horse\" --plms\n- and renders images of size 512x512 (which it was trained on) in 50 steps. All supported arguments are listed below (type python scripts/txt2img.py --help).\n\nBasic usage or getting-started notes:\n- A suitable [conda](https://conda.io/) environment named ldm can be created\n- and activated with:\n- You can also update an existing [latent diffusion](https://github.com/CompVis/latent-diffusion) environment by running\n\n- Source: https://github.com/CompVis/stable-diffusion\n- Extracted from upstream docs: https://raw.githubusercontent.com/CompVis/stable-diffusion/HEAD/README.md\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/stable-diffusion-prompt-optimizer/)","tags":["stable","diffusion","prompt","optimizer","skills","agentskillexchange","agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex"],"capabilities":["skill","source-agentskillexchange","skill-stable-diffusion-prompt-optimizer","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/stable-diffusion-prompt-optimizer","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,328 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:12:37.135Z","embedding":null,"createdAt":"2026-05-18T13:19:37.382Z","updatedAt":"2026-05-18T19:12:37.135Z","lastSeenAt":"2026-05-18T19:12:37.135Z","tsv":"'/)':150 '/compvis/latent-diffusion)':170 '/compvis/stable-diffusion':177 '/compvis/stable-diffusion/head/readme.md':184 '/sdapi/v1/txt2img':16,47 '/skills/stable-diffusion-prompt-optimizer/)':191 '4.19.2':92 '50':126 '512x512':119 'a1111':26,57 'a1111-specific':25,56 'activ':81,158 'agent':186 'agentskillexchange.com':190 'agentskillexchange.com/skills/stable-diffusion-prompt-optimizer/)':189 'also':162 'analyz':5,36 'api':15,46 'appli':18,49 'argument':130 'astronaut':109 'automatic1111':13,44 'basic':138 'c':87 'caveat':99 'conda':75,80,83,147 'conda.io':149 'conda.io/)':148 'creat':77,156 'diffus':2,9,33,40,93,167 'doc':181 'endpoint':17,48 'enhanc':7,38 'env':76 'environ':74,151,171 'environment.yaml':79 'exchang':188 'exist':165 'extract':178 'f':78 'generat':23,54 'get':142 'getting-start':141 'github.com':169,176 'github.com/compvis/latent-diffusion)':168 'github.com/compvis/stable-diffusion':175 'help':137 'hors':112 'imag':116 'instal':63,67,84,90 'invis':95 'invisible-watermark':94 'keyword':30,61 'latent':166 'ldm':82,153 'like':29,60 'list':132 'match':72 'name':152 'negat':21,52 'note':144 'optim':4,35 'path':70 'photograph':106 'pip':89 'plms':113 'prompt':3,10,19,22,34,41,50,53,104 'python':102,135 'pytorch':85,88 'raw.githubusercontent.com':183 'raw.githubusercontent.com/compvis/stable-diffusion/head/readme.md':182 'render':115 'requir':97 'ride':110 'run':173 'scripts/txt2img.py':103,136 'setup':69 'size':118 'skill':187 'skill-stable-diffusion-prompt-optimizer' 'sourc':174,185 'source-agentskillexchange' 'specif':27,58 'stabl':1,8,32,39 'start':143 'step':127 'suitabl':146 'support':129 'syntax':28,59 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'torchvis':86 'train':123 'transform':91 'type':134 'updat':163 'upstream':66,101,180 'usag':139 'use':11,42,64 'watermark':96 'webui':14,45 'weight':20,31,51,62","prices":[{"id":"76f774a9-d333-4223-a07e-532de37c81b5","listingId":"d70c544e-b928-4429-8036-1b0a742fe042","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:19:37.382Z"}],"sources":[{"listingId":"d70c544e-b928-4429-8036-1b0a742fe042","source":"github","sourceId":"agentskillexchange/skills/stable-diffusion-prompt-optimizer","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/stable-diffusion-prompt-optimizer","isPrimary":false,"firstSeenAt":"2026-05-18T13:19:37.382Z","lastSeenAt":"2026-05-18T19:12:37.135Z"}],"details":{"listingId":"d70c544e-b928-4429-8036-1b0a742fe042","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"stable-diffusion-prompt-optimizer","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"67fde4339997e93101f8d56a7cf93afaefefd71b","skill_md_path":"skills/stable-diffusion-prompt-optimizer/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/stable-diffusion-prompt-optimizer"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Stable Diffusion Prompt Optimizer","description":"Analyzes and enhances Stable Diffusion prompts using the Automatic1111 WebUI API /sdapi/v1/txt2img endpoint. Applies prompt weighting, negative prompt generation, and A1111-specific syntax like (keyword:weight)."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/stable-diffusion-prompt-optimizer"},"updatedAt":"2026-05-18T19:12:37.135Z"}}