library-add

library-add is a command for Claude Code from frankxai/agentic-creator-os. It costs 37 tokens per session (1,008 once invoked), scanned A, original, Apache-2.0.

A command that adds a new book to a site's library data using a defined review structure, such as its author, rating, insights, and reading time.

In plain words
What is it for?
Use it to create an initial book record and optionally continue with a deeper review workflow.
Why use it?
It reduces the chance of missing required fields or using an invalid format when adding a book entry.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the agentic-creator-os plugin — 133 commands, 80 agents shipped together

Good fit Use it to create an initial book record and optionally continue with a deeper review workflow.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/frankxai/agentic-creator-os/library-add
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.

Clone the repo
git clone --depth 1 https://github.com/frankxai/agentic-creator-os

Made for: Claude Code.

Or install agentic-creator-os, the plugin that ships this one along with the rest of its 133 commands, 80 agents.

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 library-add

README.md
[![agentmods](https://agentmods.dev/badge/commands/frankxai/agentic-creator-os/library-add/github.svg)](https://agentmods.dev/commands/frankxai/agentic-creator-os/library-add)
Your own site
<a href="https://agentmods.dev/commands/frankxai/agentic-creator-os/library-add"><img src="https://agentmods.dev/badge/commands/frankxai/agentic-creator-os/library-add/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 library-add

Your own site · 80×15
<a href="https://agentmods.dev/commands/frankxai/agentic-creator-os/library-add"><img src="https://agentmods.dev/badge/commands/frankxai/agentic-creator-os/library-add.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,008 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.00037 $0.01008
Opus 5.5 $0.00015 $0.00403
Sonnet 5.5 $0.00007 $0.00202
Haiku 4.5 $0.00004 $0.00101

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

Security

Grade A, and why

library-add 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 1mo 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.

curl -sL -o public/images/library/{slug}.jpg "https://covers.openlibrary.org/b/isbn/{ISBN}-L.jpg?default=false"
.claude/commands/library-add.md · 100 lines

How it starts

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

/library-add — Add a Book to the Library

You are the Library OS Ingestion agent. Your job is to take a book title (and optionally author / ISBN / Amazon URL) and produce a new, well-formed entry in data/book-reviews.ts.

Input

Arguments: /library-add "Book Title" [by Author] [--isbn=XXXX] [--amazon=URL]

If only the title is given, infer the author and ISBN. If ambiguous (multiple editions, multiple authors of same title), ask once, then proceed.

Execution

Step 1 — Validate schema

Read app/books/types.ts to confirm the current BookReview interface shape. Required fields are:

  • slug (kebab-case from title)
  • title
  • author
  • coverImage (path /images/library/{slug}.jpg)
  • rating (1–5, default 5 unless user overrides)
  • reviewDate (today's ISO date)
  • categories (2–3 from existing color-mapped set — check app/library/page.tsx for allowed categories)
  • readingTime (estimate: short book "5 min", dense "8 min")
  • keyInsights (exactly 5 items, each 1–2 sentences, non-overlapping)
  • bestFor (3–4 audience descriptors)

Optional fields to populate when confident:

  • amazonUrl
  • relatedBook (slug from booksRegistry — one of self-development, manifestation, spartan-mindset, imagination, great-transition, etc.)
  • publicationYear
  • tldr (1–2 sentences answering "what is this book about?" — used by JSON-LD, AEO)
  • faq (4–5 Q&A pairs — common questions about the book)

Step 2 — Pull the cover (if confident on ISBN)

Try OpenLibrary first:

mkdir -p public/images/library
curl -sL -o public/images/library/{slug}.jpg "https://covers.openlibrary.org/b/isbn/{ISBN}-L.jpg?default=false"
file public/images/library/{slug}.jpg  # verify JPEG

If the file is 0 bytes or not JPEG, do not set hasCover: true. The template falls back to the letter-gradient automatically.

Step 3 — Write the entry

Append to the bookReviews array in data/book-reviews.ts. Match the style and quote-escaping of existing entries exactly.

Read the full file on GitHub · 100 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. 1mo ago First seen · 100 lines · 37 tokens per session scan A 5f55a3d9ee78

Subscribe to this mod's changes

library-add is a command published in the GitHub repository frankxai/agentic-creator-os (12 stars, last pushed yesterday), licensed Apache-2.0. It adds 37 tokens to every session and 1,008 once invoked, about $0.0001 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-03.