Stitch
A collection of skills / commands for Claude Code
npx -y skills add robrohan/claude-skills --skill StitchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
2.7 KB, as published. Nobody here has run it
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.