mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-14 06:39:48 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 715555c2ab | |||
| 02b039f2ff | |||
| 00306414fe |
@@ -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": "1.21.1"
|
"version": "1.21.2"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -186,18 +186,61 @@ Japanese (CHANGELOG.ja.md):
|
|||||||
- コネクションプールのメモリリークを修正
|
- コネクションプールのメモリリークを修正
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step 5: Check README Updates
|
### Step 5: Group Changes by Skill/Module
|
||||||
|
|
||||||
**IMPORTANT**: Before updating version file, check if README needs updates.
|
Analyze commits since last tag and group by affected skill/module:
|
||||||
|
|
||||||
1. **Scan for README files**: `README*.md` in project root
|
1. **Identify changed files** per commit
|
||||||
2. **For each skill/feature changed**, check if README documentation matches:
|
2. **Group by skill/module**:
|
||||||
- Options/flags documented correctly
|
- `skills/<skill-name>/*` → Group under that skill
|
||||||
- Usage examples reflect current syntax
|
- Root files (CLAUDE.md, etc.) → Group as "project"
|
||||||
- Feature descriptions are accurate
|
- Multiple skills in one commit → Split into multiple groups
|
||||||
3. **If README is outdated**:
|
3. **For each group**, identify related README updates needed
|
||||||
- Update README.md (and README.zh.md if exists) to reflect changes
|
|
||||||
- Include in release commit
|
**Example Grouping**:
|
||||||
|
```
|
||||||
|
baoyu-cover-image:
|
||||||
|
- feat: add new style options
|
||||||
|
- fix: handle transparent backgrounds
|
||||||
|
→ README updates: options table
|
||||||
|
|
||||||
|
baoyu-comic:
|
||||||
|
- refactor: improve panel layout algorithm
|
||||||
|
→ No README updates needed
|
||||||
|
|
||||||
|
project:
|
||||||
|
- docs: update CLAUDE.md architecture section
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 6: Commit Each Skill/Module Separately
|
||||||
|
|
||||||
|
For each skill/module group (in order of changes):
|
||||||
|
|
||||||
|
1. **Check README updates needed**:
|
||||||
|
- Scan `README*.md` for mentions of this skill/module
|
||||||
|
- Verify options/flags documented correctly
|
||||||
|
- Update usage examples if syntax changed
|
||||||
|
- Update feature descriptions if behavior changed
|
||||||
|
|
||||||
|
2. **Stage and commit**:
|
||||||
|
```bash
|
||||||
|
git add skills/<skill-name>/*
|
||||||
|
git add README.md README.zh.md # If updated for this skill
|
||||||
|
git commit -m "<type>(<skill-name>): <meaningful description>"
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Commit message format**:
|
||||||
|
- Use conventional commit format: `<type>(<scope>): <description>`
|
||||||
|
- `<type>`: feat, fix, refactor, docs, perf, etc.
|
||||||
|
- `<scope>`: skill name or "project"
|
||||||
|
- `<description>`: Clear, meaningful description of changes
|
||||||
|
|
||||||
|
**Example Commits**:
|
||||||
|
```bash
|
||||||
|
git commit -m "feat(baoyu-cover-image): add watercolor and minimalist styles"
|
||||||
|
git commit -m "fix(baoyu-comic): improve panel layout for long dialogues"
|
||||||
|
git commit -m "docs(project): update architecture documentation"
|
||||||
|
```
|
||||||
|
|
||||||
**Common README Updates Needed**:
|
**Common README Updates Needed**:
|
||||||
| Change Type | README Section to Check |
|
| Change Type | README Section to Check |
|
||||||
@@ -208,11 +251,13 @@ Japanese (CHANGELOG.ja.md):
|
|||||||
| Breaking changes | Migration notes, deprecation warnings |
|
| Breaking changes | Migration notes, deprecation warnings |
|
||||||
| Restructured internals | Architecture section (if exposed to users) |
|
| Restructured internals | Architecture section (if exposed to users) |
|
||||||
|
|
||||||
### Step 6: Update Version File
|
### Step 7: Generate Changelog and Update Version
|
||||||
|
|
||||||
1. Read version file (JSON/TOML/text)
|
1. **Generate multi-language changelogs** (as described in Step 4)
|
||||||
2. Update version number
|
2. **Update version file**:
|
||||||
3. Write back (preserve formatting)
|
- Read version file (JSON/TOML/text)
|
||||||
|
- Update version number
|
||||||
|
- Write back (preserve formatting)
|
||||||
|
|
||||||
**Version Paths by File Type**:
|
**Version Paths by File Type**:
|
||||||
|
|
||||||
@@ -224,25 +269,77 @@ Japanese (CHANGELOG.ja.md):
|
|||||||
| marketplace.json | `$.metadata.version` |
|
| marketplace.json | `$.metadata.version` |
|
||||||
| VERSION / version.txt | Direct content |
|
| VERSION / version.txt | Direct content |
|
||||||
|
|
||||||
### Step 7: Commit and Tag
|
### Step 8: User Confirmation
|
||||||
|
|
||||||
```bash
|
Before creating the release commit, ask user to confirm:
|
||||||
git add <all modified files>
|
|
||||||
git commit -m "chore: release v{VERSION}"
|
**Use AskUserQuestion with two questions**:
|
||||||
git tag v{VERSION}
|
|
||||||
|
1. **Version bump** (single select):
|
||||||
|
- Show recommended version based on Step 3 analysis
|
||||||
|
- Options: recommended (with label), other semver options
|
||||||
|
- Example: `1.2.3 → 1.3.0 (Recommended)`, `1.2.3 → 1.2.4`, `1.2.3 → 2.0.0`
|
||||||
|
|
||||||
|
2. **Push to remote** (single select):
|
||||||
|
- Options: "Yes, push after commit", "No, keep local only"
|
||||||
|
|
||||||
|
**Example Output Before Confirmation**:
|
||||||
```
|
```
|
||||||
|
Commits created:
|
||||||
|
1. feat(baoyu-cover-image): add watercolor and minimalist styles
|
||||||
|
2. fix(baoyu-comic): improve panel layout for long dialogues
|
||||||
|
3. docs(project): update architecture documentation
|
||||||
|
|
||||||
|
Changelog preview (en):
|
||||||
|
## 1.3.0 - 2026-01-22
|
||||||
|
### Features
|
||||||
|
- Add watercolor and minimalist styles to cover-image
|
||||||
|
### Fixes
|
||||||
|
- Improve panel layout for long dialogues in comic
|
||||||
|
|
||||||
|
Ready to create release commit and tag.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 9: Create Release Commit and Tag
|
||||||
|
|
||||||
|
After user confirmation:
|
||||||
|
|
||||||
|
1. **Stage version and changelog files**:
|
||||||
|
```bash
|
||||||
|
git add <version-file>
|
||||||
|
git add CHANGELOG*.md
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Create release commit**:
|
||||||
|
```bash
|
||||||
|
git commit -m "chore: release v{VERSION}"
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Create tag**:
|
||||||
|
```bash
|
||||||
|
git tag v{VERSION}
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Push if user confirmed** (Step 8):
|
||||||
|
```bash
|
||||||
|
git push origin main
|
||||||
|
git push origin v{VERSION}
|
||||||
|
```
|
||||||
|
|
||||||
**Note**: Do NOT add Co-Authored-By line. This is a release commit, not a code contribution.
|
**Note**: Do NOT add Co-Authored-By line. This is a release commit, not a code contribution.
|
||||||
|
|
||||||
**Important**: Do NOT push to remote. User will push manually when ready.
|
|
||||||
|
|
||||||
**Post-Release Output**:
|
**Post-Release Output**:
|
||||||
```
|
```
|
||||||
Release v1.3.0 created locally.
|
Release v1.3.0 created.
|
||||||
|
|
||||||
To publish:
|
Commits:
|
||||||
git push origin main
|
1. feat(baoyu-cover-image): add watercolor and minimalist styles
|
||||||
git push origin v1.3.0
|
2. fix(baoyu-comic): improve panel layout for long dialogues
|
||||||
|
3. docs(project): update architecture documentation
|
||||||
|
4. chore: release v1.3.0
|
||||||
|
|
||||||
|
Tag: v1.3.0
|
||||||
|
Status: Pushed to origin # or "Local only - run git push when ready"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration (.releaserc.yml)
|
## Configuration (.releaserc.yml)
|
||||||
@@ -307,31 +404,36 @@ Project detected:
|
|||||||
Last tag: v1.2.3
|
Last tag: v1.2.3
|
||||||
Proposed version: v1.3.0
|
Proposed version: v1.3.0
|
||||||
|
|
||||||
Changes detected:
|
Changes grouped by skill/module:
|
||||||
feat: add user authentication
|
baoyu-cover-image:
|
||||||
feat: support oauth2 login
|
- feat: add watercolor style
|
||||||
fix: memory leak in pool
|
- feat: add minimalist style
|
||||||
|
→ Commit: feat(baoyu-cover-image): add watercolor and minimalist styles
|
||||||
|
→ README updates: options table
|
||||||
|
|
||||||
|
baoyu-comic:
|
||||||
|
- fix: panel layout for long dialogues
|
||||||
|
→ Commit: fix(baoyu-comic): improve panel layout for long dialogues
|
||||||
|
→ No README updates
|
||||||
|
|
||||||
Changelog preview (en):
|
Changelog preview (en):
|
||||||
## 1.3.0 - 2026-01-22
|
## 1.3.0 - 2026-01-22
|
||||||
### Features
|
### Features
|
||||||
- Add user authentication module
|
- Add watercolor and minimalist styles to cover-image
|
||||||
- Support OAuth2 login
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Fix memory leak in connection pool
|
- Improve panel layout for long dialogues in comic
|
||||||
|
|
||||||
Changelog preview (zh):
|
Changelog preview (zh):
|
||||||
## 1.3.0 - 2026-01-22
|
## 1.3.0 - 2026-01-22
|
||||||
### 新功能
|
### 新功能
|
||||||
- 新增用户认证模块
|
- 为 cover-image 添加水彩和极简风格
|
||||||
- 支持 OAuth2 登录
|
|
||||||
### 修复
|
### 修复
|
||||||
- 修复连接池内存泄漏问题
|
- 改进 comic 长对话的面板布局
|
||||||
|
|
||||||
Files to modify:
|
Commits to create:
|
||||||
- package.json
|
1. feat(baoyu-cover-image): add watercolor and minimalist styles
|
||||||
- CHANGELOG.md
|
2. fix(baoyu-comic): improve panel layout for long dialogues
|
||||||
- CHANGELOG.zh.md
|
3. chore: release v1.3.0
|
||||||
|
|
||||||
No changes made. Run without --dry-run to execute.
|
No changes made. Run without --dry-run to execute.
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
English | [中文](./CHANGELOG.zh.md)
|
English | [中文](./CHANGELOG.zh.md)
|
||||||
|
|
||||||
|
## 1.21.2 - 2026-01-24
|
||||||
|
|
||||||
|
### Features
|
||||||
|
- `baoyu-image-gen`: adds parallel generation documentation with recommended 4 concurrent subagents for batch operations.
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
- `release-skills`: adds skill/module grouping workflow and user confirmation step before release.
|
||||||
|
|
||||||
## 1.21.1 - 2026-01-24
|
## 1.21.1 - 2026-01-24
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
[English](./CHANGELOG.md) | 中文
|
[English](./CHANGELOG.md) | 中文
|
||||||
|
|
||||||
|
## 1.21.2 - 2026-01-24
|
||||||
|
|
||||||
|
### 新功能
|
||||||
|
- `baoyu-image-gen`:添加并行生成文档,推荐使用 4 个并发 subagent 进行批量操作。
|
||||||
|
|
||||||
|
### 文档
|
||||||
|
- `release-skills`:新增按 skill/module 分组提交流程和发布前用户确认步骤。
|
||||||
|
|
||||||
## 1.21.1 - 2026-01-24
|
## 1.21.1 - 2026-01-24
|
||||||
|
|
||||||
### 文档
|
### 文档
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: baoyu-image-gen
|
name: baoyu-image-gen
|
||||||
description: Generates images using official OpenAI and Google APIs via AI SDK. Supports text-to-image, reference images, aspect ratios, and quality presets. Use when user asks to "generate image with API", "use official API for images", "create image with OpenAI/Google", or needs API-based generation instead of browser-based.
|
description: AI image generation with OpenAI and Google APIs. Supports text-to-image, reference images, aspect ratios, and parallel generation (recommended 4 concurrent subagents). Use when user asks to generate, create, or draw images.
|
||||||
---
|
---
|
||||||
|
|
||||||
# Image Generation (AI SDK)
|
# Image Generation (AI SDK)
|
||||||
@@ -118,6 +118,25 @@ Supported: `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `2.35:1`
|
|||||||
- Google Imagen: uses `aspectRatio` parameter
|
- Google Imagen: uses `aspectRatio` parameter
|
||||||
- OpenAI: maps to closest supported size
|
- OpenAI: maps to closest supported size
|
||||||
|
|
||||||
|
## Parallel Generation
|
||||||
|
|
||||||
|
Supports concurrent image generation via background subagents for batch operations.
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
|---------|-------|
|
||||||
|
| Recommended concurrency | 4 subagents |
|
||||||
|
| Max concurrency | 8 subagents |
|
||||||
|
| Use case | Batch generation (slides, comics, infographics) |
|
||||||
|
|
||||||
|
**Agent Implementation**:
|
||||||
|
```
|
||||||
|
# Launch multiple generations in parallel using Task tool
|
||||||
|
# Each Task runs as background subagent with run_in_background=true
|
||||||
|
# Collect results via TaskOutput when all complete
|
||||||
|
```
|
||||||
|
|
||||||
|
**Best Practice**: When generating 4+ images, spawn background subagents (recommended 4 concurrent) instead of sequential execution.
|
||||||
|
|
||||||
## Error Handling
|
## Error Handling
|
||||||
|
|
||||||
- Missing API key → error with setup instructions
|
- Missing API key → error with setup instructions
|
||||||
|
|||||||
Reference in New Issue
Block a user