SuperAPI AI Directory

style-extractor

General & other

View repository

Updated 10-16 07:28

About this skill

Style Extractor

Extract a unified style anchor from the script or reference materials,match the most suitable style from the predefined style library, and generate a style asset package to ensure visual consistency across the entire production.

Core Principles

  • Style library first: Must be selected from the predefined style library; custom styles are prohibited
  • Overall style first: The "style segment" of all shot prompts may only reference STYLE_BASE or STYLE_VAR, and must not be arbitrarily rewritten per shot
  • Variants only write increments: STYLE_VAR may only write "change items (delta) that differ from BASE"; rewriting BASE is prohibited
  • Consistency first: Once the style anchor is determined, it is frozen for the entire production and may not be modified arbitrarily

Predefined Style Library

Important: Must be selected from the following styles; custom styles are not allowed!

ID Style Name Style Description Reference Image
1 Guofeng Xianxia Anime-style Guofeng Xianxia style (a fusion of Chinese animation cel shading + light impasto, clean and crisp line art, sharp and clear edges, soft daylight high-key lighting, bright and highly saturated color palette, high-definition details) Preview
2 Japanese Anime Makoto Shinkai Japanese anime Makoto Shinkai style (realistic and delicate modern style, highly detailed rendering and clean line art, obvious warm-cold contrast, volumetric light, rim highlights, cinematic composition and depth of field, 8k ultra HD, high quality) Preview
3 Miyazaki Miyazaki style (warm and soft colors, delicate and imaginative fantasy style, healing atmosphere, high definition and high quality) Preview
4 Cel Shading Cel shading style (clean and crisp lines, soft light and shadow, bright color palette, suitable for presenting fresh and cute visuals) Preview
5 Fantasy Cartoon Fantasy cartoon style (bright and highly saturated color palette, exaggerated and imaginative fantasy style, rounded shapes and concise lines, soft volumetric light and dreamy atmosphere, lighthearted and humorous temperament, high-definition details) Preview
6 Japanese Anime Isekai Japanese anime isekai style (typical Japanese-style animation line art and clear outlines, fantasy medieval magic style, warm-cold contrast lighting, cinematic composition, high definition and high quality) Preview
7 Korean Manhwa Urban Korean manhwa urban style (Korean webtoon texture, clean and crisp lines, relatively realistic proportions, soft gradient coloring and highlight-shadow modeling, clear texture, high definition) Preview
8 Urban Anime Urban anime style (modern slice-of-life anime, clean line art and fresh color palette, soft natural light and lifelike scene details, bright visuals, relaxed pacing, lightly cinematic composition, high-definition details) Preview
9 Campus Japanese Anime Campus Japanese anime style (Japanese-style animation, fresh and cute campus style, concise lines, youthful vitality and lighthearted humorous atmosphere, high definition) Preview

Style Selection Guide

Script Type Recommended Style
Historical Xianxia/Wuxia/Fantasy Guofeng Xianxia (1)
Modern Urban Youth/Romance Japanese Anime Makoto Shinkai (2), Urban Anime (8)
Healing/Fairy Tale/Fantasy Adventure Miyazaki (3), Fantasy Cartoon (5)
Slice of Life/Light Comedy Cel Shading (4), School Japanese Anime (9)
Isekai/Time Travel/Magic Japanese Anime Isekai (6)
Modern Urban/Workplace/Suspense Korean Manhwa Urban (7), Urban Anime (8)
School/Youth/Passionate School Japanese Anime (9), Cel Shading (4)

Input Requirements

Required

  • Script Body: Able to show scenes, locations, characters, actions/dialogue

Optional (the more complete, the more stable)

  • Reference Image/Reference Video: Used to assist in judging style match
  • User-Specified Style ID: If the user explicitly specifies, use directly
  • Project Type: Historical/Modern/Cyberpunk/Horror, etc.

Extraction Process

Step 1: Analyze Script Tone

Read the script and extract the following information:

  • Genre type (Xianxia/Urban/Suspense/Sweet Romance, etc.)
  • Era background (Ancient/Modern/Future)
  • Emotional tone (Passionate/Oppressive/Warm/Horror)
  • Scene characteristics (Indoor/Outdoor/Fantasy/Realistic)

Step 2: Match the Best Style from the Style Library

Must select from the predefined style library!

Matching rules:

  1. If the user has specified a style ID, use that style directly
  2. According to the script tone, refer to the "Style Selection Guide" to select the best matching style
  3. If there are multiple suitable styles, choose the one that best fits the script's emotion
  4. Custom styles are prohibited, and modifying descriptions in the style library is prohibited

Step 3: Identify Style Variant Scenes

Scan the script and identify scenes that require style variants:

  • Memories/Flashbacks
  • Dreams/Hallucinations
  • System UI/Game Interface
  • Combat/High-Intensity
  • Horror/Oppressive

