Local-first execution and verification engine for real-world artifacts (PDF, PPTX, DOCX, XLSX, PNG/JPEG/WebP, HTML, SVG, CSV, Markdown, EPUB, video/audio media). Use it whenever you create or modify a document-like file and need to prove it is actually correct before calling the job done — inspect what a file really is, plan a mutation before touching it, execute it without overwriting the original, render it to images, run structural checks, and get a machine-readable Artifact Verification Receipt. Trigger on requests like "make sure this PDF is correct", "verify this document before I send it", "did the page count come out right", "check this file isn't corrupted", or any time you are about to say a generated artifact is "done" without having checked it.
Ships in artifacts-skill. 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.
None: SKILL.md is the whole skill.
You (the agent) generate PDFs, slide decks, spreadsheets, and other real
files. Generating a file is not the same as producing a correct one. This
skill gives you a CLI (artifacts-skill) that inspects, mutates safely,
renders to images, and verifies — and it never just tells you "done"
without evidence.
Currently implemented: PDF, PPTX, DOCX, XLSX (all four Tier 1 formats),
PNG/JPEG/WebP, HTML, SVG, CSV, Markdown, EPUB, and video/audio media
(MP4/MOV/WebM/WAV). Every format from the original design brief's Tier 1
and Tier 2 is built, plus CSV/Markdown/EPUB/Media added beyond it. A
genuinely unrecognized file returns a clear ARTIFACT_TYPE_UNSUPPORTED
error, never a silent no-op. HTML, SVG, CSV, Markdown, and Media have no
mutating operations by design (inspect/render/verify only — editing/
generating media is squarely another tool's job, not this skill's). EPUB
has one operation (metadata_set, title/author only) and renders one PNG
per spine document via Playwright/Chromium (needs playwright install chromium); Media renders one representative frame via ffmpeg/ffprobe
(needs both on PATH) — see docs/adapters.md for details.
docs/architecture.md.pypdf/pypdfium2, python-pptx/
python-docx/openpyxl, LibreOffice, Playwright+Chromium, Pillow). No file
is ever uploaded anywhere, and no functionality depends on a cloud
account or API key..srt, .vtt,
.ass) are not recognized (ARTIFACT_TYPE_UNSUPPORTED), and the Media
adapter does not read subtitle streams. Generating, validating, timing,
translating or burning in captions is subtitle-skill's job; checking
caption timing against the delivered video is qc-skill's. A caption
script delivered as a document (DOCX, PDF, Markdown) is verified here
like any other document. See docs/architecture.md, "Captions".is_encrypted
in inspect, an encryption structural check) but there is no operation
or argument anywhere in this skill to supply a password and decrypt —
every command on an encrypted PDF stops there. If the task is "check
this password-protected PDF," decrypt it with another tool first.If Anthropic's own docx/pdf/pptx/xlsx skills
(github.com/anthropics/skills) are also installed in your environment,
they are the ones that generate those files from a prompt or template.
This skill does not compete with them — generation is theirs,
verification is this skill's. A typical flow: generate the document with
those skills (or any other generator), then run it through this skill's
inspect → execute → render → verify → receipt lifecycle before telling the
user the job is done. Don't route a "create a slide deck about X" request
here; do route a "make sure the deck you just created actually has 10
slides and no encryption" request here.
ffmpeg-skillThe same split applies to video/audio if kajisho5/ffmpeg-skill (28
standalone ffmpeg tools — trim, concat, transcode, extract audio, and so
on) is also installed: ffmpeg-skill generates or edits the media, this
skill's Media adapter verifies whatever it produced — structural facts
via ffprobe (duration, codecs, streams, resolution) plus one extracted
representative frame as visual evidence, per docs/roadmap.md's
generation/verification split. A typical flow: run an ffmpeg-skill tool
(e.g. trim a clip), then run this skill's inspect → verify (→ receipt, once
a verify-only receipt path exists — see Issue #18) on its output before
telling the user the job is done. artifacts-skill doctor reports whether
ffmpeg-skill is installed (companion.ffmpeg_skill, detected by the
presence of its SKILL.md under a .claude/.cursor/.codex skills
directory — the same install model ffmpeg-skill's own installer uses)
purely as an informational signal; neither skill has a functional
dependency on the other, and this is a workflow pattern for an agent that
happens to have both loaded, not a code-level integration between the two
projects.
Follow this order. Do not skip straight to "execute" on a file you have not inspected, and do not report success without having verified.
inspect — read-only. Learn what the file actually is (page count,
encryption, metadata, embedded JS, extractable text). Never trust a file
extension; this command doesn't either — it sniffs content.plan — pure, read-only. Before mutating anything, see exactly what
execute would do: which adapter, what capabilities it needs, what files
it will create (never the input file itself), and any risks.execute — perform the operation. Writes only to a new output path
(<name>_artifact_<operation>.<ext> by default). The input file is never
overwritten, ever, even if you pass the same path as --output.render — turn the result into page images (PNG) so you (the agent)
can actually look at it, not just trust that bytes exist.verify — run structural checks (page count, page size, encryption,
JavaScript, extractable text, and anything else you pass as --policy).
Never renders anything itself — a fact only measurable by rendering
(e.g. DOCX page_count) stays honestly UNKNOWN under bare verify
even though execute/receipt would report it as a real, measured
PASS (their lifecycle already renders for visual evidence and reuses
that). Use receipt (or render then verify) instead if you need
that specific fact measured, not just checked for.
Reports one of six states per check — PASS, WARN, FAIL, UNKNOWN,
NOT_CHECKED, SKIPPED — never collapses "we didn't check this" into
"it's fine." Read checks[].status by id for the specific things
you care about, not just the top-level aggregate status. The
aggregate is worst-status-wins across every check the adapter ran
(docs/verification.md) — a document that's genuinely fine on the
dimension you actually care about can still show an aggregate
UNKNOWN because an unrelated check (e.g. XLSX's
formula_recalculation, always UNKNOWN whenever any formula is
present, by design) couldn't be answered. That's UNKNOWN doing its
job, not the preset being broken.docs/architecture.md "Brain vs
Hands").receipt — or skip straight to this: with --operation, it runs
the whole inspect→execute→render→verify→[fix loop]→receipt lifecycle
for that operation; without it, inspect→render→verify→receipt with no
mutation and no fix loop (the only way to get a receipt for a format
with zero mutating operations, like HTML/SVG). Either way it writes
receipt.json — the Artifact Verification Receipt, schema
artifact-receipt/v1 — into a fresh
reports/<run-id>/ directory of its own (or into --evidence-dir, if
you pass one, exactly as given), which is what
you should point to as evidence when you tell the user the job is
done. The fix loop (operation-only) retries up to
Limits.max_fix_iterations (3) by default — pass --max-iterations 1
if you specifically want to disable it, not the other way around.If a structural check FAILs, do not report success. Either fix the input
and re-run, or tell the user exactly what failed and why (the receipt's
warnings/limitations and each check's message field say this in
plain language already — surface them, don't paraphrase around them).
Always pass --policy or --policy-preset when it matters. The
default policy ({}) barely gates anything — a document with leftover
"Lorem ipsum"/"Click to add title" text, for example, only ever WARNs
(exit 0) under an empty policy, not FAILs. Reach for a named preset
(print-a4, print-letter, slides-16x9, spreadsheet-no-cached-errors,
web-no-external — see policies.py) before writing a policy dict by
hand; every preset already sets forbid_placeholder_text: true, so
leftover generation artifacts are a hard FAIL under any of them, not a
silent WARN. execute, verify, and receipt all accept
--policy-preset/--policy (explicit fields override the preset).
Check a summary, script or description against its source. When the
document was written from a transcript or slides, add
"grounding_sources": ["transcript.txt", "slides.pptx"] to the policy.
Every number with a unit, every date, every recognised drug name and
every titled person's name in the document must then appear in a source;
each one that does not is listed in the source_grounding check (FAIL,
with the text and line). Add "grounding_terms": [...] for names or
terms the patterns do not catch (a name without a title, a drug name in
Japanese). Nothing is changed in the document: report each finding to
the user, do not quietly edit it away.
artifacts-skill verify summary.md --json \
--policy '{"grounding_sources": ["transcript.txt"], "grounding_terms": ["Okafor"]}'
Check an end roll, description or credits document against the assets'
licences. Add "licence_records": "licences.json" (or the list itself)
to the policy: one record per asset used (BGM, sound effects, stock
footage, AI voices, fonts) with asset, licence and, where the licence
asks for one, attribution or credit, author, title, licence_url.
sound-design-skill's library records and library-index rows are read as
they are. The credits_attribution check fails for each asset whose
required attribution is missing or not worded as its record asks, naming
the asset. Nothing is written into the document for you.
Check a cue sheet, run-of-show, speaker list or lower-third CSV against
the organiser's source list. Add "event_source": "speakers.csv" (a CSV
with a header row, a JSON file, or the rows themselves: name,
honorific, title, affiliation, session, start, end). The
event_source_match check fails for every name, title or affiliation not
spelled exactly as the source spells it (a variant character such as
髙/高 or 﨑/崎 is reported with the character that differs), every
dropped honorific and every session time that differs, each with its
source row and the document line. Add "event_fields": ["name", "title"]
when the document carries only some of the fields (a lower third with no
times). Nothing is changed in the document.
artifacts-skill verify run_of_show.csv --json --policy '{"event_source": "speakers.csv"}'
The most common task is verifying a document you (or another tool) already
generated — most formats need no mutation at all, just a real policy.
receipt with no --operation is the one-shot version: inspect → render →
structural verify → receipt, no mutation, no fix loop — and it's the only
way to get an Artifact Verification Receipt at all for a format with zero mutating
operations (HTML, SVG):
artifacts-skill doctor --json # what's available on this machine
artifacts-skill receipt report.pdf --policy-preset print-a4 # a real submission gate, not the empty default
artifacts-skill receipt deck.pptx --policy-preset slides-16x9
artifacts-skill receipt page.html --policy-preset web-no-external # HTML has no operations — this still works
artifacts-skill look report.pdf --out-dir reports/rendered # then actually look at the rendered evidence
--output is invalid without --operation (nothing is written without a
mutation) — plain verify/look still work standalone too, if you want
just one piece of evidence rather than the full receipt.
If the document also needs a mutation first (metadata, page selection,
etc.), pass --operation — receipt still runs the whole lifecycle
(including the fix loop) in one call and still accepts --policy-preset:
artifacts-skill inspect report.pdf --json
artifacts-skill plan report.pdf --operation metadata_set --args '{"title":"Q3 Report"}'
artifacts-skill receipt report.pdf --operation metadata_set --args '{"title":"Q3 Report"}' \
--policy-preset print-a4
artifacts-skill render report_artifact_metadata_set.pdf --out-dir reports/rendered
artifacts-skill look report.pdf --compare-to report_artifact_metadata_set.pdf # before/after contact sheet
# Same lifecycle works on PPTX — same commands, same verbs:
artifacts-skill receipt deck.pptx --operation metadata_set --args '{"title":"Q3 Deck"}' \
--policy-preset slides-16x9 --policy '{"require_slide_count":10}'
Supported PDF operations today: metadata_set (title/author/subject/keywords),
merge (append additional PDFs), fit_page_size, extract_pages,
delete_pages, and rotate_pages. Supported PPTX operations: metadata_set
and strip_placeholders. Supported DOCX and XLSX operations today:
metadata_set (title/author/subject/keywords). Supported image (PNG/JPEG/
WebP) operations today: resize and convert_format. Supported EPUB
operations today: metadata_set (title/author only). CSV and Markdown
have no mutating operations, same as HTML/SVG. Media (video/audio) also
has no mutating operations — editing/transcoding media is another tool's
job, not this skill's. Run
artifacts-skill contract --json for the exact, current, machine-readable
schema of every command — treat it as the source of truth over this prose
if they ever disagree.
execute --dry-run performs zero I/O and spawns zero subprocesses —
verified by this project's own test suite.PASS is only returned when a check
actually ran and actually passed. A capability that isn't installed
reports UNKNOWN/MISSING, never a silent pass.Run artifacts-skill doctor --json first if a command fails with
ARTIFACT_CAPABILITY_MISSING. It tells you exactly what's
AVAILABLE/MISSING/UNKNOWN/NOT_REQUIRED/NOT_IMPLEMENTED and how to fix it
(usually pip install -e ".[all]" from the package root — a per-format
extra like .[pdf] only covers that one format's backends). Do not guess
at a workaround — the remediation field in the error is authoritative.
The same nine commands are exposed as MCP tools (artifacts-skill.inspect,
artifacts-skill.plan, ...) via python -m artifact_skill.mcp.server
(stdio). Tool schemas there are generated from the same contract as this
CLI — see docs/contract.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/artifacts-skill:artifacts-skillfrom artifacts-skill
artifacts-skill@velisa is listed by kajisho5/velisa — review the source before installing
npx claudepluginhub kajisho5/velisa --plugin artifacts-skill