Skill: conanwhf/baoyu-skills (version 1.0.0)

--- name: baoyu-skills description: | 宝玉分享的 Claude Code 技能集，包含多个内容生成和处理子技能。 子技能列表 (skills/baoyu-*): - baoyu-article-illustrator: 文章插图生成 - baoyu-comic: 漫画生成 - baoyu-compress-image: 图片压缩 - baoyu-cover-image: 封面图生成 - baoyu-danger-gemini-web: Gemini网页抓取 - baoyu-danger-x-to-markdown: X帖子转Markdown - baoyu-format-markdown: Markdown格式化 - baoyu-image-gen: AI图片生成 - baoyu-infographic: 信息图生成 - baoyu-markdown-to-html: Markdown转HTML - baoyu-post-to-wechat: 发送微信文章 - baoyu-post-to-weibo: 发送微博 - baoyu-post-to-x: 发送X帖子 - baoyu-slide-deck: PPT/幻灯片生成 - baoyu-translate: 翻译 - baoyu-url-to-markdown: URL转Markdown - baoyu-xhs-images: 小红书图片处理 触发词示例： - "用baoyu生成一张图片" - "把XX网页转成markdown" - "生成XX的PPT" metadata: { "openclaw": { "emoji": "🎨", "requires": { "bins": ["bun"] }, "install": [ { "id": "npm-global", "kind": "npm", "pkg": "@jimliu/baoyu-skills", "global": true, "label": "Install baoyu-skills via npx" } ] } } --- # baoyu-skills 宝玉分享的 Claude Code 技能集，包含多个内容生成和处理子技能。 ## 前置要求 - Node.js 环境 - Bun runtime (`npx bun` 命令) ## 安装 ```bash npx skills add jimliu/baoyu-skills ``` ## 使用方式 通过 Bun 运行各子技能： ```bash bun skills/<skill-name>/scripts/main.ts [options] ``` ## 子技能详情 ### 内容生成 | 技能 | 说明 | |------|------| | baoyu-image-gen | AI图片生成 | | baoyu-cover-image | 封面图生成 | | baoyu-article-illustrator | 文章插图 | | baoyu-comic | 漫画生成 | | baoyu-infographic | 信息图生成 | | baoyu-slide-deck | PPT/幻灯片生成 | ### 内容转换 | 技能 | 说明 | |------|------| | baoyu-url-to-markdown | URL转Markdown | | baoyu-x-to-markdown | X帖子转Markdown | | baoyu-markdown-to-html | Markdown转HTML | | baoyu-translate | 翻译 | ### 内容发布 | 技能 | 说明 | |------|------| | baoyu-post-to-x | 发布到X | | baoyu-post-to-weibo | 发布到微博 | | baoyu-post-to-wechat | 发布到微信 | ### 图片处理 | 技能 | 说明 | |------|------| | baoyu-compress-image | 图片压缩 | | baoyu-xhs-images | 小红书图片处理 | ## 安全注意 - 部分技能需要Chrome配置(CDP技能) - 图片生成可能需要API密钥配置 - 遵守各平台使用条款

path: docs/chrome-profile.md
content: # Chrome Profile

All CDP skills share a single profile directory. Do NOT create per-skill profiles.

Override: `BAOYU_CHROME_PROFILE_DIR` env var (takes priority over all defaults).

| Platform | Default Path |
|----------|-------------|
| macOS | `~/Library/Application Support/baoyu-skills/chrome-profile` |
| Linux | `$XDG_DATA_HOME/baoyu-skills/chrome-profile` (fallback `~/.local/share/`) |
| Windows | `%APPDATA%/baoyu-skills/chrome-profile` |
| WSL | Windows home `/.local/share/baoyu-skills/chrome-profile` |

New skills: use `BAOYU_CHROME_PROFILE_DIR` only (not per-skill env vars like `X_BROWSER_PROFILE_DIR`).

## Implementation Pattern

```typescript
function getDefaultProfileDir(): string {
  const override = process.env.BAOYU_CHROME_PROFILE_DIR?.trim();
  if (override) return path.resolve(override);
  const base = process.platform === 'darwin'
    ? path.join(os.homedir(), 'Library', 'Application Support')
    : process.env.XDG_DATA_HOME || path.join(os.homedir(), '.local', 'share');
  return path.join(base, 'baoyu-skills', 'chrome-profile');
}
```


path: docs/comic-style-maintenance.md
content: # Style Maintenance (baoyu-comic)

## Adding a New Style

1. Create style definition: `skills/baoyu-comic/references/styles/<style-name>.md`
2. Update SKILL.md: add to `--style` options table + auto-selection entry
3. Generate showcase image:
   ```bash
   ${BUN_X} skills/baoyu-danger-gemini-web/scripts/main.ts \
     --prompt "A single comic book page in <style-name> style showing [scene]. Features: [characteristics]. 3:4 portrait aspect ratio comic page." \
     --image screenshots/comic-styles/<style-name>.png
   ```
4. Compress: `${BUN_X} skills/baoyu-compress-image/scripts/main.ts screenshots/comic-styles/<style-name>.png`
5. Update both READMEs (`README.md` + `README.zh.md`): add style to options, description table, preview grid

## Updating an Existing Style

1. Update style definition in `references/styles/`
2. Regenerate showcase image if visual characteristics changed (steps 3-4 above)
3. Update READMEs if description changed

## Deleting a Style

1. Delete style definition + showcase image (`.webp`)
2. Remove from SKILL.md `--style` options + auto-selection
3. Remove from both READMEs (options, description table, preview grid)

## Style Preview Grid Format

```markdown
| | | |
|:---:|:---:|:---:|
| ![style1](./screenshots/comic-styles/style1.webp) | ![style2](./screenshots/comic-styles/style2.webp) | ![style3](./screenshots/comic-styles/style3.webp) |
| style1 | style2 | style3 |
```


path: packages/baoyu-chrome-cdp/package.json
content: {
  "name": "baoyu-chrome-cdp",
  "private": true,
  "version": "0.1.0",
  "type": "module",
  "exports": {
    ".": "./src/index.ts"
  }
}


Security scan verdicts — ClawScan: suspicious | static analysis: suspicious | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)