
Qiaomu Skills
- 1 installs
- 14 repo stars
- Updated April 8, 2026
- joeseesun/qiaomu-skills
Discover, install, and manage Qiaomu's collection of 27+ specialized skills for various AI agent workflows.
About
Skill discovery and installation tool for Qiaomu's collection. Provides browsing, installation, and management of specialized skills.
- Catalog of 27+ Qiaomu skills with descriptions and installation commands
- Quick discovery and installation interface
Qiaomu Skills by the numbers
- 1 all-time installs (skills.sh)
- Ranked #644 of 782 Skill Development skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/joeseesun/qiaomu-skills --skill qiaomu-skillsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 14 |
| Last updated | April 8, 2026 |
| Repository | joeseesun/qiaomu-skills ↗ |
What it does
Discover, install, and manage Qiaomu's collection of 27+ specialized skills for various AI agent workflows.
Files
Qiaomu Skills Collection
A comprehensive suite of 19 AI-powered skills designed for content creators, researchers, and productivity enthusiasts.
Quick Start
View all skills:
Tell me about qiaomu skillsInstall specific category:
# Content creation suite (5 skills)
~/.claude/skills/qiaomu-skills/scripts/install.sh content
# Research & learning suite (4 skills)
~/.claude/skills/qiaomu-skills/scripts/install.sh research
# Design & media suite (6 skills)
~/.claude/skills/qiaomu-skills/scripts/install.sh design
# Productivity tools (4 skills)
~/.claude/skills/qiaomu-skills/scripts/install.sh toolsInstall all:
~/.claude/skills/qiaomu-skills/scripts/install.sh allInstall specific skills:
~/.claude/skills/qiaomu-skills/scripts/install.sh qiaomu-writer qiaomu-image-generatorSkills Catalog
📝 Content Creation (5 skills)
| Skill | Description | Triggers |
|---|---|---|
| qiaomu-writer | Full-stack article creation with web search, Qiaomu style, and AI images. Self-improving from your edits. | "联网搜索...写一篇文章", "用乔木风格写", "写文章并配图" |
| qiaomu-content-interpreter | Transform any content into Qiaomu's conversational style with TWO-PASS refinement. | "用乔木风格改写", "转换成对话式" |
| qiaomu-article-team | 10-person AI team for high-quality article creation from links/content. | "创建文章团队", "10人团队写文章" |
| qiaomu-x-article-publisher | Publish Markdown articles to X (Twitter) Articles with cover images. | "publish to X", "发布到 Twitter" |
| qiaomu-word-card | Generate vintage paper-textured word cards / quote posters. | "生成词语卡片", "制作短句卡片" |
🔬 Research & Learning (4 skills)
| Skill | Description | Triggers |
|---|---|---|
| qiaomu-ai-radar | Daily topic assistant - monitors Import AI, Hacker News, Wait But Why, Product Hunt for content ideas. | "检查今天的更新", "抓取最新文章", "推荐选题" |
| qiaomu-paper-interpreter | Transform academic papers into conversational Chinese articles. | "解读论文", "理解paper", "乔木风格解读" |
| qiaomu-libgen-downloader | Search and download ebooks from LibGen.li. | "从libgen下载", "libgen搜索电子书" |
| qiaomu-epub-book-generator | Generate EPUB ebooks from Markdown with image embedding and WeChat Reading compatibility. | "生成epub", "制作电子书" |
🎨 Design & Media (6 skills)
| Skill | Description | Triggers |
|---|---|---|
| qiaomu-image-generator | AI image generation for articles, covers, social media (Seedream API). | "配图", "生成封面", "小红书配图", "公众号封面" |
| qiaomu-mondo-poster-design | Master-level poster/cover design based on 37 legendary designers' styles. | "生成海报", "书籍封面", "专辑封面" |
| qiaomu-info-card-designer | Transform text/URL into magazine-quality HTML info cards with auto-screenshot. | "生成信息卡片", "制作HTML卡片" |
| qiaomu-video-composer | Audio-driven professional video composer with ListenHub subtitle timing and Manim animations. | "创建知识视频", "音频生成视频" |
| qiaomu-design-advisor | Obsessive design consultant - Jobs-style product intuition + Rams-style functional purism. | "设计咨询", "重新设计", "设计评审" |
| qiaomu-music-player-spotify | Spotify music control + 5947 style database. | "播放音乐", "搜索歌曲", "Spotify控制" |
🛠️ Productivity Tools (4 skills)
| Skill | Description | Triggers |
|---|---|---|
| qiaomu-music-player-ncm | NetEase Cloud Music control + 5947 style database. | "网易云播放", "搜索歌曲", "ncm控制" |
| qiaomu-mac-cleaner | Mac disk cleanup tool - diagnose usage, safely clean caches, free space. | "清理电脑", "Mac磁盘清理", "释放空间" |
| qiaomu-markdown-proxy | Fetch any URL as clean Markdown via proxy. | "抓取网页", "转换成Markdown" |
| qiaomu-index-update | Knowledge base index sync - scan directory structure, detect changes, update CLAUDE.md index. | "更新索引", "同步知识库目录" |
Installation Script Features
- Batch installation: Install multiple skills with one command
- Category-based: Install by functional category (content/research/design/tools)
- Dependency check: Verifies
npxandghCLI availability - Progress tracking: Shows installation status for each skill
- Error handling: Continues on failure, reports issues at the end
- Dry-run mode: Preview what will be installed without actually installing
Usage Examples
Explore skills:
User: qiaomu skills 有哪些?
Claude: [Shows categorized catalog with descriptions]Install content creation suite:
User: 安装内容创作相关的 qiaomu skills
Claude: [Runs install.sh content, installs 5 skills]Check what's installed:
User: 我已经安装了哪些 qiaomu skills?
Claude: [Lists installed qiaomu-* skills from ~/.claude/skills/]Install specific skills:
User: 只安装 qiaomu-writer 和 qiaomu-image-generator
Claude: [Runs install.sh with specific skill names]Maintenance
Update all installed skills:
~/.claude/skills/qiaomu-skills/scripts/update.shCheck for new skills:
~/.claude/skills/qiaomu-skills/scripts/check-updates.shContributing
All qiaomu skills are open source and published on GitHub under @joeseesun.
To suggest improvements or report issues: 1. Visit the specific skill's GitHub repository 2. Open an issue or pull request 3. Or contact via X: @vista8
Philosophy
Self-Improving: Many skills (like qiaomu-writer) learn from your edits and get better over time.
One-Step Execution: User says what they want → Skill delivers complete result.
Failure Resilience: Graceful degradation when dependencies fail (e.g., image generation failures don't block article delivery).
Zero User Intervention: Complete workflows automatically unless explicitly interrupted.
License
All qiaomu skills are released under MIT License.
MIT License
Copyright (c) 2026 joeseesun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Qiaomu Skills Collection
A curated suite of 19 AI-powered skills for content creation, research, design, and productivity
19 个 AI 驱动的技能集合,涵盖内容创作、研究学习、设计媒体和生产力工具
[English](#english) | [中文](#中文)
---
<a name="english"></a>
English
What This Is
A comprehensive collection of Claude Code skills designed for:
- Content creators who want AI-assisted writing with distinctive style
- Researchers who need to process papers, books, and web content
- Designers who want AI-powered image/video generation
- Productivity enthusiasts who want to automate repetitive tasks
All skills follow the self-improving philosophy: they learn from your edits and get better over time.
Prerequisites
- [ ] Claude Code CLI installed and authenticated
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# Verify installation
claude --version- [ ] Node.js (v18+) for
npxcommand
node --version # Should be v18 or higher- [ ] Git for cloning repositories
git --versionInstallation
Option 1: Install all skills (recommended for first-time users)
npx skills add joeseesun/qiaomu-skills
cd ~/.claude/skills/qiaomu-skills
./scripts/install.sh allOption 2: Install by category
npx skills add joeseesun/qiaomu-skills
cd ~/.claude/skills/qiaomu-skills
# Content creation suite (5 skills)
./scripts/install.sh content
# Research & learning suite (4 skills)
./scripts/install.sh research
# Design & media suite (6 skills)
./scripts/install.sh design
# Productivity tools (4 skills)
./scripts/install.sh toolsOption 3: Install specific skills
npx skills add joeseesun/qiaomu-skills
cd ~/.claude/skills/qiaomu-skills
./scripts/install.sh qiaomu-writer qiaomu-image-generatorPreview before installing (dry-run)
./scripts/install.sh --dry-run allSkills Catalog
📝 Content Creation (5 skills)
| Skill | What It Does | When To Use |
|---|---|---|
| qiaomu-writer | Full-stack article creation with web search, Qiaomu style, and AI images | "联网搜索...写一篇文章", "用乔木风格写" |
| qiaomu-content-interpreter | Transform any content into conversational style | "用乔木风格改写", "转换成对话式" |
| qiaomu-article-team | 10-person AI team for article creation | "创建文章团队", "10人团队写文章" |
| qiaomu-x-article-publisher | Publish Markdown to X (Twitter) Articles | "publish to X", "发布到 Twitter" |
| qiaomu-word-card | Generate vintage word cards / quote posters | "生成词语卡片", "制作短句卡片" |
🔬 Research & Learning (4 skills)
| Skill | What It Does | When To Use |
|---|---|---|
| qiaomu-ai-radar | Daily topic assistant - monitors top content sources | "检查今天的更新", "推荐选题" |
| qiaomu-paper-interpreter | Transform academic papers into conversational articles | "解读论文", "理解paper" |
| qiaomu-libgen-downloader | Search and download ebooks from LibGen | "从libgen下载", "libgen搜索" |
| qiaomu-epub-book-generator | Generate EPUB ebooks from Markdown | "生成epub", "制作电子书" |
🎨 Design & Media (6 skills)
| Skill | What It Does | When To Use |
|---|---|---|
| qiaomu-image-generator | AI image generation for articles and covers | "配图", "生成封面", "小红书配图" |
| qiaomu-mondo-poster-design | Master-level poster design (37 designer styles) | "生成海报", "书籍封面" |
| qiaomu-info-card-designer | Magazine-quality HTML info cards | "生成信息卡片", "制作HTML卡片" |
| qiaomu-video-composer | Audio-driven professional video composer | "创建知识视频", "音频生成视频" |
| qiaomu-design-advisor | Obsessive design consultant (Jobs + Rams style) | "设计咨询", "重新设计" |
| qiaomu-music-player-spotify | Spotify control + 5947 style database | "播放音乐", "搜索歌曲" |
🛠️ Productivity Tools (4 skills)
| Skill | What It Does | When To Use |
|---|---|---|
| qiaomu-music-player-ncm | NetEase Cloud Music control + 5947 style | "网易云播放", "搜索歌曲" |
| qiaomu-mac-cleaner | Mac disk cleanup tool | "清理电脑", "Mac磁盘清理" |
| qiaomu-markdown-proxy | Fetch URLs as clean Markdown | "抓取网页", "转换成Markdown" |
| qiaomu-index-update | Knowledge base index sync | "更新索引", "同步知识库目录" |
Usage Examples
Explore available skills:
User: qiaomu skills 有哪些?
Claude: [Shows categorized catalog]Install content creation suite:
User: 安装内容创作相关的 qiaomu skills
Claude: [Runs install.sh content]Check installed skills:
User: 我已经安装了哪些 qiaomu skills?
Claude: [Lists installed qiaomu-* skills]Troubleshooting
| Problem | Solution |
|---|---|
| "npx: command not found" | Install Node.js: brew install node (macOS) or download from nodejs.org |
| "Permission denied" when running install.sh | Add execute permission: chmod +x scripts/install.sh |
| Some skills fail to install | They may not be published yet. Check individual skill repositories. |
| "Claude Code not found" | Install Claude Code CLI: npm install -g @anthropic-ai/claude-code |
Philosophy
Self-Improving: Skills learn from your edits and get better over time.
One-Step Execution: User says what they want → Skill delivers complete result.
Failure Resilience: Graceful degradation when dependencies fail.
Zero User Intervention: Complete workflows automatically unless explicitly interrupted.
Credits
All skills created by @vista8 and published under MIT License.
Special thanks to:
- Claude Code team for the skills framework
- Anthropic for Claude AI
- Open source community for inspiration
---
<a name="中文"></a>
中文
这是什么
一个精心策划的 Claude Code 技能集合,专为以下用户设计:
- 内容创作者:需要 AI 辅助写作,保持独特风格
- 研究学习者:需要处理论文、书籍和网页内容
- 设计师:需要 AI 驱动的图片/视频生成
- 效率爱好者:需要自动化重复性任务
所有技能遵循自我进化哲学:从你的修改中学习,持续改进。
前置条件
- [ ] Claude Code CLI 已安装并登录
# 安装 Claude Code
npm install -g @anthropic-ai/claude-code
# 验证安装
claude --version- [ ] Node.js (v18+) 用于
npx命令
node --version # 应该是 v18 或更高- [ ] Git 用于克隆仓库
git --version安装
方案 1:安装全部技能(首次使用推荐)
npx skills add joeseesun/qiaomu-skills
cd ~/.claude/skills/qiaomu-skills
./scripts/install.sh all方案 2:按分类安装
npx skills add joeseesun/qiaomu-skills
cd ~/.claude/skills/qiaomu-skills
# 内容创作套件(5 个技能)
./scripts/install.sh content
# 研究学习套件(4 个技能)
./scripts/install.sh research
# 设计媒体套件(6 个技能)
./scripts/install.sh design
# 生产力工具(4 个技能)
./scripts/install.sh tools方案 3:安装指定技能
npx skills add joeseesun/qiaomu-skills
cd ~/.claude/skills/qiaomu-skills
./scripts/install.sh qiaomu-writer qiaomu-image-generator预览安装(dry-run)
./scripts/install.sh --dry-run all技能目录
📝 内容创作(5 个技能)
| 技能 | 功能 | 触发词 |
|---|---|---|
| qiaomu-writer | 全栈文章创作:联网搜索 + 乔木风格 + AI 配图 | "联网搜索...写一篇文章", "用乔木风格写" |
| qiaomu-content-interpreter | 将任意内容转换为对话式风格 | "用乔木风格改写", "转换成对话式" |
| qiaomu-article-team | 10 人 AI 团队创作文章 | "创建文章团队", "10人团队写文章" |
| qiaomu-x-article-publisher | 发布 Markdown 到 X (Twitter) Articles | "publish to X", "发布到 Twitter" |
| qiaomu-word-card | 生成复古纸张质感的词语卡片 | "生成词语卡片", "制作短句卡片" |
🔬 研究学习(4 个技能)
| 技能 | 功能 | 触发词 |
|---|---|---|
| qiaomu-ai-radar | 每日选题助手 - 监控顶级内容源 | "检查今天的更新", "推荐选题" |
| qiaomu-paper-interpreter | 将学术论文转换为对话式文章 | "解读论文", "理解paper" |
| qiaomu-libgen-downloader | 从 LibGen 搜索和下载电子书 | "从libgen下载", "libgen搜索" |
| qiaomu-epub-book-generator | 从 Markdown 生成 EPUB 电子书 | "生成epub", "制作电子书" |
🎨 设计媒体(6 个技能)
| 技能 | 功能 | 触发词 |
|---|---|---|
| qiaomu-image-generator | AI 图片生成(文章配图、封面) | "配图", "生成封面", "小红书配图" |
| qiaomu-mondo-poster-design | 大师级海报设计(37 位设计师风格) | "生成海报", "书籍封面" |
| qiaomu-info-card-designer | 杂志质感 HTML 信息卡片 | "生成信息卡片", "制作HTML卡片" |
| qiaomu-video-composer | 音频驱动的专业视频合成 | "创建知识视频", "音频生成视频" |
| qiaomu-design-advisor | 偏执型设计顾问(Jobs + Rams 风格) | "设计咨询", "重新设计" |
| qiaomu-music-player-spotify | Spotify 控制 + 5947 风格数据库 | "播放音乐", "搜索歌曲" |
🛠️ 生产力工具(4 个技能)
| 技能 | 功能 | 触发词 |
|---|---|---|
| qiaomu-music-player-ncm | 网易云音乐控制 + 5947 风格 | "网易云播放", "搜索歌曲" |
| qiaomu-mac-cleaner | Mac 磁盘清理工具 | "清理电脑", "Mac磁盘清理" |
| qiaomu-markdown-proxy | 抓取 URL 转换为 Markdown | "抓取网页", "转换成Markdown" |
| qiaomu-index-update | 知识库索引同步 | "更新索引", "同步知识库目录" |
使用示例
查看可用技能:
用户:qiaomu skills 有哪些?
Claude:[显示分类目录]安装内容创作套件:
用户:安装内容创作相关的 qiaomu skills
Claude:[运行 install.sh content]检查已安装的技能:
用户:我已经安装了哪些 qiaomu skills?
Claude:[列出已安装的 qiaomu-* 技能]常见问题
| 问题 | 解决方法 |
|---|---|
| "npx: command not found" | 安装 Node.js:brew install node (macOS) 或从 nodejs.org 下载 |
| 运行 install.sh 时 "Permission denied" | 添加执行权限:chmod +x scripts/install.sh |
| 部分技能安装失败 | 可能尚未发布。检查各个技能的 GitHub 仓库。 |
| "Claude Code not found" | 安装 Claude Code CLI:npm install -g @anthropic-ai/claude-code |
设计哲学
自我进化:技能从你的修改中学习,持续改进。
一步执行:用户说出需求 → 技能交付完整结果。
容错机制:依赖失败时优雅降级。
零干预:自动完成整个工作流,除非用户明确打断。
致谢
所有技能由 @vista8 创建,采用 MIT 许可证发布。
特别感谢:
- Claude Code 团队提供的技能框架
- Anthropic 提供的 Claude AI
- 开源社区的灵感
---
📱 关注作者
如果这个项目对你有帮助,欢迎关注我获取更多技术分享:
- X (Twitter): @vista8
- 微信公众号「向阳乔木推荐看」
License
MIT License - see individual skill repositories for details.
#!/usr/bin/env bash
#
# Qiaomu Skills Installer
# Install qiaomu skills from GitHub by category or name
#
# Usage:
# ./install.sh all # Install all 19 skills
# ./install.sh content # Install content creation skills
# ./install.sh research # Install research & learning skills
# ./install.sh design # Install design & media skills
# ./install.sh tools # Install productivity tools
# ./install.sh qiaomu-writer qiaomu-image-generator # Install specific skills
# ./install.sh --dry-run all # Preview without installing
# ./install.sh --list # List all available skills
set -euo pipefail
GITHUB_USER="joeseesun"
# ── Skill Categories ──────────────────────────────────────────────
CONTENT_SKILLS=(
qiaomu-writer
qiaomu-content-interpreter
qiaomu-article-team
qiaomu-x-article-publisher
qiaomu-word-card
)
RESEARCH_SKILLS=(
qiaomu-ai-radar
qiaomu-paper-interpreter
qiaomu-libgen-downloader
qiaomu-epub-book-generator
)
DESIGN_SKILLS=(
qiaomu-image-generator
qiaomu-mondo-poster-design
qiaomu-info-card-designer
qiaomu-video-composer
qiaomu-design-advisor
qiaomu-music-player-spotify
)
TOOLS_SKILLS=(
qiaomu-music-player-ncm
qiaomu-mac-cleaner
qiaomu-markdown-proxy
qiaomu-index-update
)
ALL_SKILLS=(
"${CONTENT_SKILLS[@]}"
"${RESEARCH_SKILLS[@]}"
"${DESIGN_SKILLS[@]}"
"${TOOLS_SKILLS[@]}"
)
# ── Colors ────────────────────────────────────────────────────────
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m'
# ── State ─────────────────────────────────────────────────────────
DRY_RUN=false
INSTALLED=()
FAILED=()
SKIPPED=()
# ── Functions ─────────────────────────────────────────────────────
usage() {
cat <<EOF
${BOLD}Qiaomu Skills Installer${NC}
${BOLD}Usage:${NC}
$(basename "$0") [OPTIONS] <category|skill-names...>
${BOLD}Categories:${NC}
all Install all 19 skills
content Content creation (${#CONTENT_SKILLS[@]} skills): writer, interpreter, article-team, x-publisher, word-card
research Research & learning (${#RESEARCH_SKILLS[@]} skills): ai-radar, paper-interpreter, libgen, epub-generator
design Design & media (${#DESIGN_SKILLS[@]} skills): image-gen, poster, info-card, video, design-advisor, spotify
tools Productivity (${#TOOLS_SKILLS[@]} skills): ncm-player, mac-cleaner, markdown-proxy, index-update
${BOLD}Options:${NC}
--dry-run Preview what would be installed
--list List all available skills with categories
--help Show this help
${BOLD}Examples:${NC}
$(basename "$0") all
$(basename "$0") content design
$(basename "$0") qiaomu-writer qiaomu-image-generator
$(basename "$0") --dry-run research
EOF
}
list_skills() {
echo -e "${BOLD}📝 Content Creation (${#CONTENT_SKILLS[@]})${NC}"
for s in "${CONTENT_SKILLS[@]}"; do echo " $s"; done
echo
echo -e "${BOLD}🔬 Research & Learning (${#RESEARCH_SKILLS[@]})${NC}"
for s in "${RESEARCH_SKILLS[@]}"; do echo " $s"; done
echo
echo -e "${BOLD}🎨 Design & Media (${#DESIGN_SKILLS[@]})${NC}"
for s in "${DESIGN_SKILLS[@]}"; do echo " $s"; done
echo
echo -e "${BOLD}🛠️ Productivity Tools (${#TOOLS_SKILLS[@]})${NC}"
for s in "${TOOLS_SKILLS[@]}"; do echo " $s"; done
echo
echo -e "${BOLD}Total: ${#ALL_SKILLS[@]} skills${NC}"
}
check_deps() {
if ! command -v npx &>/dev/null; then
echo -e "${RED}Error: npx not found. Install Node.js first.${NC}"
exit 1
fi
}
install_skill() {
local skill="$1"
local repo="${GITHUB_USER}/${skill}"
# Check if already installed
if [ -d "$HOME/.claude/skills/$skill" ]; then
echo -e " ${YELLOW}⏭${NC} $skill (already installed)"
SKIPPED+=("$skill")
return 0
fi
if $DRY_RUN; then
echo -e " ${BLUE}🔍${NC} $skill → npx skills add $repo"
return 0
fi
echo -ne " ${BLUE}⏳${NC} $skill ..."
if npx -y skills add "$repo" &>/dev/null; then
echo -e "\r ${GREEN}✅${NC} $skill"
INSTALLED+=("$skill")
else
echo -e "\r ${RED}❌${NC} $skill (not published yet or install failed)"
FAILED+=("$skill")
fi
}
install_skills() {
local skills=("$@")
echo -e "\n${BOLD}Installing ${#skills[@]} skills...${NC}\n"
for skill in "${skills[@]}"; do
install_skill "$skill"
done
# Summary
echo
echo -e "${BOLD}═══════════════════════════════════════${NC}"
if [ ${#INSTALLED[@]} -gt 0 ]; then
echo -e "${GREEN}✅ Installed: ${#INSTALLED[@]}${NC}"
fi
if [ ${#SKIPPED[@]} -gt 0 ]; then
echo -e "${YELLOW}⏭ Skipped (already installed): ${#SKIPPED[@]}${NC}"
fi
if [ ${#FAILED[@]} -gt 0 ]; then
echo -e "${RED}❌ Failed: ${#FAILED[@]}${NC}"
echo -e "${RED} Not yet published: ${FAILED[*]}${NC}"
echo -e "${YELLOW} Tip: Publish them first with /skill-publisher${NC}"
fi
echo -e "${BOLD}═══════════════════════════════════════${NC}"
}
resolve_skills() {
local args=("$@")
local result=()
for arg in "${args[@]}"; do
case "$arg" in
all) result+=("${ALL_SKILLS[@]}") ;;
content) result+=("${CONTENT_SKILLS[@]}") ;;
research) result+=("${RESEARCH_SKILLS[@]}") ;;
design) result+=("${DESIGN_SKILLS[@]}") ;;
tools) result+=("${TOOLS_SKILLS[@]}") ;;
qiaomu-*) result+=("$arg") ;;
*)
echo -e "${RED}Unknown argument: $arg${NC}"
echo "Use --help for usage information"
exit 1
;;
esac
done
# Deduplicate
printf '%s\n' "${result[@]}" | sort -u
}
# ── Main ──────────────────────────────────────────────────────────
if [ $# -eq 0 ]; then
usage
exit 0
fi
# Parse options
SKILL_ARGS=()
for arg in "$@"; do
case "$arg" in
--dry-run) DRY_RUN=true ;;
--list) list_skills; exit 0 ;;
--help|-h) usage; exit 0 ;;
*) SKILL_ARGS+=("$arg") ;;
esac
done
if [ ${#SKILL_ARGS[@]} -eq 0 ]; then
usage
exit 0
fi
check_deps
# Resolve categories to skill names
mapfile -t SKILLS_TO_INSTALL < <(resolve_skills "${SKILL_ARGS[@]}")
if $DRY_RUN; then
echo -e "${YELLOW}[DRY RUN] Would install:${NC}"
fi
install_skills "${SKILLS_TO_INSTALL[@]}"