No slash command · from Stencila
Converts documents between formats (DOCX, PDF, LaTeX, JATS, IPYNB, MyST, Quarto) and ingests papers by DOI, arXiv, or PubMed ID using stencila convert.
Ships in Stencila. 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.
NO_COLOR=1 stencila convert input.docx output.smd --yes
Formats are inferred from file extensions; --from/--to override. The
input may be a path, a URL, or a bare identifier (see Ingestion below).
stencila formats list prints the live capability table — which formats
decode (From), encode (To), and are lossless. Consult it rather than
guessing.
Only the data formats round-trip losslessly: CBOR, CBOR+Zstd, JSON, JSON+Zip, JSON5, JSON-LD, YAML. Everything else — DOCX, PDF, LaTeX, JATS, HTML, Markdown flavours, IPYNB — is lossy to some degree.
When converting to a lossy target, quantify what is dropped:
--input-losses — action on losses decoding the input--output-losses — action on losses encoding the outputBoth accept ignore, trace, debug (default), info, warn, error,
abort, or a .json/.yaml filename to write the losses to.
After a lossy conversion, tell the user what was lost rather than silently
producing a smaller document.
--fine / --coarse — decoding granularity. Fine (the default for most
formats) decodes to the finest structure; coarse preserves un-modelled
markup in larger blocks and is the default for LaTeX. Use --coarse when
fine decoding of a partially supported format mangles structure.--pages N-M / --exclude-pages — page selection for multi-page inputs
(e.g. PDFs): --pages 1,3,5-7, --pages 2-, keywords odd/even.--include-structuring / --exclude-structuring — structuring operations
that infer document structure (sections, abstracts, references) from
loosely structured input. Example:
--include-structuring sections-to-abstract.--ignore-artifacts — re-download / re-process instead of using cached
intermediate artifacts in .stencila/artifacts/.convert accepts identifiers directly as the input — a DOI, arXiv id, or
PubMed Central id — and fetches the document:
NO_COLOR=1 stencila convert 10.1371/journal.pcbi.1011999 paper.smd --yes
NO_COLOR=1 stencila convert arxiv:2004.10643 paper.smd --yes
NO_COLOR=1 stencila convert PMC7067710 paper.smd --yes
DOIs may be bare, doi:-prefixed, or https://doi.org/… URLs; arXiv ids
may be arXiv:-prefixed or arxiv.org URLs. OpenAlex work ids (e.g.
W2741809807) are also accepted.
Some formats encode via external tools. --tool pandoc selects Pandoc for
encoding, --from-tool for decoding, and arguments after -- pass through
to the tool:
NO_COLOR=1 stencila convert doc.smd doc.docx --tool pandoc --yes -- --reference-doc=style.docx
Round-trip through JSON to see exactly what Stencila modelled:
NO_COLOR=1 stencila convert doc.docx --to json --yes | head -100
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub stencila/stencila --plugin stencila13 skills in this plugin
/authoringHow to write Stencila Markdown (.smd) and work with executable documents in related flavours (.myst, .qmd). Use when creating or editing .smd files, adding executable code chunks, inline expressions, parameters, figures, tables, math, or document metadata, or when unsure how Stencila Markdown differs from plain Markdown./convertConvert a document between formats, reporting any conversion losses./doctorCheck the health of the Stencila CLI installation - version, available upgrades, kernels, linters, external tools, and workspace configuration. The first thing to run when anything Stencila-related is not working.Other plugins' skills for the same job