Skip to content
Back to skills

Markdown To Msword Converter

ASecurity

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.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 7, 2026
toolspythonrustbash

Security analysis

A100/100

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

Scanned September 7, 2026

npx -y skills add richfrem/Project_Sanctuary --skill markdown-to-msword-converter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Markdown To Msword Converter?

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

Security grade badge for Markdown To Msword Converter
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-markdown-to-msword-converter-3e5f4f2b/badge)](https://www.skillsdirectory.com/skills/richfrem-markdown-to-msword-converter-3e5f4f2b)

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: markdown-to-msword-converter
description: 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.
disable-model-invocation: false
---

# 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 (Plugin Scripts)
- **Single File Engine**: `plugins/markdown-to-msword-converter/skills/markdown-to-msword-converter/scripts/md_to_docx.py`
- **Bulk Engine**: `plugins/markdown-to-msword-converter/skills/markdown-to-msword-converter/scripts/run_bulk_md_to_docx.py`
- **Verification Engine**: `plugins/markdown-to-msword-converter/skills/markdown-to-msword-converter/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:

```bash
python3 plugins/markdown-to-msword-converter/skills/markdown-to-msword-converter/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.

Files in this skill

  • SKILL.md2.7 KB
  • evals/evals.json1.3 KB
  • references/acceptance-criteria.md629 B
  • references/fallback-tree.md1.5 KB
  • scripts/folders_to_convert.json204 B
  • scripts/md_to_docx.py10.2 KB
  • scripts/run_bulk_md_to_docx.py5.6 KB
  • scripts/verify_docx.py2.4 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.

Comments

Loading comments…