/remediate-pdf:remediate-pdffrom remediate-pdf
Auto-tags PDFs with PDF/UA semantic structure (headings, lists, tables, reading order) and validates against PDF/UA-1 with a JSON failure report. Routes Word, image, and scanned files through conversion and OCR first.
Ships in remediate-pdf. 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.
Make an existing document accessible with the Nutrient Accessibility API:
Files the Accessibility API can't take directly (Word, Excel, PowerPoint, images, scans without a
text layer) are converted or OCR'd first with the document-processor-api skill.
For a check-only request, run validate.py on the supplied PDF as-is, regardless of its tags.
Use the table when the user asks to prepare or remediate the file.
| Input | Path |
|---|---|
| PDF without tags | autotag.py, then validate.py |
| PDF that already has tags | validate.py first. If it fails, suggest Accessibility Studio's Repair, which keeps the existing tags. Re-tag with autotag.py only when the tags are unusable, and warn the user that re-tagging replaces the existing structure and alt text |
| Scanned PDF (no text layer) | OCR with document-processor-api's ocr.py, then autotag.py, then validate.py |
| PDF with both digital text and scans | Check whether the scanned pages contain text the reader needs and already have OCR. If required, OCR the missing text before tagging. Text on another page does not establish that the scanned pages are readable |
| Word, Excel, or PowerPoint file | Best: fix it in the source (heading styles, alt text, title, language) and export a tagged PDF (Word: Save as PDF with "Document structure tags for accessibility"), then validate.py. Otherwise convert with document-processor-api's convert.py, then autotag.py and validate.py |
| Image of a document | document-processor-api's ocr.py, then autotag.py and validate.py |
Validate before the user publishes or shares a file. Auto-tagging is built to produce PDF/UA-1 conformant output, but not every file passes (see Anti-patterns). Skip validation only for internal drafts the user doesn't plan to publish.
The dashboard prompt installs remediate-pdf by itself. When you need OCR or conversion, install
document-processor-api if the agent doesn't already have it:
claude plugin marketplace add pspdfkit-labs/nutrient-skills. Then run
claude plugin install nutrient-dws@nutrient-skills.npx skills add pspdfkit-labs/nutrient-skills --skill document-processor-api
and select the same agent.Find the directory containing the installed document-processor-api/SKILL.md and use that
directory for its script paths. Its scripts read NUTRIENT_API_KEY. If the dashboard set only
NUTRIENT_ACCESSIBILITY_API_KEY, pass that same value as NUTRIENT_API_KEY in the Processor
process environment on a unified plan. For a legacy account with separate keys, use the
Processor key. Keep the values in the process environment.
With processor_skill_dir set to the installed skill directory, run the relevant command:
uv run "$processor_skill_dir/scripts/ocr.py" --input /abs/scan.pdf --languages english --out /abs/scan-ocr.pdf
uv run "$processor_skill_dir/scripts/convert.py" --input /abs/report.docx --format pdf --out /abs/report.pdf
make-pdf (its own plugin: /plugin install make-pdf@nutrient-skills) to generate a NEW
compliant PDF from Markdown or HTML.document-processor-api to convert to PDF/A, merge, sign, or produce PDF/UA as one
output target of a wider /build job. Both that skill and this one use the same auto-tagging
engine (pdf_to_pdfua); this skill is the Accessibility API surface with validation.NUTRIENT_ACCESSIBILITY_API_KEY (the scripts also accept NUTRIENT_API_KEY):
export NUTRIENT_ACCESSIBILITY_API_KEY="pdf_live_..."
--input, --output, and --report, so the user's files resolve from any working directory:
uv run <skill-dir>/scripts/autotag.py --help
autotag.py — auto-tag a PDFuv run <skill-dir>/scripts/autotag.py --input /abs/doc.pdf --output /abs/doc-tagged.pdf
uv run <skill-dir>/scripts/autotag.py --url https://example.com/doc.pdf --output /abs/doc-tagged.pdf
POST https://api.nutrient.io/accessibility/autotag, multipart field file. --url is
downloaded client-side (https on port 443, public addresses only, no redirects).--output (default <input-stem>-tagged.pdf) and prints the pages
processed. Refuses to replace an existing file unless --overwrite is passed.--allow-no-text for intentionally text-free PDFs.validate.py — check a PDF against PDF/UA-1uv run <skill-dir>/scripts/validate.py --input /abs/doc.pdf
NUTRIENT_PDF_PASSWORD="..." uv run <skill-dir>/scripts/validate.py --input /abs/protected.pdf --with-password
POST https://api.nutrient.io/accessibility/validate_pdfua, multipart field file.isValid, writes the report to --report (default <input-stem>-validation.json), and prints
each failed check with its occurrences.--with-password sends the password from NUTRIENT_PDF_PASSWORD in the
pspdfkit-pdf-password header. A 403 means the password is missing or wrong, or the key isn't
enabled for the Accessibility API.autotag.py
stops with exit 2 above --confirm-over pages (default 10) or when the page count is unknown,
as with every --url. Tell the user the page count and re-run with --yes only after they
confirm.convert.py, ocr.py) is watermarked until
the account adds a wallet, and auto-tagging tags the watermark as page content. Tell the user
before preparing documents to publish.document-processor-api's split.py.A pass from validate.py covers the machine-testable PDF/UA-1 requirements. Before calling a
document accessible, ask the user to have someone check:
Some fixes need a person and a visual editor, and have no API. When a validation report or the user's request calls for them, point the user to Accessibility Studio in the Nutrient dashboard (https://dashboard.nutrient.io/):
Editing tags in Studio is free; only validation is billed. Manual edits can break conformance (for example, changing the first heading from H1 to H3), so validate again after editing.
isValid.--yes by default. It skips the cost gate.document-processor-api.NUTRIENT_PDF_PASSWORD.--url inputs must be https on port 443 and resolve to public addresses; the address actually
connected to is checked again, redirects are not followed, and the download is capped at
150 MiB and 300 seconds. The Nutrient backend never fetches the URL. Do not pass unsanitized
user-controlled strings to --url.0600 permissions on POSIX. On Windows, use a destination
with suitable access controls. The scripts never write through a destination symlink or over
the input, and replace an existing output only with --overwrite.references/accessibility-api-reference.md — endpoints, request and response shapes, report
schema, error codes, and pricing model.references/pdf-ua-wcag-compliance-notes.md — what auto-tagging and validation cover, PDF/UA vs
WCAG, Section 508 relationship.scripts/verify-pdf.py — the bundled offline structural checker (the identical file ships in the
make-pdf plugin; keep them in sync). Use it when no API key is available or for a free local
check; validate.py is the authoritative PDF/UA-1 validation.document-processor-api/SKILL.md — conversion, OCR, splitting, the /build PDF/UA
output target, and the same underlying auto-tagging engine.make-pdf skill (separate plugin: make-pdf@nutrient-skills) — generate NEW compliant
PDFs from Markdown/HTML.references/accessibility-api-reference.md (opens in a new tab)references/pdf-ua-wcag-compliance-notes.md (opens in a new tab)scripts/autotag.py (opens in a new tab)scripts/test_autotag.py (opens in a new tab)scripts/test_validate.py (opens in a new tab)scripts/validate.py (opens in a new tab)scripts/verify-pdf.py (opens in a new tab)tests/fixtures/sample.pdf (opens in a new tab)tests/fixtures/validation-failing.json (opens in a new tab)tests/smoke_autotag.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pspdfkit-labs/nutrient-skills --plugin remediate-pdfOther plugins' skills for the same job