Install
openclaw skills install kindle-clip-cliParse, search, filter, and export Kindle highlights and notes from "My Clippings.txt" via a command-line tool with Markdown output.
openclaw skills install kindle-clip-cliParse, print, search, filter and export Kindle highlights and notes from the command line.
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:
chmod +x kindle-clipkindle-clip to a directory in your PATH (e.g., ~/bin or /usr/local/bin):
mv kindle-clip /usr/local/bin/kindle-clip
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
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 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 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 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
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 outputCompact 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
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.
kindle-clip resolves the clippings file path in this order:
KINDLE_CLIP_PATH environment variable~/.config/kindle-clip/config.jsonIf you provide a directory instead of a file, it looks for:
<dir>/documents/My Clippings.txt (Kindle's typical location)<dir>/My Clippings.txt (fallback)When a user asks "What did I highlight about cognitive biases?":
kindle-clip search "cognitive bias" --export-md ./cognitive-bias-notes.md
When a user asks "Show me my notes from Sapiens":
kindle-clip print --book "Sapiens" --export-md ./sapiens-summary.md
When a user asks "What books did I read in 2024?":
kindle-clip list --from 2024-01-01 --to 2024-12-31 --verbose
When a user asks "Find all my notes about decision-making":
kindle-clip search "decision making" --export-md ./decision-making-research.md
--export-md when the user might want to save or review results later--verbose when users need full context or metadata--book "Sapiens" --from 2024-01-01)--book "Think" will match "Thinking, Fast and Slow"kindle-clip set at the start of a session for cleaner commandsIf 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:
kindle-clip set <path> to save a default pathKINDLE_CLIP_PATH environment variableSource code and releases: https://github.com/emersonding/kindle-clip-processor
See the main repository for license information.