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

microsoft-office

Word、PowerPoint、Excelのファイルを作成・読み取り・編集し、テンプレートへの入力や表計算データの変換も行うスキルです。

原文原文の説明を見る

Create, read, and edit Word, PowerPoint, and Excel files.

NousResearch/hermes-agentスター 258,450(GitHub 258,450 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Wordの報告書や手紙を作成・修正したいとき
  • PowerPoint資料を作成・更新したいとき
  • Excelの表や数式、グラフを編集したいとき
  • テンプレートに内容を差し込みたいとき
  • CSVをExcelブックに変換したいとき

日本語での紹介

できること

Word(.docx)、PowerPoint(.pptx)、Excel(.xlsx、.csv)のファイルを、コマンドラインの補助ツールで作成・読み取り・編集します。文書のテンプレートへの値の差し込み、変更履歴やコメントの確認、スライドのノートや構成の読み取り、表計算の数式・グラフの編集、CSVとの変換などに対応します。Microsoft Officeを起動せずにファイルを扱えます。

こんなときに便利

報告書や手紙を整えたいとき、プレゼン資料や表計算ファイルを作り直したいとき、既存ファイルの内容を確認して一部を更新したいときに役立ちます。ファイル形式ごとに使い方を参照してから操作するため、対象の形式が決まっている作業に向いています。

使い方の例

  • 「このWordファイルの本文と構成を読み取り、誤記を直してください」
  • 「このデータから複数シートのExcelブックを作成してください」
  • 「このPowerPointテンプレートに内容を入れて、スライドを確認してください」

注意点

Python 3.10以降とpython-docx、python-pptx、openpyxlが必要です。PDF出力やスライド画像の描画、Excelの再計算にはLibreOfficeなどの追加ツールが必要です。旧形式の.doc、.ppt、.xlsや、.odt、.odp、.ods、見た目を画面上で調整する作業には対応しません。

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

資料チェック

SKILL.md の記述から、注意が要る操作と導入の前提を AI が確認しました。点数は実際に動かした結果(実行検証)だけで付けています。

安全面送信・削除・コマンド実行などの扱いが明示されているか
A良好元ファイルを保つ出力先指定と、編集後に内容を再読込する確認があります。
導入のしやすさ必要なツールや API キーが少ないか、書かれているか
B一部不足Pythonと3ライブラリが必要で、PDF等にはLibreOfficeなどが追加で必要です。

点数には入れていません。 2026年10月30日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。

評価が違うと思ったら、見直しを依頼する

どの項目が、なぜ違うと思うかを書いてください。ログインは不要です。内容を SKILL.md と照らし合わせて評価を作り直し、この欄に反映します。

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

含まれるファイル(30)

  • SKILL.md7.7 KB
  • LICENSE1.0 KB
  • references/excel.md8.6 KB
  • references/powerpoint.md9.3 KB
  • references/restructuring.md3.7 KB
  • references/revisions-and-comments.md3.9 KB
  • references/word.md9.2 KB
  • scripts/csv_to_xlsx.py3.3 KB
  • scripts/docx_comments.py10.4 KB
  • scripts/docx_common.py3.2 KB
  • scripts/docx_create.py6.2 KB
  • scripts/docx_edit.py8.4 KB
  • scripts/docx_read.py6.1 KB
  • scripts/docx_revisions.py4.4 KB
  • scripts/docx_template.py2.4 KB
  • scripts/docx_validate.py6.0 KB
  • scripts/pptx_create.py8.8 KB
  • scripts/pptx_edit.py16.8 KB
  • scripts/pptx_from_template.py3.4 KB
  • scripts/pptx_read.py4.6 KB
  • scripts/pptx_render.py3.5 KB
  • scripts/xlsx_create.py9.6 KB
  • scripts/xlsx_edit.py10.6 KB
  • scripts/xlsx_read.py5.7 KB
  • scripts/xlsx_recalc.py4.1 KB
  • scripts/xlsx_restructure.py15.6 KB
  • scripts/xlsx_to_csv.py2.3 KB
  • tests/test_docx_skill.py21.7 KB
  • tests/test_powerpoint_skill.py20.0 KB
  • tests/test_xlsx_skill.py23.4 KB

SKILL.md(原文)

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

Microsoft Office Skill

Create, read, edit, and template Word (.docx), PowerPoint (.pptx), and Excel (.xlsx, .csv) files offline with small Python CLIs built on python-docx, python-pptx, and openpyxl. Office itself is never needed. It does not open legacy binary formats (.doc, .ppt, .xls) and does not render pages without LibreOffice.

When to Use

Pick the format, then read its reference with skill_view before working:

FileReferenceTypical asks
.docxreferences/word.mdreports, letters, contracts, {{token}} templates, tracked changes, comments
.pptxreferences/powerpoint.mdpitch decks, brand-template decks, chart refreshes, speaker notes, slide PNGs
.xlsx, .csvreferences/excel.mdstyled multi-sheet workbooks, formulas, charts, CSV conversion, row/column restructures

Deeper notes: references/revisions-and-comments.md (Word review markup) and references/restructuring.md (Excel reference shifting).

  • Not for .doc/.ppt/.xls: convert first with soffice --headless --convert-to docx|pptx|xlsx old-file when LibreOffice is installed.
  • Not for .odt/.odp/.ods, or WYSIWYG layout work.

Prerequisites

  • Python 3.10+ with python-docx, python-pptx, and openpyxl (import names docx, pptx, openpyxl).

  • Pick the interpreter with terminal. Use python when it already imports the libraries (the Hermes Docker image ships them). Otherwise, when hermes is on PATH, let Hermes build its shared, pinned documents environment under the Hermes home: it survives container restarts, never touches the Hermes install itself, and is safe to run from several agents at once. When it is not (the terminal runs in a Docker sandbox, which has no Hermes), the block builds a venv in the sandbox home with the same pinned versions. Use this exact block in every document skill so they all share one environment:

    python -c "import docx, pptx, openpyxl" 2>/dev/null && PY=python || if command -v hermes >/dev/null 2>&1; then
      PY="$(hermes pm environment documents --extra documents --extra documents-pdf)"
    else
      PY="$HOME/.cache/hermes-docs-venv/bin/python"
      "$PY" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null || (
        # Safe to run from several agents at once: each caller builds a private venv,
        # a symlink publishes the first finished one atomically, the others delete theirs.
        mkdir -p "$HOME/.cache" && cd "$HOME/.cache" && stage="$(mktemp -d hermes-docs-venv.XXXXXX)" || exit 1
        old="$(readlink hermes-docs-venv)"  # an earlier build that no longer imports, if any
        python3 -m venv "$stage" &&
          "$stage/bin/python" -m pip install -q --disable-pip-version-check python-docx==1.2.0 openpyxl==3.1.5 python-pptx==1.0.2 reportlab==5.1.0 pypdf==6.21.2 pdfplumber==0.11.10 pypdfium2==5.14.0 &&
          "$stage/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" &&
          if [ -z "$old" ]; then python3 -c 'import os, sys; os.symlink(*sys.argv[1:])' "$stage" hermes-docs-venv
          elif [ "$(readlink hermes-docs-venv)" = "$old" ]; then
            ln -s "$stage" "$stage.lnk" && python3 -c 'import os, sys; os.replace(*sys.argv[1:])' "$stage.lnk" hermes-docs-venv &&
              case "$old" in hermes-docs-venv.??????) rm -rf "$old" ;; esac
          fi 2>/dev/null
        [ "$(readlink hermes-docs-venv)" = "$stage" ] || rm -rf "$stage" "$stage.lnk"
      )
    fi
    export PY
    "$PY" scripts/docx_create.py --help
    

    Run every helper with "$PY". In PowerShell (Hermes runs on that host, so it is on PATH): $env:PY = hermes pm environment documents --extra documents --extra documents-pdf. Never pip install into the interpreter that runs Hermes or into the hermes pm environment one; Hermes owns both.

  • Optional: LibreOffice (soffice) for PDF export, Excel recalculation, and slide rendering, plus poppler (pdftoppm or pdftocairo) for slide PNGs. The helpers that need them report what is missing and exit 0.

