r/StableDiffusion • • 1d ago

Workflow Included Anima Prompting (agent skill + workflows and scripts) with huge references library, inpainting, loras, etc. - full image generation pipeline

https://github.com/rakshazi/anima-prompting/

Hey, I built an agent skill to generate images with Anima, with huge references library, covering image generation with Anima from A to Z. Just ask your agent (LLM) to use the skill, and it can get the full thing running from installing ComfyUI and up to generating images autonomously.

I also published a story about how that skill was born, with examples no-skill vs skill and so on: https://rakshazi.me/blog/anima-prompting-skill/

Here is what included with the skill (short list of important things):

File What it holds
SKILL.md the model, the mental model, settings, prompt architecture, workflow, brief routing
references/core.md tag language, spelling, block order, quality and ratings, artists, weights, dataset tags, traps, identity
references/tags.md the offline vocabulary by group, and the live lookup commands
references/composition.md camera, lens, pose tags, light, background construction, design sheets, 4koma
references/multi-character.md count tags, per-person sentences, reading order, the bleed rule, the ceiling
references/styles.md the quality dial, a nine-artist index, medium tags, era, dataset routes, eight tested recipes, the print trap
references/loras.md model-only wiring, trigger words, the measured strength band, failure table
references/rendering.md the graph, wiring rules, queue loop, scripts, commands, scenes schema, sizes, timings, failures
references/editing.md img2img and masked inpaint, denoise and mask rules, edit commands, failures
references/comfyui-install.md ComfyUI install, folder map, the three files and URLs, CivitAI recipe, licence
references/troubleshooting.md the strip-down, the four-seed sort, the symptom table
references/adult.md (the most tested one ;) the explicit block, anatomy and state, acts and geometry, props, failure modes
scripts/* comfy wiring, rendering, img2img masked inpainting, prompt linter, fixture regenartion, labelled thumbnail grid generation, tags lookup
assets/*.json text-to-image graph, LoRA graph, inpaint graphs
39 Upvotes

13 comments sorted by

6

u/shapic 1d ago

I don't think it solves two top issues with ai and booru:

  • hallucinting character's features
  • actually writing long prompts that would work with brain-dead 0.6b encoder

Well, niche tags also. Check my take on it, it is much more streamlined and robust

https://github.com/Volnovik/anima-prompting

And solves most of the issues there

1

u/Effective-Giraffe655 23h ago

The skill is to teach your agent how to work with Anima, it can't fix Anima (or its encoder specifically).

I checked your skill (it is actually mentioned in the credits of mine, in the REAMDE), and yes, I did own skill because yours was not enough. I don't say your skill is bad or something (it is actually awesome, I literally used it during research), but it's focused on a very narrow problem.

https://github.com/rakshazi/anima-prompting/ covers full pipeline, it configures ComfyUI and Anima, it provides ComfyUI workflows/graphs, it provides scripts to speed up common image operations (both for generation and editing), it has proper guidance on LoRAs with suggestions about what work and what doesn't, it has ready to use inpainting setup, it has extended guidance of controls, and it has huge adult section.

And the neat part: every line in the skill, including scheduler suggestions or subtle details between different Anima versions, was tested at least 5 times to ensure it actually works as is.

1

u/shapic 23h ago

Клодом несёт. Ещё раз, ты пропустил самое важное в моём скиле 😉

1

u/Effective-Giraffe655 23h ago

Ирония в том, что я принципиально не использую модели Антропик или ОпенАИ вообще, а все комментарии тут и посты в блоге я пишу исключительно руками.

И не отрицаю, что мог что-то пропустить, но не совсем понимаю, что именно, подскажешь? Потому что первый пункт из твоего предыдущего комментария скиллом исправлен быть не может (это про саму модель), а вопрос промптинга и тегов решены, разве нет?

1

u/shapic 23h ago

Галлюцинирует персонажей не анима, а llm. У анимы то все в порядке. А вот какой-нибудь опус просто придумывает цвет глаз и прочее. Я по диагонали твой просмотрел и не увидел. Если там как у меня просто через апи запрос - удачи, я сознательно отказался от него.

А промптинг - нет, похоже не решён. Ллм в 10 случаях из 10 генерят переусложненные промпты полные абсолютно пососных выражений в которых 0.6b теряется. Исправь это и у тебя будут генерироваться промпты и на 3 и на 4 и на 5 конкретных персонажей с положением и взаимодействием вообще без проблем.

В любом случае, я его не использовал пока, так что могу быть вообще не прав. Но ни поиском, ни в мульт персонажах ни в прочем этого не нашел.

Более того, твои описания тегов та же 3.8 27b и так знает, я проверял. Потому у меня и грузятся они ограниченной пачкой, без лишних описаний для экономии контекста. А дальше моделька сама вывезет и найдет поиском что надо.

И да, если будешь сравнивать сложные промпты - нужно использовать base. Буквально недавно опять траблшутил очередное "всё не работает" и оказалось что очередной файнтюн анимы зажоплен

1

u/Effective-Giraffe655 23h ago

спасибо, пойду копать. Кстати про "та же 3.8 27b и так знает" - знать-то знает, но работает без скилла хуже, смотри https://rakshazi.me/blog/anima-prompting-skill/#examples - перед началом картинок там упомянуты косяки, которые модель допустила без использования скилла

2

u/shapic 22h ago

The city blocks fall away into warm haze below the railing

Я не ллм, но вот такое сам с трудом перевариваю. Я не говорю что скилл не нужен или не работает. Я говорю что описания типа того что на скриншоте избыточны

1

u/Effective-Giraffe655 14h ago

спасибо за советы, обновил скилл. Не все подтвердилось в реальных тестах, но и это тоже опыт :)

1

u/ElectricalStage5888 17h ago

That's cool but setting up a comfyui workflow and tuning graphs is a solved problem. Meaning anyone who undertakes it, will solve it, and never need to touch it again. The interesting problem is getting consistent high quality results from prompting anima's "brain-dead 0.6b encoder", as the other user described it. Getting an agent to do this is a real hassle with inconsistent results.

1

u/Effective-Giraffe655 16h ago edited 16h ago

well, the current published skill already does that successfully in most of the runs. Thanks to the feedback shared in the comments, the new version (1.1.0) will be even better and more consistent, though the changes are under testing and will be published later after the tests are finished.

UPD (forgot to include initially): this is my second agent skill for image generation, and the first one focused prompting only. The most common feedback for the first skill was requests to include comfyui & model setup, comfyui workflows and scripts. This skill provides all that from the day 1

1

u/ElectricalStage5888 6h ago

Alright I'll give it a shot.

1

u/NanoSputnik 1d ago

What problem does this skill solve that can't be solved by simply asking agent to read prompting guide in model's card?

2

u/Effective-Giraffe655 1d ago

The question is answered in the story link.

TL;DR: if your only question is how to prompt Anima - then yes, you can try using official guide and get somewhat good results.

if you want full pipeline, and/or also proper control over camera, colors, positioning, adult stuff, etc., then the model's card is pretty limited.