SKILL·81C738

vgl

Bria-AI
更新于 8 days ago
63
5
63
在 GitHub 上查看
aidesign

关于

The vgl skill converts natural language image requests into structured VGL JSON for deterministic AI image generation. It provides explicit control over attributes like object placement, lighting, camera angles, and artistic style, ensuring reproducible outputs. Use it when you need precise scene composition for Bria FIBO models instead of relying on ambiguous prompts.

快速安装

Claude Code

推荐
主要方式
npx skills add Bria-AI/bria-skill -a claude-code
插件命令备选方式
/plugin add https://github.com/Bria-AI/bria-skill
Git 克隆备选方式
git clone https://github.com/Bria-AI/bria-skill.git ~/.claude/skills/vgl

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Bria VGL — Full Control Over Image Generation

Define every visual attribute as structured JSON instead of hoping natural language gets it right. VGL (Visual Generation Language) gives you explicit, deterministic control over objects, lighting, camera settings, composition, and style for Bria's FIBO models.

Related Skill: Use bria-ai to execute these VGL prompts via the Bria API. VGL defines the structured control format; bria-ai handles generation, editing, and background removal.

Core Concept

VGL replaces ambiguous natural language prompts with deterministic JSON that explicitly declares every visual attribute: objects, lighting, camera settings, composition, and style. This ensures reproducible, controllable image generation.

Operation Modes

ModeInputOutputUse Case
GenerateText promptVGL JSONCreate new image from description
EditImage + instructionVGL JSONModify reference image
Edit_with_MaskMasked image + instructionVGL JSONFill grey masked regions
CaptionImage onlyVGL JSONDescribe existing image
RefineExisting JSON + editUpdated VGL JSONModify existing prompt

JSON Schema

Output a single valid JSON object with these required keys:

1. short_description (String)

Concise summary of image content, max 200 words. Include key subjects, actions, setting, and mood.

2. objects (Array, max 5 items)

Each object requires:

{
  "description": "Detailed description, max 100 words",
  "location": "center | top-left | bottom-right foreground | etc.",
  "relative_size": "small | medium | large within frame",
  "shape_and_color": "Basic shape and dominant color",
  "texture": "smooth | rough | metallic | furry | fabric | etc.",
  "appearance_details": "Notable visual details",
  "relationship": "Relationship to other objects",
  "orientation": "upright | tilted 45 degrees | facing left | horizontal | etc."
}

Human subjects add:

{
  "pose": "Body position description",
  "expression": "winking | joyful | serious | surprised | calm",
  "clothing": "Attire description",
  "action": "What the person is doing",
  "gender": "Gender description",
  "skin_tone_and_texture": "Skin appearance"
}

Object clusters add:

{
  "number_of_objects": 3
}

Size guidance: If a person is the main subject, use "medium-to-large" or "large within frame".

3. background_setting (String)

Overall environment, setting, and background elements not in objects.

4. lighting (Object)

{
  "conditions": "bright daylight | dim indoor | studio lighting | golden hour | blue hour | overcast",
  "direction": "front-lit | backlit | side-lit from left | top-down",
  "shadows": "long, soft shadows | sharp, defined shadows | minimal shadows"
}

5. aesthetics (Object)

{
  "composition": "rule of thirds | symmetrical | centered | leading lines | medium shot | close-up",
  "color_scheme": "monochromatic blue | warm complementary | high contrast | pastel",
  "mood_atmosphere": "serene | energetic | mysterious | joyful | dramatic | peaceful"
}

For people as main subject, specify shot type in composition: "medium shot", "close-up", "portrait composition".

6. photographic_characteristics (Object)

{
  "depth_of_field": "shallow | deep | bokeh background",
  "focus": "sharp focus on subject | soft focus | motion blur",
  "camera_angle": "eye-level | low angle | high angle | dutch angle | bird's-eye",
  "lens_focal_length": "wide-angle | 50mm standard | 85mm portrait | telephoto | macro"
}

For people: Prefer "standard lens (35mm-50mm)" or "portrait lens (50mm-85mm)". Avoid wide-angle unless specified.

7. style_medium (String)

"photograph" | "oil painting" | "watercolor" | "3D render" | "digital illustration" | "pencil sketch"

Default to "photograph" unless explicitly requested otherwise.

8. artistic_style (String)

If not photograph, describe characteristics in max 3 words: "impressionistic, vibrant, textured"

For photographs, use "realistic" or similar.

9. context (String)

Describe the image type/purpose:

  • "High-fashion editorial photograph for magazine spread"
  • "Concept art for fantasy video game"
  • "Commercial product photography for e-commerce"

10. text_render (Array)

Default: empty array []

Only populate if user explicitly provides exact text content:

{
  "text": "Exact text from user (never placeholder)",
  "location": "center | top-left | bottom",
  "size": "small | medium | large",
  "color": "white | red | blue",
  "font": "serif typeface | sans-serif | handwritten | bold impact",
  "appearance_details": "Metallic finish | 3D effect | etc."
}

Exception: Universal text integral to objects (e.g., "STOP" on stop sign).

11. edit_instruction (String)

Single imperative command describing the edit/generation.

Edit Instruction Formats

For Standard Edits (no mask)

Start with action verb, describe changes, never reference "original image":

CategoryRewritten Instruction
Style changeTurn the image into the cartoon style.
Object attributeChange the dog's color to black and white.
Add elementAdd a wide-brimmed felt hat to the subject.
Remove objectRemove the book from the subject's hands.
Replace objectChange the rose to a bright yellow sunflower.
LightingChange the lighting from dark and moody to bright and vibrant.
CompositionChange the perspective to a wider shot.
Text changeChange the text "Happy Anniversary" to "Hello".
QualityRefine the image to obtain increased clarity and sharpness.

