mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-28 12:49:48 +08:00
feat(baoyu-article-illustrator): add imgs-subdir output option and improve style selection
This commit is contained in:
@@ -85,12 +85,14 @@ Check `default_output_dir` in preferences:
|
|||||||
| Preference Value | Action |
|
| Preference Value | Action |
|
||||||
|------------------|--------|
|
|------------------|--------|
|
||||||
| `same-dir` | Use `{article-dir}/`, display "Output: {path}" |
|
| `same-dir` | Use `{article-dir}/`, display "Output: {path}" |
|
||||||
|
| `imgs-subdir` | Use `{article-dir}/imgs/`, display "Output: {path}" |
|
||||||
| `illustrations-subdir` | Use `{article-dir}/illustrations/`, display "Output: {path}" |
|
| `illustrations-subdir` | Use `{article-dir}/illustrations/`, display "Output: {path}" |
|
||||||
| `independent` | Use `illustrations/{topic-slug}/`, display "Output: {path}" |
|
| `independent` | Use `illustrations/{topic-slug}/`, display "Output: {path}" |
|
||||||
| Not configured | **MUST** ask with AskUserQuestion ↓ |
|
| Not configured | **MUST** ask with AskUserQuestion ↓ |
|
||||||
|
|
||||||
**AskUserQuestion** (when no preference):
|
**AskUserQuestion** (when no preference):
|
||||||
- `{article-dir}/` - Same directory as article
|
- `{article-dir}/` - Same directory as article
|
||||||
|
- `{article-dir}/imgs/` - Images subdirectory
|
||||||
- `{article-dir}/illustrations/` - Illustrations subdirectory (Recommended)
|
- `{article-dir}/illustrations/` - Illustrations subdirectory (Recommended)
|
||||||
- `illustrations/{topic-slug}/` - Independent directory
|
- `illustrations/{topic-slug}/` - Independent directory
|
||||||
- Save as default - Remember this choice for future runs
|
- Save as default - Remember this choice for future runs
|
||||||
@@ -175,11 +177,22 @@ test -f "$HOME/.baoyu-skills/baoyu-article-illustrator/EXTEND.md" && echo "user"
|
|||||||
- balanced (3-5) (Recommended) - Major sections
|
- balanced (3-5) (Recommended) - Major sections
|
||||||
- rich (6+) - Comprehensive support
|
- rich (6+) - Comprehensive support
|
||||||
|
|
||||||
**Q3: Style**
|
**Q3: Style** (ALWAYS ask, even with preferred_style in EXTEND.md)
|
||||||
Based on Type, suggest compatible styles from matrix:
|
|
||||||
- [Best compatible] (Recommended)
|
If EXTEND.md has `preferred_style`:
|
||||||
- [Other ✓✓ styles]
|
- [Custom style name + brief description] (Recommended)
|
||||||
- [Other ✓ styles]
|
- [Top compatible built-in style 1]
|
||||||
|
- [Top compatible built-in style 2]
|
||||||
|
- [Top compatible built-in style 3]
|
||||||
|
|
||||||
|
If no `preferred_style`:
|
||||||
|
- [Best compatible from matrix] (Recommended)
|
||||||
|
- [Other ✓✓ style 1]
|
||||||
|
- [Other ✓✓ style 2]
|
||||||
|
- [Other ✓ style]
|
||||||
|
|
||||||
|
Style selection based on Type × Style compatibility matrix (references/styles.md).
|
||||||
|
Full specs: `references/styles/<style>.md`
|
||||||
|
|
||||||
**Q4** (only if source ≠ user language):
|
**Q4** (only if source ≠ user language):
|
||||||
- Language: Source / User language
|
- Language: Source / User language
|
||||||
|
|||||||
Reference in New Issue
Block a user