book-source-craft

book-source-craft is a skill for Codex from XziXmn/legado-hub. It costs 90 tokens per session (855 once invoked), scanned A, original, MIT.

A guide for creating and maintaining Python plugins that connect novel websites to LegadoHub, a service that supplies reading sources to the Reading app. It also covers a lightweight Legado source wrapper.

In plain words
What is it for?
Use it to add or repair a book website source, implement searching and book details, list chapters, fetch chapter text, choose a source template, and run basic tests.
Why use it?
It separates website-specific code from shared concerns such as retries, caching, timeouts, and health checks. This reduces duplicated logic and helps avoid guessed selectors.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python dev-assets/probes/inspect_legado_source.py path/to/source.json.

Good fit Use it to add or repair a book website source, implement searching and book details, list chapters, fetch chapter text, choose a source template, and run basic tests.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/XziXmn/legado-hub
agentmods
npx agentmods add skills/xzixmn/legado-hub/book-source-craft

Made for: 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 book-source-craft

README.md
[![agentmods](https://agentmods.dev/badge/skills/xzixmn/legado-hub/book-source-craft/github.svg)](https://agentmods.dev/skills/xzixmn/legado-hub/book-source-craft)
Your own site
<a href="https://agentmods.dev/skills/xzixmn/legado-hub/book-source-craft"><img src="https://agentmods.dev/badge/skills/xzixmn/legado-hub/book-source-craft/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 book-source-craft

Your own site · 80×15
<a href="https://agentmods.dev/skills/xzixmn/legado-hub/book-source-craft"><img src="https://agentmods.dev/badge/skills/xzixmn/legado-hub/book-source-craft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 855 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00090 $0.00855
Opus 5 $0.00045 $0.00428
Sonnet 5 $0.00018 $0.00171
Haiku 4.5 $0.00009 $0.00085

Measured 12d ago against content hash 6058826cadde, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

book-source-craft 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 12d 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.

docs/skills/book-source-craft/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Book Source Craft

Use this skill to create or review LegadoHub Python source plugins and the thin Reading/Legado aggregate shell that exposes LegadoHub to the Reading app.

Core Principles

  • Treat Reading/Legado as an output compatibility surface, not the internal source format.
  • Work module by module: metadata, search, detail, toc, chapter, then smoke tests.
  • Keep concurrency, timeout, proxy, cache, retry, and health scoring in LegadoHub core.
  • Put only site-specific adaptation inside the plugin.
  • Prefer evidence from live HTML, captured pages, failed traces, public source JSON, or saved samples over guessing selectors.
  • Prefer existing source templates before writing one-off plugin logic.
  • Keep aggregate source-side JS thin; put heavy logic in LegadoHub service APIs.
  • Treat public source repositories as examples and pattern references, not blindly trusted runtime code.

Source Types

Choose the path before writing rules:

  • Python source plugin: a LegadoHub-native plugin implementing search, detail, toc, and chapter.
  • Template-based plugin: a plugin that inherits or configures a common repeated-site template.
  • Special-site plugin: a plugin with custom token, signing, decryption, pagination, or anti-bot handling.
  • Aggregate shell source: a single Reading/Legado source that calls LegadoHub APIs.
  • Imported source review: inspect existing public source JSON or So Novel rules and summarize reusable patterns.

Required Workflow

  1. Identify target: website URL, captured page, existing source JSON, aggregate API, or public source repository.
  2. Check accessibility and encoding for live sites.
  3. Inspect reference examples and existing templates before creating plugin code.
  4. Draft the smallest useful plugin module.
  5. Run search/detail/toc/chapter smoke checks through LegadoHub tooling when available.
  6. Repair from concrete failure evidence instead of rewriting blindly.
  7. Deliver plugin files plus a short validation checklist.

Read the full file on GitHub · 80 lines

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. 12d ago First seen · 80 lines · 90 tokens per session scan A 6058826cadde

Subscribe to this mod's changes

book-source-craft is a skill published in the GitHub repository XziXmn/legado-hub (64 stars, last pushed 5d ago), licensed MIT. It adds 90 tokens to every session and 855 once invoked, about $0.0005 per session on Opus 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.