chore: release v0.8.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a701be873b
commit
688d1760ed
|
|
@ -6,7 +6,7 @@
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"description": "Skills shared by Baoyu for improving daily work efficiency",
|
"description": "Skills shared by Baoyu for improving daily work efficiency",
|
||||||
"version": "0.7.0"
|
"version": "0.8.0"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
10
CHANGELOG.md
10
CHANGELOG.md
|
|
@ -2,6 +2,16 @@
|
||||||
|
|
||||||
English | [中文](./CHANGELOG.zh.md)
|
English | [中文](./CHANGELOG.zh.md)
|
||||||
|
|
||||||
|
## 0.8.0 - 2026-01-17
|
||||||
|
|
||||||
|
### Features
|
||||||
|
- `baoyu-xhs-images`: adds content analysis framework (`analysis-framework.md`, `outline-template.md`) for structured content breakdown and outline generation.
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
- `CLAUDE.md`: adds Output Path Convention (directory structure, backup rules) and Image Naming Convention (format, slug rules) to standardize image generation outputs.
|
||||||
|
- Multiple skills: updates file management conventions to use unified directory structure (`[source-name-no-ext]/<skill-suffix>/`).
|
||||||
|
- `baoyu-article-illustrator`, `baoyu-comic`, `baoyu-cover-image`, `baoyu-slide-deck`, `baoyu-xhs-images`
|
||||||
|
|
||||||
## 0.7.0 - 2026-01-17
|
## 0.7.0 - 2026-01-17
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,16 @@
|
||||||
|
|
||||||
[English](./CHANGELOG.md) | 中文
|
[English](./CHANGELOG.md) | 中文
|
||||||
|
|
||||||
|
## 0.8.0 - 2026-01-17
|
||||||
|
|
||||||
|
### 新功能
|
||||||
|
- `baoyu-xhs-images`:新增内容分析框架(`analysis-framework.md`、`outline-template.md`),提供结构化内容拆解与大纲生成方案。
|
||||||
|
|
||||||
|
### 文档
|
||||||
|
- `CLAUDE.md`:新增 Output Path Convention(目录结构、备份规则)和 Image Naming Convention(文件命名格式、slug 规则),统一图片生成输出规范。
|
||||||
|
- 多个技能:更新文件管理规范,采用统一目录结构(`[source-name-no-ext]/<skill-suffix>/`)。
|
||||||
|
- `baoyu-article-illustrator`、`baoyu-comic`、`baoyu-cover-image`、`baoyu-slide-deck`、`baoyu-xhs-images`
|
||||||
|
|
||||||
## 0.7.0 - 2026-01-17
|
## 0.7.0 - 2026-01-17
|
||||||
|
|
||||||
### 新功能
|
### 新功能
|
||||||
|
|
|
||||||
47
CLAUDE.md
47
CLAUDE.md
|
|
@ -135,6 +135,53 @@ Use this template when implementing image generation in skills:
|
||||||
4. On failure, auto-retry once before reporting error
|
4. On failure, auto-retry once before reporting error
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Output Path Convention
|
||||||
|
|
||||||
|
Generated images from the same skill and source file MUST be grouped together:
|
||||||
|
|
||||||
|
**With source file** (e.g., `/path/to/project/content/my-article.md`):
|
||||||
|
```
|
||||||
|
/path/to/project/content/my-article/<skill-suffix>/
|
||||||
|
```
|
||||||
|
- Remove file extension from source filename
|
||||||
|
- Use skill name suffix (e.g., `xhs-images`, `cover-image`, `slide-deck`)
|
||||||
|
- Example: source `/tests-data/anthropic-economic-index.md` + skill `baoyu-xhs-images` → `/tests-data/anthropic-economic-index/xhs-images/`
|
||||||
|
|
||||||
|
**Without source file**:
|
||||||
|
```
|
||||||
|
./<skill-suffix>/<source-slug>/
|
||||||
|
```
|
||||||
|
- Place under current project directory
|
||||||
|
- Use descriptive slug for the content
|
||||||
|
|
||||||
|
**Directory Backup**:
|
||||||
|
- If output directory already exists, rename existing directory with timestamp
|
||||||
|
- Format: `<dirname>-backup-YYYYMMDD-HHMMSS`
|
||||||
|
- Example: `xhs-images` → `xhs-images-backup-20260117-143052`
|
||||||
|
|
||||||
|
### Image Naming Convention
|
||||||
|
|
||||||
|
Image filenames MUST include meaningful slugs for readability:
|
||||||
|
|
||||||
|
**Format**: `NN-{type}-[slug].png`
|
||||||
|
- `NN`: Two-digit sequence number (01, 02, ...)
|
||||||
|
- `{type}`: Image type (cover, content, page, slide, illustration, etc.)
|
||||||
|
- `[slug]`: Descriptive kebab-case slug derived from content
|
||||||
|
|
||||||
|
**Examples**:
|
||||||
|
```
|
||||||
|
01-cover-ai-future.png
|
||||||
|
02-content-key-benefits.png
|
||||||
|
03-page-enigma-machine.png
|
||||||
|
04-slide-architecture-overview.png
|
||||||
|
```
|
||||||
|
|
||||||
|
**Slug Rules**:
|
||||||
|
- Derived from image purpose or content (kebab-case)
|
||||||
|
- Must be unique within the output directory
|
||||||
|
- 2-5 words, concise but descriptive
|
||||||
|
- When content changes significantly, update slug accordingly
|
||||||
|
|
||||||
### Best Practices
|
### Best Practices
|
||||||
|
|
||||||
- Always read the image generation skill's SKILL.md before calling
|
- Always read the image generation skill's SKILL.md before calling
|
||||||
|
|
|
||||||
|
|
@ -102,22 +102,44 @@ When no `--style` is specified, analyze content to select the best style:
|
||||||
|
|
||||||
## File Management
|
## File Management
|
||||||
|
|
||||||
Save illustrations to `imgs/` subdirectory in the same folder as the article:
|
### With Article Path
|
||||||
|
|
||||||
|
Save illustrations to `[source-name-no-ext]/illustrations/` subdirectory in the same folder as the article:
|
||||||
|
|
||||||
```
|
```
|
||||||
path/to/
|
path/to/
|
||||||
├── article.md
|
├── article.md
|
||||||
└── imgs/
|
└── article/
|
||||||
|
└── illustrations/
|
||||||
|
├── outline.md
|
||||||
|
├── prompts/
|
||||||
|
│ ├── illustration-concept-a.md
|
||||||
|
│ ├── illustration-concept-b.md
|
||||||
|
│ └── ...
|
||||||
|
├── illustration-concept-a.png
|
||||||
|
├── illustration-concept-b.png
|
||||||
|
└── ...
|
||||||
|
```
|
||||||
|
|
||||||
|
Example: `/posts/ai-future.md` → `/posts/ai-future/illustrations/`
|
||||||
|
|
||||||
|
### Without Article Path (Pasted Content)
|
||||||
|
|
||||||
|
Save to `./illustrations/[topic-slug]/`:
|
||||||
|
|
||||||
|
```
|
||||||
|
illustrations/
|
||||||
|
└── ai-future/
|
||||||
|
├── source.md
|
||||||
├── outline.md
|
├── outline.md
|
||||||
├── prompts/
|
├── prompts/
|
||||||
│ ├── illustration-concept-a.md
|
└── *.png
|
||||||
│ ├── illustration-concept-b.md
|
|
||||||
│ └── ...
|
|
||||||
├── illustration-concept-a.png
|
|
||||||
├── illustration-concept-b.png
|
|
||||||
└── ...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Directory Backup
|
||||||
|
|
||||||
|
If target directory exists, rename existing to `<dirname>-backup-YYYYMMDD-HHMMSS`
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
### Step 1: Analyze Content & Select Style
|
### Step 1: Analyze Content & Select Style
|
||||||
|
|
@ -266,7 +288,7 @@ Style notes: [specific style characteristics]
|
||||||
Insert generated images at corresponding positions:
|
Insert generated images at corresponding positions:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||
**Insertion Rules**:
|
**Insertion Rules**:
|
||||||
|
|
|
||||||
|
|
@ -84,8 +84,12 @@ Style × Layout × Aspect can be freely combined. Custom styles can be described
|
||||||
```
|
```
|
||||||
|
|
||||||
**Target directory**:
|
**Target directory**:
|
||||||
- With source path: `[source-dir]/comic/`
|
- With source path: `[source-dir]/[source-name-no-ext]/comic/`
|
||||||
- Without source: `comic-outputs/YYYY-MM-DD/[topic-slug]/`
|
- Example: `/posts/turing-story.md` → `/posts/turing-story/comic/`
|
||||||
|
- Without source: `./comic/[topic-slug]/`
|
||||||
|
|
||||||
|
**Directory backup**:
|
||||||
|
- If target directory exists, rename existing to `<dirname>-backup-YYYYMMDD-HHMMSS`
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,30 +76,36 @@ When no `--style` is specified, the system analyzes content to select the best s
|
||||||
|
|
||||||
### With Article Path
|
### With Article Path
|
||||||
|
|
||||||
Save to `imgs/` subdirectory in the same folder as the article:
|
Save to `[source-name-no-ext]/cover-image/` subdirectory in the same folder as the article:
|
||||||
|
|
||||||
```
|
```
|
||||||
path/to/
|
path/to/
|
||||||
├── article.md
|
├── article.md
|
||||||
└── imgs/
|
└── article/
|
||||||
|
└── cover-image/
|
||||||
|
├── prompts/
|
||||||
|
│ └── cover.md
|
||||||
|
└── cover.png
|
||||||
|
```
|
||||||
|
|
||||||
|
Example: `/posts/ai-future.md` → `/posts/ai-future/cover-image/`
|
||||||
|
|
||||||
|
### Without Article Path (Pasted Content)
|
||||||
|
|
||||||
|
Save to `./cover-image/[topic-slug]/`:
|
||||||
|
|
||||||
|
```
|
||||||
|
cover-image/
|
||||||
|
└── ai-future/
|
||||||
|
├── source.md # Saved pasted content
|
||||||
├── prompts/
|
├── prompts/
|
||||||
│ └── cover.md
|
│ └── cover.md
|
||||||
└── cover.png
|
└── cover.png
|
||||||
```
|
```
|
||||||
|
|
||||||
### Without Article Path (Pasted Content)
|
### Directory Backup
|
||||||
|
|
||||||
Save to `cover-outputs/YYYY-MM-DD/[topic-slug]/`:
|
If target directory exists, rename existing to `<dirname>-backup-YYYYMMDD-HHMMSS`
|
||||||
|
|
||||||
```
|
|
||||||
cover-outputs/
|
|
||||||
└── 2026-01-17/
|
|
||||||
└── ai-future/
|
|
||||||
├── source.md # Saved pasted content
|
|
||||||
├── prompts/
|
|
||||||
│ └── cover.md
|
|
||||||
└── cover.png
|
|
||||||
```
|
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,18 +89,21 @@ This deck is designed for **reading and sharing**, not live presentation:
|
||||||
```
|
```
|
||||||
content-dir/
|
content-dir/
|
||||||
├── source-content.md
|
├── source-content.md
|
||||||
└── slide-deck/
|
└── source-content/
|
||||||
├── outline.md
|
└── slide-deck/
|
||||||
├── prompts/
|
├── outline.md
|
||||||
│ └── 01-slide-cover.md, 02-slide-{slug}.md, ...
|
├── prompts/
|
||||||
├── 01-slide-cover.png, 02-slide-{slug}.png, ...
|
│ └── 01-slide-cover.md, 02-slide-{slug}.md, ...
|
||||||
├── {topic-slug}.pptx
|
├── 01-slide-cover.png, 02-slide-{slug}.png, ...
|
||||||
└── {topic-slug}.pdf
|
├── {topic-slug}.pptx
|
||||||
|
└── {topic-slug}.pdf
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example: `/posts/ai-intro.md` → `/posts/ai-intro/slide-deck/`
|
||||||
|
|
||||||
### Without Content Path (Pasted Content)
|
### Without Content Path (Pasted Content)
|
||||||
```
|
```
|
||||||
slide-outputs/YYYY-MM-DD/{topic-slug}/
|
slide-deck/{topic-slug}/
|
||||||
├── source.md
|
├── source.md
|
||||||
├── outline.md
|
├── outline.md
|
||||||
├── prompts/
|
├── prompts/
|
||||||
|
|
@ -109,6 +112,10 @@ slide-outputs/YYYY-MM-DD/{topic-slug}/
|
||||||
└── {topic-slug}.pdf
|
└── {topic-slug}.pdf
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Directory Backup
|
||||||
|
|
||||||
|
If target directory exists, rename existing to `<dirname>-backup-YYYYMMDD-HHMMSS`
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
### Step 1: Analyze Content
|
### Step 1: Analyze Content
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,12 @@ Detailed layout definitions: `references/layouts/<layout>.md`
|
||||||
```
|
```
|
||||||
|
|
||||||
**Target directory**:
|
**Target directory**:
|
||||||
- With source path: `[source-dir]/xhs-images/`
|
- With source path: `[source-dir]/[source-name-no-ext]/xhs-images/`
|
||||||
- Without source: `xhs-outputs/YYYY-MM-DD/[topic-slug]/`
|
- Example: `/tests-data/article.md` → `/tests-data/article/xhs-images/`
|
||||||
|
- Without source: `./xhs-images/[topic-slug]/`
|
||||||
|
|
||||||
|
**Directory backup**:
|
||||||
|
- If target directory exists, rename existing to `<dirname>-backup-YYYYMMDD-HHMMSS`
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue