← 返回 Skills 市场
sunfang1cn

social-favorites-to-obsidian

作者 sun fang · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
113
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install xhs-zh-sync-obsidian
功能描述
将小红书和知乎收藏增量同步到 Obsidian:依赖 hctec-* 抓取技能,使用 CookieCloud 登录态,支持首次安装、依赖检查、分类规则、Markdown 导出和 OpenClaw 定时任务生成。当用户要安装、配置、诊断、归档、分类、导出或定时同步社交平台收藏到 Obsidian 时使用。
使用说明 (SKILL.md)

Social Favorites to Obsidian

这个技能把“小红书/知乎收藏 -> 抓取 -> 分类 -> Obsidian 导出 -> 定时同步”做成可发布的安装流程。平台抓取由 hctec 原子技能负责,本技能负责安装引导、配置、状态、分类、导出和 cron 生成。

工作流

  1. 首次安装时不要直接使用默认值开跑。先读取 references/first-install.md,并向用户确认这些可选项:
    • CookieCloud 服务端:本机 Docker 安装,还是使用已有远程服务端;远程服务端需要地址、UUID 和 Password。
    • Obsidian vault:自动创建并使用官方 Obsidian Sync,自动创建但只本地导出,还是使用已有本地 vault 目录。
    • 官方 Obsidian Sync:需要 Obsidian 账号邮箱/用户名、登录密码或交互登录、远程 vault 名字或 ID,必要时还要端到端加密密码。
    • 分类标准:由 LLM 初始化生成分类规则,还是用户稍后自行编辑。
  2. 收集完首次安装选项后,再运行安装和初始化命令。例如:
    python install.py
    
    如果安装环境只能调用 scripts 目录,也可以运行:
    python scripts/interactive_install.py
    
    非交互拆分安装时再使用底层命令:
    python scripts/setup.py --init --install-skill-deps --install-python-deps --install-playwright
    
  3. 安装 hctec 第三方技能后,必须运行一次知乎格式补丁,避免知乎正文 plain 文本丢失段落和换行:
    python scripts/patch_hctec_zhihu_format.py
    
    详见 references/dependencies.md
  4. 首次安装时按用户选择部署 CookieCloud 服务端并安装浏览器插件。详见 references/auth.md
  5. 如果 CookieCloud 服务端不在运行本技能的机器上,用 --cookiecloud-server-url http://\x3C服务器IP>:8088 初始化,或让用户手动填写 COOKIECLOUD_SERVER_URLCOOKIECLOUD_UUIDCOOKIECLOUD_PASSWORD
  6. 首次安装时按用户选择配置 Obsidian 同步方式。官方 Sync 走 obsidian-headlessob loginob sync-setup;本地模式则只初始化本地目录。详见 references/obsidian-sync.md
  7. agent 判断是否首次安装时,运行:
    python scripts/setup.py --status --json
    
  8. 检查配置:
    python scripts/setup.py --doctor
    
  9. 同步并导出:
    python scripts/sync.py --platform xhs
    python scripts/sync.py --platform zhihu
    python scripts/export_obsidian.py --platform all --incremental
    
  10. 如果用户要自动化,生成 OpenClaw cron 配置:
python scripts/install_cron.py --platform xhs --time 06:00 --print
python scripts/install_cron.py --platform zhihu --time 05:00 --print

按需阅读

  • 首次安装访谈和选项决策:references/first-install.md
  • 首次安装和外部依赖:references/dependencies.md
  • CookieCloud 服务端、浏览器插件和 cookie 兜底:references/auth.md
  • 配置字段:references/config.md
  • Obsidian Headless Sync 和本地目录模式:references/obsidian-sync.md
  • 定时任务:references/cron.md
  • Obsidian 目录和分类:references/obsidian-layout.md

安全

不要把用户数据发布进技能包:cookiecloud.env、原始 Cookie、状态文件、日志、已下载笔记、图片、Obsidian 导出内容都只能作为运行时数据保存在用户本机。

安全使用建议
Before installing, confirm you trust the package and the external hctec GitHub skills, review or pin those dependencies, use the least-sensitive accounts/sessions possible, keep cookiecloud.env and the data/vault folders private, and review any generated cron job before enabling automatic sync.
能力评估
Purpose & Capability
The stated purpose matches the artifacts: syncing Xiaohongshu/Zhihu favorites to Obsidian requires cookies, local exports, optional Obsidian Sync, and scheduled sync. These capabilities are sensitive but mostly disclosed.
Instruction Scope
The instructions generally require user confirmation before first install and before choosing CookieCloud, Obsidian, classification, and cron options. Generated cron commands should still be reviewed before enabling.
Install Mechanism
The install flow downloads unpinned third-party hctec skills from GitHub into the OpenClaw skills workspace and uses other external installers/images. This is purpose-aligned but creates a material supply-chain review issue because those dependencies may run with the user’s cookies.
Credentials
Registry metadata declares no required binaries, env vars, or credentials, while the README and scripts require Python, Docker/Compose or a remote CookieCloud server, optional Node/npm/obsidian-headless, Playwright, and account/session credentials. The docs disclose this, but the metadata is under-declared.
Persistence & Privilege
The skill stores configuration, CookieCloud credentials, raw/export state, downloaded media, and optional cron specs locally; Docker CookieCloud may restart unless stopped. This is disclosed and purpose-aligned, but persistent.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xhs-zh-sync-obsidian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xhs-zh-sync-obsidian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1 - No functional changes; documentation only. - SKILL.md has been reformatted with no updates to content or workflow. - No file changes detected in this release.
v1.0.0
- Initial release of social-favorites-to-obsidian skill. - Enables incremental sync of Xiaohongshu and Zhihu favorites to Obsidian. - Supports guided installation, dependency checks, classification rules, and Markdown export. - Integrates with CookieCloud for authentication and with hctec-* skills for content fetching. - Allows configuration of both local and Obsidian Sync export modes. - Provides OpenClaw cron generation for scheduled sync and export.
元数据
Slug xhs-zh-sync-obsidian
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

social-favorites-to-obsidian 是什么?

将小红书和知乎收藏增量同步到 Obsidian:依赖 hctec-* 抓取技能,使用 CookieCloud 登录态,支持首次安装、依赖检查、分类规则、Markdown 导出和 OpenClaw 定时任务生成。当用户要安装、配置、诊断、归档、分类、导出或定时同步社交平台收藏到 Obsidian 时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。

如何安装 social-favorites-to-obsidian?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xhs-zh-sync-obsidian」即可一键安装,无需额外配置。

social-favorites-to-obsidian 是免费的吗?

是的,social-favorites-to-obsidian 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

social-favorites-to-obsidian 支持哪些平台?

social-favorites-to-obsidian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 social-favorites-to-obsidian?

由 sun fang(@sunfang1cn)开发并维护,当前版本 v1.0.1。

💬 留言讨论