星辉: 新增 baoyu-skills Claude Code 技能集文档
This commit is contained in:
431
openclaw/knowledgebase/baoyu-skills-claude-code-技能集.md
Normal file
431
openclaw/knowledgebase/baoyu-skills-claude-code-技能集.md
Normal file
@@ -0,0 +1,431 @@
|
||||
# baoyu-skills (宝玉分享的 Claude Code 技能集)
|
||||
|
||||
> 来源: https://github.com/JimLiu/baoyu-skills/blob/main/README.zh.md
|
||||
|
||||
宝玉分享的 Claude Code 技能集,提升日常工作效率。
|
||||
|
||||
- 已安装 Node.js 环境
|
||||
- 能够运行 npx bun 命令
|
||||
|
||||
```bash
|
||||
npx skills add jimliu/baoyu-skills
|
||||
```
|
||||
|
||||
现在这个仓库支持把每个 skills/baoyu-* 目录作为独立 ClawHub skill 发布。
|
||||
|
||||
---
|
||||
|
||||
## 目录
|
||||
|
||||
- [内容生成和发布技能](#内容生成和发布技能)
|
||||
- [小红书信息图系列生成器](#小红书信息图系列生成器)
|
||||
- [专业信息图生成器](#专业信息图生成器)
|
||||
- [文章封面图生成器](#文章封面图生成器)
|
||||
- [幻灯片生成器](#幻灯片生成器)
|
||||
- [知识漫画创作器](#知识漫画创作器)
|
||||
- [文章插图生成器](#文章插图生成器)
|
||||
- [发布到 X](#发布到-x)
|
||||
- [发布到微信公众号](#发布到微信公众号)
|
||||
- [发布到微博](#发布到微博)
|
||||
- [AI 生成技能](#ai-生成技能)
|
||||
- [图像生成后端](#图像生成后端)
|
||||
- [Gemini Web 交互](#gemini-web-交互)
|
||||
- [工具技能](#工具技能)
|
||||
- [YouTube 字幕下载](#youtube-字幕下载)
|
||||
- [URL 转 Markdown](#url-转-markdown)
|
||||
- [X 内容转 Markdown](#x-内容转-markdown)
|
||||
- [图片压缩](#图片压缩)
|
||||
- [Markdown 格式化](#markdown-格式化)
|
||||
- [Markdown 转 HTML](#markdown-转-html)
|
||||
- [翻译技能](#翻译技能)
|
||||
- [环境配置](#环境配置)
|
||||
- [扩展技能](#扩展技能)
|
||||
|
||||
---
|
||||
|
||||
## 内容生成和发布技能
|
||||
|
||||
### 小红书信息图系列生成器
|
||||
|
||||
将内容拆解为 1-10 张卡通风格信息图,支持风格 × 布局二维系统。
|
||||
|
||||
```bash
|
||||
# 自动选择风格和布局
|
||||
/baoyu-xhs-images posts/ai-future/article.md
|
||||
|
||||
# 指定风格
|
||||
/baoyu-xhs-images posts/ai-future/article.md --style notion
|
||||
|
||||
# 指定布局
|
||||
/baoyu-xhs-images posts/ai-future/article.md --layout dense
|
||||
|
||||
# 组合风格和布局
|
||||
/baoyu-xhs-images posts/ai-future/article.md --style tech --layout list
|
||||
|
||||
# 直接输入内容
|
||||
/baoyu-xhs-images 今日星座运势
|
||||
```
|
||||
|
||||
**风格(视觉美学)**:cute(默认)、fresh、warm、bold、minimal、retro、pop、notion、chalkboard
|
||||
|
||||
**布局(信息密度)**:
|
||||
|
||||
| 布局 | 密度 | 适用场景 |
|
||||
|------|------|---------|
|
||||
| sparse | 1-2 点 | 封面、金句 |
|
||||
| balanced | 3-4 点 | 常规内容 |
|
||||
| dense | 5-8 点 | 知识卡片、干货总结 |
|
||||
| list | 4-7 项 | 清单、排行 |
|
||||
| comparison | 双栏 | 对比、优劣 |
|
||||
| flow | 3-6 步 | 流程、时间线 |
|
||||
|
||||
---
|
||||
|
||||
### 专业信息图生成器
|
||||
|
||||
支持 20 种布局和 17 种视觉风格。分析内容后推荐布局×风格组合,生成可发布的信息图。
|
||||
|
||||
```bash
|
||||
# 根据内容自动推荐组合
|
||||
/baoyu-infographic path/to/content.md
|
||||
|
||||
# 指定布局
|
||||
/baoyu-infographic path/to/content.md --layout pyramid
|
||||
|
||||
# 指定风格(默认:craft-handmade)
|
||||
/baoyu-infographic path/to/content.md --style technical-schematic
|
||||
|
||||
# 同时指定布局和风格
|
||||
/baoyu-infographic path/to/content.md --layout funnel --style corporate-memphis
|
||||
```
|
||||
|
||||
**布局(信息结构)**:bridge、circular-flow、comparison-table、do-dont、equation、feature-list、fishbone、funnel、grid-cards、iceberg、journey-path、layers-stack、mind-map、nested-circles、priority-quadrants、pyramid、scale-balance、timeline-horizontal、tree-hierarchy、venn
|
||||
|
||||
**风格(视觉美学)**:craft-handmade(默认)、claymation、kawaii、storybook-watercolor、chalkboard、cyberpunk-neon、bold-graphic、aged-academia、corporate-memphis、technical-schematic、origami、pixel-art、ui-wireframe、subway-map、ikea-manual、knolling、lego-brick
|
||||
|
||||
---
|
||||
|
||||
### 文章封面图生成器
|
||||
|
||||
为文章生成封面图,支持五维定制系统:类型 × 配色 × 渲染 × 文字 × 氛围。9 种配色方案与 6 种渲染风格组合,提供 54 种独特效果。
|
||||
|
||||
```bash
|
||||
# 根据内容自动选择所有维度
|
||||
/baoyu-cover-image path/to/article.md
|
||||
|
||||
# 快速模式:跳过确认,使用自动选择
|
||||
/baoyu-cover-image path/to/article.md --quick
|
||||
|
||||
# 指定维度(5D 系统)
|
||||
/baoyu-cover-image path/to/article.md --type conceptual --palette cool --rendering digital
|
||||
/baoyu-cover-image path/to/article.md --text title-subtitle --mood bold
|
||||
|
||||
# 指定宽高比(默认:16:9)
|
||||
/baoyu-cover-image path/to/article.md --aspect 2.35:1
|
||||
```
|
||||
|
||||
**五个维度**:
|
||||
|
||||
- 类型 (Type):hero、conceptual、typography、metaphor、scene、minimal
|
||||
- 配色 (Palette):warm、elegant、cool、dark、earth、vivid、pastel、mono、retro
|
||||
- 渲染 (Rendering):flat-vector、hand-drawn、painterly、digital、pixel、chalk
|
||||
- 文字 (Text):none、title-only(默认)、title-subtitle、text-rich
|
||||
- 氛围 (Mood):subtle、balanced(默认)、bold
|
||||
|
||||
---
|
||||
|
||||
### 幻灯片生成器
|
||||
|
||||
从内容生成专业的幻灯片图片。先创建包含样式说明的完整大纲,然后逐页生成幻灯片图片。
|
||||
|
||||
```bash
|
||||
# 从 markdown 文件生成
|
||||
/baoyu-slide-deck path/to/article.md
|
||||
|
||||
# 指定风格和受众
|
||||
/baoyu-slide-deck path/to/article.md --style corporate
|
||||
/baoyu-slide-deck path/to/article.md --audience executives
|
||||
|
||||
# 指定页数
|
||||
/baoyu-slide-deck path/to/article.md --slides 15
|
||||
|
||||
# 仅生成大纲(不生成图片)
|
||||
/baoyu-slide-deck path/to/article.md --outline-only
|
||||
```
|
||||
|
||||
**风格系统**:风格由 4 个维度组合而成:纹理 × 氛围 × 字体 × 密度
|
||||
|
||||
**预设风格**:blueprint(默认)、chalkboard、corporate、minimal、sketch-notes、watercolor、dark-atmospheric、notion、bold-editorial、editorial-infographic、fantasy-animation、intuition-machine、pixel-art、scientific、vector-illustration、vintage
|
||||
|
||||
---
|
||||
|
||||
### 知识漫画创作器
|
||||
|
||||
支持画风 × 基调灵活组合。创作带有详细分镜布局的原创教育漫画,逐页生成图片。
|
||||
|
||||
```bash
|
||||
# 从素材文件生成(自动选择画风 + 基调)
|
||||
/baoyu-comic posts/turing-story/source.md
|
||||
|
||||
# 指定画风和基调
|
||||
/baoyu-comic posts/turing-story/source.md --art manga --tone warm
|
||||
|
||||
# 使用预设(包含特殊规则)
|
||||
/baoyu-comic posts/turing-story/source.md --style ohmsha
|
||||
/baoyu-comic posts/turing-story/source.md --style wuxia
|
||||
```
|
||||
|
||||
**画风(渲染技法)**:ligne-claire(默认)、manga、realistic、ink-brush、chalk
|
||||
|
||||
**基调(氛围/情绪)**:neutral(默认)、warm、dramatic、romantic、energetic、vintage、action
|
||||
|
||||
**预设**:ohmsha(manga + neutral)、wuxia(ink-brush + action)、shoujo(manga + romantic)
|
||||
|
||||
---
|
||||
|
||||
### 文章插图生成器
|
||||
|
||||
智能文章插图技能,采用类型 × 风格二维系统。分析文章结构,识别需要视觉辅助的位置,生成插图。
|
||||
|
||||
```bash
|
||||
# 根据内容自动选择类型和风格
|
||||
/baoyu-article-illustrator path/to/article.md
|
||||
|
||||
# 指定类型
|
||||
/baoyu-article-illustrator path/to/article.md --type infographic
|
||||
|
||||
# 指定风格
|
||||
/baoyu-article-illustrator path/to/article.md --style blueprint
|
||||
```
|
||||
|
||||
**类型(信息结构)**:infographic、scene、flowchart、comparison、framework、timeline
|
||||
|
||||
**风格(视觉美学)**:notion(默认)、elegant、warm、minimal、blueprint、watercolor、editorial、scientific
|
||||
|
||||
---
|
||||
|
||||
### 发布到 X
|
||||
|
||||
发布内容和文章到 X (Twitter)。支持带图片的普通帖子和 X 文章(长篇 Markdown)。
|
||||
|
||||
```bash
|
||||
# 发布文字
|
||||
/baoyu-post-to-x "Hello from Claude Code!"
|
||||
|
||||
# 发布带图片
|
||||
/baoyu-post-to-x "看看这个" --image photo.png
|
||||
|
||||
# 发布 X 文章
|
||||
/baoyu-post-to-x --article path/to/article.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 发布到微信公众号
|
||||
|
||||
支持两种模式:贴图模式和文章模式。
|
||||
|
||||
```bash
|
||||
# 贴图模式 - 多图配短标题和正文
|
||||
/baoyu-post-to-wechat 贴图 --markdown article.md --images ./photos/
|
||||
|
||||
# 文章模式 - 完整 markdown/HTML 富文本格式
|
||||
/baoyu-post-to-wechat 文章 --markdown article.md
|
||||
/baoyu-post-to-wechat 文章 --markdown article.md --theme grace
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 发布到微博
|
||||
|
||||
```bash
|
||||
# 发布文字
|
||||
/baoyu-post-to-weibo "Hello Weibo!"
|
||||
|
||||
# 发布带图片
|
||||
/baoyu-post-to-weibo "看看这个" --image photo.png
|
||||
|
||||
# 发布带视频
|
||||
/baoyu-post-to-weibo "看这个" --video clip.mp4
|
||||
|
||||
# 头条文章 - 长篇 Markdown 文章
|
||||
/baoyu-post-to-weibo --article article.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## AI 生成技能
|
||||
|
||||
### 图像生成后端
|
||||
|
||||
基于 AI SDK 的图像生成,支持 OpenAI、Azure OpenAI、Google、OpenRouter、DashScope(阿里通义万相)、MiniMax、即梦(Jimeng)、豆包(Seedream)和 Replicate API。
|
||||
|
||||
```bash
|
||||
# 基础生成(自动检测服务商)
|
||||
/baoyu-imagine --prompt "一只可爱的猫" --image cat.png
|
||||
|
||||
# 指定服务商
|
||||
/baoyu-imagine --prompt "一只猫" --image cat.png --provider openai
|
||||
|
||||
# MiniMax
|
||||
/baoyu-imagine --prompt "A fashion editorial portrait" --image out.jpg --provider minimax
|
||||
|
||||
# 带参考图
|
||||
/baoyu-imagine --prompt "把它变成蓝色" --image out.png --ref source.png
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Gemini Web 交互
|
||||
|
||||
与 Gemini Web 交互,生成文本和图片。
|
||||
|
||||
```bash
|
||||
# 文本生成
|
||||
/baoyu-danger-gemini-web "你好,Gemini"
|
||||
|
||||
/# 图片生成
|
||||
/baoyu-danger-gemini-web --prompt "一只可爱的猫" --image cat.png
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 工具技能
|
||||
|
||||
### YouTube 字幕下载
|
||||
|
||||
下载 YouTube 视频字幕/转录文本和封面图片。
|
||||
|
||||
```bash
|
||||
# 默认:带时间戳的 Markdown
|
||||
/baoyu-youtube-transcript https://www.youtube.com/watch?v=VIDEO_ID
|
||||
|
||||
# 指定语言
|
||||
/baoyu-youtube-transcript https://youtu.be/VIDEO_ID --languages zh,en,ja
|
||||
|
||||
# 章节分段 + 说话人识别
|
||||
/baoyu-youtube-transcript https://youtu.be/VIDEO_ID --chapters --speakers
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### URL 转 Markdown
|
||||
|
||||
通过 Chrome CDP 抓取任意 URL 并转换为 Markdown。
|
||||
|
||||
```bash
|
||||
# 自动模式
|
||||
/baoyu-url-to-markdown https://example.com/article
|
||||
|
||||
# 保存到指定文件
|
||||
/baoyu-url-to-markdown https://example.com/article -o output.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### X 内容转 Markdown
|
||||
|
||||
将 X (Twitter) 内容转换为 markdown 格式。
|
||||
|
||||
```bash
|
||||
# 将推文转换为 markdown
|
||||
/baoyu-danger-x-to-markdown https://x.com/username/status/123456
|
||||
|
||||
# 保存到指定文件
|
||||
/baoyu-danger-x-to-markdown https://x.com/username/status/123456 -o output.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 图片压缩
|
||||
|
||||
压缩图片以减小文件大小,同时保持质量。
|
||||
|
||||
```bash
|
||||
/baoyu-compress-image path/to/image.png
|
||||
/baoyu-compress-image path/to/images/ --quality 80
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Markdown 格式化
|
||||
|
||||
格式化纯文本或 Markdown 文件,添加 frontmatter、标题、摘要等。
|
||||
|
||||
```bash
|
||||
/baoyu-format-markdown path/to/article.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Markdown 转 HTML
|
||||
|
||||
将 Markdown 文件转换为样式化 HTML,支持微信公众号兼容主题。
|
||||
|
||||
```bash
|
||||
# 基础转换
|
||||
/baoyu-markdown-to-html article.md
|
||||
|
||||
# 主题 + 颜色
|
||||
/baoyu-markdown-to-html article.md --theme grace --color red
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 翻译技能
|
||||
|
||||
三模式翻译技能:快速(直接翻译)、标准(分析后翻译)、精翻(完整出版级工作流)。
|
||||
|
||||
```bash
|
||||
# 标准模式(默认)- 先分析再翻译
|
||||
/translate article.md --to zh-CN
|
||||
|
||||
# 快速模式 - 直接翻译
|
||||
/translate article.md --mode quick --to ja
|
||||
|
||||
# 精翻模式 - 完整工作流
|
||||
/translate article.md --mode refined --to zh-CN
|
||||
```
|
||||
|
||||
**受众预设**:general(默认)、technical、academic、business
|
||||
|
||||
**风格预设**:storytelling(默认)、formal、technical、literal、academic、business、humorous、conversational、elegant
|
||||
|
||||
---
|
||||
|
||||
## 环境配置
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.baoyu-skills
|
||||
cat > ~/.baoyu-skills/.env << 'EOF'
|
||||
# OpenAI
|
||||
OPENAI_API_KEY=sk-xxx
|
||||
|
||||
# Google
|
||||
GOOGLE_API_KEY=xxx
|
||||
|
||||
# DashScope(阿里通义万相)
|
||||
DASHSCOPE_API_KEY=sk-xxx
|
||||
|
||||
# MiniMax
|
||||
MINIMAX_API_KEY=xxx
|
||||
|
||||
# OpenRouter
|
||||
OPENROUTER_API_KEY=sk-or-xxx
|
||||
EOF
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 扩展技能
|
||||
|
||||
所有技能支持通过 EXTEND.md 文件自定义:
|
||||
|
||||
```bash
|
||||
mkdir -p .baoyu-skills/baoyu-cover-image
|
||||
# 创建 .baoyu-skills/baoyu-cover-image/EXTEND.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
> MIT License
|
||||
Reference in New Issue
Block a user