craft-doc-publish

craft-doc-publish is a skill for Claude Code, Codex from BlackBeltTechnology/pi-agent-dashboard. It costs 84 tokens per session (3,893 once invoked), scanned B, original, MIT.

A document-publishing workflow that turns Markdown and a template into editable DOCX and PDF files. Markdown is plain-text formatting, while DOCX is the editable format used by Microsoft Word.

In plain words
What is it for?
Use it to publish templated reports and other Markdown documents as Word files, PDFs, or packaged PDFs.
Why use it?
It avoids rebuilding reports by hand and keeps the template, body text, table of contents, images, and optional PDF packaging in one process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to publish templated reports and other Markdown documents as Word files, PDFs, or packaged PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BlackBeltTechnology/pi-agent-dashboard --skill craft-doc-publish
Clone the repo
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for craft-doc-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish/github.svg)](https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish)
Your own site
<a href="https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for craft-doc-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/craft-doc-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,893 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03893
Opus 5.5 $0.00034 $0.01557
Sonnet 5.5 $0.00017 $0.00779
Haiku 4.5 $0.00008 $0.00389

Measured 1mo ago against content hash cea204f4c403, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

craft-doc-publish scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

S=$(mktemp); chmod 600 "$S"
packages/craft-apps/.pi/skills/craft-doc-publish/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

craft-doc-publish — Markdown + template → DOCX + PDF (→ packaged PDF)

The default Markdown → templated DOCX/PDF path. pi-craft doc prepare fills the template's placeholders (frontmatter, --var, template defaults, system variables) and prepares the body; WordCraft then only appends the body, builds the TOC and exports; PdfCraft packages the result. No Docker, no pandoc. Read wordcraft (and pdfcraft for step 3) first. Resumable-job rules are in the craft-studio router, section Craft jobs. Ingest/OCR of existing documents, round-trip editing (extract → edit → merge back), PlantUML and table-width profiles stay with document-converter.

Step table

# Step Tool Input → Output Gate
0 Preflight + job agent request → job.json check: job
1 Prepare pi-craft doc prepare report.md + template → 01-prepare/ (template.filled.docx, body.md, prepare.json) check: prepare (+ user confirms defaults)
2 Render WordCraft filled template + body → 02-render/out.docx, out.pdf pi-craft verify --pages --text-contains
3 Package (optional) PdfCraft pdf (+ extra pdfs) → 03-package/final.pdf pi-craft verify (before protecting)

Hand-off formats: filled docx + Markdown body between 1 and 2, pdf out (the docx is verified through its pdf). The template is a doc-engine template directory <templates-dir>/<name>/template.docx (+ variables.xml, manifest.xml). Passwords and API keys are never written to job.json, gate reports or step files.

Step 0 — Preflight and job

Output: craft-jobs/<slug>/job.json (created or loaded). Gate: check: job.

Sibling Package Check If missing
document-converter @blackbelt-technology/pi-dashboard-document-converter skill in the loaded skill list not needed here: only for ingest/OCR, round-trip editing and PlantUML — route those requests to it, continue otherwise
mmdc @mermaid-js/mermaid-cli command -v mmdc (it needs a Chromium; if it cannot find one set PUPPETEER_EXECUTABLE_PATH) diagrams stay code blocks; step 1's gate asks you to install it or accept code-block diagrams
pi-nano-banana already a dependency of craft-apps usable credentials, only when the frontmatter sets nano_banana.enabled: true no credentials: diagrams render with mmdc (the fallback runs anyway)

Read the full file on GitHub · 206 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 206 lines · 84 tokens per session scan B cea204f4c403

Subscribe to this mod's changes

craft-doc-publish is a skill published in the GitHub repository BlackBeltTechnology/pi-agent-dashboard (357 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 3,893 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.

Related

craft-doc-publish compared with skills from other repositories

craft-doc-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
craft-doc-publishBlackBeltTechnology/pi-agent-dashboardSkill357todayMITB84Claude Code, Codex
pdf-processorlofcz/LLMTornadoSkill6569d agoMITA39Claude Code, Codex
document-processorvixues/LeAgentSkill2483mo agoApache-2.0A44Claude Code
akihtmlreportlacvietanh/akidevruleSkill121mo agoMITA70Claude Code, Codex
OCR and Documentsagentic-in/elephant-agentSkill5863mo agononeA21Claude Code, Codex
Nano PDFagentic-in/elephant-agentSkill5863mo agononeA23Claude Code, Codex
agency-document-generatorBlackPearl-AI/BlackPearl-CodingAgentSkill103mo agononeA37Claude Code, Codex