agentleFS
robrohanrobrohan/claude-skills/skills/Stitch/SKILL.md

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.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use bold, cafe and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bergsideSkill

    bold

    Strong visual presence with heavyweight typography, high-contrast colors, and commanding layouts.

    Also in 4 projects that use this

  • bergsideSkill

    cafe

    Cozy cafe-inspired interface with warm tones, soft typography, and clean layouts for a relaxed browsing experience.

    Also in 4 projects that use this

  • +10 more from bergside

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 1

    Distinctive

    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
  1. Very specific:

    If arguments were provided ($ARGUMENTS), use them to infer the device type and/or output file.

    line 8
  2. Very specific:

    Before running stitch, make sure the binary is installed.

    line 36
  3. Very specific:

    Check that stitch is available by running which stitch.

    line 44
  4. Very specific:

    Run stitch -t <type> [-i <input>] [-o <output>] using the Bash tool.

    line 47
  5. Distinctive:

    If successful, read back the output JSON with the Read tool and summarise:

    line 48
  6. Very specific:

    If the device file is not accessible, stitch exits 0 but logs a warning to stderr.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 kobo or -t kindle — required
  • -i <path> — path to the input file (overrides env vars and defaults)
  • -o <path> — output JSON file (defaults to kobo.json or kindle.json)

Typical input paths:

OSDevicePath
macOSKindle/Volumes/Kindle/documents/My Clippings.txt
macOSKobo/Volumes/KOBOeReader/.kobo/KoboReader.sqlite
LinuxKindle/media/$USER/Kindle/documents/My Clippings.txt
LinuxKobo/media/$USER/KOBOeReader/.kobo/KoboReader.sqlite

Environment variables (set these to skip -i each time):

  • STITCH_KOBO — path to the Kobo SQLite file
  • STITCH_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

  1. Check that stitch is available by running which stitch. If not found, stop and direct the user to download it from the releases page above.
  2. Determine device type from $ARGUMENTS or ask the user.
  3. Determine input path: check if STITCH_KOBO / STITCH_KINDLE is set, or ask the user for the path.
  4. Run stitch -t <type> [-i <input>] [-o <output>] using the Bash tool.
  5. 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
  6. 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 0 but logs a warning to stderr. Tell the user to check the device is mounted and the path is correct.
  • id fields are base64-encoded SpookyHashes of the highlight text — stable across runs.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.