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>3031custom_styles:32- name: my-style33description: "Style description"34color_palette:35primary: ["#1E3A5F", "#4A90D9"]36background: "#F5F7FA"37accents: ["#00B4D8", "#48CAE4"]38visual_elements: "Clean lines, geometric shapes"39typography: "Modern sans-serif"40best_for: "Business, education"41---42```4344## Field Reference4546| Field | Type | Default | Description |47|-------|------|---------|-------------|48| `version` | int | 1 | Schema version |49| `watermark.enabled` | bool | false | Enable watermark |50| `watermark.content` | string | "" | Watermark text (@username or custom) |51| `watermark.position` | enum | bottom-right | Position on image |52| `preferred_style.name` | string | null | Style name or null |53| `preferred_style.description` | string | "" | Custom notes/override |54| `preferred_palette` | string | null | Palette override (macaron, warm, neon, or null) |55| `language` | string | null | Output language (null = auto-detect) |56| `default_output_dir` | enum | null | Output directory preference (null = ask each time) |57| `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-imagine`, `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. |58| `custom_styles` | array | [] | User-defined styles |5960## Position Options6162| Value | Description |63|-------|-------------|64| `bottom-right` | Lower right corner (default, most common) |65| `bottom-left` | Lower left corner |66| `bottom-center` | Bottom center |67| `top-right` | Upper right corner |6869## Output Directory Options7071| Value | Description |72|-------|-------------|73| `same-dir` | Same directory as article |74| `illustrations-subdir` | `{article-dir}/illustrations/` subdirectory |75| `independent` | `illustrations/{topic-slug}/` in working directory |7677## Custom Style Fields7879| Field | Required | Description |80|-------|----------|-------------|81| `name` | Yes | Unique style identifier (kebab-case) |82| `description` | Yes | What the style conveys |83| `color_palette.primary` | No | Main colors (array) |84| `color_palette.background` | No | Background color |85| `color_palette.accents` | No | Accent colors (array) |86| `visual_elements` | No | Decorative elements |87| `typography` | No | Font/lettering style |88| `best_for` | No | Recommended content types |8990## Example: Minimal Preferences9192```yaml93---94version: 195watermark:96enabled: true97content: "@myusername"98preferred_style:99name: notion100---101```102103## Example: Full Preferences104105```yaml106---107version: 1108watermark:109enabled: true110content: "@myaccount"111position: bottom-right112113preferred_style:114name: notion115description: "Clean illustrations for tech articles"116117language: zh118119preferred_image_backend: codex-imagegen120121custom_styles:122- name: corporate123description: "Professional B2B style"124color_palette:125primary: ["#1E3A5F", "#4A90D9"]126background: "#F5F7FA"127accents: ["#00B4D8", "#48CAE4"]128visual_elements: "Clean lines, subtle gradients, geometric shapes"129typography: "Modern sans-serif, professional"130best_for: "Business, SaaS, enterprise"131---132```133