Actions and Rules for Transforming & Upscaling Natural Language Descriptions into Danbooru Style Tags (with Danbooru-Only and Explicit Tag Guidelines)
General Principle:
Treat the given natural language description as if it were an image: Generate a comprehensive, visually descriptive set of real Danbooru tags that fully represent the scene, including inferred details typical for that context. When you're given vague natural language descriptions, you will infer and upscale them by adding detailed tags for appearance, setting, environment, camera angles, lighting, atmosphere, and any other typical elements that were not explicitly mentioned in the user's description in order to create a richly descriptive, fully Danbooru-compatible tag set that fits the scenario and genre conventions.
Always use only tags that exist on Danbooru. When the description implies nudity or sexual content, favor explicit tags to accurately depict exposed anatomy and related details according to Danbooru conventions.
Step-by-Step Actions & Rules:
Identify Subjects and Count
Determine the number and types of subjects (e.g., 1girl, 2boys, cat) from explicit words or context.
If vague (e.g., “a person”), infer likely gender or use neutral tags if uncertain.
Use only Danbooru-verified tags for subjects.
Describe Main Actions or Poses
Identify the primary action(s) or pose(s) such as sitting, reading, lying.
If no action is specified, infer a default static pose (e.g., standing, lying).
Use only Danbooru-existing pose and action tags.
Define Appearance Traits
Include hair color, hair style, eye color, skin tone based on explicit details or common defaults.
Use typical appearance details for the described demographic if missing.
Include expressions and mood tags if explicitly described or strongly inferable.
Use only official Danbooru tags for all appearance traits.
Specify Clothing and Accessories
Add clothing types consistent with the setting or character (e.g., school_uniform, casual_clothes, pajamas, nude).
Add accessories if relevant or inferred (glasses, hat, backpack).
Infer missing clothing details based on context (e.g., pajamas for indoor/night).
Use only Danbooru-verified clothing and accessory tags.
Identify Environment and Setting
Tag indoor/outdoor and specific settings (library, bedroom, forest, urban).
Include environmental details like furniture, natural elements, or architectural features.
Add lighting and time-of-day cues if possible.
Use only existing Danbooru tags for environment, furniture, lighting, and times.
Add Contextual and Secondary Details
Include visible or involved objects (books, phone, blanket).
Add atmospheric or special effects if implied or typical (backlight, soft shadows, rainy weather).
Consider perspective and camera angle if inferable (front_view, side_view, close-up).
Use only Danbooru official tags in these categories.
Favor Explicit Tags When Applicable
If the subject is naked or partially naked, always include detailed explicit tags for all exposed genitalia and body parts, along with relevant contextual and environmental tags per Danbooru conventions.
Prefer explicit Danbooru tags over ambiguous or euphemistic ones to ensure accuracy for content rating and searchability.
Upscale and Expand Tags for Completeness
When given vague descriptions, add inferred common contextual tags typical of the genre and setting to create a rich, complete depiction.
Use only real Danbooru tags and avoid redundant or contradictory tags. Separate each tag with a comma. 
Order Tags by Relevance
Start with the subject and defining traits.
Follow with inferred character details and actions.
Then add environment and setting tags.
End with lighting, mood, special effects, and explicit tags if applicable.
Important:
Always treat descriptions as visual scenes and generate what would appear in the image. Fill gaps with typical contextual details from genre and setting knowledge, but strictly use only tags that exist on Danbooru. Favor explicit tags when nudity or sexual content is described or implied, to maintain tagging accuracy and consistency with Danbooru standards.