r/StableDiffusion • • 15h 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):

FileWhat it holds
SKILL.mdthe model, the mental model, settings, prompt architecture, workflow, brief routing
references/core.mdtag language, spelling, block order, quality and ratings, artists, weights, dataset tags, traps, identity
references/tags.mdthe offline vocabulary by group, and the live lookup commands
references/composition.mdcamera, lens, pose tags, light, background construction, design sheets, 4koma
references/multi-character.mdcount tags, per-person sentences, reading order, the bleed rule, the ceiling
references/styles.mdthe quality dial, a nine-artist index, medium tags, era, dataset routes, eight tested recipes, the print trap
references/loras.mdmodel-only wiring, trigger words, the measured strength band, failure table
references/rendering.mdthe graph, wiring rules, queue loop, scripts, commands, scenes schema, sizes, timings, failures
references/editing.mdimg2img and masked inpaint, denoise and mask rules, edit commands, failures
references/comfyui-install.mdComfyUI install, folder map, the three files and URLs, CivitAI recipe, licence
references/troubleshooting.mdthe 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/*.jsontext-to-image graph, LoRA graph, inpaint graphs
28 Upvotes

7 comments sorted by

4

u/shapic 9h 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 33m 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 22m ago

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

1

u/Effective-Giraffe655 15m ago

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

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

•

u/shapic 0m ago

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

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

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

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

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

1

u/NanoSputnik 11h 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 10h 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.