← 返回 Skills 市场
emersonding

Kindle Clip CLI

作者 Nan Ding · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
218
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install kindle-clip-cli
功能描述
Parse, search, filter, and export Kindle highlights and notes from "My Clippings.txt" via a command-line tool with Markdown output.
使用说明 (SKILL.md)

Kindle-Clip-CLI

Parse, print, search, filter and export Kindle highlights and notes from the command line.

What this skill does

This skill provides the kindle-clip CLI tool for processing Kindle's "My Clippings.txt" file. It's designed to be AI agent-friendly, with clean Markdown output and intuitive filtering options.

Key capabilities:

  • Parse and list all books from Kindle clippings
  • Print highlights and notes for specific books or all books
  • Search across all notes by keyword, date range, author, or book title
  • Export results to Markdown files
  • Filter by date ranges, book titles, authors, or keywords

Installation

Recommended: Manual Install (macOS/Linux)

  1. Download the latest binary for your platform from GitHub Releases.
  2. Make it executable: chmod +x kindle-clip
  3. Move kindle-clip to a directory in your PATH (e.g., ~/bin or /usr/local/bin):
    mv kindle-clip /usr/local/bin/kindle-clip
    

Build from Source

git clone https://github.com/emersonding/kindle-clip-processor.git
cd kindle-clip-processor
go build -o ./bin/kindle-clip ./cmd/kindle-clip
# Move ./bin/kindle-clip to your PATH

Commands

Set default path

Save the path to your Kindle clippings (usually found in ~/Documents/Kindle/):

kindle-clip set ~/Documents/Kindle/My\ Clippings.txt

This saves the path to ~/.config/kindle-clip/config.json. Useful for repeated operations without specifying the path each time.

List books

List all books with highlights:

# Using saved path
kindle-clip list

# Using explicit path
kindle-clip list ~/Documents/Kindle

# Filter by author
kindle-clip list --author "Yuval Noah Harari"

# Verbose mode (includes clip counts and date ranges)
kindle-clip list --verbose

# Export to file
kindle-clip list --export-md ./books.md

Print highlights

Print all highlights and notes:

# Print all highlights from all books
kindle-clip print

# Print highlights for a specific book
kindle-clip print --book "Sapiens"

# Filter by date range
kindle-clip print --from 2024-01-01 --to 2024-12-31

# Combine filters
kindle-clip print --book "Thinking, Fast and Slow" --from 2024-01-01

# Export to Markdown file
kindle-clip print --book "Sapiens" --export-md ./sapiens-notes.md

# Verbose mode (includes Kindle metadata)
kindle-clip print --verbose

Search notes

Search for specific keywords across all notes:

# Search for a keyword
kindle-clip search confidence

# Search with filters
kindle-clip search bias --author "Daniel Kahneman"

# Search and export results
kindle-clip search metacognition --export-md ./metacognition-notes.md

# Search with date range
kindle-clip search "system 1" --from 2024-01-01

Common Options

All list, print, and search commands support:

  • --from YYYY-MM-DD - Include notes created on/after this date
  • --to YYYY-MM-DD - Include notes created on/before this date
  • --book TEXT - Include only notes whose book title matches TEXT (case-insensitive)
  • --author TEXT - Include only notes whose author matches TEXT (case-insensitive)
  • --query TEXT - Include matching note text (used in search command)
  • --export-md PATH - Save Markdown output to a file
  • --verbose - Include Kindle metadata in output

Output Format

Book List

Compact by default:

# Books

- **Sapiens (Yuval Noah Harari)**
- **Thinking, Fast and Slow (Daniel Kahneman)**

Verbose mode adds clip counts and date ranges:

# Books

- **Sapiens (Yuval Noah Harari)**
  - clips: 42
  - first: 2024-01-15T10:30:00Z
  - last: 2024-02-20T14:22:00Z

Highlights and Notes

Organized by book with Markdown formatting:

# Sapiens (Yuval Noah Harari)

> Culture tends to argue that it forbids only that which is unnatural. But from a biological perspective, nothing is unnatural. Whatever is possible is by definition also natural.

> **Note**: This connects to the social construction argument in sociology.

# Thinking, Fast and Slow (Daniel Kahneman)

> The confidence that individuals have in their beliefs depends mostly on the quality of the story they can tell about what they see, even if they see little.

Notes are prefixed with > **Note**: while highlights use plain > blockquotes.

Path Resolution

kindle-clip resolves the clippings file path in this order:

  1. Explicit file or directory argument
  2. KINDLE_CLIP_PATH environment variable
  3. Saved config in ~/.config/kindle-clip/config.json

