/document-essentials:pdffrom Document Essentials
Use when the user brings a PDF into their BRICKS project and wants its content in the app — menus, price lists, schedules, catalogs, brochures, reports, or scanned documents. Extracts text on the design machine with a bundled script, routes the results into Data entries, Property Bank values, data-calculation sources, or media assets, and covers converting pages to images for slideshows. Also covers wiring runtime PDF ingestion (vectorStore RAG, parseDocument in data calculations) for apps that accept documents while running — note that mobile/TV launchers cannot parse PDF at runtime (web/desktop only). Triggers on "import this PDF", "read the menu from this PDF", "use this catalog", or any .pdf path in the prompt. Do NOT use for creating or exporting PDF files, or for Word docs, spreadsheets, and slide decks (use the docx / xlsx / pptx skills).
Ships in Document Essentials. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn a PDF into live app content: Data entries, Property Bank values, media assets, or searchable knowledge.
Announce at start: "I'm using the pdf skill to import this PDF."
Run the bundled script. Resolve the path against this skill directory (the
directory containing this SKILL.md) and pass the absolute script path to bun.
Keep it a single command — no pipes, redirections, or chained shell commands.
Internally it runs the version-pinned [email protected] CLI via bunx: the
first run downloads it (needs network once), then it's cached. If that first
run fails writing to Bun's cache in a restricted sandbox, the error message
shows the project-local cache fallback to use.
bun /absolute/path/to/pdf/scripts/pdf_extract.ts ~/Downloads/menu.pdf --out output/import/menu.txt
The script prints a JSON summary (chars, words, lines) and writes the full text
to --out. Read the output file, then sanity-check:
| Content | Destination | Why |
|---|---|---|
| A few values used in fixed places (title, phone, tagline, prices on one board) | Brick properties / Property Bank values | simplest; no indirection |
| Lists and tables the UI iterates (menu items, products, schedule rows) | Data entries (project Data, edited with edit_entry) | structured, drives list UIs |
| Content users will search or ask questions about | vectorStore ingestion (see ai-recipes doc-qa pattern) | semantic search / RAG |
| Page visuals worth showing as-is (designed brochure pages) | Page images in the media box → Slideshow brick | preserves layout fidelity |
Default for tabular content: Data entries. Ask the user only when the choice changes the app's structure.
output/import/<name>.json so the mapping is reviewable.edit_entry tool (Data type). Derive stable keys
from a natural field (item name, SKU) — not from row order — so re-imports
update instead of duplicate.When the design of the pages matters (brochures, designed menus):
media_upload_files, then reference them from a
Slideshow or Image brick. If the media tools are unavailable, ask the user
to upload via the Controller UI instead.Preview in the simulator: spot-check imported values against the source PDF — first item, last item, and one from the middle. Check currency and number formatting survived.
There is no OCR in this skill. Options, in order:
read_file — a
vision-capable model can transcribe the visible content. Verify transcribed
numbers carefully before importing.For apps that must ingest user-provided documents at runtime, don't parse at design time — wire the app itself:
vectorStore generator's insert-file command ingests Office / OpenOffice
/ PDF documents directly into searchable chunks.parseDocument(path) on a file.Platform caveat: runtime PDF parsing works on web and desktop launchers only — the mobile/TV launchers' document parser does not include PDF. If the app targets those devices, parse PDFs at design time or convert to a supported format first.
Re-run Step 1, diff the new structured JSON against the previous one, report added/removed/changed records to the user, and update Data entries by stable key. Never wholesale-delete entries unless asked.
docx /
xlsx / pptx skills.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mybigday/bricks-ctor-agent-skills --plugin document-essentials4 skills in this plugin
/docxUse when the user brings a Word document (.docx) into their BRICKS project and wants its content in the app — menus, price lists, policies, product sheets, event programs, manuals, service guides. Extracts headings, paragraphs, lists, tables, and embedded images on the design machine with a bundled zero-dependency script; routes the results into Data entries, Property Bank values, data-calculation sources, or media assets, and can feed the vectorStore for document Q&A. Covers re-import when the document changes and runtime ingestion for apps that accept uploaded documents. Triggers on "import this Word document", "use this docx", "read the menu from this Word file", or a .docx path in the prompt. Do NOT use to create or edit Word files as the deliverable, and not for PDFs, spreadsheets, or slide decks (use the pdf / xlsx / pptx skills)./pptxUse when the user brings a presentation (.pptx) into their BRICKS project — company decks, menus designed as slides, event programs — and wants it on screen. Extracts per-slide text, titles, speaker notes, and embedded images on the design machine with a bundled zero-dependency script; then builds or updates the app — a Slideshow brick playlist, re-authored native layouts, or media-box assets. Covers slide-to-signage conversion (aspect ratio and safe areas, per-slide duration, loop behavior) and re-import when the deck changes. Triggers on "turn this deck into signage", "import these slides", "use this presentation", or a .pptx path in the prompt. Do NOT use to author new .pptx files as the deliverable, and not for PDFs, Word docs, or spreadsheets (use the pdf / docx / xlsx skills).Other plugins' skills for the same job