ebook-dl

ebook-dl is a skill for Claude Code from natthasath/natthasath-marketplace. It costs 231 tokens per session (5,811 once invoked), scanned A, original, MIT.

A tool for finding legally available books or documents as PDF files and saving them to a user's Google Drive. Google Apps Script, a small program running on Google's servers, performs the download and storage so the agent does not handle the file contents directly.

In plain words
What is it for?
Use it to search for a named book or document, or identify one from a cover image, then save a suitable PDF from a trustworthy legal source to Google Drive.
Why use it?
It avoids manual downloading and uploading while reducing the risk of using files from unreliable or unauthorized sources.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the drive plugin — 1 skill shipped together

Good fit Use it to search for a named book or document, or identify one from a cover image, then save a suitable PDF from a trustworthy legal source to Google Drive.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/natthasath/natthasath-marketplace/ebook-dl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add natthasath/natthasath-marketplace --skill ebook-dl
Clone the repo
git clone --depth 1 https://github.com/natthasath/natthasath-marketplace

Made for: Claude Code.

Or install drive, the plugin that ships this one along with the rest of its 1 skill.

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 ebook-dl

README.md
[![agentmods](https://agentmods.dev/badge/skills/natthasath/natthasath-marketplace/ebook-dl/github.svg)](https://agentmods.dev/skills/natthasath/natthasath-marketplace/ebook-dl)
Your own site
<a href="https://agentmods.dev/skills/natthasath/natthasath-marketplace/ebook-dl"><img src="https://agentmods.dev/badge/skills/natthasath/natthasath-marketplace/ebook-dl/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 ebook-dl

Your own site · 80×15
<a href="https://agentmods.dev/skills/natthasath/natthasath-marketplace/ebook-dl"><img src="https://agentmods.dev/badge/skills/natthasath/natthasath-marketplace/ebook-dl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 231 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00231 $0.05811
Opus 5.5 $0.00092 $0.02324
Sonnet 5.5 $0.00046 $0.01162
Haiku 4.5 $0.00023 $0.00581

Measured 15d ago against content hash c58503aa42f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ebook-dl scanned grade A with 1 finding 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 15d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

4. **ห้ามลอง WebFetch ตรงเกิน 2 ครั้ง** ถ้าเจอ `PROXY_REJECTED`/403/404/timeout ให้ข้ามไปช่องทาง fallback แบบคลิกเดียวทันที — ห้าม debug ต่อ ห้ามลอง `curl`/Python แทน และห้ามบอกผู้ใช้ว่า deployment เสีย (อาการนี้มาจาก pr
plugins/drive/skills/ebook-dl/SKILL.md · 240 lines

How it starts

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

Ebook Auto-Download to Google Drive

คุณทำหน้าที่เป็นผู้เชี่ยวชาญด้านการค้นหาและจัดเก็บเอกสาร PDF โดยใช้ Web Tools เพื่อค้นหาไฟล์จากแหล่งที่น่าเชื่อถือและถูกต้องตามกฎหมายเท่านั้น แล้วสั่งให้ไฟล์ถูกบันทึกเข้าโฟลเดอร์ Google Drive ของผู้ใช้โดยอัตโนมัติ — ผู้ใช้ไม่ต้องดาวน์โหลดหรืออัปโหลดเองแม้แต่ขั้นตอนเดียว ปฏิบัติตามกฎทุกข้อด้านล่างอย่างเคร่งครัด

การดาวน์โหลดที่ดีไม่ใช่แค่หาให้เจอ แต่ต้องมั่นใจว่าแหล่งที่มาเชื่อถือได้ ไฟล์ถูกต้อง และมีสิทธิ์เผยแพร่ได้จริง — เพราะไฟล์ที่มาจากแหล่งไม่ชัดเจนมีความเสี่ยงทั้งด้านความถูกต้องและความปลอดภัย

Core Rules (Non-negotiable)

  1. ตรวจสอบสิทธิ์เผยแพร่อย่างเคร่งครัดก่อนดาวน์โหลดทุกครั้ง แม้การดาวน์โหลดจะอัตโนมัติแล้วก็ตาม — ระบบอัตโนมัติไม่รู้จักกฎหมายลิขสิทธิ์ คุณเป็นคนตัดสินใจแทนมันทุกครั้ง (ดู "พิจารณาแหล่งที่น่าเชื่อถือ" ในขั้นตอนที่ 3)
  2. ห้ามส่งต่อให้ Apps Script ดาวน์โหลดจากแหล่งละเมิดลิขสิทธิ์เด็ดขาด (Scribd, dokumen.pub, เว็บ "instant download"/"full chapters", หรือแหล่งใดก็ตามที่ไม่มั่นใจในสิทธิ์เผยแพร่) — บันทึกเป็น "Not Available" แทน
  3. เริ่มที่ Drive Queue เสมอ เป็นช่องทางแรกในการสั่งงาน Apps Script เพราะเป็นทางเดียวที่ไม่ต้องพึ่งผู้ใช้เลย — ห้ามข้ามไปช่องทางอื่นก่อนโดยไม่จำเป็น
  4. ห้ามลอง WebFetch ตรงเกิน 2 ครั้ง ถ้าเจอ PROXY_REJECTED/403/404/timeout ให้ข้ามไปช่องทาง fallback แบบคลิกเดียวทันที — ห้าม debug ต่อ ห้ามลอง curl/Python แทน และห้ามบอกผู้ใช้ว่า deployment เสีย (อาการนี้มาจาก proxy ฝั่งคุณ ไม่ใช่ฝั่งเขา)
  5. บันทึก Book List ทุกครั้งหลังจบการดาวน์โหลด ทั้งกรณีสำเร็จและล้มเหลว — ไม่ข้ามแม้ดาวน์โหลดไม่สำเร็จ
  6. apps_script_secret เขียนลง persistent memory เฉพาะตอนผู้ใช้ขอให้ "จำ" ไว้อย่างชัดเจนเท่านั้น ปกติเก็บไว้แค่ local config

สถาปัตยกรรม — ทำไมต้องมี Apps Script คั่นกลาง

คุณเองรันอยู่ใน sandbox ที่ต่ออินเทอร์เน็ตได้แค่โดเมนใน allowlist เท่านั้น จึง curl/fetch ไฟล์จากเว็บไซต์ทั่วไปตรงๆ ไม่ได้ และต่อให้ทำได้ การส่งเนื้อไฟล์ PDF ขนาดหลาย MB เป็น base64 ผ่านคำสั่งเดียวก็ทำไม่ได้เช่นกัน (เกินขีดจำกัดของสิ่งที่คุณ generate ออกมาในหนึ่งเทิร์น)

Google Apps Script ที่ผู้ใช้ deploy ไว้ (ดู references/setup-guide.md) แก้ปัญหาทั้งสองข้อพร้อมกัน เพราะมันรันบนเซิร์ฟเวอร์ของ Google เอง: fetch URL ต้นทางด้วย UrlFetchApp (ไม่ผ่าน sandbox ของคุณเลย) แล้วเซฟเข้า Google Drive ด้วย DriveApp โดยตรง — เนื้อไฟล์จริงไม่เคยผ่านคุณเลยสักไบต์

Read the full file on GitHub · 240 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 15d ago Changed · +14 lines c58503aa42f6
  2. 25d ago First seen · 226 lines · 231 tokens per session scan A 2e1d39b947cd

Subscribe to this mod's changes

ebook-dl is a skill published in the GitHub repository natthasath/natthasath-marketplace (1 stars, last pushed 10d ago), licensed MIT. It adds 231 tokens to every session and 5,811 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.

Related

Other skills, from other repositories

publish

Build a local HTML preview of an openEHR specification component with the published AAGLOBAL publishing image.

openEHR/ai-plugins · 21 tokens

pdf

Comprehensive PDF manipulation, extraction, and generation with support for text extraction, form filling, merging, splitting, annotations, and creation. Use when working with .pdf files for: (1) Extracting text and tables, (2) Filling PDF forms, (3) Merging/splitting PDFs, (4) Creating PDFs programmatically, (5)…

AutumnsGrove/ClaudeSkills · 87 tokens

pydicom

Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 52 tokens

markitdown

Converts heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 62 tokens

open-notebook

Organizes research with the self-hosted Open Notebook alternative to NotebookLM. Supports source ingestion (PDFs, web pages, audio, video, and Office documents), cited document chat, text and vector search, notes, custom transformations, and multi-speaker podcasts. Use when automating Open Notebook through its REST…

K-Dense-AI/scientific-agent-skills · 96 tokens

google-apps-script

Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a…

jezweb/claude-skills · 89 tokens