diff --git a/skills/baoyu-article-illustrator/SKILL.md b/skills/baoyu-article-illustrator/SKILL.md index 74957c2..cd34254 100644 --- a/skills/baoyu-article-illustrator/SKILL.md +++ b/skills/baoyu-article-illustrator/SKILL.md @@ -1,6 +1,10 @@ --- name: baoyu-article-illustrator description: Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style two-dimension approach. Use when user asks to "illustrate article", "add images", "generate images for article", or "为文章配图". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-article-illustrator --- # Article Illustrator diff --git a/skills/baoyu-compress-image/SKILL.md b/skills/baoyu-compress-image/SKILL.md index bdd664c..e5bd91c 100644 --- a/skills/baoyu-compress-image/SKILL.md +++ b/skills/baoyu-compress-image/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-compress-image description: Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-compress-image + requires: + anyBins: + - bun + - npx --- # Image Compressor @@ -9,7 +17,7 @@ Compresses images using best available tool (sips → cwebp → ImageMagick → ## Script Directory -Scripts in `scripts/` subdirectory. `${SKILL_DIR}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `${SKILL_DIR}` and `${BUN_X}` with actual values. +Scripts in `scripts/` subdirectory. `{baseDir}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values. | Script | Purpose | |--------|---------| @@ -52,7 +60,7 @@ if (Test-Path "$HOME/.baoyu-skills/baoyu-compress-image/EXTEND.md") { "user" } ## Usage ```bash -${BUN_X} ${SKILL_DIR}/scripts/main.ts [options] +${BUN_X} {baseDir}/scripts/main.ts [options] ``` ## Options @@ -71,16 +79,16 @@ ${BUN_X} ${SKILL_DIR}/scripts/main.ts [options] ```bash # Single file → WebP (replaces original) -${BUN_X} ${SKILL_DIR}/scripts/main.ts image.png +${BUN_X} {baseDir}/scripts/main.ts image.png # Keep PNG format -${BUN_X} ${SKILL_DIR}/scripts/main.ts image.png -f png --keep +${BUN_X} {baseDir}/scripts/main.ts image.png -f png --keep # Directory recursive -${BUN_X} ${SKILL_DIR}/scripts/main.ts ./images/ -r -q 75 +${BUN_X} {baseDir}/scripts/main.ts ./images/ -r -q 75 # JSON output -${BUN_X} ${SKILL_DIR}/scripts/main.ts image.png --json +${BUN_X} {baseDir}/scripts/main.ts image.png --json ``` **Output**: diff --git a/skills/baoyu-cover-image/SKILL.md b/skills/baoyu-cover-image/SKILL.md index c911665..e0cbf01 100644 --- a/skills/baoyu-cover-image/SKILL.md +++ b/skills/baoyu-cover-image/SKILL.md @@ -1,6 +1,10 @@ --- name: baoyu-cover-image description: Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 10 color palettes and 7 rendering styles. Supports cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Use when user asks to "generate cover image", "create article cover", or "make cover". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-cover-image --- # Cover Image Generator diff --git a/skills/baoyu-format-markdown/SKILL.md b/skills/baoyu-format-markdown/SKILL.md index 118fa3f..09873ec 100644 --- a/skills/baoyu-format-markdown/SKILL.md +++ b/skills/baoyu-format-markdown/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-format-markdown description: Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "beautify article", "add formatting", or improve article layout. Outputs to {filename}-formatted.md. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-format-markdown + requires: + anyBins: + - bun + - npx --- # Markdown Formatter @@ -11,7 +19,7 @@ Transforms plain text or markdown into well-structured, reader-friendly markdown ## Script Directory -Scripts in `scripts/` subdirectory. `${SKILL_DIR}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `${SKILL_DIR}` and `${BUN_X}` with actual values. +Scripts in `scripts/` subdirectory. `{baseDir}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values. | Script | Purpose | |--------|---------| @@ -296,7 +304,7 @@ fi Run the formatting script on the output file: ```bash -${BUN_X} ${SKILL_DIR}/scripts/main.ts {output-file-path} [options] +${BUN_X} {baseDir}/scripts/main.ts {output-file-path} [options] ``` **Script Options:** @@ -314,13 +322,13 @@ ${BUN_X} ${SKILL_DIR}/scripts/main.ts {output-file-path} [options] ```bash # Default: spacing + emphasis enabled, quotes disabled -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md +${BUN_X} {baseDir}/scripts/main.ts article.md # Enable all features including quote replacement -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --quotes +${BUN_X} {baseDir}/scripts/main.ts article.md --quotes # Only fix emphasis issues, skip spacing -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --no-spacing +${BUN_X} {baseDir}/scripts/main.ts article.md --no-spacing ``` **Script performs (based on options):** diff --git a/skills/baoyu-image-gen/SKILL.md b/skills/baoyu-image-gen/SKILL.md index 9e79bc8..1400692 100644 --- a/skills/baoyu-image-gen/SKILL.md +++ b/skills/baoyu-image-gen/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-image-gen description: AI image generation with OpenAI, Google, DashScope and Replicate APIs. Supports text-to-image, reference images, aspect ratios. Sequential by default; parallel generation available on request. Use when user asks to generate, create, or draw images. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-image-gen + requires: + anyBins: + - bun + - npx --- # Image Generation (AI SDK) @@ -10,8 +18,8 @@ Official API-based image generation. Supports OpenAI, Google, DashScope (阿里 ## Script Directory **Agent Execution**: -1. `SKILL_DIR` = this SKILL.md file's directory -2. Script path = `${SKILL_DIR}/scripts/main.ts` +1. `{baseDir}` = this SKILL.md file's directory +2. Script path = `{baseDir}/scripts/main.ts` 3. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun ## Step 0: Load Preferences ⛔ BLOCKING @@ -52,34 +60,34 @@ Schema: `references/config/preferences-schema.md` ```bash # Basic -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image cat.png +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image cat.png # With aspect ratio -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A landscape" --image out.png --ar 16:9 +${BUN_X} {baseDir}/scripts/main.ts --prompt "A landscape" --image out.png --ar 16:9 # High quality -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image out.png --quality 2k +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --quality 2k # From prompt files -${BUN_X} ${SKILL_DIR}/scripts/main.ts --promptfiles system.md content.md --image out.png +${BUN_X} {baseDir}/scripts/main.ts --promptfiles system.md content.md --image out.png # With reference images (Google multimodal or OpenAI edits) -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "Make blue" --image out.png --ref source.png +${BUN_X} {baseDir}/scripts/main.ts --prompt "Make blue" --image out.png --ref source.png # With reference images (explicit provider/model) -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "Make blue" --image out.png --provider google --model gemini-3-pro-image-preview --ref source.png +${BUN_X} {baseDir}/scripts/main.ts --prompt "Make blue" --image out.png --provider google --model gemini-3-pro-image-preview --ref source.png # Specific provider -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image out.png --provider openai +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider openai # DashScope (阿里通义万象) -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "一只可爱的猫" --image out.png --provider dashscope +${BUN_X} {baseDir}/scripts/main.ts --prompt "一只可爱的猫" --image out.png --provider dashscope # Replicate (google/nano-banana-pro) -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate # Replicate with specific model -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate --model google/nano-banana +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate --model google/nano-banana ``` ## Options @@ -144,10 +152,10 @@ Examples: ```bash # Use Replicate default model -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate # Override model explicitly -${BUN_X} ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate --model google/nano-banana +${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate --model google/nano-banana ``` ## Provider Selection diff --git a/skills/baoyu-infographic/SKILL.md b/skills/baoyu-infographic/SKILL.md index eba7326..4b6a44d 100644 --- a/skills/baoyu-infographic/SKILL.md +++ b/skills/baoyu-infographic/SKILL.md @@ -1,6 +1,10 @@ --- name: baoyu-infographic description: Generates professional infographics with 21 layout types and 20 visual styles. Analyzes content, recommends layout×style combinations, and generates publication-ready infographics. Use when user asks to create "infographic", "信息图", "visual summary", "可视化", or "高密度信息大图". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-infographic --- # Infographic Generator diff --git a/skills/baoyu-markdown-to-html/SKILL.md b/skills/baoyu-markdown-to-html/SKILL.md index ddfffa1..22e5f50 100644 --- a/skills/baoyu-markdown-to-html/SKILL.md +++ b/skills/baoyu-markdown-to-html/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-markdown-to-html description: Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, infographics, and optional bottom citations for external links. Use when user asks for "markdown to html", "convert md to html", "md转html", "微信外链转底部引用", or needs styled HTML output from markdown. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-markdown-to-html + requires: + anyBins: + - bun + - npx --- # Markdown to HTML Converter @@ -9,7 +17,7 @@ Converts Markdown files to beautifully styled HTML with inline CSS, optimized fo ## Script Directory -**Agent Execution**: Determine this SKILL.md directory as `SKILL_DIR`. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `${SKILL_DIR}` and `${BUN_X}` with actual values. +**Agent Execution**: Determine this SKILL.md directory as `{baseDir}`. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values. | Script | Purpose | |--------|---------| @@ -117,7 +125,7 @@ if (Test-Path "$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md") { Select-Str ### Step 2: Convert ```bash -${BUN_X} ${SKILL_DIR}/scripts/main.ts --theme [--cite] +${BUN_X} {baseDir}/scripts/main.ts --theme [--cite] ``` ### Step 3: Report Result @@ -127,7 +135,7 @@ Display the output path from JSON result. If backup was created, mention it. ## Usage ```bash -${BUN_X} ${SKILL_DIR}/scripts/main.ts [options] +${BUN_X} {baseDir}/scripts/main.ts [options] ``` **Options:** @@ -165,22 +173,22 @@ ${BUN_X} ${SKILL_DIR}/scripts/main.ts [options] ```bash # Basic conversion (uses default theme, removes first heading) -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md +${BUN_X} {baseDir}/scripts/main.ts article.md # With specific theme -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --theme grace +${BUN_X} {baseDir}/scripts/main.ts article.md --theme grace # Theme with custom color -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --theme modern --color red +${BUN_X} {baseDir}/scripts/main.ts article.md --theme modern --color red # Enable bottom citations for ordinary external links -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --cite +${BUN_X} {baseDir}/scripts/main.ts article.md --cite # Keep the first heading in content -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --keep-title +${BUN_X} {baseDir}/scripts/main.ts article.md --keep-title # Override title -${BUN_X} ${SKILL_DIR}/scripts/main.ts article.md --title "My Article" +${BUN_X} {baseDir}/scripts/main.ts article.md --title "My Article" ``` ## Output diff --git a/skills/baoyu-post-to-wechat/SKILL.md b/skills/baoyu-post-to-wechat/SKILL.md index 83981d3..44cb7c1 100644 --- a/skills/baoyu-post-to-wechat/SKILL.md +++ b/skills/baoyu-post-to-wechat/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-post-to-wechat description: Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图, formerly 图文) with multiple images. Markdown article workflows default to converting ordinary external links into bottom citations for WeChat-friendly output. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-post-to-wechat + requires: + anyBins: + - bun + - npx --- # Post to WeChat Official Account @@ -11,7 +19,7 @@ description: Posts content to WeChat Official Account (微信公众号) via API ## Script Directory -**Agent Execution**: Determine this SKILL.md directory as `SKILL_DIR`, then use `${SKILL_DIR}/scripts/.ts`. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. +**Agent Execution**: Determine this SKILL.md directory as `{baseDir}`, then use `{baseDir}/scripts/.ts`. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. | Script | Purpose | |--------|---------| @@ -92,7 +100,7 @@ chrome_profile_path: /path/to/chrome/profile Before first use, suggest running the environment check. User can skip if they prefer. ```bash -${BUN_X} ${SKILL_DIR}/scripts/check-permissions.ts +${BUN_X} {baseDir}/scripts/check-permissions.ts ``` Checks: Chrome, profile isolation, Bun, Accessibility, clipboard, paste keystroke, API credentials, Chrome conflicts. @@ -115,8 +123,8 @@ Checks: Chrome, profile isolation, Bun, Accessibility, clipboard, paste keystrok For short posts with multiple images (up to 9): ```bash -${BUN_X} ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/ -${BUN_X} ${SKILL_DIR}/scripts/wechat-browser.ts --title "标题" --content "内容" --image img.png --submit +${BUN_X} {baseDir}/scripts/wechat-browser.ts --markdown article.md --images ./images/ +${BUN_X} {baseDir}/scripts/wechat-browser.ts --title "标题" --content "内容" --image img.png --submit ``` See [references/image-text-posting.md](references/image-text-posting.md) for details. @@ -260,7 +268,7 @@ WECHAT_APP_SECRET= **API method** (accepts `.md` or `.html`): ```bash -${BUN_X} ${SKILL_DIR}/scripts/wechat-api.ts --theme [--color ] [--title ] [--summary <summary>] [--author <author>] [--cover <cover_path>] [--no-cite] +${BUN_X} {baseDir}/scripts/wechat-api.ts <file> --theme <theme> [--color <color>] [--title <title>] [--summary <summary>] [--author <author>] [--cover <cover_path>] [--no-cite] ``` **CRITICAL**: Always include `--theme` parameter. Never omit it, even if using `default`. Only include `--color` if explicitly set by user or EXTEND.md. @@ -279,8 +287,8 @@ If script parameters do not expose the two comment fields, still ensure final AP **Browser method** (accepts `--markdown` or `--html`): ```bash -${BUN_X} ${SKILL_DIR}/scripts/wechat-article.ts --markdown <markdown_file> --theme <theme> [--color <color>] [--no-cite] -${BUN_X} ${SKILL_DIR}/scripts/wechat-article.ts --html <html_file> +${BUN_X} {baseDir}/scripts/wechat-article.ts --markdown <markdown_file> --theme <theme> [--color <color>] [--no-cite] +${BUN_X} {baseDir}/scripts/wechat-article.ts --html <html_file> ``` ### Step 5: Completion Report diff --git a/skills/baoyu-post-to-weibo/SKILL.md b/skills/baoyu-post-to-weibo/SKILL.md index fd53d7d..772e846 100644 --- a/skills/baoyu-post-to-weibo/SKILL.md +++ b/skills/baoyu-post-to-weibo/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-post-to-weibo description: Posts content to Weibo (微博). Supports regular posts with text, images, and videos, and headline articles (头条文章) with Markdown input via Chrome CDP. Use when user asks to "post to Weibo", "发微博", "发布微博", "publish to Weibo", "share on Weibo", "写微博", or "微博头条文章". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-post-to-weibo + requires: + anyBins: + - bun + - npx --- # Post to Weibo @@ -12,9 +20,9 @@ Posts text, images, videos, and long-form articles to Weibo via real Chrome brow **Important**: All scripts are located in the `scripts/` subdirectory of this skill. **Agent Execution Instructions**: -1. Determine this SKILL.md file's directory path as `SKILL_DIR` -2. Script path = `${SKILL_DIR}/scripts/<script-name>.ts` -3. Replace all `${SKILL_DIR}` in this document with the actual path +1. Determine this SKILL.md file's directory path as `{baseDir}` +2. Script path = `{baseDir}/scripts/<script-name>.ts` +3. Replace all `{baseDir}` in this document with the actual path 4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun **Script Reference**: @@ -72,8 +80,8 @@ if (Test-Path "$HOME/.baoyu-skills/baoyu-post-to-weibo/EXTEND.md") { "user" } Text + images/videos (max 18 files total). Posted on Weibo homepage. ```bash -${BUN_X} ${SKILL_DIR}/scripts/weibo-post.ts "Hello Weibo!" --image ./photo.png -${BUN_X} ${SKILL_DIR}/scripts/weibo-post.ts "Watch this" --video ./clip.mp4 +${BUN_X} {baseDir}/scripts/weibo-post.ts "Hello Weibo!" --image ./photo.png +${BUN_X} {baseDir}/scripts/weibo-post.ts "Watch this" --video ./clip.mp4 ``` **Parameters**: @@ -93,8 +101,8 @@ ${BUN_X} ${SKILL_DIR}/scripts/weibo-post.ts "Watch this" --video ./clip.mp4 Long-form Markdown articles published at `https://card.weibo.com/article/v3/editor`. ```bash -${BUN_X} ${SKILL_DIR}/scripts/weibo-article.ts article.md -${BUN_X} ${SKILL_DIR}/scripts/weibo-article.ts article.md --cover ./cover.jpg +${BUN_X} {baseDir}/scripts/weibo-article.ts article.md +${BUN_X} {baseDir}/scripts/weibo-article.ts article.md --cover ./cover.jpg ``` **Parameters**: diff --git a/skills/baoyu-post-to-x/SKILL.md b/skills/baoyu-post-to-x/SKILL.md index 32b6c3d..19d54c5 100644 --- a/skills/baoyu-post-to-x/SKILL.md +++ b/skills/baoyu-post-to-x/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-post-to-x description: Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). Uses real Chrome with CDP to bypass anti-automation. Use when user asks to "post to X", "tweet", "publish to Twitter", or "share on X". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-post-to-x + requires: + anyBins: + - bun + - npx --- # Post to X (Twitter) @@ -12,9 +20,9 @@ Posts text, images, videos, and long-form articles to X via real Chrome browser **Important**: All scripts are located in the `scripts/` subdirectory of this skill. **Agent Execution Instructions**: -1. Determine this SKILL.md file's directory path as `SKILL_DIR` -2. Script path = `${SKILL_DIR}/scripts/<script-name>.ts` -3. Replace all `${SKILL_DIR}` in this document with the actual path +1. Determine this SKILL.md file's directory path as `{baseDir}` +2. Script path = `{baseDir}/scripts/<script-name>.ts` +3. Replace all `{baseDir}` in this document with the actual path 4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun **Script Reference**: @@ -74,7 +82,7 @@ if (Test-Path "$HOME/.baoyu-skills/baoyu-post-to-x/EXTEND.md") { "user" } Before first use, suggest running the environment check. User can skip if they prefer. ```bash -${BUN_X} ${SKILL_DIR}/scripts/check-paste-permissions.ts +${BUN_X} {baseDir}/scripts/check-paste-permissions.ts ``` Checks: Chrome, profile isolation, Bun, Accessibility, clipboard, paste keystroke, Chrome conflicts. @@ -107,7 +115,7 @@ Unless the user explicitly specifies the post type: ## Regular Posts ```bash -${BUN_X} ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png +${BUN_X} {baseDir}/scripts/x-browser.ts "Hello!" --image ./photo.png ``` **Parameters**: @@ -126,7 +134,7 @@ ${BUN_X} ${SKILL_DIR}/scripts/x-browser.ts "Hello!" --image ./photo.png Text + video file. ```bash -${BUN_X} ${SKILL_DIR}/scripts/x-video.ts "Check this out!" --video ./clip.mp4 +${BUN_X} {baseDir}/scripts/x-video.ts "Check this out!" --video ./clip.mp4 ``` **Parameters**: @@ -147,7 +155,7 @@ ${BUN_X} ${SKILL_DIR}/scripts/x-video.ts "Check this out!" --video ./clip.mp4 Quote an existing tweet with comment. ```bash -${BUN_X} ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "Great insight!" +${BUN_X} {baseDir}/scripts/x-quote.ts https://x.com/user/status/123 "Great insight!" ``` **Parameters**: @@ -166,8 +174,8 @@ ${BUN_X} ${SKILL_DIR}/scripts/x-quote.ts https://x.com/user/status/123 "Great in Long-form Markdown articles (requires X Premium). ```bash -${BUN_X} ${SKILL_DIR}/scripts/x-article.ts article.md -${BUN_X} ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg +${BUN_X} {baseDir}/scripts/x-article.ts article.md +${BUN_X} {baseDir}/scripts/x-article.ts article.md --cover ./cover.jpg ``` **Parameters**: diff --git a/skills/baoyu-post-to-x/references/articles.md b/skills/baoyu-post-to-x/references/articles.md index a0f0d66..52601c5 100644 --- a/skills/baoyu-post-to-x/references/articles.md +++ b/skills/baoyu-post-to-x/references/articles.md @@ -12,13 +12,13 @@ Publish Markdown articles to X Articles editor with rich text formatting and ima ```bash # Publish markdown article (preview mode) -${BUN_X} ${SKILL_DIR}/scripts/x-article.ts article.md +${BUN_X} {baseDir}/scripts/x-article.ts article.md # With custom cover image -${BUN_X} ${SKILL_DIR}/scripts/x-article.ts article.md --cover ./cover.jpg +${BUN_X} {baseDir}/scripts/x-article.ts article.md --cover ./cover.jpg # Actually publish -${BUN_X} ${SKILL_DIR}/scripts/x-article.ts article.md --submit +${BUN_X} {baseDir}/scripts/x-article.ts article.md --submit ``` ## Markdown Format @@ -76,13 +76,13 @@ Convert markdown and inspect structure: ```bash # Get JSON with all metadata -${BUN_X} ${SKILL_DIR}/scripts/md-to-html.ts article.md +${BUN_X} {baseDir}/scripts/md-to-html.ts article.md # Output HTML only -${BUN_X} ${SKILL_DIR}/scripts/md-to-html.ts article.md --html-only +${BUN_X} {baseDir}/scripts/md-to-html.ts article.md --html-only # Save HTML to file -${BUN_X} ${SKILL_DIR}/scripts/md-to-html.ts article.md --save-html /tmp/article.html +${BUN_X} {baseDir}/scripts/md-to-html.ts article.md --save-html /tmp/article.html ``` JSON output: @@ -161,7 +161,7 @@ Claude: - **No create button**: Ensure X Premium subscription is active - **Cover upload fails**: Check file path and format (PNG, JPEG) - **Images not inserting**: Verify placeholders exist in pasted content -- **Content not pasting**: Check HTML clipboard: `${BUN_X} ${SKILL_DIR}/scripts/copy-to-clipboard.ts html --file /tmp/test.html` +- **Content not pasting**: Check HTML clipboard: `${BUN_X} {baseDir}/scripts/copy-to-clipboard.ts html --file /tmp/test.html` ## How It Works diff --git a/skills/baoyu-post-to-x/references/regular-posts.md b/skills/baoyu-post-to-x/references/regular-posts.md index 01eedd9..3edbedf 100644 --- a/skills/baoyu-post-to-x/references/regular-posts.md +++ b/skills/baoyu-post-to-x/references/regular-posts.md @@ -9,20 +9,20 @@ If you prefer step-by-step control: ### Step 1: Copy Image to Clipboard ```bash -${BUN_X} ${SKILL_DIR}/scripts/copy-to-clipboard.ts image /path/to/image.png +${BUN_X} {baseDir}/scripts/copy-to-clipboard.ts image /path/to/image.png ``` ### Step 2: Paste from Clipboard ```bash # Simple paste to frontmost app -${BUN_X} ${SKILL_DIR}/scripts/paste-from-clipboard.ts +${BUN_X} {baseDir}/scripts/paste-from-clipboard.ts # Paste to Chrome with retries -${BUN_X} ${SKILL_DIR}/scripts/paste-from-clipboard.ts --app "Google Chrome" --retries 5 +${BUN_X} {baseDir}/scripts/paste-from-clipboard.ts --app "Google Chrome" --retries 5 # Quick paste with shorter delay -${BUN_X} ${SKILL_DIR}/scripts/paste-from-clipboard.ts --delay 200 +${BUN_X} {baseDir}/scripts/paste-from-clipboard.ts --delay 200 ``` ### Step 3: Use Playwright MCP (if Chrome session available) @@ -59,7 +59,7 @@ mcp__playwright__browser_take_screenshot filename="preview.png" User: /post-to-x "Hello from Claude!" --image ./screenshot.png Claude: -1. Runs: ${BUN_X} ${SKILL_DIR}/scripts/x-browser.ts "Hello from Claude!" --image ./screenshot.png +1. Runs: ${BUN_X} {baseDir}/scripts/x-browser.ts "Hello from Claude!" --image ./screenshot.png 2. Chrome opens with X compose page 3. Text is typed into editor 4. Image is copied to clipboard and pasted @@ -72,7 +72,7 @@ Claude: - **Chrome not found**: Set `X_BROWSER_CHROME_PATH` environment variable - **Not logged in**: First run opens Chrome - log in manually, cookies are saved - **Image paste fails**: - - Verify clipboard script: `${BUN_X} ${SKILL_DIR}/scripts/copy-to-clipboard.ts image <path>` + - Verify clipboard script: `${BUN_X} {baseDir}/scripts/copy-to-clipboard.ts image <path>` - On macOS, grant "Accessibility" permission to Terminal/iTerm in System Settings > Privacy & Security > Accessibility - Keep Chrome window visible and in front during paste operations - **osascript permission denied**: Grant Terminal accessibility permissions in System Preferences diff --git a/skills/baoyu-slide-deck/SKILL.md b/skills/baoyu-slide-deck/SKILL.md index fc1f623..7bb8154 100644 --- a/skills/baoyu-slide-deck/SKILL.md +++ b/skills/baoyu-slide-deck/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-slide-deck description: Generates professional slide deck images from content. Creates outlines with style instructions, then generates individual slide images. Use when user asks to "create slides", "make a presentation", "generate deck", "slide deck", or "PPT". +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-slide-deck + requires: + anyBins: + - bun + - npx --- # Slide Deck Generator @@ -22,8 +30,8 @@ Transform content into professional slide deck images. ## Script Directory **Agent Execution Instructions**: -1. Determine this SKILL.md file's directory path as `SKILL_DIR` -2. Script path = `${SKILL_DIR}/scripts/<script-name>.ts` +1. Determine this SKILL.md file's directory path as `{baseDir}` +2. Script path = `{baseDir}/scripts/<script-name>.ts` 3. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun | Script | Purpose | @@ -555,8 +563,8 @@ options: ### Step 8: Merge to PPTX and PDF ```bash -${BUN_X} ${SKILL_DIR}/scripts/merge-to-pptx.ts <slide-deck-dir> -${BUN_X} ${SKILL_DIR}/scripts/merge-to-pdf.ts <slide-deck-dir> +${BUN_X} {baseDir}/scripts/merge-to-pptx.ts <slide-deck-dir> +${BUN_X} {baseDir}/scripts/merge-to-pdf.ts <slide-deck-dir> ``` ### Step 9: Output Summary diff --git a/skills/baoyu-translate/SKILL.md b/skills/baoyu-translate/SKILL.md index 069423b..36825bf 100644 --- a/skills/baoyu-translate/SKILL.md +++ b/skills/baoyu-translate/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-translate description: Translates articles and documents between languages with three modes - quick (direct), normal (analyze then translate), and refined (analyze, translate, review, polish). Supports custom glossaries and terminology consistency via EXTEND.md. Use when user asks to "translate", "翻译", "精翻", "translate article", "translate to Chinese/English", "改成中文", "改成英文", "convert to Chinese", "localize", "本地化", or needs any document translation. Also triggers for "refined translation", "精细翻译", "proofread translation", "快速翻译", "快翻", "这篇文章翻译一下", or when a URL or file is provided with translation intent. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-translate + requires: + anyBins: + - bun + - npx --- # Translator @@ -9,7 +17,7 @@ Three-mode translation skill: **quick** for direct translation, **normal** for a ## Script Directory -Scripts in `scripts/` subdirectory. `${SKILL_DIR}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `${SKILL_DIR}` and `${BUN_X}` with actual values. +Scripts in `scripts/` subdirectory. `{baseDir}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values. | Script | Purpose | |--------|---------| @@ -172,7 +180,7 @@ Before translating chunks: 1. **Extract terminology**: Scan entire document for proper nouns, technical terms, recurring phrases 2. **Build session glossary**: Merge extracted terms with loaded glossaries, establish consistent translations -3. **Split into chunks**: Use `${BUN_X} ${SKILL_DIR}/scripts/chunk.ts <file> [--max-words <chunk_max_words>] [--output-dir <output-dir>]` +3. **Split into chunks**: Use `${BUN_X} {baseDir}/scripts/chunk.ts <file> [--max-words <chunk_max_words>] [--output-dir <output-dir>]` - Parses markdown AST (headings, paragraphs, lists, code blocks, tables, etc.) - Splits at markdown block boundaries to preserve structure - If a single block exceeds the threshold, falls back to line splitting, then word splitting diff --git a/skills/baoyu-url-to-markdown/SKILL.md b/skills/baoyu-url-to-markdown/SKILL.md index 7b3d72d..abbca55 100644 --- a/skills/baoyu-url-to-markdown/SKILL.md +++ b/skills/baoyu-url-to-markdown/SKILL.md @@ -1,6 +1,14 @@ --- name: baoyu-url-to-markdown description: Fetch any URL and convert to markdown using Chrome CDP. Saves the rendered HTML snapshot alongside the markdown, and automatically falls back to the pre-Defuddle HTML-to-Markdown pipeline when Defuddle fails. Supports two modes - auto-capture on page load, or wait for user signal (for pages requiring login). Use when user wants to save a webpage as markdown. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-url-to-markdown + requires: + anyBins: + - bun + - npx --- # URL to Markdown @@ -12,10 +20,10 @@ Fetches any URL via Chrome CDP, saves the rendered HTML snapshot, and converts i **Important**: All scripts are located in the `scripts/` subdirectory of this skill. **Agent Execution Instructions**: -1. Determine this SKILL.md file's directory path as `SKILL_DIR` -2. Script path = `${SKILL_DIR}/scripts/<script-name>.ts` +1. Determine this SKILL.md file's directory path as `{baseDir}` +2. Script path = `{baseDir}/scripts/<script-name>.ts` 3. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun -4. Replace all `${SKILL_DIR}` and `${BUN_X}` in this document with actual values +4. Replace all `{baseDir}` and `${BUN_X}` in this document with actual values **Script Reference**: | Script | Purpose | @@ -112,19 +120,19 @@ Full reference: [references/config/first-time-setup.md](references/config/first- ```bash # Auto mode (default) - capture when page loads -${BUN_X} ${SKILL_DIR}/scripts/main.ts <url> +${BUN_X} {baseDir}/scripts/main.ts <url> # Wait mode - wait for user signal before capture -${BUN_X} ${SKILL_DIR}/scripts/main.ts <url> --wait +${BUN_X} {baseDir}/scripts/main.ts <url> --wait # Save to specific file -${BUN_X} ${SKILL_DIR}/scripts/main.ts <url> -o output.md +${BUN_X} {baseDir}/scripts/main.ts <url> -o output.md # Save to a custom output directory (auto-generates filename) -${BUN_X} ${SKILL_DIR}/scripts/main.ts <url> --output-dir ./posts/ +${BUN_X} {baseDir}/scripts/main.ts <url> --output-dir ./posts/ # Download images and videos to local directories -${BUN_X} ${SKILL_DIR}/scripts/main.ts <url> --download-media +${BUN_X} {baseDir}/scripts/main.ts <url> --download-media ``` ## Options diff --git a/skills/baoyu-xhs-images/SKILL.md b/skills/baoyu-xhs-images/SKILL.md index e36f868..5e4e5b3 100644 --- a/skills/baoyu-xhs-images/SKILL.md +++ b/skills/baoyu-xhs-images/SKILL.md @@ -1,6 +1,10 @@ --- name: baoyu-xhs-images description: Generates Xiaohongshu (Little Red Book) infographic series with 11 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", or wants social media infographics for Chinese platforms. +version: 1.56.1 +metadata: + openclaw: + homepage: https://github.com/JimLiu/baoyu-skills#baoyu-xhs-images --- # Xiaohongshu Infographic Series Generator diff --git a/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md b/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md index c297853..d418b77 100644 --- a/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md +++ b/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md @@ -213,11 +213,12 @@ When generating multiple images in a series: 1. **Image 1 (cover)**: Generate without `--ref` — this establishes the visual anchor 2. **Images 2+**: Always pass image 1 as `--ref` to the image generation skill: ```bash - ${BUN_X} ${SKILL_DIR}/scripts/main.ts \ + ${BUN_X} <image-skill-baseDir>/scripts/main.ts \ --promptfiles prompts/02-content-xxx.md \ --ref path/to/01-cover-xxx.png \ --image 02-content-xxx.png --ar 3:4 --quality 2k ``` + Replace `<image-skill-baseDir>` with the installed image generation skill directory. This ensures the AI maintains the same character design, illustration style, and color rendering across the series. ### Step 6: Combine