跳到主要内容

宝玉知识信息图

收藏0

将流程、对比、知识点和用户提供的数据整理成信息图,选择适合的布局与视觉风格,产出绘图提示词并调用已有工具生成。

让 AI 安装

github最新版本 0.1.0更新于 2026-10-24下载 1 次

references/config/preferences-schema.md

4.6 KB查看源码

Preferences Schema#

Full Schema#

---

version: 1



preferred_layout: null    # any of the 21 layouts (see Layout Gallery in SKILL.md) or null

preferred_style: null     # any of the 21 styles (see Style Gallery in SKILL.md) or null

preferred_aspect: null    # landscape|portrait|square|null  (custom W:H also accepted)



language: null            # zh|en|ja|ko|null (null = auto-detect from source)



preferred_image_backend: auto   # auto|ask|<backend-id>



custom_styles:            # extra style definitions merged with the 21 built-ins

  - name: my-brand

    description: "Short description shown in Step 3 recommendations"

    prompt_fragment: "Style traits to inject into Step 5 prompt"

---

Field Reference#

FieldTypeDefaultDescription
versionint1Schema version
preferred_layoutstring|nullnullPre-selected layout — surfaces as the top recommendation in Step 3
preferred_stylestring|nullnullPre-selected style — surfaces as the top recommendation in Step 3
preferred_aspectstring|nullnullDefault aspect for Step 4 (named preset or W:H string)
languagestring|nullnullOutput language (null = auto-detect from source content)
preferred_image_backendstringautoImage backend selection. auto = prefer runtime-native tool, fall back to the only installed backend, ask if multiple non-native are present. ask = always confirm on every run. <backend-id> (e.g., codex-imagegen, baoyu-image-gen, image_generate) = pin this backend when available; fall back to auto when it isn't. Absent = auto.
custom_stylesarray[]Additional styles available alongside the 21 built-ins

Backend resolution logic is documented in the ## Image Generation Tools section of SKILL.md. This doc only defines the field.

All fields in this schema are defaults only — they shape Step-3 recommendations and Step-4 defaults but never bypass Step 4 confirmation (see the ## Confirmation Policy section in SKILL.md).

Example backend ids:

ValueMeaning
codex-imagegenCodex built-in imagegen tool
baoyu-image-genbaoyu-image-gen skill / script backend
image_generateGeneric runtime image tool such as Hermes

Layout Options#

See the Layout Gallery (21) table in SKILL.md for the canonical list. Common picks:

ValueBest For
bento-gridGeneral default — overview, multiple topics
linear-progressionTimelines, processes, tutorials
dense-modulesHigh-density modules, data-rich guides
hub-spokeCentral concept with related items
dashboardMetrics, KPIs

Style Options#

See the Style Gallery (21) table in SKILL.md for the canonical list. Common picks:

ValueDescription
craft-handmadeHand-drawn, paper craft (default)
corporate-memphisFlat vector, vibrant
morandi-journalHand-drawn doodle, warm Morandi tones
pop-laboratoryBlueprint grid, lab precision
retro-pop-grid1970s retro pop art, Swiss grid

Aspect Options#

ValueRatioNotes
landscape16:9Slides, blog headers, web banners
portrait9:16Mobile, social, dense modules (default for dense-modules)
square1:1Social posts, thumbnails
Custom W:He.g. 3:4, 4:3, 2.35:1Pass through verbatim to the prompt

Custom Style Fields#

FieldRequiredDescription
nameYesUnique style identifier (kebab-case)
descriptionYesOne-line description shown in Step 3 recommendations
prompt_fragmentYesStyle traits appended into the Step 5 prompt body

Example: Minimal Preferences#

---

version: 1

preferred_layout: bento-grid

preferred_style: craft-handmade

language: zh

---

preferred_image_backend is omitted above; absence is treated as auto.

Example: Full Preferences#

---

version: 1



preferred_layout: dense-modules

preferred_style: morandi-journal

preferred_aspect: portrait



language: zh



preferred_image_backend: codex-imagegen



custom_styles:

  - name: my-brand

    description: "Brand-aligned warm pastel infographic"

    prompt_fragment: "Use brand pastel palette (#F2C7B6, #B6D7E8, #C8E0B4); rounded rectangles; warm hand-drawn outlines; ample whitespace."

---

文件内容是平台检查时读出的文本,只供查看。平台不会运行包里的任何脚本或程序。