Skip to content
Back to skills

Jubarte

ASecurity

Read, edit, comment on, compare, accept/reject, validate, and render Word .docx files with one engine. Use when the user mentions a Word doc, .docx, tracked changes, redline, comparing two documents, accepting changes, comments, or rendering to PDF or PNG. Covers jubarte read, edit plans, compare, accept, reject, changes, comments, validate, convert, diff, scrub, and Markdown to DOCX.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongoshellbash

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add jandira-tech/jubarte --skill jubarte --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jubarte?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jubarte
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jandira-tech-jubarte/badge)](https://www.skillsdirectory.com/skills/jandira-tech-jubarte)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jubarte
description: Read, edit, comment on, compare, accept/reject, validate, and render Word .docx files with one engine. Use when the user mentions a Word doc, .docx, tracked changes, redline, comparing two documents, accepting changes, comments, or rendering to PDF or PNG. Covers jubarte read, edit plans, compare, accept, reject, changes, comments, validate, convert, diff, scrub, and Markdown to DOCX.
license: Apache-2.0
metadata:
  author: jandira-tech
  version: "0.21.0"
---

<!--
SPDX-FileCopyrightText: 2026 Jandira Technologies, LLC

SPDX-License-Identifier: Apache-2.0
-->

# DOCX with jubarte: read, edit as tracked changes, verify

`jubarte` reads a `.docx` into addressable paragraphs, applies exact edits
as Word tracked changes with comments, produces the clean copy, and renders
pages to PDF and PNG from its own layout engine. You never touch
`word/document.xml`. Do NOT use for PDFs, spreadsheets, or Google Docs. A
legacy `.doc` is converted to `.docx` first, with the CLI (see
[commands](references/commands.md#convert-file)). No MCP tool reads a `.doc`:
over MCP, ask the user for a `.docx` converted outside the session.

## Three ways to run (same text, every build)

1. **Installed as a folder skill.** Run the bundled executable relative to
   this skill's directory: `bin/jubarte` (`bin/jubarte.exe` on Windows).
   Fall back to a `jubarte` on `PATH` only when the bundled file is absent.
2. **Served over MCP by the jubarte server.** Use that server's tools, never
   a shell: `docx_read`, `docx_edit_plan`, `docx_compare`, `docx_accept`,
   `docx_reject`, `docx_changes`, `docx_comments_list`, `docx_comments`,
   `docx_validate`,
   `docx_convert`, `docx_diff`, `docx_scrub`, `docx_capabilities`,
   `docx_doctor`, `docx_view`. Each tool's input schema (from `tools/list`) is
   authoritative; where a name below differs, the schema wins. Path
   arguments are relative to the server's `--root`. For example, reading
   one paragraph is the `docx_read` tool with
   `{"file": "contract.docx", "range": "p12"}` (exact fields per the
   live schema). Show one document with `docx_view {"path":"contract.docx"}`
   or compare up to three with `{"paths":["original.docx","revised.docx","redline.docx"]}`.
   Its text content includes the same markup as `docx_read`. PNGs are opt-in:
   add `"pages":[1],"dpi":96` to render selected pages with Word revision styling.
   At most five pages total across all documents; larger requests return `INVALID_ARGUMENT`.
   The card has Single/2/3-column and Swap controls, with a view switch in each
   column. See [the tool catalog](references/commands.md#mcp-tool-catalog) for limits.
   The reference files below are read from the same server
   (`skill://jubarte/references/commands.md`,
   `skill://jubarte/references/edit-plans.md`,
   `skill://jubarte/references/markdown-dialect.md`,
   `skill://jubarte/references/gotchas.md`).
   Follow the MCP workflow with the available tools, and do not prescribe
   shell commands in this context: read with `docx_read`, preview the edit
   with `docx_edit_plan`, apply it with `docx_edit_plan`, check the result
   with `docx_validate`, render pages with `docx_convert`. Every step
   comes back as a tool result (report JSON, receipts, field lists) — not
   as a shell exit code and never as files on stdout; where this skill
   cites exit codes or `--dry-run` `next:` commands, those describe the
   CLI surface only. `docx_validate` checks Word validity only: the
   tracked-edit provenance audit of [Verify](#3-verify) (`validate
   --original --author`) has no MCP tool, and MCP cannot run it. Inspect
   instead: compare `docx_changes` on the original and on the redline.
   The redline lists the original's changes, which keep their own authors,
   plus your new ones under your author. `docx_diff` between the original
   and the accepted output checks the content only; it does not prove
   that every edit was tracked.
3. **Slim build.** PDF and PNG layout needs fonts installed on the host
   ([gotchas](references/gotchas.md#slim-builds-and-fonts)), and so does an
   edit plan with `update_fields: true`. Reading, other edits, comparing,
   and validating need no fonts; without them a read's page markers can be
   estimates (`--no-page-markers` omits them).

New documents come from jubarte's own Markdown-to-DOCX conversion
(`jubarte convert draft.md -o draft.docx`, optionally
`--reference-doc house.docx`); see [New documents](references/markdown-dialect.md#new-documents).
No Python, npm, uvx, pandoc, LibreOffice, or docx-js is required.

| Task | Command or MCP tool |
|---|---|
| Read | `jubarte read file.docx` (Markdown with `<!-- pN -->` ids); `jubarte read file.docx --json` for data |
| Edit (tracked changes + comments) | `jubarte edit file.docx --plan plan.json --out-dir review` |
| Quick edit | `jubarte edit file.docx -p p12 --anchor "thirty days" --content "forty-five days" -a "Name"` |
| Add a paragraph, comment, or reply | `jubarte add file.docx -p p12 --content "New clause." -a "Name"` |
| Resolve one change | `jubarte edit file.docx -p r12 --accept` (or `--reject`) |
| Look at pages | `jubarte convert file.docx -o pages.png --dpi 100`, then read the PNGs |
| Page count and text | `jubarte convert file.docx -o pages.png --report pages.json` |
| Compare two versions | `jubarte compare a.docx b.docx` (agent view) or `-o redline.docx` |
| Clean copy of a redline | `jubarte accept redline.docx -o clean.docx` (or `reject`) |
| List changes | `jubarte changes file.docx --author "Name"`; MCP: `docx_changes` with optional `author` array |
| List comments | `jubarte comments file.docx --author "Name" --latest`; MCP: read-only `docx_comments_list` with optional `author` and `latest` |
| Add, reply to, or resolve comments over MCP | `docx_comments` with `action` (`add`, `reply`, `resolve`), new `out`, and `author`; reply/resolve accept listing `ref` (`cN`), numeric `id`, or its string as `comment_id` |
| Will Word open it, is every edit tracked | `jubarte validate redline.docx --original file.docx --author "Name"` |
| What can this build do | `jubarte capabilities` (`--json` for the manifest) |
| What can this build draw with | `jubarte doctor` (`--json`): fonts compiled in, folders searched, substitutes found or missing; slim renders without a face exit 1 with `FONT_UNAVAILABLE` |
| Scrub authors before sharing | `jubarte scrub in.docx -o out.docx` |

Flag reference for every command: [commands](references/commands.md).
Operation kinds, selectors, and refusal codes: [edit plans](references/edit-plans.md).
Tag grammar and Markdown round-trip: [Markdown dialect](references/markdown-dialect.md).
Mistakes that cost a rerun: [gotchas](references/gotchas.md).

## Chain commands, deliver files, check exit status

A chain passes files by path, not through stdout. Legacy `edit FILE` and
`add FILE` default to `FILE_modified.docx` (typed actions — `edit
replace|rewrite|insert|delete`, `edit apply` — never do: they require
explicit `-o`/`--out-dir`, `--save-plan`, or `--dry-run`; `edit template`
writes a plan, so it takes `-o PLAN.json` or `--dry-run` only);
anything else names its output with `-o PATH` or `--out-dir DIR`. An
existing output is refused (`OUTPUT_EXISTS`) unless you pass `--force`.

```bash
cp contract.docx contract.orig.docx
jubarte read contract.docx -p p3 -p p12
jubarte read contract.docx --tables -o tables.md
jubarte changes contract.docx --author "Ann" --json
jubarte edit contract.docx --plan plan.json --out-dir review
jubarte validate review/redline.docx --original contract.orig.docx --author Claude
```

- Name every file you deliver with `-o PATH` or `--out-dir DIR`, and give
  the user that path.
- Check the exit status after every command and stop the chain on a
  non-zero one: 0 done, 1 error (unreadable input, failed write), 2 usage
  (a flag combination refused before any work, an existing output),
  3 an edit plan refused (nothing written; see stderr and the report).
  `visual-diff` exits 5 when pages differ, 0 when none does. `convert`
  exits 4 under `--fail-on-substitution` when a font was substituted.
  `validate` exits 2 on any error, on any `word` or `edits` finding, and
  with `--strict` on any warning. Full receipt contract:
  [commands](references/commands.md#outputs-exit-codes-receipts).
- Validate the delivered file against the preserved original, not an
  intermediate. `--original` is the document the user gave you, and
  `--author` is the author your plan or flags wrote.
- `read`, `changes`, `comments`, `compare` without `-o`, `diff`, and
  `capabilities` print what they read; `-q` silences the `wrote`
  lines, the SUCCESS block, the edit summary, and the stderr validity
  status of `read`, `changes`, and `comments`. Details:
  [commands](references/commands.md#outputs-exit-codes-receipts).

## 1. Read before you edit

```bash
jubarte read contract.docx
jubarte read contract.docx -p p12,p40-p48
jubarte read contract.docx --head 20
```

`read` prints a YAML header (revision and comment counts, authors with
their handles, page setup, styles, headers and footers), then every
paragraph under an id line such as `<!-- p12 num "(a)" -->`. A bare `12`
is refused; use the settled spelling (`p12`, `r12`, or `c12`).
`--track-changes accept|reject` shows the text with every change resolved;
`--comments none` moves comment ids onto the id lines; `--no-page-markers`
omits the page markers. A file with no cached page breaks still runs the
layout pass to count its pages. The header's `sha256:` line is the plan's
`source_sha256`. Full tag grammar, tables, controls, and JSON snapshot:
[Markdown dialect](references/markdown-dialect.md).

## 2. Edit with a plan

A plan is JSON: author, optional date, the source hash, and operations.
Without `--skip-failed`, anything ambiguous fails the whole plan (exit 3)
and nothing is written; with it, passing operations land and failures go
to `PLAN.failed.json`.

```json
{
  "schema_version": 1,
  "source_sha256": "<the sha256: line of jubarte read>",
  "author": "Claude",
  "operations": [
    {"kind": "replace", "paragraph": "p1", "find": "his or her", "replacement": "their"},
    {"kind": "comment", "paragraph": "p88", "find": "Sections 1(g), ", "text": "Added 2(c)."},
    {"kind": "delete_paragraph", "paragraph": {"starts_with": "(d) Onward Disclosure."}}
  ]
}
```

```bash
jubarte edit contract.docx --plan plan.json --out-dir review --pdf --png --dpi 100
```

This writes `review/clean.docx`, `review/redline.docx`,
`review/patch.diff`, and `review/report.jsonl` (plus `redline.pdf` and
`clean.pdf` with `--pdf`, `redline-page-NN.png` and `clean-page-NN.png`
with `--png`; PNGs keep the document's page numbers). Without
`--skip-failed`, exit 0 means every operation matched exactly once; with
`--skip-failed`, exit 0 means at least one operation landed: the run
reports `status: partial` when operations were skipped (the failures are
left to fix in `PLAN.failed.json`) and `status: ok` when none were. Each
operation supplies the fields required by its kind: paragraph selectors
and text anchors, when required, must resolve uniquely unless the
operation explicitly supports another matching policy. The available
`kind` values, paragraph selectors, `fill_control`, top-level revision
policy, and every refusal code: [edit plans](references/edit-plans.md).
Small fixes can use `-p WHERE` flags instead of a plan file
(`-p p12 --anchor … --content …`, several `-p` per command);
[commands](references/commands.md#edit-file-plan-or--p-flags) lists them.

## 3. Verify

```bash
jubarte convert review/redline.docx -o review/pages.png --dpi 100 --report pages.json
```

Read the PNGs to look at the pages. `pages.json` holds `page_count` and
each page's painted text, so you can say which page a clause starts on.
`--changed-pages` keeps only the pages a revision or comment touches;
`--pages 3-5` renders only those pages (PNGs keep the document's page
numbers). `visual-diff before.docx after.docx --out-dir diff` writes only
the changed pages with the change boxed.

```bash
jubarte accept review/redline.docx -o check.docx
```

`read check.docx` must show the text of `read review/clean.docx`: that is
the accepted-output consistency check (the two outputs agree). It does not
by itself prove every edit was tracked, so run the tracked-edit check too:
`jubarte validate review/redline.docx --original contract.docx --author
Claude` runs Word-validity plus tracked-edit provenance in one, and also
fails on another author's comment you deleted, reworded, resolved, or
reopened, or on a comment or reply not signed `--author`
(`FOREIGN_COMMENT`). Under `existing_revisions: keep`, accept only your own
changes (`--author` with the plan's author). `--repair out.docx` fixes what
it can and lists what it cannot. Audit rules (`--rules a11y,style,structure`,
`--strict`) and refusals that come back empty: [gotchas](references/gotchas.md#verification).

## 4. Compare, accept, reject, scrub

```bash
jubarte compare original.docx revised.docx -o redline.docx --author "Legal"
jubarte changes redline.docx
jubarte accept redline.docx -o clean.docx
jubarte reject redline.docx -o base.docx
jubarte scrub in.docx -o out.docx
```

Either side of `compare` may be Markdown: `jubarte compare contract.docx
edited.md -o redline.docx` redlines only the Markdown's edits. `jubarte
diff old new` prints the changes as a patch (`--format critic` for two
Markdown files as CriticMarkup, `-o changes.patch` to file it).
`jubarte append a.docx b.docx -o ab.docx` joins documents on a new page
(`--carry-comments` keeps body- and note-anchored threads, else they are
dropped with a warning). With no selectors, `jubarte scrub` anonymizes
authors and removes rsids, document properties, and all comments;
selectors (`--rsids`, `--docprops`, `--comments`, `--author-alias`) select
only those. Details: [commands](references/commands.md).

Files in this skill

  • SKILL.md13.6 KB
  • references/commands.md19.5 KB
  • references/edit-plans.md17.7 KB
  • references/gotchas.md6.7 KB
  • references/markdown-dialect.md7.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.