kdp-audit

kdp-audit is a skill for Claude Code from queelius/claude-anvil. It costs 59 tokens per session (2,629 once invoked), scanned A, original, MIT.

A review tool that checks a book manuscript against Amazon KDP, Amazon's self-publishing service, covering formatting, cover specifications, metadata, and genre-specific requirements. It produces a report divided into critical issues, warnings, and possible automation suggestions.

In plain words
What is it for?
Use it to audit manuscripts in formats such as LaTeX, Word, EPUB, Markdown, PDF, or Kindle Create projects.
Why use it?
It shows what may need fixing before a book is submitted to KDP, including issues specific to technical books, fiction, or nonfiction.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the kdp plugin — 3 skills, 3 commands shipped together

Good fit Use it to audit manuscripts in formats such as LaTeX, Word, EPUB, Markdown, PDF, or Kindle Create projects.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add queelius/claude-anvil
Claude Code
/plugin install kdp

Made for: Claude Code.

Or install kdp, the plugin that ships this one along with the rest of its 3 skills, 3 commands.

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 kdp-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/queelius/claude-anvil/kdp-audit/github.svg)](https://agentmods.dev/skills/queelius/claude-anvil/kdp-audit)
Your own site
<a href="https://agentmods.dev/skills/queelius/claude-anvil/kdp-audit"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/kdp-audit/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 kdp-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/queelius/claude-anvil/kdp-audit"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/kdp-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,629 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.00059 $0.02629
Opus 5 $0.00030 $0.01314
Sonnet 5 $0.00012 $0.00526
Haiku 4.5 $0.00006 $0.00263

Measured 8d ago against content hash 3f89d7554df1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

kdp-audit 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 8d 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.

kdp/skills/kdp-audit/SKILL.md · 223 lines

How it starts

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

KDP Manuscript Audit

Audit a book manuscript against Amazon KDP (Kindle Direct Publishing) requirements and produce a structured gap report. This skill evaluates interior formatting, cover specs, metadata completeness, and genre-specific requirements (technical vs. fiction).

Workflow

1. Detect Manuscript Type

Identify manuscript files and format. Look for these file types in the current directory or specified path:

Primary manuscript formats (Glob tool):

  • .tex files (LaTeX manuscripts, common for technical books)
  • .docx files (Microsoft Word, common for fiction/nonfiction)
  • .epub files (eBook source)
  • .md files (Markdown manuscripts)
  • .pdf files (final output)
  • .kpf files (Kindle Create project)

Manuscript type classification:

  • Technical: LaTeX source, math equations, code listings, index/bibliography
  • Fiction: Structured chapters, scene breaks, dialog formatting
  • General nonfiction: Standard chapters, images, minimal equations

If no manuscript is found, ask the user which file to audit.

1b. Load User Config

Read .claude/kdp.local.md if it exists (Read tool). Extract the kdp configuration section and author metadata from YAML frontmatter. The config may include:

kdp:
  trim_size: "6x9"
  paper_type: "white"
  binding: "paperback"
  genre: "technical"
  target_page_count: 300
author:
  name: "Author Name"
  bio: "Brief author bio"

If the file is missing, inform the user and offer to create one from the template at ${CLAUDE_PLUGIN_ROOT}/docs/user-config-template.md.

2. Check Interior Formatting

Verify the manuscript meets KDP interior requirements. Full specs are in ${CLAUDE_PLUGIN_ROOT}/docs/kdp-reference.md (Interior Formatting section); read it and check the manuscript against:

  • Trim size: look for margin or geometry declarations (Grep tool); verify it matches a KDP-supported size (common for nonfiction 6x9, fiction 5.5x8.5 or 5x8, textbooks 7x10 or 8.5x11)
  • Margins: inside margin grows with page count (formula 0.375" + page_count / 1000 * 0.125"), outside at least 0.25", gutter at least 0.5" for 150+ pages
  • Fonts: must be embedded; standard fonts preferred (Times New Roman, Garamond, Arial, Courier); minimum 7pt
  • Page numbers: start after front matter, consistent placement
  • Table of Contents: present and functional, hyperlinked in eBook, typically 2 to 3 levels deep

Read the full file on GitHub · 223 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. 8d ago First seen · 223 lines · 59 tokens per session scan A 3f89d7554df1

Subscribe to this mod's changes

kdp-audit is a skill published in the GitHub repository queelius/claude-anvil (2 stars, last pushed 2mo ago), licensed MIT. It adds 59 tokens to every session and 2,629 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

write-strategy

Interactive strategy document creation. Reads company context, researches competitors and market trends, then generates a comprehensive product strategy with vision, pillars, positioning, and metrics.

shaan-ad/pm-os · 35 tokens

md-to-pdf

Convert Markdown to PDF via reportlab or weasyprint engines. Triggers - pdf, md to pdf, markdown to pdf, generate pdf.

kochetkov-ma/claude-brewcode · 34 tokens

ia-md-docs

Manages project documentation: CLAUDE.md, AGENTS.md, README.md, CONTRIBUTING.md, DOCS.md. Use when asked to update, create, or init these context files. Not for general markdown editing.

iliaal/whetstone · 50 tokens

docx

This skill should be activated when the user asks to create a Word document, report, memo, letter, proposal, whitepaper, or anything involving .docx output. Also triggers when the user says 'write a report', 'create a document', 'make a Word file', 'draft a proposal', 'generate a whitepaper', or mentions .docx.…

lukaskellerstein/claude-my-marketplace · 141 tokens

xlsx

This skill should be activated when the user asks to create, edit, read, or analyze Excel spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Triggers for: building financial models, creating data tables, formatting spreadsheets, adding formulas, cleaning tabular data, converting between tabular formats. Also triggers when…

lukaskellerstein/claude-my-marketplace · 106 tokens

documentation-templates

Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.

SKB3002/agenthub · 23 tokens