Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

stable-diffusion-helper

БесплатноБез исполняемых скриптовНе проверен

Generate and troubleshoot Stable Diffusion images: model installation and selection, prompt and negative-prompt engineering, CFG, sampler and step tuning, and…

jackspaceот jackspace★ 16 звёзд на GitHub

Об этом скилле

Stable Diffusion Helper Skill

Expert guidance for Stable Diffusion image generation, optimization, and troubleshooting.

Capabilities

This skill provides expert assistance with:

  1. Model Installation & Management

    • Installing SD models (base, Realistic Vision, ChilloutMix, etc.)
    • Model comparison and selection
    • VRAM optimization strategies
    • Docker container configuration
  2. Prompt Engineering

    • Photorealistic prompt formulas
    • Reality-anchored prompting techniques
    • Negative prompt strategies (anti-cartoon shields)
    • Subject description best practices
  3. Settings Optimization

    • CFG scale recommendations (breakthrough: 4.5 for photorealism)
    • Sampling steps optimization
    • Sampler selection for different use cases
    • Resolution strategies for limited VRAM
  4. ADetailer Configuration

    • Face detection setup (face_yolov8n.pt)
    • Hand detection setup (hand_yolov8n.pt)
    • Multi-pass configuration (face + hands)
    • Custom ADetailer prompts for photorealism
  5. Troubleshooting

    • Glossy/anime eyes fixes
    • Cartoonish/plastic skin solutions
    • OOM (Out of Memory) error resolution
    • Poor hand generation workarounds

Key Knowledge Base

Photorealism Breakthrough Configuration

Critical Settings:

  • CFG Scale: 4.5 (MOST IMPORTANT - lower than typical 7.0)
  • Sampling Steps: 40
  • Sampler: DPM++ 2M Karras
  • Resolution: 512×512 (portraits), 512×768 or 768×512 (full-body)

Main Prompt Template:

RAW candid photograph, unfiltered reality, authentic skin texture with visible pores and fine lines, subsurface scattering, real human imperfections, natural uneven skin tone, professional photo shoot, [SUBJECT], documentary photography style, Leica M10, Summilux 50mm f/1.4, natural diffused lighting, overcast golden hour, real skin blemishes, subtle wrinkles, natural oiliness, lifelike, hyperrealistic not CGI, shot on Kodak Portra 400, muted colors, organic imperfections, tangible reality

Negative Prompt (Anti-Cartoon Shield):

cartoon, anime, 3D render, CGI, illustration, painting, drawing, airbrushed, smooth skin, plastic skin, doll-like, mannequin, wax figure, synthetic, artificial, digital art, cell shading, flat colors, oversaturated, oversharpened, unrealistic, fake, computer generated, video game, Unreal Engine, Unity, rendered, illustrated, drawn, painted, sketched, perfect skin, flawless skin, porcelain skin, baby smooth, blur tool, beauty filter, Facetune, Instagram filter, TikTok filter, makeup filter, ugly, distorted, deformed, bad anatomy, poorly drawn, extra limbs, disfigured, low quality, blurry

Model Comparison

SD 1.5 Base (v1-5-pruned-emaonly.safetensors):

  • Best for: Head/shoulder portraits
  • VRAM: 1.3-1.5GB active
  • CFG: 4.5-5.0 optimal
  • Limitations: Poor full-body anatomy

Realistic Vision V5.1 (realisticVisionV51.safetensors):

  • Best for: Full-body shots
  • VRAM: 1.5-1.8GB active
  • CFG: 3.5-5.0 optimal
  • Strengths: Improved anatomy, better hands/feet

VRAM Optimization Flags

For 2GB VRAM setups:

--lowvram --medvram --no-half-vae --enable-insecure-extension-access

Common Issues & Solutions

Problem: Glossy/Anime Eyes

  • Lower CFG to 4.5
  • Add to ADetailer prompt: matte finish eyes, natural iris texture
  • Add to ADetailer negative: glossy eyes, shiny eyes, anime eyes

Problem: Cartoonish Skin

  • Lower CFG to 4.5 (CRITICAL)
  • Emphasize: visible pores, subsurface scattering, natural imperfections
  • Negative: smooth skin, plastic skin, perfect skin, airbrushed

Problem: OOM Errors

  • Reduce resolution to 512×512
  • Reduce batch size to 1-2
  • Verify flags: --lowvram --medvram
  • Disable Hires.fix

Problem: Poor Hand Generation

  • Enable 2nd ADetailer tab with hand_yolov8n.pt
  • Use hand-specific prompts
  • Consider cropping hands out of frame
  • Use img2img to refine hands separately

Usage Examples

Example 1: Portrait Setup

User: "Help me set up photorealistic portrait generation"

Assistant Response: I'll help you configure photorealistic portrait generation. Here's the optimal setup:

1. Model Selection:

  • Use SD 1.5 Base or Realistic Vision V5.1
  • Both work well for portraits

2. Settings:

CFG Scale: 4.5 (CRITICAL - this is the breakthrough setting)
Steps: 40
Sampler: DPM++ 2M Karras
Resolution: 512×512
Batch Size: 4

3. Prompt Formula:

RAW candid photograph, unfiltered reality, authentic skin texture with visible pores and fine lines, subsurface scattering, real human imperfections, natural uneven skin tone, professional photo shoot, [your subject here], documentary photography style, Leica M10, Summilux 50mm f/1.4, natural diffused lighting, overcast golden hour, real skin blemishes, subtle wrinkles, natural oiliness, lifelike, hyperrealistic not CGI, shot on Kodak Portra 400, muted colors, organic imperfections, tangible reality

4. Enable ADetailer:

  • Model: face_yolov8n.pt
  • Positive pr
Полный SKILL.md на GitHub

Установить stable-diffusion-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SKILL.json

FAQ

Что делает скилл stable-diffusion-helper?

Generate and troubleshoot Stable Diffusion images: model installation and selection, prompt and negative-prompt engineering, CFG, sampler and step tuning, and VRAM optimization. Use when setting up SD models, improving photorealism, or diagnosing poor generation quality.

Как установить скилл stable-diffusion-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл stable-diffusion-helper запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить stable-diffusion-helper с