docx-generation
Was er macht
Dieser Skill zeigt einem Agenten, wie er Markdown-Text mit einheitlicher Gestaltung in einen Word-Bericht verwandelt. Tabellen und Listen bleiben echte Word-Strukturen, und er kann auch helfen, eine vorhandene Word-Datei zu bearbeiten.
Wann du ihn nutzt
- ✓Wenn ein Nutzer aus Markdown oder Notizen einen Word-Bericht erstellen möchte.
- ✓Wenn ein Nutzer Markdown-Tabellen und -Listen in ein sauberes Word-Dokument umwandeln möchte.
- ✓Wenn ein Nutzer eine vorhandene Word-Datei bearbeiten möchte, ohne Struktur und Formatvorlagen zu verlieren.
Link zum Skill
https://github.com/aipoch/open-science/blob/main/resources/skills/docx-generation/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Verwandle meine Markdown-Forschungsnotizen in einen Word-Bericht mit richtigen Tabellen und Überschriften.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent nutzt den mitgelieferten Konverter mit einer festen Berichtsvorlage statt eines einfachen Umwandlungsbefehls, damit Typografie und Tabellenlayout einheitlich bleiben. Überschriften, Listen und Tabellen bleiben native Word-Strukturen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
DOCX generation and editing
Choose a workflow that preserves the user's requested content, structure, and presentation. User requirements take precedence over defaults. Keep tables, headings, and lists as native document structures.
Markdown to a new DOCX
For ordinary reports, use the bundled converter with an existing Pandoc 3.12.1 executable and Python 3.9 or newer. It uses a versioned reference document, separates ordinary table paragraphs from the Compact style shared by lists, and records converter/template provenance inside the DOCX. It does not install software. Run this converter rather than a bare pandoc source.md -o output.docx command: that command bypasses the report template and its typography, page geometry, table spacing, and provenance.
In Open Science, first prepare the workflow through the registered Notebook helper:
{
"kernelSkillIds": ["docx-generation"],
"code": "docx_workflow = prepare_docx_conversion('.')\nprint(docx_workflow)"
}
Call the function directly, without importing it. Repeat kernelSkillIds in every cell using this function. The helper writes the fixed converter and reference into a new directory inside the authorized Notebook working directory and returns script_path, reference_path, and workflow_directory. This uses the registered skill transport; the Notebook and shell cannot necessarily read the framework's skill directory.
Then run the returned script_path through the session's approved shell tool:
python "<returned-script_path>" "<source.md>" "<output.docx>"
Use the interpreter configured for the session. If the helper is unavailable, report that prerequisite through the normal execution recovery flow; do not probe or copy from the isolated framework skill directory. In environments outside Open Science that already allow reading this package, the original scripts/convert.py is also a standalone CLI.
Optional arguments:
--reference-doc "<template.docx>": use the user's template. Its styles and page settings take precedence; the bundled TableBody normalization is not applied.--from gfmor--from markdown+pipe_tables: select the dialect that matches the source. The default is Pandoc Markdown.--pandoc "<absolute-executable-path>": select an existing executable.
The bundled report profile uses A4 with 2 cm margins, 10.5 pt body text with approximately 1.33 line spacing, coordinated heading sizes (17/14/11.5 pt), and tighter list spacing. Tables use 9.5 pt text, 3 pt vertical and 4 pt horizontal cell padding, visible outer and internal grid lines, and bold headers without background shading. Top-level tables with automatic width fill the text area; explicit widths and column proportions remain intact. The default faces are Arial and PingFang SC for East Asian text; fonts are not embedded, and viewers substitute missing fonts. For a specific viewing platform or font requirement, use a reference with appropriate available fonts. A reference document's body content is not copied into the output. Use another workflow when the task requires filling a template's existing content.
Do not substitute the bundled template when the user supplied a template or requested a different design. For special page layouts or table widths, use an appropriate reference or targeted document editing; do not impose fixed page/column dimensions on every document.
For Pandoc Markdown pipe tables, retain intentional delimiter-row widths. Padding or reformatting a wide Markdown table can change the column proportions inferred by Pandoc.
The converter emits one JSON receipt with the output path, MIME type, versions, and template hash. It requires a new output filename and leaves existing files intact. If the supported Pandoc version is unavailable, report the missing prerequisite or use another suitable document-generation workflow under the session's normal environment rules. This skill does not require Pandoc for every DOCX task.
Editing existing DOCX files
Modify the existing package with an appropriate document library or narrowly scoped OOXML edits. Preserve unrelated styles, numbering, relationships, sections, and embedded objects. Avoid rebuilding a richly formatted source through Markdown when the task requires preserving its layout. For complex tables and precise forms, choose a library suited to that structure; library choice alone does not guarantee style preservation.
Artifact delivery
Pass the generated file's loc
Häufige Fragen
Warum kein einfacher Befehl?
Der Skill sagt, eine reine Umwandlung überspringe die Berichtsvorlage, ihre Typografie und den Tabellenabstand.
Was braucht der Konverter?
Er braucht eine vorhandene Pandoc-3.12.1-Installation und Python 3.9 oder neuer, und er installiert keine Software.
Kann er eine vorhandene Word-Datei bearbeiten?
Ja. Der Skill hat einen eigenen Ablauf für das Bearbeiten vorhandener Dateien unter Beibehaltung ihrer Formatvorlagen.
Details
Originalbeschreibung des Autors
Use when creating a Word DOCX report from Markdown, converting Markdown tables and lists to DOCX, or choosing a workflow for editing an existing DOCX while preserving its structure and styles. Use this workflow before running Markdown-to-DOCX shell commands. Includes report typography, table layout, a reusable reference document, and a Python converter.
repo: aipoch/open-science
Beliebtheit
- GitHub-Sterne
- 5.4k
- Platz im Ranking
- #14856
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
alphafold2
5.4kHilft deinem Agenten, die 3D-Struktur eines Proteins aus seiner Sequenz vorherzusagen, auch für Proteinkomplexe, mit AlphaFold2 über den ColabFold-Runner.
boltz
5.4kHilft deinem Agenten, die Struktur von Protein-, DNA-, RNA- und Kleinmolekül-Komplexen mit dem Open-Source-Modell Boltz-2 vorherzusagen, optional mit Schätzungen der Bindungsaffinität.
borzoi
5.4kSagt für deinen Agenten genomweite Aktivitätsspuren, etwa Expression und Zugänglichkeit, aus DNA-Sequenzen vorher und vergleicht Varianten nach ihrer vorhergesagten Wirkung.
chai1
5.4kHilft deinem Agenten, die Struktur von Protein-, Nukleinsäure- und Ligand-Komplexen aus einer FASTA-Datei vorherzusagen, mit dem Apache-lizenzierten Modell Chai-1.
Ähnliche Skills
feishu-doc
394kHilft deinem Agenten, Feishu-Cloud-Dokumente zu lesen, zu erstellen und zu bearbeiten, einschließlich Text, Bildern und Tabellen, über das Dokument-Werkzeug.
feishu-drive
394kLässt deinen Agenten Dateien in einem Feishu-Cloud-Ordner durchsehen, ordnen und kommentieren, der mit dem Bot geteilt wurde.
feishu-perm
394kHilft deinem Agenten zu prüfen und zu ändern, wer auf eine Feishu-Datei zugreifen darf, und wählt dabei die kleinste Berechtigung, die deine Anfrage erfüllt.