用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill notion-sync-obsidian命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, manage positions — all without exposing private keys.
ClawSec suite manager with embedded advisory-feed monitoring, cryptographic signature verification, approval-gated malicious-skill response, and guided setup for additional security skills.
Automated daily security audits for OpenClaw agents with email reporting. Runs deep audits and sends formatted reports.
基于 SOC 职业分类
正在显示 SKILL.md
| name | notion-sync-obsidian |
| description | 自动将Notion文章同步到本地Obsidian目录,支持定时检查、完整内容导出、智能标题提取。 |
| homepage | https://github.com/openclaw/openclaw |
| metadata | {"clawdbot":{"emoji":"📝"}} |
自动将Notion文章同步到本地Obsidian目录的完整解决方案。支持定时检查、完整内容导出、智能标题提取、移动端优化通知。
# 1. 进入skill目录
cd ~/.openclaw/workspace/skills/notion-sync-obsidian
# 2. 编辑配置文件
nano config.json
配置文件示例 (config.json):
{
"notion": {
"api_key": "ntn_your_api_key_here",
"api_version": "2022-06-28"
},
"obsidian": {
"root_dir": "/path/to/your/obsidian/notion"
},
"sync": {
"check_interval_minutes": 15,
"quiet_hours_start": "00:00",
"quiet_hours_end": "08:30",
"enable_notifications": true
}
}
# 启动定时同步(每15分钟检查一次)
./scripts/start_timer.sh
# 手动检查(忽略安静时段)
FORCE_CHECK=1 ./scripts/simple_checker.sh
# 查看状态
./scripts/status_timer.sh
# 停止同步
./scripts/stop_timer.sh
notion-sync-obsidian/
├── SKILL.md # 技能说明文档
├── config.json # 配置文件模板
├── scripts/ # 核心脚本
│ ├── real_notion_checker.py # 完整Python检查器
│ ├── simple_checker.sh # 简化Shell检查器
│ ├── timer_checker.sh # 定时检查器
│ ├── start_timer.sh # 启动定时器
│ ├── stop_timer.sh # 停止定时器
│ ├── status_timer.sh # 查看状态
│ ├── list_recent_articles.sh # 列出最近文章
│ └── debug_page_structure.py # 调试页面结构
├── references/ # 参考文档
│ └── NOTION_API_GUIDE.md # Notion API使用指南
└── examples/ # 示例文件
└── exported_article.md # 导出文件示例
ntn_ 开头)config.json 中配置API密钥/hellox/openclaw/obsidian/notion/YYYY-MM/FORCE_CHECK=1 环境变量忽略所有限制real_notion_checker.py: 完整Python检查器,导出完整内容simple_checker.sh: 简化Shell检查器,快速检查更新timer_checker.sh: 定时检查器,管理定时任务start_timer.sh: 启动定时同步系统stop_timer.sh: 停止定时同步系统status_timer.sh: 查看系统状态和日志list_recent_articles.sh: 列出Notion最近文章debug_page_structure.py: 调试Notion页面结构test_title_fix.py: 测试标题提取修复./scripts/status_timer.sh
输出示例:
📊 Notion定时同步状态检查
检查时间: 2026-02-24 15:44:53
时区: Asia/Shanghai
========================================
🟢 状态: 运行中
进程PID: 4538
运行时间: 10:29
📋 日志信息:
日志文件: ./sync_timer.log
日志行数: 1179
📁 目录状态:
文章目录: /hellox/openclaw/obsidian/notion
文章数量: 78
⏰ 下次检查时间:
15:59 (15分钟后)
tail -f sync_timer.log
Q: 同步失败,提示API错误 A: 检查API密钥是否正确,确保集成已分享到工作空间
Q: 文件名使用摘要而非标题
A: 这是已知问题,已修复。确保使用最新版本的 real_notion_checker.py
Q: Python依赖安装失败 A: 容器环境可能需要特殊处理,脚本已包含自动安装逻辑
Q: 定时器不运行 A: 检查进程状态,可能需要重启定时器
./scripts/debug_page_structure.py 检查API连接FORCE_CHECK=1 ./scripts/simple_checker.sh 手动测试sync_timer.log 日志文件修改 real_notion_checker.py 中的 export_page_to_markdown 函数来自定义Markdown格式。
脚本输出标准化格式,可轻松集成到:
欢迎贡献代码、报告问题或提出建议!
# 克隆仓库
git clone https://github.com/your-username/notion-sync-obsidian.git
# 安装依赖
pip install -r requirements.txt
# 运行测试
python -m pytest tests/
MIT License - 详见 LICENSE 文件
版本: 1.0.0
最后更新: 2026-02-24
维护者: kk (你的私人助理)
状态: ✅ 生产就绪