Step 4: Generate STYLE_VAR (if needed)

Generate a style variant for each variant scene, writing only the differences from BASE.

Output Format

1. STYLE_BASE (Overall style anchor | Sole authority)

STYLE_BASE_ID:style_base_{项目短名}

匹配风格:
- 风格ID:{1-9}
- 风格名称:{风格库中的名称}
- 风格描述:{风格库中的完整描述,不可修改}
- 参考图:{风格库中的图片URL}

匹配理由:{简述为何选择此风格,2-3句话}

镜头语言默认值:
- 景别倾向:中近景为主,全景建立环境
- 焦段倾向:35-85mm 等效
- 景深倾向:浅景深突出主体
- 运动克制:静止为主,关键点微推

光色默认值:
- 主光方向:侧光/逆光
- 对比度:{根据风格调整}
- 饱和度:{根据风格调整}
- 氛围:{根据风格调整}

内容边界(禁止):
- {禁止项1}
- {禁止项2}
- ...

2. STYLE_VAR (Style variant | Optional)

StyleVarID:style_var_{项目短名}_{用途}

用途:{回忆/梦境/系统UI/战斗/恐怖}

delta(只写变化项):
- 色彩:{饱和度/色温变化}
- 对比:{更硬/更软}
- 画面质感:{柔焦/颗粒/雾化}
- 镜头语言:{更手持/更稳/更慢}

禁忌:
- 禁止破坏 BASE 角色脸与服装的不可变特征

Example

Input: Xianxia script

Output:

STYLE_BASE_ID:style_base_jianlai

匹配风格:
- 风格ID:1
- 风格名称:国风仙侠
- 风格描述:二次元国风仙侠风格(国漫赛璐璐+轻厚涂融合,干净利落线稿,边缘锐利清晰,柔和日光高键光,明快高饱和配色,高清细节)
- 参考图:https://ts-web.oss-cn-hongkong.aliyuncs.com/styles/%E5%9B%BD%E9%A3%8E%E4%BB%99%E4%BE%A0.jpg

匹配理由:剧本为古装仙侠题材,包含修仙、飞剑、灵气等元素,国风仙侠风格的赛璐璐+轻厚涂融合最能表现仙侠世界的飘逸感与东方美学。

镜头语言默认值:
- 景别倾向:中近景为主,山水全景建立仙境
- 焦段倾向:50-85mm 等效,人像舒适
- 景深倾向:浅景深,云雾虚化
- 运动克制:静止为主,飞天动作跟拍

光色默认值:
- 主光方向:侧逆光,勾勒轮廓
- 对比度:柔和,层次分明
- 饱和度:明快高饱和
- 氛围:仙气飘渺,清冷出尘

内容边界(禁止):
- 现代建筑、电线杆、玻璃幕墙
- 现代服饰、牛仔裤、运动鞋
- 血腥内脏、残肢断臂
- 枪械、汽车、手机
StyleVarID:style_var_jianlai_flashback

用途:回忆/闪回

delta(只写变化项):
- 色彩:降低饱和度30%,偏暖黄
- 对比:更柔,边缘朦胧
- 画面质感:轻微柔焦,边缘暗角
- 镜头语言:更慢,静止为主

禁忌:
- 禁止改变角色脸型、发型、服装主色

Input: Modern urban sweet romance script

Output:

STYLE_BASE_ID:style_base_sweetlove

匹配风格:
- 风格ID:2
- 风格名称:日漫新海诚
- 风格描述:日漫新海诚风格(写实细腻的现代风格,高细节刻画与干净线稿,冷暖对比明显,体积光、边缘高光,电影级构图与景深,8k超高清,高质量)
- 参考图:https://ts-web.oss-cn-hongkong.aliyuncs.com/styles/%E6%97%A5%E6%BC%AB%E6%96%B0%E6%B5%B7%E8%AF%9A.jpg

匹配理由:现代都市背景的甜宠剧,新海诚风格的写实细腻与电影级构图能完美呈现都市场景的精致感,冷暖对比的光影适合表现恋爱氛围。

镜头语言默认值:
- 景别倾向:中近景为主,城市全景建立环境
- 焦段倾向:35-50mm 等效
- 景深倾向:浅景深,背景虚化光斑
- 运动克制:静止为主,情感高潮缓推

光色默认值:
- 主光方向:侧光/逆光,体积光
- 对比度:冷暖对比明显
- 饱和度:中高饱和
- 氛围:唯美浪漫,电影感

内容边界(禁止):
- 古装元素、魔法特效
- 血腥暴力场景
- 过度夸张的表情变形

Quality Check

After generation, must self-check:

  • Was the style selected from the style library? (Custom styles prohibited)
  • Is the style description quoted verbatim from the style library?
  • Is the matching rationale reasonable?
  • Does STYLE_VAR only write delta?
  • Is the content boundary consistent with the selected style?

Additional Resources