How to Run

Every helper lives in scripts/, is an argparse CLI with --help, prints JSON to stdout, and exits non-zero on failure. Run them with terminal from the skill directory. Author JSON specs with write_file; read results with read_file or straight from stdout.

"$PY" scripts/docx_create.py spec.json out.docx
"$PY" scripts/pptx_create.py deck.json out.pptx
"$PY" scripts/xlsx_create.py spec.json report.xlsx

Quick Reference

TaskWordPowerPointExcel
Create from JSON specdocx_create.pypptx_create.pyxlsx_create.py, csv_to_xlsx.py
Read backdocx_read.py --text/--structurepptx_read.py --outlinexlsx_read.py --sheets/--json
Editdocx_edit.pypptx_edit.pyxlsx_edit.py, xlsx_restructure.py
Fill a templatedocx_template.pypptx_from_template.py—
Review / checkdocx_revisions.py, docx_comments.py, docx_validate.pypptx_render.py (slide PNGs)xlsx_recalc.py, xlsx_to_csv.py

The per-format reference has the full flag table.

Procedure

  1. Identify the format from the file extension or the ask, and load its reference (skill_view with file_path=references/<format>.md).
  2. Set PY with the Prerequisites block once per session.
  3. Create, edit, or read with that format's helpers; pass an output path to keep the original whenever the helper supports one.
  4. Verify the result as the reference's Verification section says, then give the user the exact output path.

