kobo2calibre: Skill for Claude Code

.agents/skills/clear-highlights/SKILL.md

clear-highlights is a skill for Claude Code, Codex from degiz/kobo2calibre. It costs 17 tokens per session (256 once invoked), scanned A, original, MIT.

A controlled cleanup workflow for removing a book’s saved highlights from Kobo and/or Calibre databases. Kobo is an e-reader platform, while Calibre is an ebook library manager.

In plain words
What is it for?
Use it to remove all non-empty highlights for a selected book from Kobo, Calibre, or both. It reports how many database rows were deleted.
Why use it?
It reduces the risk of deleting the wrong records by finding the book, showing the number of highlights, and requesting confirmation first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions OpenCode.

This is degiz/kobo2calibre's own configuration. It tells Claude Code and Codex how to work on kobo2calibre itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kobo2calibre configures →

Reuse

Borrowing it

Nothing to install: this file belongs to degiz/kobo2calibre. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/degiz/kobo2calibre/main/.agents/skills/clear-highlights/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/degiz/kobo2calibre

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clear-highlights

README.md
[![agentmods](https://agentmods.dev/badge/skills/degiz/kobo2calibre/clear-highlights/github.svg)](https://agentmods.dev/skills/degiz/kobo2calibre/clear-highlights)
Your own site
<a href="https://agentmods.dev/skills/degiz/kobo2calibre/clear-highlights"><img src="https://agentmods.dev/badge/skills/degiz/kobo2calibre/clear-highlights/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clear-highlights

Your own site · 80×15
<a href="https://agentmods.dev/skills/degiz/kobo2calibre/clear-highlights"><img src="https://agentmods.dev/badge/skills/degiz/kobo2calibre/clear-highlights.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 256 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00256
Opus 5.5 $0.00007 $0.00102
Sonnet 5.5 $0.00003 $0.00051
Haiku 4.5 $0.00002 $0.00026

Measured 2mo ago against content hash 6b39a57f623f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clear-highlights scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/clear-highlights/SKILL.md · 26 lines

What it actually says

Clear Highlights

Config

Read paths.kobo_db and paths.calibre_db from .agents/config.yaml. If the file is missing, ask the user for paths and create it.

Steps

  1. Ask user: which DB(s) (Kobo / Calibre / both) and book name
  2. Find book — confirm with user before proceeding:
    • Kobo: SELECT VolumeID, COUNT(*) FROM Bookmark WHERE VolumeID LIKE '%<name>%' AND Text != '' GROUP BY VolumeID
    • Calibre: SELECT b.id, b.title, COUNT(a.id) FROM books b JOIN annotations a ON a.book = b.id WHERE b.title LIKE '%<name>%' AND a.user_type = 'local' GROUP BY b.id
  3. Show count, confirm deletion with user
  4. Delete:
    • Kobo: DELETE FROM Bookmark WHERE VolumeID = ? AND Text != ''
    • Calibre: DELETE FROM annotations WHERE book = ? AND user_type = 'local'
  5. Report rows deleted
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 26 lines · 17 tokens per session scan A 6b39a57f623f

Subscribe to this mod's changes

clear-highlights is a skill published in the GitHub repository degiz/kobo2calibre (23 stars, last pushed 7mo ago), licensed MIT. It adds 17 tokens to every session and 256 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

clear-highlights compared with skills from other repositories

clear-highlights next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clear-highlightsdegiz/kobo2calibreSkill237mo agoMITA17Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code