skills/mi-note-export/SKILL.md
从小米云服务笔记批量导出 Markdown 文件,支持删除云端笔记。当用户提到"导出小米笔记"、"同步小米云笔记"、"备份小米笔记"、"删除小米笔记"、"mi-note-export"时触发此 skill。
npx skillsauth add ceynri/mi-note-export mi-note-exportInstall 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.
从小米云服务(i.mi.com)批量导出笔记为 Markdown,支持增量同步和删除云端笔记。
执行前需确定笔记的输出目录。按优先级查找:
.mi-note-export.json 配置文件中的 output 字段(CLI 原生支持)./mi-notes),确认后将配置写入 .mi-note-export.json:
{ "output": "./mi-notes" }
后续执行时 CLI 会自动读取该配置,无需再次询问或手动传 -o。
通过 npx 直接执行,无需提前安装。如已配置 .mi-note-export.json,可省略 -o:
npx mi-note-export # 增量同步(基于内容哈希,使用配置文件中的输出目录)
npx mi-note-export -o <output> # 增量同步(手动指定输出目录)
npx mi-note-export --force # 全量重新同步
npx mi-note-export --delete-id <noteId> -y # 删除指定云端笔记
npx mi-note-export --help # 查看所有可用选项
增量同步基于内容哈希:即使本地文件被移走,只要云端内容没变,就不会重新导出。
遇到其他不适用以上指令的场景时,优先通过 --help 查阅是否有合适的选项。
⚠️ 首次使用需下载 Playwright Chromium(约 200+ MB)。通过
npm install安装时会自动执行postinstall脚本;通过npx直接运行时若提示 Chromium 缺失,需手动执行npx playwright install chromium。
首次运行会自动打开 Chromium 浏览器,用户需手动登录小米账号,登录成功后自动提取 Cookie 并缓存。
删除操作会将笔记移到小米云服务的回收站(30 天内可恢复),不是永久删除。
执行 --delete-id 前,必须向用户展示待删除笔记的标题、修改时间等详情,并获得用户明确确认后才可执行。笔记详情可从本地同步状态(<output>/.sync-state.json)、已导出的文件、或上下文中获取。
~/Library/Caches/mi-note-export/、Linux ~/.cache/mi-note-export/、Windows %LOCALAPPDATA%/mi-note-export/cache/):存放 Cookie 缓存和浏览器身份数据<output>/.sync-state.json:增量同步状态文件(记录笔记状态、修改时间和内容哈希)导出的文件按以下结构组织:
<output>/
├── assets/ # 所有笔记的附件(图片、音频等),文件名格式: type_date_hash.ext
├── 文件夹名/ # 笔记所属文件夹
│ └── 笔记标题.md
├── 笔记标题.md # 无文件夹的笔记
└── 2025-01-01_12-00-00.md # 无标题笔记以创建时间命名
| 问题 | 操作 |
|---|---|
| Cookie 过期 | 加 --login 重新登录 |
| Playwright 未安装 | npx playwright install chromium |
| 笔记内容不完整 | 加 --force 全量重新同步 |
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.