Converting to PDF

When LibreOffice is installed, convert headlessly:

soffice --headless --convert-to pdf --outdir out/ file.docx   # also .pptx, .xlsx
soffice --headless --convert-to csv --outdir out/ report.xlsx # first sheet only

Check first with command -v soffice || command -v libreoffice. Fonts not on the host are substituted, so render-check decks before shipping. There is no pure-Python path to PDF for any of these formats: if soffice is missing, say so rather than approximating. For other sheets use xlsx_to_csv.py --sheet NAME.

Pitfalls

  • Never unzip-and-edit the XML. These files are zip packages; raw text substitution corrupts them. Edit through the helpers (or the libraries) and use patch/write_file only for JSON inputs.
  • Text is split into runs. Word and PowerPoint fragment text at edit boundaries; the replace helpers merge equal-format runs first, but a match across differently formatted runs takes the first run's formatting.
  • Nothing computes fields or formulas. Word TOC/page fields and Excel formulas are filled in by the office app on open (or by xlsx_recalc.py).
  • Encoding. Write specs as UTF-8; the helpers read UTF-8 explicitly.
  • Format-specific traps are in each reference.

Verification

  • Re-read every output with the format's read helper and check the expected content is there and the old content is gone.
  • Word: docx_validate.py out.docx exits 0 after revision, comment, or field surgery.
  • PowerPoint: render with pptx_render.py and check each PNG with vision_analyze when the render tools exist.
  • Excel: xlsx_read.py --formulas lists written formulas; run xlsx_recalc.py when cached values matter.
  • The bundled tests are the full contract: "$PY" -m pytest tests/ -q (needs pytest in that interpreter).

レビュー

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

コメント

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

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

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

0 / 1000 文字

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

同じリポジトリのスキル

1password

無料概要あり

1Passwordに保存したパスワードやAPIキーを、コマンド実行や設定テンプレートで使うためのスキル。CLIの導入、認証、秘密情報の取得・受け渡しを案内します。

  • 1Password CLIの導入と設定
  • 保存済みAPIキーでコマンド実行
  • 設定テンプレートへの秘密情報の埋め込み
NousResearch/hermes-agent25.8万2026年10月29日 更新

3-statement-model

無料概要あり

損益計算書・貸借対照表・キャッシュフロー計算書を数式で連動させるExcelモデルを作ります。実績と予測の入力、前提を変えた比較、財務三表の整合性確認を段階的に進めます。

  • 財務テンプレートへの実績入力
  • 財務三表が連動する予測の作成
  • 基本・上振れ・下振れシナリオの比較
NousResearch/hermes-agent25.8万2026年10月29日 更新

accelerate

無料概要あり

既存のPyTorch学習コードを少ない変更で複数GPUや複数マシン向けに整え、混合精度やメモリを節約する設定、学習の起動方法まで案内します。

  • 単一GPUの学習を複数GPUへ移したいとき
  • 混合精度で学習したいとき
  • DeepSpeedやFSDPでメモリを節約
NousResearch/hermes-agent25.8万2026年10月29日 更新

actual-setup

無料概要あり

HermesでActual Computerを使い、自分の機器でAIモデルを動かすための接続設定を支援します。中継サービスとローカル接続に対応し、モデル選択や応答確認も扱います。

  • ActualのキーでHermesを接続
  • ローカル環境でモデルを動かしたいとき
  • ローカルモデルの取得と読み込み
NousResearch/hermes-agent25.8万2026年10月29日 更新

adversarial-ux-test

無料概要あり

技術が苦手で不満を抱きやすい利用者になりきってアプリを試し、操作の分かりにくさや離脱の原因を発見。実際の改善課題と個人的な不満を分け、修正案をまとめます。

  • 公開やデモ前に使いやすさを確認したいとき
  • 新規ユーザーの体験を点検したいとき
  • 登録・課金でのつまずきを探したいとき
NousResearch/hermes-agent25.8万2026年10月29日 更新

2つのエージェントが別々に加えた変更のGit競合を、双方の差分と意図から中立的に解決。競合箇所ごとの判断理由を記録し、ビルドやテストで統合結果を確認します。

  • 2つのエージェントのブランチ競合を解消
  • 並行したworktreeの変更を統合
  • 競合する設計判断の理由を確認したいとき
NousResearch/hermes-agent25.8万2026年10月29日 更新

NousResearch のスキルをすべて見る

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