For Masked Region Edits

Reference "masked regions" or "masked area" as target:

IntentRewritten Instruction
Object generationGenerate a white rose with a blue center in the masked region.
ExtensionExtend the image into the masked region to create a scene featuring...
Background fillCreate the following background in the masked region: A vast ocean extending to horizon.
Atmospheric fillFill the background masked area with a clear, bright blue sky with wispy clouds.
Subject restorationRestore the area in the mask with a young woman.
Environment infillCreate inside the masked area: a greenhouse with rows of plants under glass ceiling.

Fidelity Rules

Standard Edit Mode

Preserve ALL visual properties unless explicitly changed by instruction:

  • Subject identity, pose, appearance
  • Object existence, location, size, orientation
  • Composition, camera angle, lens characteristics
  • Style/medium

Only change what the edit strictly requires.

Masked Edit Mode

  • Preserve all visible (non-masked) portions exactly
  • Fill grey masked regions to blend seamlessly with unmasked areas
  • Match existing style, lighting, and subject matter
  • Never describe grey masks—describe content that fills them

Example Output

{
  "short_description": "A professional businesswoman in a navy blazer stands confidently in a modern glass office, holding a tablet. Natural daylight streams through floor-to-ceiling windows, creating a warm, productive atmosphere.",
  "objects": [
    {
      "description": "A confident businesswoman in her 30s with shoulder-length dark hair, wearing a tailored navy blazer over a white blouse. She holds a tablet in her left hand while gesturing naturally with her right.",
      "location": "center-right",
      "relative_size": "large within frame",
      "shape_and_color": "Human figure, navy and white clothing",
      "texture": "smooth fabric, professional attire",
      "appearance_details": "Minimal jewelry, well-groomed professional appearance",
      "relationship": "Main subject, interacting with tablet",
      "orientation": "facing slightly left, three-quarter view",
      "pose": "Standing upright, relaxed professional stance",
      "expression": "confident, approachable smile",
      "clothing": "Tailored navy blazer, white silk blouse, dark trousers",
      "action": "Presenting or reviewing information on tablet",
      "gender": "female",
      "skin_tone_and_texture": "Medium warm skin tone, healthy smooth complexion"
    },
    {
      "description": "A modern tablet device with a bright display showing charts and graphs",
      "location": "center, held by subject",
      "relative_size": "small",
      "shape_and_color": "Rectangular, silver frame with illuminated screen",
      "texture": "smooth glass and metal",
      "appearance_details": "Thin profile, business application visible on screen",
      "relationship": "Held by businesswoman, focus of her attention",
      "orientation": "vertical, screen facing viewer at slight angle",
      "pose": null,
      "expression": null,
      "clothing": null,
      "action": null,
      "gender": null,
      "skin_tone_and_texture": null,
      "number_of_objects": null
    }
  ],
  "background_setting": "Modern corporate office interior with floor-to-ceiling windows overlooking a city skyline. Minimalist furniture in neutral tones, potted plants adding touches of green.",
  "lighting": {
    "conditions": "bright natural daylight",
    "direction": "side-lit from left through windows",
    "shadows": "soft, natural shadows"
  },
  "aesthetics": {
    "composition": "rule of thirds, medium shot",
    "color_scheme": "professional blues and neutral whites with warm accents",
    "mood_atmosphere": "confident, professional, welcoming"
  },
  "photographic_characteristics": {
    "depth_of_field": "shallow, background slightly soft",
    "focus": "sharp focus on subject's face and upper body",
    "camera_angle": "eye-level",
    "lens_focal_length": "portrait lens (85mm)"
  },
  "style_medium": "photograph",
  "artistic_style": "realistic",
  "context": "Corporate portrait photography for company website or LinkedIn professional profile.",
  "text_render": [],
  "edit_instruction": "Generate a professional businesswoman in a modern office environment holding a tablet."
}

Common Pitfalls

  1. Don't invent text - Keep text_render empty unless user provides exact text
  2. Don't over-describe - Max 5 objects, prioritize most important
  3. Match the mode - Use correct edit_instruction format for masked vs standard edits
  4. Preserve fidelity - Only change what's explicitly requested
  5. Be specific - Use concrete values ("85mm portrait lens") not vague terms ("nice camera")
  6. Null for irrelevant - Human-specific fields should be null for non-human objects

curl Example

curl -X POST "https://engine.prod.bria-api.com/v2/image/generate" \
  -H "api_token: $BRIA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "User-Agent: BriaSkills/1.3.4" \
  -d '{
    "structured_prompt": "{\"short_description\": \"...\", ...}",
    "prompt": "Generate this scene",
    "aspect_ratio": "16:9"
  }'

References

  • Schema Reference - Complete JSON schema with all parameter values
  • bria-ai - API client and endpoint documentation for executing VGL prompts

GitHub 仓库

Bria-AI/bria-skill
路径: skills/vgl
0
agenagent-skillagent-skillsaiai-agentsclaude-code-skill
FAQ

常见问题

什么是 vgl Skill?

vgl 是一个 Claude Skill,作者为 Bria-AI。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 vgl 相关的任务。

如何安装 vgl?

使用本页的安装命令:将 vgl 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。

vgl 属于哪个分类?

vgl 属于元分类。

vgl 可以免费使用吗?

可以。vgl 已收录在 AIMCP,可免费安装。

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能
polymarket

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能
creating-opencode-plugins

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能
sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能