prompt-pyramidlisted
Install: claude install-skill storyAura/lora-tagging-skills
# Prompt Pyramid — Visual-Weight Reordering for Diffusion Tags
## What this skill does
Take a messy, unordered pile of booru-style tags and return **one clean comma-separated string**, ordered so the model's attention mechanism locks onto identity and color first, then sculpts the head, then dresses the body outward-to-inward and top-to-bottom, and finally anchors the feet. The goal is: the model never has to "look back" to revise a region it already rendered, which is how color bleeding, floating accessories, and extra limbs happen.
Output format: **a single line of comma-separated tags, lowercase, spaces instead of underscores, no parenthetical weights, no artist strings, no duplicates.** Nothing else in the final output line unless the user explicitly asks for explanation.
## Why ordering matters (the core mental model)
Diffusion text encoders assign higher attention weight to tokens that appear earlier in the prompt. This is not a myth — it's the same positional bias you see in any transformer over a sequence. Two practical consequences:
1. **Whatever comes first gets rendered first and most "solidly."** Later tags are interpreted as modifications to an already-formed region. So if a hair accessory comes *before* the hair color, the model often paints the accessory color onto the hair, or draws hair that doesn't match the stated color.
2. **The model hates revising.** If head features are split across the prompt (one hair tag at the top, another at the bottom), atte