AI agents
Coding agents have seen far more of pdf.js, LibreOffice and the docx packages than of Ream, so they guess its API or reach for a converter on a server. Two things help:
- the package’s skills, which an agent loads when a task needs them;
- the docs as text (
llms.txt), for an agent or a chat that reads a URL.
The skills
Section titled “The skills”Ream has four skills, in the open Agent Skills format that most coding agents read. An agent reads each skill’s description first and loads the rest only when a task matches it.
| Skill | What it covers |
|---|---|
convert-documents |
Parse once and convert to PDF, SVG, HTML, Markdown, DOCX or XLSX; files in the browser and in Node.js; passwords; the loss report and strict mode; a PDF read back. |
supply-fonts |
PDF and SVG without network or behind a Content-Security-Policy; the CDN substitutes from a mirror; your own typefaces; the fonts installed on the machine; boxes in place of letters. |
documents-to-markdown |
Any document as Markdown for a language model, a search index or a docs site: pictures, slides, sheets and scanned PDFs. |
pdf-compliance |
PDF/A, PDF/UA, signing, encryption, bookmarks and metadata, which options exclude each other, and matching Word’s or LibreOffice’s pages. |
Each gives the calls to make, the mistakes agents tend to make and what goes
wrong with each. Ream’s test suite runs every recipe in them, so a change that
breaks one fails the build. The skills live in the repository’s
skills/
folder, and the npm package ships the same skills for the version you install
(from 1.37.0 on).
Claude Code
Section titled “Claude Code”Add the repository as a plugin marketplace, then install the plugin. In Claude Code:
/plugin marketplace add alex-krassavin/reamkit/plugin install reamkit@reamkitOr from a terminal:
claude plugin marketplace add alex-krassavin/reamkitclaude plugin install reamkit@reamkitThe plugin carries all four skills. Claude uses one on its own when a task
matches it, and you can call one directly: /reamkit:convert-documents,
/reamkit:supply-fonts, /reamkit:documents-to-markdown or
/reamkit:pdf-compliance. Newer skills arrive with
/plugin marketplace update reamkit, or turn on auto-update for the
marketplace in /plugin.
For a team
Section titled “For a team”Add --scope project to both commands. Claude Code then records the
marketplace and the plugin in the project’s .claude/settings.json; commit
it. Each teammate’s Claude Code offers the marketplace once they trust the
folder, and each runs the install once.
claude plugin marketplace add alex-krassavin/reamkit --scope projectclaude plugin install reamkit@reamkit --scope projectCodex, Cursor, Gemini CLI, GitHub Copilot and others
Section titled “Codex, Cursor, Gemini CLI, GitHub Copilot and others”The skills command installs the
skills into the folders these agents read. It asks which skills and which
agents:
npx skills add alex-krassavin/reamkitOr name them all at once:
npx skills add alex-krassavin/reamkit --skill '*' --agent codex cursor gemini-cli github-copilot -yThe skills go into the project’s .agents/skills/, which these agents share;
if you also pick Claude Code, the command links them into .claude/skills/.
-g installs them for your user instead of the project, and
npx skills update updates them later. The command sends anonymous install
counts to skills.sh; DISABLE_TELEMETRY=1 turns that off.
The skill of your installed version
Section titled “The skill of your installed version”The npm package carries its skills in node_modules, so an agent can use the
ones that match the version you have rather than the repository’s main branch.
Run this from your project, and again after updating reamkit. A local path
sends no telemetry.
npx skills add ./node_modules/reamkitWith TanStack Intent
Section titled “With TanStack Intent”The skills are shipped with TanStack Intent,
which can instead tell your agent to look them up in node_modules on its own:
npm install -D @tanstack/intentnpx intent installThe installer asks which packages’ skills to allow (outside an interactive
terminal, list them first in package.json: "intent": { "skills": ["reamkit"] }),
then writes the instructions to AGENTS.md. Claude Code reads CLAUDE.md, so
add the line @AGENTS.md there. npx intent list shows the skills, and
npx intent load reamkit#convert-documents prints one.
Copy the folders
Section titled “Copy the folders”For an agent that only reads a folder, copy each skill’s folder, under its own
name, into the one that agent reads. The package’s skills/ holds just the four:
mkdir -p .agents/skillscp -R node_modules/reamkit/skills/* .agents/skills/| Agent | In the project | For your user |
|---|---|---|
| Claude Code | .claude/skills/ |
~/.claude/skills/ |
| Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, Windsurf, Amp, Goose, Roo Code, Junie | .agents/skills/ |
~/.agents/skills/ |
| Cline | .cline/skills/ |
~/.cline/skills/ |
| Kiro | .kiro/skills/ |
~/.kiro/skills/ |
The docs as text
Section titled “The docs as text”This site serves its pages as plain text in the llms.txt format. Give an agent one of these URLs (as a docs source in Cursor, say) or paste it into a chat; they cover what the skills leave out.
| File | What it has |
|---|---|
/llms.txt |
An index: what Ream is, how it is used, and a link to each part of the docs. |
/llms-full.txt |
Every page: the guides and the whole API reference. |
/llms-small.txt |
The guides, without the API reference. |
/_llms-txt/api-reference.txt |
The API reference alone: the Ream class, the readers and writers, and the document model. |