/artcraft-skills:pdfcraft-documentsfrom artcraft-skills
Edits, secures, fills, signs, redacts, OCRs, compares, and checks PDFs using the PdfCraft MCP server. Covers page reorganization, text/object editing, forms, redaction, digital signatures, accessibility, and format conversion.
Ships in artcraft-skills. 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.
PdfCraft is an Acrobat-class PDF app (page organiser, text and object editing, forms, redaction,
digital signatures, OCR, accessibility checker, compare, PDF/A, optimiser). You drive it through
the pdfcraft MCP server (pdfcraft-cli mcp). This skill says how to work safely, which tool
does what, how to verify, and how to hand the file to the user.
references/task-map.mdreferences/workflows.mdreferences/gotchas.mdThe tools are deferred: load schemas with ToolSearch before calling (select:mcp__pdfcraft__doc_open, mcp__pdfcraft__page_render,...; a keyword query returns at most ~40 at a time, so select by name).
There are ~170 tools; the registry commands (command_list {filter} -> command_run {id, params},
command_batch {steps}) map onto the same tools (doc.compare = doc_compare), so prefer the named
tools. Unknown params are ignored with a warning: read warnings.
doc_open {path, password?} returns a document id (doc); every other tool
takes it. doc_create {from: blank|images|text} makes an unsaved doc. doc_list shows open docs and
dirty state. Edits live in memory and are undoable (edit_undo/edit_redo) until doc_save.
doc_close {doc, discard_changes:true} when finished.rect [x0,y0,x1,y1], at [x,y], text_find rects, comments, form rect. Exceptions: doc_compare
rects and form_detect_fields rects are bottom-left origin (PDF space); doc_watermark offset_y
is up-positive. US Letter is 612x792, A4 595x842.pages:[1,3,5]); doc_combine takes range strings ("1-3, 6").? (see warnings).render_preview {doc, page, max_side} (PNG, default 1024) and page_render {doc, page, dpi}
(default 96, max 600) show what a page really looks like; neither changes the document.pdfcraft-cli (shell): info, render, text, edit, combine, extract, split, audit
(faux-redaction finder, non-zero exit if found), check, batch. Handy for independent checks.doc_open, then doc_info (pages, sizes, metadata, bookmarks,
annotations, form fields, signatures, security, fonts, repair notes) and render_preview of the first
pages. text_extract empty on a page means a scan: OCR first if text work is needed.warnings.State the acceptance checklist before mutating; report at phase boundaries.
contract-redacted.pdf,
form-filled.pdf). doc_save with path is a full rewrite to a new file (original untouched);
doc_save without path saves in place (incremental update): do that only when told to.
If the target name exists and the user did not ask to replace it, pick another name.redact_mark alone removes nothing. After
redact_apply, save, reopen the saved file and prove the content is gone (recipe in
references/workflows.md A): text_find/text_extract for each sensitive string, doc_audit_redactions
(must report zero findings), render and look, doc_hidden_info for metadata/comments/attachments/form
fields/hidden text that still carry the data, and optionally pdfcraft-cli audit + pdftotext on the saved
file. Never "redact" by drawing a black rectangle (comment_add rectangle, page_add_*) over text:
that is a faux redaction and the text stays extractable. Redaction is irreversible once saved;
say so, keep the unredacted original, and don't send/upload the original.doc_hidden_info shows categories; doc_remove_hidden removes them and
flattens form fields). Remember metadata (Title, Author, XMP) can leak names.sign_document always saves to out and the document then shows the signed file.
Do not edit a signed PDF without telling the user it invalidates (or adds a revision to) the
signature; certify levels restrict changes. sign_list validates (status valid / unknown = untrusted
self-signed / invalid). A self-signed ID is "unknown" until sign_trust is given its certificate.
Never create or use a digital ID, password or signature image on someone's behalf without being given
it/asked; a typed "signature" (fill_sign_add) is a visual mark, not a cryptographic signature.doc_protect applies at the
next doc_save (full rewrite). Keep the unprotected original.references/task-map.md)| Job | Tools |
|---|---|
| Open/create/save | doc_open, doc_create, doc_save, doc_close, doc_list, doc_info, doc_inspect |
| Pages | page_delete/move/rotate/extract/duplicate/reverse/replace/insert_blank/insert_file/set_box/number, doc_combine, doc_split |
| Text | text_extract/find/lines/paragraphs/fonts/word_count, text_edit, page_add_text, content_list/update/copy/delete |
| Images/objects | page_add_image, page_images, image_edit, object_list/move, doc_export_images/all_images |
| Marks | doc_watermark, doc_background, doc_header_footer, stamp_custom, doc_remove_marks |
| Navigation | bookmark_*, link_*, links_from_urls, doc_initial_view, attachment_* |
| Comments | comment_add/list/edit/reply/set_status/delete, comments_summarize/hide |
| Forms | form_fields, form_fill, form_add_field, form_detect_fields, form_set_props, form_reset, form_tab_order, doc_import_data/export_data, doc_flatten |
| Redaction/privacy | redact_mark/apply/clear, doc_audit_redactions, doc_hidden_info, doc_remove_hidden |
| Signing | sign_id_create, sign_document, sign_list, sign_trust, fill_sign_add |
| OCR | ocr_status, ocr_recognize, ocr_recognize_files, page_enhance_camera |
| Accessibility | accessibility_check/fix/report/tags/figures/set_alt/autotag_* |
| Compare | doc_compare {doc:newer, other:older, visual?}, doc_compare_mark, doc_compare_report |
| Standards/size | pdfa_verify/convert, print_readiness, doc_optimize, doc_reduce, doc_audit_space |
| Security | doc_protect, doc_unprotect |
| Export | doc_export_text, doc_export_office (.docx/.pptx/.html/.rtf by extension), doc_export_data |
form_fields for names/types/options/required; form_fill {values:{name:value}}
(text/combo/radio: string; checkbox: true/false; multi-select list: array). A PDF with no fields: use
form_detect_fields {add:true} to create fields from blanks, or fill_sign_add to place text/check marks.
Verify by form_fields and a render. Keep the form editable unless asked to flatten (doc_flatten).
XFA forms: xfa_to_static first (irreversible for scripts; ask).text_fonts), its colours and its margins, not a stock
grey diagonal "CONFIDENTIAL" in Helvetica, unless the user asks for exactly that.doc_combine {paths, pages?, out} (ordered; keeps bookmarks, renames clashing
form fields); doc_split {doc, every|before|bookmarks|max_mb, out_dir}; page_extract.text_paragraphs {page} gives paragraph numbers and boxes; text_edit {paragraph|line, text, font, size, color} rewraps in place with standard fonts; for scans OCR first. Edited text may not
match the original embedded font exactly: render and compare.accessibility_check (32 rules) -> fix what can be fixed (accessibility_fix
title/primary-language/tab-order; accessibility_set_alt for figures; accessibility_autotag_* only for
simple untagged text-only/forms). The checker never certifies compliance: report failed and manual rules
honestly. Set the document Title (doc_set_info) and language.pdfa_verify -> pdfa_convert {level:"2b"|"3b"} -> verify again; non-embedded fonts remain
as unfixable findings.doc_optimize {path, preset:"standard"|"mobile"} or doc_reduce {path}; compare sizes, render
to check legibility; signed documents are refused.ocr_status first (English only); ocr_recognize {pages, dpi} adds invisible text over the scan;
verify with text_find and by spot-checking text vs image (OCR errors on numbers/names matter).After each phase on the working copy:
doc_info / doc_list: page count, dirty state, fields, signatures, security as expected.render_preview/page_render every changed page and look: placement, clipping, overlap, fonts.text_extract/text_find to confirm presence (edits) or absence (redactions).doc_audit_redactions, sign_list, accessibility_check, pdfa_verify, form_fields,
doc_compare of original vs result (only the intended changes appear).edit_undo/new edits; repeat.
For saved results, reopen the saved file (doc_open on the new path) for the final check, not only
the in-memory doc.doc_save {doc, path:"/abs/new.pdf"} (new file, full rewrite, atomic). flatten_fill_sign:true bakes
Fill & Sign marks in. full:true/false forces rewrite/incremental. Encryption and sanitising take
effect in the save.doc_export_office {path:".docx|.pptx|.html|.rtf"}, doc_export_text, doc_export_images,
doc_optimize, doc_split, page_extract {out}, doc_compare_report {path}: all create new files;
tell the user the paths.Every PDF job ends here, after the verify loop. The headless pdfcraft-cli mcp session has no window,
so the user cannot see the result until you save it and open the real app on it.
doc_save {path} in
the project directory or the path the user named; descriptive name (contract-redacted.pdf); for signed
output the out of sign_document. Note the full absolute path. Reopen it once to verify.setsid pdfcraft /abs/path/result.pdf >/dev/null 2>&1 &
(pdfcraft [options] [files...] is the desktop app, /usr/bin/pdfcraft, MIME application/pdf;
optional --page N, --zoom 150, --theme dark, --new-window. If a PdfCraft window is already
running, the file is passed to it.)doc_open of the saved file),
re-run the verify loop, save again (new version name or the same new file), reopen/refresh PdfCraft,
ask again, until accepted.references/gotchas.md)redact_mark removes nothing; redact_apply + save + reopen + audit does. Black rectangles are not redaction.doc_save without path overwrites in place: never by default.sign_document writes out itself; sign last; later edits break signatures.doc_protect and doc_remove_hidden only apply at the next save (full rewrite).doc_compare {doc: newer, other: older}: order matters.redact_mark rect works without text.?.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pdf-editing, pdf-forms, pdf-redaction, pdf-ocr, pdf-signatures, pdf-accessibility
npx claudepluginhub dnviti/artcraft-skills --plugin artcraft-skills16 skills in this plugin
/artcraft-routerSelector for the ArtCraft skills: picks which ArtCraft skill(s) to load for a request and loads nothing else itself. Use when a creative request spans several ArtCraft apps (FigCraft, VectorCraft, DesignCraft, DeckCraft, PhotoCraft, LightCraft, FilmCraft, EffectCraft, SoundCraft, WordCraft, GridCraft, PdfCraft, CadCraft, SolidCraft) or when it is unclear which one fits: brand identity, landing page with custom icons, video with narration or animated titles, podcast from a script, magazine with retouched photos, report or deck with data, part plus drawing. Skip it when one skill clearly matches./cadcraft-drawingsDraft, dimension, annotate and plot 2D technical drawings in CadCraft (ArtCraft's AutoCAD-class 2D drafting app, driven through the `cadcraft` MCP server, tools mcp__cadcraft__*, or through `cadcraft-cli`). Use whenever the user mentions CadCraft or the cadcraft MCP tools, or asks for a 2D technical drawing: floor plan, site or room layout, elevation or section, mechanical/part drawing with dimensions, schematic or detail sheet, title block, layers, blocks, hatching, dimensions and annotations, plot or print to PDF at a scale (1:50, 1:100), or to open, inspect, fix, convert (DXF to DWG, SVG, PDF, PNG) or measure DXF/DWG files. Covers units and scale planning, layers, geometry, dimension styles, layouts and viewports, the render-and-verify loop, save/export and the mandatory show-and-approve phase. 3D parts (solid modelling, STEP/STL) belong to solidcraft-cad, vector artwork to vectorcraft-illustration, multi-page print layout to designcraft-layout./deckcraft-presentationsBuild and edit slide decks in DeckCraft (ArtCraft's PowerPoint-style presentation app, driven through the `deckcraft` MCP server, tools mcp__deckcraft__*). Use whenever the user mentions DeckCraft or the deckcraft MCP tools, or asks to create, design, restyle or edit a presentation, slide deck, pitch deck, keynote/talk, training or sales deck, or report-as-slides in/with DeckCraft (slides, layouts, themes, text, shapes, charts, tables, images, SmartArt, speaker notes, transitions, animations, .deckcraft/.pptx/.pdf output). Covers the outline, theme and layout choices, build, render-and-verify, save/export and the mandatory show-and-approve workflow. Not for cases where the user explicitly asked for another format or tool (a .pptx made with python-pptx, Google Slides, a Claude Slides artifact, PDF editing in PdfCraft, UI design in FigCraft)./designcraft-layoutLay out magazines, books, brochures, flyers, catalogues, designed annual reports and other multi-page print documents in DesignCraft (ArtCraft's InDesign-class layout app, via the `designcraft` MCP server or `designcraft-cli`). Use whenever the user mentions DesignCraft or the designcraft MCP tools, or asks for page layout or desktop publishing work: a magazine or book layout, spreads with facing pages, parent (master) pages, running heads and page numbers, columns and grids, paragraph/character styles, text flow across threaded frames, image placement, tables, table of contents, footnotes, bleed and crop marks, preflight, print-ready PDF/X, IDML/InDesign import/export, EPUB. Covers setup, parents, styles, content flow, render-and-verify and the mandatory show-and-approve phase. Single-flow documents (letters, reports, contracts) belong to wordcraft-documents, vector artwork and logos to vectorcraft-illustration, editing an existing PDF to pdfcraft-documents, UI design to figcraft-design./effectcraft-motionBuild motion graphics, animated titles, lower thirds, logo stings, kinetic typography, compositing and visual effects in EffectCraft (ArtCraft's After Effects-class compositor, via the `effectcraft` MCP server (mcp__effectcraft__*) or `effectcraft-cli`). Use whenever the user mentions EffectCraft or the effectcraft MCP tools, or asks for an animated composition, motion graphics, animated title/intro/lower third, keyframes, expressions, text animators, shape layers, particles, glow/blur/distortion, green-screen keying, rotoscoping, motion tracking, stabilizing, 3D cameras/lights, Lottie export, or to render a comp to MP4/ProRes/WebM/GIF/PNG sequence (with alpha); also .ecproj files. Covers comp, layers, keyframes, effects, frame-preview verify, render and the mandatory show-and-approve phase. Cutting/assembling footage on a timeline and colour grading belong to filmcraft-video, audio-only work to soundcraft-audio, still images to photocraft-images, static vector artwork to vectorcraft-illustration./figcraft-designDesign UI in FigCraft (ArtCraft's Figma-class design app, driven through the `figcraft` MCP server) and turn FigCraft designs into frontend code. Use whenever the user mentions FigCraft or the figcraft MCP tools, or asks to design a screen, app screen, mobile screen, landing page, dashboard, UI mockup, wireframe, design system, design tokens, color/text styles, variables, Light/Dark themes, components with variants, a clickable prototype or user flow; asks for a distinctive, unique, non-generic or 'not AI-looking' UI, a new product-UI visual direction, several divergent design directions to choose from or an art-director critique; or to implement, build, code up or hand off a FigCraft design (design to code, React, Tailwind, CSS variables, export assets/icons). Covers brief → divergent directions → tokens → anchor component → screens → screenshot-verify → adversarial review → prototype, with distinctive (non-generic) design as the default, and pixel-faithful implementation in the user's stack.Other plugins' skills for the same job