skills/content-distributor/SKILL.md
# content-distributor 多平台内容分发 Skill — Markdown 一篇文章,自动转换为各平台适配格式并发布。 ## 功能 ### 1. Markdown → 多平台格式转换 - **微信公众号**: CSS 全内联 HTML(公众号编辑器不支持 `<style>` 标签) - **知乎/CSDN/掘金/简书**: 标准 Markdown(编辑器原生支持) - **小红书**: 纯文本 + emoji 排版(无 Markdown 支持) - **今日头条/百家号**: 富文本 HTML(CSS 内联) - **Twitter/X**: 自动拆分为 Thread(每条 ≤280 字符) ### 2. 排版模板 4 套预设模板,适配不同内容类型: | 模板 | 风格 | 适合场景 | |------|------|----------| | `tech` | 科技紫,Catppuccin 代码高亮 | 技术博客、AI/编程 | | `minimal` | 黑白简约,GitHub 风格 | 随笔、观点文 | | `business` | 商务蓝,数据框 |
npx skillsauth add aaaaqwq/claude-code-skills skills/content-distributorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
多平台内容分发 Skill — Markdown 一篇文章,自动转换为各平台适配格式并发布。
<style> 标签)4 套预设模板,适配不同内容类型:
| 模板 | 风格 | 适合场景 |
|------|------|----------|
| tech | 科技紫,Catppuccin 代码高亮 | 技术博客、AI/编程 |
| minimal | 黑白简约,GitHub 风格 | 随笔、观点文 |
| business | 商务蓝,数据框 | 行业报告、市场分析 |
| dark-tech | 暗色 GitHub,绿色强调 | 深度技术、Hacker 风格 |
# 转为公众号 HTML
tsx scripts/convert.ts article.md --template tech --platform wechat
# 转为小红书纯文本
tsx scripts/convert.ts article.md --platform xhs
# 全平台转换
tsx scripts/convert.ts article.md --all --output ./dist
# 指定模板
tsx scripts/convert.ts article.md --template business --platform toutiao
# 微信公众号发布 (创建草稿)
tsx scripts/publish.ts article.md --platforms wechat --template tech
# 知乎 + 掘金 (生成操作计划)
tsx scripts/publish.ts article.md --platforms zhihu,juejin --dry-run
# 全平台发布
tsx scripts/publish.ts article.md --all --tags "AI,技术" --cover cover.png
Agent 可以直接调用 convert/publish 函数:
import { convert } from './scripts/convert.js';
const results = convert({
input: 'article.md',
template: 'tech',
platform: 'wechat',
});
// results[0].content → CSS 内联的 HTML
| 变量 | 说明 | 必须 |
|------|------|------|
| WECHAT_APPID | 微信公众号 AppID | 微信发布时 |
| WECHAT_APPSECRET | 微信公众号 AppSecret | 微信发布时 |
| 优先级 | 平台 | 发布方式 | |--------|------|----------| | P0 | 微信公众号 | 官方 API | | P0 | 知乎 | Playwright | | P1 | CSDN | Playwright / API | | P1 | 掘金 | Playwright | | P1 | 简书 | Playwright | | P2 | 小红书 | Playwright | | P2 | 今日头条 | Playwright | | P2 | 百家号 | Playwright | | P3 | B站专栏 | Playwright | | P3 | Twitter/X | Playwright |
content-distributor/
├── SKILL.md # 本文件
├── package.json
├── scripts/
│ ├── convert.ts # Markdown → 多平台格式转换器
│ ├── publish.ts # 多平台发布编排器
│ ├── demo.ts # 验证 demo
│ └── platforms/
│ ├── wechat.ts # 微信公众号 API 发布器
│ └── browser-publish.ts # Playwright 浏览器发布器
├── templates/
│ ├── tech.css # 科技风
│ ├── minimal.css # 简约风
│ ├── business.css # 商务风
│ └── dark-tech.css # 深色科技风
└── output/ # 转换输出目录
markdown-it — Markdown 解析juice — CSS 内联(公众号必须)tsx — TypeScript 直接运行testing
通用自媒体文章自动发布工具。支持百家号、搜狐号、知乎、微信公众号、小红书、抖音号六个平台的自动化发布流程。使用Playwright自动化实现平台导航和发布,支持通过storageState管理Cookie实现账号切换。
development
# SKILL.md - Model Configuration Status (mcstatus) ## 触发条件 - `/mcstatus` 命令 - 用户询问模型配备、模型配置、model status、模型列表等 ## 功能 实时生成 Agent + Cron 的模型配置报告,展示当前所有 agent 的主模型/fallback链和所有 cron 任务的模型分配。 ## 执行步骤 ### Step 1: 收集 Agent 模型配置 读取各 agent 的 models.json 获取主模型和 fallback 链: ```bash for agent in main ops code quant data research content market finance pm law product sales batch; do config=$(cat ~/.openclaw/agents/$agent/agent/models.json 2>/dev/null) if [ -n "$config" ]; then echo "=== $agent
tools
MCP 服务器智能管理助手。自动检测 MCP 可用性、智能开关、功能问答,提供人性化的 MCP 管理体验。
tools
从GitHub搜索并自动安装配置MCP(Model Context Protocol)服务器工具到Claude配置文件。当用户需要安装MCP工具时触发此技能。工作流程:搜索GitHub上的MCP项目 -> 提取npx配置 -> 添加到~/.claude.json -> 处理API密钥(如有)。