本文へ移動
cccskills
無料GitHub で公開日本語紹介

docx-generation

MarkdownからWordレポートを作る際に、見出し・表・リストの体裁を整えたDOCXへ変換し、既存文書を編集するときは構造やスタイルを保つ手順を選べます。

原文原文の説明を見る

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.

aipoch/open-scienceスター 5,396(GitHub 5,396 + cccskills 0)
連携ツールWord

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Markdownの報告書をWordにしたいとき
  • 表やリストを含むDOCXを作りたいとき
  • 既存DOCXの書式を保って編集したいとき
  • 指定テンプレートでレポートを作りたいとき

日本語での紹介

できること

Markdownから新しいWord文書(DOCX)を作るときに、付属のPython変換スクリプトと参照用文書を使う手順を案内します。見出し、表、リストをWordの構造として保ち、ページ設定や文字サイズ、表の罫線・余白などを整えたレポートにできます。ユーザー指定のテンプレートがある場合は、そのスタイルとページ設定を優先する方法も示します。既存のDOCXを編集する場合は、文書をMarkdown経由で作り直すのではなく、元のスタイルや番号、埋め込みオブジェクトなどを保てる方法を選びます。

こんなときに便利

Markdownで書いた報告書をWordで共有したいときや、表・箇条書きを含む文書を整えたいときに向いています。既存の書式を維持したまま内容を直したい場合にも、編集方法を検討できます。

使い方の例

  • 「このMarkdownの報告書を、表と見出しを保ったDOCXにしてください」
  • 「既存のDOCXのレイアウトやスタイルを保って、この箇所を修正してください」
  • 「指定したテンプレートを使ってWordレポートを作成してください」

注意点

新規作成用の変換スクリプトには、既存のPandoc 3.12.1とPython 3.9以降が必要です。スキルはソフトウェアをインストールしません。Open Scienceでは登録済みNotebookヘルパーによる準備が必要です。テンプレート内の既存内容を埋める作業には、この変換方法を使いません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(8)

  • SKILL.md5.1 KB
  • assets/reference.docx10.8 KB
  • kernel.py29.2 KB
  • open-science.json254 B
  • README.md4.3 KB
  • scripts/build_kernel.py1.6 KB
  • scripts/build_reference.py5.8 KB
  • scripts/convert.py8.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 gfm or --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 local path and MIME type to write_artifact_file. When Notebook or shell execution produced it, include the exact execution runId as producerRunId. The converter receipt is not an Artifact receipt; claim availability only after the Artifact tool succeeds.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

alphafold2

無料概要あり

タンパク質の配列から単体や複合体の立体構造を予測し、信頼度の指標や設計構造との比較を使って、設計した配列の妥当性を確かめるスキルです。

  • 配列から単体の構造を予測したいとき
  • タンパク質複合体の構造予測
  • 設計配列と目標構造を照合したいとき
aipoch/open-science5,3962026年10月29日 更新

boltz

無料概要あり

タンパク質・DNA・RNA・小分子が組み合わさった立体構造を予測し、設計した結合分子の評価や、タンパク質と小分子の結合親和性の予測を支援するスキル。

  • 設計した結合分子を評価したいとき
  • タンパク質と小分子の構造予測
  • DNA・RNAを含む複合体の構造予測
aipoch/open-science5,3962026年10月29日 更新

borzoi

無料概要あり

DNA配列から遺伝子発現などの測定結果に相当する分布を予測し、変異前後の差を比較して、タンパク質を直接コードしない領域の変異の優先付けを支えるスキルです。

  • DNA変異前後の予測への影響を比較したいとき
  • ゲノム領域の予測分布の作成
  • 非コード領域の変異の優先順位付け
aipoch/open-science5,3962026年10月29日 更新

chai1

無料概要あり

タンパク質・RNA・DNA・低分子を含む複合体の立体構造を予測し、信頼度や衝突の指標で候補を比較して、設計した結合分子の再評価を支えるスキルです。

  • 抗体と抗原の複合体を予測したいとき
  • タンパク質と低分子の結合構造の評価
  • 設計した結合分子の再評価
aipoch/open-science5,3962026年10月29日 更新

compute-env-setup

無料概要あり

リモート計算に必要なパッケージや環境設定を整理し、再現可能な導入・削除手順を用意して、利用者が構築した環境を実行先で検証するスキルです。

  • リモート環境に必要なパッケージの準備
  • ジョブの環境有効化を再現したいとき
  • Slurm上でソフトやGPUの動作確認
aipoch/open-science5,3962026年10月29日 更新

customize

無料概要あり

会話から用途別のSpecialistエージェントやSkillを作成・管理し、役割や使える機能の設定案を確認して変更・公開につなげるスキルです。

  • 特定の役割を持つエージェント作成
  • エージェントの機能や外部連携の変更
  • Skillの作成・改訂・公開
aipoch/open-science5,3962026年10月29日 更新

aipoch のスキルをすべて見る

このスキルの問題を報告する