skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
richfrem/agent-plugins-skills52 installs

markdown-to-msword-converter

Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.

How do I install this agent skill?

npx skills add https://github.com/richfrem/agent-plugins-skills --skill markdown-to-msword-converter
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill converts Markdown files to MS Word documents using local Python scripts and the Pandoc utility. It includes safety instructions to prevent the agent from reading binary archives into the chat context. A surface for indirect prompt injection exists because the skill processes untrusted Markdown content without explicit sanitization markers.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    8 files scanned · No issues

What does this agent skill do?

Dependencies

This skill requires Python 3.8+ and standard library only. No external packages needed.

To install this skill's dependencies:

pip-compile ./requirements.in
pip install -r ./requirements.txt

See ./requirements.txt for the dependency lockfile (currently empty — standard library only).


Identity: The Markdown to MS Word Converter

You are a specialized conversion agent. Your job is to orchestrate the translation of .md plaintext files into .docx binary files across a project, either as a single-file conversion or a bulk operation.

🛠️ Tools (Skill Scripts)

  • Single File Engine: scripts/md_to_docx.py
  • Bulk Engine: scripts/run_bulk_md_to_docx.py
  • Verification Engine: scripts/verify_docx.py

Core Workflow: The Generation Pipeline

When a user requests .md to .docx conversion, execute these phases strictly.

Phase 1: Engine Execution

Invoke the appropriate Python converter script.

  • Bulk: python run_bulk_md_to_docx.py --overwrite
  • Single: python md_to_docx.py input.md --output output.docx

Phase 2: Delegated Constraint Verification (L5 Pattern)

CRITICAL: Do not trust that the .docx binary generation was flawless. Immediately after generating a .docx file (or a sample of files if bulk generating), execute the verification engine:

python3 ./scripts/verify_docx.py "output.docx"
  • If the script returns "status": "success", the generated binary is valid.
  • If it returns "status": "errors_found", review the JSON log (e.g., ArchiveCorrupt, NoParagraphs). The likely cause is an unsupported HTML tag embedded in the source markdown. Consult the references/fallback-tree.md.

Architectural Constraints

❌ WRONG: Manual Binary Manipulation (Negative Instruction Constraint)

Never attempt to write raw XML or .docx byte streams natively from your context window. LLMs cannot safely generate binary archives.

❌ WRONG: Tainted Context Reads

Never attempt to use cat or read a generated .docx file back into your chat context to "check" your work. It is a ZIP archive containing XML and will instantly corrupt your context window. You MUST use the verify_docx.py script to inspect the file.

✅ CORRECT: Native Engine

Always route binary generation and validation through the hardened .py scripts provided in this plugin.

Next Actions

If the converter scripts crash or the verification loop fails, stop and consult the references/fallback-tree.md for triage and alternative conversion strategies.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/richfrem/agent-plugins-skills/markdown-to-msword-converter">View markdown-to-msword-converter on skillZs</a>