news 2026/9/11 14:04:15

Connectors

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Connectors

Connectors

【免费下载链接】OpenMontageWorld's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant into a full video production studio.项目地址: https://gitcode.com/GitHub_Trending/op/OpenMontage

HeyGen Video Agent

Feedstyle_prompt_fullas the visual style block. Usemotion.transitionsfor scene cuts. Orientation: landscape.

HTML Slides

Map colors to CSS variables. Usetypography.displayfor h1-h3.

### 5.2 `## Design Principles`——设计哲学 自由书写驱动该视觉系统的信念、有意的取舍: ```markdown ## Design Principles Typography drives hierarchy. Color is used sparingly and intentionally. Every element snaps to a baseline grid. White space is a feature.

5.3## Extraction Notes——提取来源记录

当风格是从既有设计提取而来时,记录来源 URL、日期与关键决策:

## Extraction Notes Extracted from https://example.com on 2026-03-12. Primary colors sampled from hero section. Typography identified via browser dev tools.

6. 完整示例:瑞士国际主义风格

规范文档给出了一份完整的示例文件,这也是画廊中最典型的案例——"Josef Müller-Brockmann Swiss International Style"(references/gallery/mueller-brockmann-swiss.visual-style.md):

--- name: "Josef Müller-Brockmann Swiss International Style" version: "1.0" tags: - iconic design - sleek minimal author: "Bin" source_url: "" created: "2026-03-12" style_prompt_short: > Grid-locked Swiss precision. Black and white base with electric blue accent. Helvetica only. Data visualizations as hero elements. style_prompt_full: > Josef Müller-Brockmann Swiss International Style. Grid-locked layouts with mathematical precision. Black and white base with ONE accent color (electric blue #0066FF). Strong diagonal compositions. Helvetica typography only. Data visualizations are the hero — animated charts, counters, grids. Every frame snaps to a grid. Transitions are horizontal grid wipes. No organic shapes. No gradients. No stock photography. Everything is geometric, systematic, precise. colors: primary: - name: "Pure Black" hex: "#000000" role: "dominant ground, text, structural elements" - name: "Pure White" hex: "#FFFFFF" role: "background fields, negative space" accent: - name: "Electric Blue" hex: "#0066FF" role: "the ONE accent — data highlights, key emphasis" neutral: - name: "Grid Gray" hex: "#CCCCCC" role: "grid lines, secondary structure" typography: display: family: "Helvetica" weight: "bold" style: "uppercase or sentence case, tight tracking" body: family: "Helvetica" weight: "regular" style: "flush left, ragged right, generous leading" caption: family: "Helvetica" weight: "light" style: "small, uppercase, wide tracking" rules: - "Helvetica ONLY — no other typeface" - "Type sizes follow a mathematical scale" - "Always flush left — never centered" layout: grid: "Strict modular grid — 12 columns" alignment: "Flush left, grid-snapped" aspect_ratio: "16:9" notes: - "Every element locked to the grid" - "Data visualizations are the hero elements" motion: transitions: - "horizontal grid wipes" - "elements snapping to grid positions" - "clean hard cuts" animation_style: > Geometric precision. Elements snap to grid positions. Charts animate systematically. Nothing bounces. pacing: "Measured, confident, unhurried" mood: keywords: - "precise" - "systematic" - "authoritative" - "geometric" era: "1950s–1970s (timeless)" cultural_reference: "Müller-Brockmann, Grid Systems in Graphic Design" avoid: - "organic or curved shapes" - "gradients" - "stock photography" - "centered text" - "decorative elements" assets: reference_images: [] gsep_elements: [] html_snippets: [] color_palette_image: url: "" ---

6.1 示例中的字段协同分析

这份示例展示了完整字段如何协同工作:

  • style_prompt_full把结构化的约束全部用自然语言复述了一遍——包含具体 hex(#0066FF)、唯一字体(Helvetica)、转场方式(horizontal grid wipes)、反模式(No organic shapes / No gradients / No stock photography)——即使某工具只读取这一个字段,也能还原出全部设计意图;
  • mood.avoidstyle_prompt_full中的否定句一一对应,形成了"结构化反模式"与"自然语言反模式"的双保险;
  • layout.aspect_ratio: "16:9"直接服务于后续视频/幻灯片应用的画幅设定;
  • 画廊版本在此基础上还扩充了第 4 个中性色Dark Gray #333333(辅助文字/次级标签)、typography.rules中的第 4 条 "Weight contrast does the hierarchy"、layout.notes中的对角线构图说明,以及mood.avoid中更多的反模式(如 "handwritten or serif typefaces"、"drop shadows or glows"、"rounded corners"),可见画廊文件比规范示例更加收敛风格边界。

7. 校验规则与版本策略

7.1 Validation:五条合法性校验

一份合法的visual-style.md必须满足:

  1. ---分隔符之间是合法 YAML frontmatter;
  2. 所有必填字段齐全(nameversionstyle_prompt_shortstyle_prompt_fullcolors.primary);
  3. colors.primary至少包含 2 个颜色对象;
  4. 每个颜色对象都包含namehexrole三个键;
  5. version必须为1.0

这套校验直接支撑了 SKILL 中 Extract 模式的第五步"Validate — Ensure all required fields are present",也保证了画廊与模板文件的互操作性。

7.2 Versioning:version指规范版本而非风格版本

需要特别澄清:version字段描述的是格式规范的版本,而不是某个具体风格的版本号。规范变更时的处理策略:

  • 次要变更(新增可选字段):版本保持1.0
  • 破坏性变更(必填字段变化):版本升级到2.0

这意味着只要读取方支持1.0,就能安全地忽略它不认识的可选字段与x_*扩展,向后兼容性由版本策略背书。

8. 设计决策解读:格式背后的四条理由

规范最后专门用一节解释关键设计决策,理解这些决策有助于写出更合规的文件:

8.1 为什么style_prompt_full是必填的?

很多 AI 工具只接受文本提示词。通过强制要求一段完整的自然语言风格描述,确保每一份visual-style.md都能被任何工具立即使用——即使它不解析结构化字段。这是"AI-consumable"目标的核心保障。

8.2 为什么不内嵌二进制数据?

URL 让文件保持小巧、可版本化、可移植。二进制资产(参考图、叠加元素、HTML 片段)应托管在外部,通过 URL 引用。

8.3 为什么用x_*命名空间?

不同工具能力不同。x_前缀允许写入工具专属配置(如x_heygenx_figmax_paper),既满足工具特定需求,又不污染核心 schema——对应最佳实践中的 "Opinionated defaults, flexible extensions"。

8.4 为什么要有mood.avoid

负面约束与正面约束同等重要。告诉 AI 不要做什么,往往比告诉它做什么更有效。这解释了为什么style_prompt_full中总会出现成串的 "No ..." 句式。

9. 实战扩展:模板、连接器与画廊

格式规范的最终价值体现在 Create / Extract / Apply / Gallery 四类用法中。以下文件均位于 .agents/skills/visual-style/ 目录。

9.1 Create:两份可直接套用的模板

  • 最小模板 minimal.visual-style.md:只含必填字段,用于快速产出合法文件;
  • 完整模板 full.visual-style.md:覆盖全部可选字段,每个字段都带注释说明意图,是手工编写的最佳起点。它甚至预留了x_heygen.video_idx_figma.library_id的占位示例。

9.2 Apply:连接器如何消费格式

Connectors 把visual-style.md的字段翻译成目标工具的指令,这反过来验证了规范字段设计的实用性:

HeyGen Video Agent 连接器(connectors/heygen-video-agent.md)将style_prompt_full原样追加进生成提示词,motion.transitions作为场景转场指令,layout.aspect_ratio决定画幅(16:9 = landscape,9:16 = portrait),mood.avoid转成排除项,x_heygen.orientation作为显式画幅覆盖。其提示词模板结构为:

Create a video about [TOPIC]. Script: [USER'S SCRIPT] Visual style: [PASTE style_prompt_full HERE] Additional constraints: - [ITEMS FROM mood.avoid] Motion: - Transitions: [motion.transitions] - Pacing: [motion.pacing] - Animation: [motion.animation_style] Format: [layout.aspect_ratio OR x_heygen.orientation]

【免费下载链接】OpenMontageWorld's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant into a full video production studio.项目地址: https://gitcode.com/GitHub_Trending/op/OpenMontage

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/9/11 14:03:42

2026年北京商事债权纠纷律师哪家好?商事诉讼案件委托参考建议

摘要:2025年,全国法院受理一审民商事案件679.1万件,同比增长22.0%,其中合同类纠纷占比突出,公司类纠纷一审案件达17.53万件,同比上升51.07%,股东损害公司债权人利益责任纠纷增幅高达96.68%。另据…

作者头像 李华
网站建设 2026/9/11 14:03:24

QGC与PX4深度协同配置:无人机姿态控制与参数调优实战指南

1. 这不是软件安装指南,而是无人机“神经系统”的首次校准QGroundControl(简称QGC)和PX4,这两个词在无人机开发者圈子里常被并列提起,但多数人只把它当成“飞控刷机工具”或“地面站App”。我带过三届高校无人机创新实…

作者头像 李华
网站建设 2026/9/11 14:01:56

后端开发者如何用AWS大数据技术栈提升竞争力

1. 为什么后端开发者需要掌握AWS大数据技术栈十年前我刚入行时,后端开发者的技术栈还停留在CRUD和基础架构维护。如今在云原生和大数据时代,我发现身边能熟练使用AWS数据服务的中高级开发者,平均薪资比传统后端高出30-45%。这个差距不仅体现在…

作者头像 李华
网站建设 2026/9/11 14:01:37

MSDS不是认证!化学品出口和危险品运输必知的安全说明书

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

作者头像 李华