# content-library **Repository Path**: rr84/content-library ## Basic Information - **Project Name**: content-library - **Description**: openClaw+微信,在微信发送链接和需求,整理、保存成摘要内容 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-19 - **Last Updated**: 2026-05-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Content Library Skill OpenClaw skill:自动抓取微信公众号等网页文章,存档原文,按领域生成索引。 ## 目录结构 ``` {工作目录}/ ├── content-library/ # skill 目录(本仓库) │ ├── SKILL.md # skill 定义(触发条件、流程、规则) │ ├── README.md # 本文件 │ ├── scripts/ │ │ └── fetch-article.js │ └── .gitignore ├── data/ # 数据目录(不纳入本仓库) │ ├── index.md │ └── sources/ │ └── {account-slug}/ │ └── {date}_{title-slug}.md └── package.json # Playwright 依赖 ``` ## 安装 ### 1. Clone 到工作目录 ```bash cd {你的工作目录} git clone content-library ``` ### 2. 创建数据目录 ```bash mkdir -p data/sources ``` 首次使用时如果不存在会自动创建。 ### 3. 安装 Playwright 依赖 ```bash npm install playwright npx playwright install chromium ``` ### 4. 链接到 OpenClaw 插件目录 让 OpenClaw 自动识别此 skill: ```bash # Windows(cmd,不需要管理员权限,使用 NTFS Junction) cmd /c mklink /J "%USERPROFILE%\.openclaw\plugin-skills\content-library" "{你的工作目录}\content-library" # macOS / Linux(需要管理员权限) sudo ln -s {你的工作目录}/content-library ~/.openclaw/plugin-skills/content-library ``` 验证:`ls ~/.openclaw/plugin-skills/content-library/SKILL.md` 应正常显示。 ## 使用方式 在 OpenClaw 对话中直接发送文章链接: ``` https://mp.weixin.qq.com/s/xxxxx ``` 附加需求(可选): ``` 帮我提取这篇文章的核心观点 https://mp.weixin.qq.com/s/xxxxx ``` 无需求则默认总结全文。 ## 跨设备迁移 1. Clone 本仓库到新设备工作目录 2. 复制 `data/` 数据目录(或重新开始) 3. 安装 Playwright: ```bash npm install playwright npx playwright install chromium ``` 4. 创建符号链接指向 OpenClaw 插件目录 ## 依赖 | 依赖 | 版本要求 | 说明 | |------|----------|------| | [Node.js](https://nodejs.org/) | >= 18 | 运行环境 | | [Playwright](https://playwright.dev/) | >= 1.40 | 网页抓取,含 Chromium 浏览器引擎 | | [OpenClaw](https://openclaw.ai/) | >= 2026.1 | AI 助手平台,提供 skill 机制 | ### 网络要求 - 需要能访问 `mp.weixin.qq.com`(微信公众号文章) - 首次 `npx playwright install chromium` 需要下载约 300MB 浏览器引擎 - 如需抓取其他网站,确保网络可达