Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Analyze articles and generate contextual illustrations using Type × Style two-dimension approach across multiple AI providers.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/config/preferences-schema.md
1---2name: preferences-schema3description: EXTEND.md YAML schema for baoyu-article-illustrator user preferences4---56# Preferences Schema78## Full Schema910```yaml11---12version: 11314watermark:15enabled: false16content: ""17position: bottom-right # bottom-right|bottom-left|bottom-center|top-right1819preferred_style:20name: null # Built-in or custom style name21description: "" # Override/notes2223preferred_palette: null # Built-in palette name (macaron|warm|neon) or null2425language: null # zh|en|ja|ko|auto2627default_output_dir: null # same-dir|illustrations-subdir|independent2829preferred_image_backend: auto # auto|ask|<backend-id>3031generation_batch_size: 4 # 1-8, used when backend/runtime supports batch or parallel generation3233custom_styles:34- name: my-style35description: "Style description"36color_palette:37primary: ["#1E3A5F", "#4A90D9"]38background: "#F5F7FA"39accents: ["#00B4D8", "#48CAE4"]40visual_elements: "Clean lines, geometric shapes"41typography: "Modern sans-serif"42best_for: "Business, education"43---44```4546## Field Reference4748| Field | Type | Default | Description |49|-------|------|---------|-------------|50| `version` | int | 1 | Schema version |51| `watermark.enabled` | bool | false | Enable watermark |52| `watermark.content` | string | "" | Watermark text (@username or custom) |53| `watermark.position` | enum | bottom-right | Position on image |54| `preferred_style.name` | string | null | Style name or null |55| `preferred_style.description` | string | "" | Custom notes/override |56| `preferred_palette` | string | null | Palette override (macaron, warm, neon, or null) |57| `language` | string | null | Output language (null = auto-detect) |58| `default_output_dir` | enum | null | Output directory preference (null = ask each time) |59| `preferred_image_backend` | string | `auto` | Image 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`. Resolution logic is documented in `SKILL.md`'s `## Image Generation Tools` section. |60| `generation_batch_size` | int | 4 | Number of images to dispatch per batch when the backend has native batch support or the runtime can issue parallel generation calls. Clamp invalid values to 1-8. Current user request overrides this value. |61| `custom_styles` | array | [] | User-defined styles |6263## Position Options6465| Value | Description |66|-------|-------------|67| `bottom-right` | Lower right corner (default, most common) |68| `bottom-left` | Lower left corner |69| `bottom-center` | Bottom center |70| `top-right` | Upper right corner |7172## Output Directory Options7374| Value | Description |75|-------|-------------|76| `same-dir` | Same directory as article |77| `illustrations-subdir` | `{article-dir}/illustrations/` subdirectory |78| `independent` | `illustrations/{topic-slug}/` in working directory |7980## Custom Style Fields8182| Field | Required | Description |83|-------|----------|-------------|84| `name` | Yes | Unique style identifier (kebab-case) |85| `description` | Yes | What the style conveys |86| `color_palette.primary` | No | Main colors (array) |87| `color_palette.background` | No | Background color |88| `color_palette.accents` | No | Accent colors (array) |89| `visual_elements` | No | Decorative elements |90| `typography` | No | Font/lettering style |91| `best_for` | No | Recommended content types |9293## Example: Minimal Preferences9495```yaml96---97version: 198watermark:99enabled: true100content: "@myusername"101preferred_style:102name: notion103---104```105106## Example: Full Preferences107108```yaml109---110version: 1111watermark:112enabled: true113content: "@myaccount"114position: bottom-right115116preferred_style:117name: notion118description: "Clean illustrations for tech articles"119120language: zh121122preferred_image_backend: codex-imagegen123124generation_batch_size: 4125126custom_styles:127- name: corporate128description: "Professional B2B style"129color_palette:130primary: ["#1E3A5F", "#4A90D9"]131background: "#F5F7FA"132accents: ["#00B4D8", "#48CAE4"]133visual_elements: "Clean lines, subtle gradients, geometric shapes"134typography: "Modern sans-serif, professional"135best_for: "Business, SaaS, enterprise"136---137```138