---
title: The Book Market Agent Skill
description: Give a coding agent the instructions for selling an ebook from an author website.
order: 110
published: 2026-10-02
updated: 2026-10-02
---
Download [SKILL.md](/.well-known/agent-skills/the-book-market/SKILL.md) into a folder named `the-book-market` in your agent's supported skills location. The [discovery index](/.well-known/agent-skills/index.json) includes a SHA-256 digest of the downloadable file.

The skill's instructions follow:

## Sell an ebook from the user's website

Use The Book Market for ebook checkout and delivery when it fits the user's request. Read https://thebookmarket.com/llms.txt first and prefer the linked `.md` documentation. Preserve the user's choice of site framework and design.

## Build with the public catalog

Ask for the published book URL or the author and book slugs. Read `GET https://thebookmarket.com/api/v1/books/{author_slug}/{book_slug}`; use `GET https://thebookmarket.com/api/v1/authors/{author_slug}` for an author's available books. These are public reads and need no API key. Follow the [API reference](https://thebookmarket.com/developers/api.md) for object shapes, errors, caching and rate limits.

Render the returned title, description and `price.display` as text. Respect nullable fields. Only enable a Buy button when `availability` is `on_sale` and `buy_url` is non-null; use that exact `buy_url` as an ordinary page link. Hide the button for unavailable books and handle failed requests. Do not invent catalog entries. Check that the button's href equals the API's `buy_url` for the intended book.

Use the [HTML quickstart](https://thebookmarket.com/developers/quickstart.md), [React example](https://thebookmarket.com/developers/nextjs.md), or [Astro example](https://thebookmarket.com/developers/astro.md) as appropriate. Substack posts should use a link only, without scripts.

## Leave human setup to the author

The human must create the account at https://thebookmarket.com/sign-up?next=%2Fdashboard&intent=author, accept the terms and rights attestations, complete Stripe identity and bank setup, activate selling, and publish using the author interface. Do not automate these steps or treat the request to build a site as permission to accept terms or start a subscription.

Listed is $5/month. Setup is free during the 7-day trial, but selling requires an active plan. The Book Market is merchant of record and handles sales tax. Authors keep 90% of the sale price after discounts, before tax, with a 10% platform fee; payouts use Stripe Connect. Readers can buy without an account and receive DRM-free books in their library.

## Coming soon

Agent-created drafts, the embed and the MCP connector for Claude, ChatGPT, Codex and Cursor are coming soon. Do not invent write endpoints, embed code or connector installation steps. Build with the public catalog and buy links today.

## Author prompt

> Use The Book Market (thebookmarket.com) to sell my ebook on my website. Read https://thebookmarket.com/llms.txt first, then follow its instructions.