If you provide a directory instead of a file, it looks for:

  • \x3Cdir>/documents/My Clippings.txt (Kindle's typical location)
  • \x3Cdir>/My Clippings.txt (fallback)

Use Cases for AI Agents

Research Assistant

When a user asks "What did I highlight about cognitive biases?":

kindle-clip search "cognitive bias" --export-md ./cognitive-bias-notes.md

Book Summary

When a user asks "Show me my notes from Sapiens":

kindle-clip print --book "Sapiens" --export-md ./sapiens-summary.md

Reading Timeline

When a user asks "What books did I read in 2024?":

kindle-clip list --from 2024-01-01 --to 2024-12-31 --verbose

Cross-Book Research

When a user asks "Find all my notes about decision-making":

kindle-clip search "decision making" --export-md ./decision-making-research.md

Tips for AI Agents

  1. Always use --export-md when the user might want to save or review results later
  2. Use --verbose when users need full context or metadata
  3. Combine filters for precise results (e.g., --book "Sapiens" --from 2024-01-01)
  4. Case-insensitive matching - filters are case-insensitive, so "sapiens" matches "Sapiens"
  5. Partial matches work - --book "Think" will match "Thinking, Fast and Slow"
  6. Set the path once - Use kindle-clip set at the start of a session for cleaner commands

Error Handling

If kindle-clip is not installed, guide the user to install it using the installation instructions above.

If no path is configured, prompt the user to either:

  1. Run kindle-clip set \x3Cpath> to save a default path
  2. Provide a path explicitly in each command
  3. Set the KINDLE_CLIP_PATH environment variable

Dependencies

  • Go binary (no runtime dependencies once built)
  • Works on macOS, Linux, and Windows (amd64 and arm64)

Repository

Source code and releases: https://github.com/emersonding/kindle-clip-processor

License

See the main repository for license information.

安全使用建议
This skill appears to do what it says: it helps an agent drive the `kindle-clip` CLI to read and export your Kindle clippings. Before installing or running it: 1) Verify the upstream repository (https://github.com/emersonding/kindle-clip-processor) and prefer installing from official GitHub Releases or a trusted package manager (brew) rather than piping an unknown install script to sh; 2) Inspect any install script or binary checksum on your machine; 3) Remember the tool reads your local My Clippings.txt and will save a config at ~/.config/kindle-clip/config.json — treat exported Markdown files as potentially sensitive (they contain your highlights) and avoid chaining automatic uploads (e.g., to messaging services) unless you intend to share them; 4) If you want extra safety, run the binary in a restricted environment or inspect the source and build from source yourself.
功能分析
Type: OpenClaw Skill Name: kindle-clip-cli Version: 1.1.0 The skill bundle facilitates the installation of a third-party CLI tool using a high-risk 'curl | sh' pattern in INSTALL.md, which executes a remote script from GitHub (emersonding/kindle-clip-processor). While the tool's functionality for parsing Kindle highlights appears legitimate, the installation method and the requirement for the AI agent to execute downloaded binaries and modify system paths (~/.local/bin) pose a significant supply chain risk without built-in verification of the remote artifacts.
能力评估
Purpose & Capability
The name/description match the declared behavior: this is an instruction-only skill that tells agents how to use the external `kindle-clip` CLI to parse/search/export Kindle clippings. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md and examples instruct the agent to run `kindle-clip` commands, read the user's clippings file(s) (e.g., ~/Documents/Kindle/My Clippings.txt or a mounted Kindle), and save a path to ~/.config/kindle-clip/config.json. This is expected for the stated purpose. Be aware RECIPES.md contains usage patterns that pipe results to other tools (e.g., send a summary to Telegram) — those are user workflows that can transmit extracted highlights externally if the user wires them up.
Install Mechanism
The skill bundle itself is instruction-only (no install spec), but INSTALL.md recommends installing the binary from GitHub Releases or via a curl|sh installer (raw.githubusercontent.com script). Downloading binaries or piping remote install scripts is common but carries risk: you should verify the GitHub repository, check release authenticity/checksums, and inspect any install script before running it (avoid blind `curl | sh` where possible). A suggested brew tap is also listed in skill.json which is lower risk if you trust the tap.
Credentials
No required environment variables or credentials are declared. The tool supports an optional KINDLE_CLIP_PATH env var and saves a local config file; these are proportionate to the purpose. There are no requests for unrelated secrets or cloud credentials.
Persistence & Privilege
The skill is not always-enabled and does not request elevated privileges. It does instruct the CLI to save a per-user config at ~/.config/kindle-clip/config.json and to write exported Markdown files — this is normal and limited to the user's home directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kindle-clip-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kindle-clip-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Update installation to Homebrew
v1.0.4
Improved installation instructions (removed unsafe script) and clarified default path usage.
v1.0.3
Fixed skill name/title display issue.
v1.0.2
Added RECIPES.md for automation workflows.
v1.0.1
Security update
v1.0.0
Initial release: Parse, print, search, filter and export Kindle highlights and notes. Includes list, print, and search commands with filtering by date, author, book, and keyword.
元数据
Slug kindle-clip-cli
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 6
常见问题

Kindle Clip CLI 是什么?

Parse, search, filter, and export Kindle highlights and notes from "My Clippings.txt" via a command-line tool with Markdown output. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 218 次。

如何安装 Kindle Clip CLI?

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

Kindle Clip CLI 是免费的吗?

是的,Kindle Clip CLI 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kindle Clip CLI 支持哪些平台?

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

谁开发了 Kindle Clip CLI?

由 Nan Ding(@emersonding)开发并维护,当前版本 v1.1.0。

💬 留言讨论