stitch
Skill1 starsChanged 9 months agoMITView on GitHub
Run `stitch` to extract highlights from a Kindle or Kobo e-reader and write them to a JSON file. Use when the user wants to dump, export, or query their e-reader highlights.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- openstory-so/skillstheir own version, first seen Aug 21, 2026
- bergside/awesome-design-skillstheir own version, first seen Apr 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- bergside/awesome-design-skills★ 3.1ksame name
- openstory-so/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
If arguments were provided ($ARGUMENTS), use them to infer the device type and/or output file.
- Very specific: line 36
Before running stitch, make sure the binary is installed.
- Very specific: line 44
Check that stitch is available by running which stitch.
- Very specific: line 47
Run stitch -t <type> [-i <input>] [-o <output>] using the Bash tool.
- Distinctive: line 48
If successful, read back the output JSON with the Read tool and summarise:
- Very specific: line 57
If the device file is not accessible, stitch exits 0 but logs a warning to stderr.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
The user wants to run stitch to extract e-reader highlights.
If arguments were provided ($ARGUMENTS), use them to infer the device type and/or output file. Otherwise, ask the user which device type they want (kobo or kindle) and whether they have an input path or want to rely on environment variables.
How to run stitch
stitch [-i input_file] [-o output_file.json] -t [kobo|kindle]Options:
-t koboor-t kindle— required-i <path>— path to the input file (overrides env vars and defaults)-o <path>— output JSON file (defaults tokobo.jsonorkindle.json)
Typical input paths:
| OS | Device | Path |
| macOS | Kindle | /Volumes/Kindle/documents/My Clippings.txt |
| macOS | Kobo | /Volumes/KOBOeReader/.kobo/KoboReader.sqlite |
| Linux | Kindle | /media/$USER/Kindle/documents/My Clippings.txt |
| Linux | Kobo | /media/$USER/KOBOeReader/.kobo/KoboReader.sqlite |
Environment variables (set these to skip -i each time):
STITCH_KOBO— path to the Kobo SQLite fileSTITCH_KINDLE— path to the Kindle clippings file
Prerequisites
Before running stitch, make sure the binary is installed. If stitch is not found on the PATH, tell the user to download the appropriate binary for their platform from:
https://github.com/robrohan/stitch/releases
On macOS, after downloading, the user must right-click the binary in Finder and select "Open" once to bypass the unsigned binary warning before it can be used from the terminal.
Steps
- Check that
stitchis available by runningwhich stitch. If not found, stop and direct the user to download it from the releases page above. - Determine device type from
$ARGUMENTSor ask the user. - Determine input path: check if
STITCH_KOBO/STITCH_KINDLEis set, or ask the user for the path. - Run
stitch -t <type> [-i <input>] [-o <output>]using the Bash tool. - If successful, read back the output JSON with the Read tool and summarise:
- How many highlights were found
- How many unique books/titles
- Any annotations present
- Offer to filter or query the results further with
jq.
Notes
- The output always ends with a trailing
{}— this is expected, not an error. - If the device file is not accessible, stitch exits
0but logs a warning to stderr. Tell the user to check the device is mounted and the path is correct. idfields are base64-encoded SpookyHashes of the highlight text — stable across runs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

