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

docx

Word文書の作成・編集・内容確認に加え、変更履歴やコメントを扱い、DOCXをPDFや画像、Markdown、テキストへ変換します。

原文原文の説明を見る

Complete DOCX document creation, editing, and analysis capabilities with support for revisions, comments, formatting preservation, and text extraction. Also handles Word format conversion: legacy .doc → .docx, DOCX → PDF, DOCX → images (PNG/JPG) for visual review or previews, and DOCX → Markdown/plain text extraction. Use for creating new documents, modifying content, handling revisions, adding comments, other professional Word document tasks, or when the user asks to convert, export, or render a Word document to another format (e.g. 'Word转PDF', 'doc转docx', 'export this docx as PDF/images').

asgeirtj/system_prompts_leaksスター 70,411(GitHub 70,411 + cccskills 0)
連携ツールWordPowerPoint

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Word文書を新規作成したいとき
  • 書式を保って文書を編集したいとき
  • 変更履歴やコメントを扱いたいとき
  • DOCXをPDFや画像に変換したいとき
  • 文書からテキストを抽出したいとき

日本語での紹介

できること

Word文書の新規作成、既存文書の編集、内容の読み取りや分析を行います。変更履歴やコメントを扱い、書式を保った編集やテキスト抽出にも対応します。形式変換では、旧形式の .doc を .docx にしたり、DOCXをPDFやPNG・JPG画像に書き出したりできます。Markdownやプレーンテキストへの抽出も行えるため、文書の内容確認や再利用にも使えます。入力ファイルは原則そのまま残し、編集結果は別ファイルとして出力します。

こんなときに便利

報告書や提案書などのWord文書を作成・整形したいとき、受け取った文書を修正してコメントを付けたいときに向いています。PDF化や画像化による見た目の確認、文書からのテキスト取り出しにも使えます。

使い方の例

  • 「この内容で、見出しと表を含むWord文書を作って」
  • 「添付した文書の表現を修正し、変更履歴を残して」
  • 「このDOCXをPDFと画像に書き出して」

注意点

ライセンスはProprietaryで、詳細は LICENSE.txt に記載されています。作成には docx、テキスト抽出には pandoc、PDF変換や .doc 対応にはLibreOffice、PDFからの画像化にはPopplerなどが必要です。環境によっては依存ツールの導入が必要です。

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

資料チェック

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

安全面送信・削除・コマンド実行などの扱いが明示されているか
A良好入力原本は読み取り専用が既定で、上書き時は隣にバックアップします。
導入のしやすさ必要なツールや API キーが少ないか、書かれているか
B一部不足setup.shと必要ツール群は示されていますが、環境によって導入が必要です。

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

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

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

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

含まれるファイル(24)

  • SKILL.md19.5 KB
  • env_setup/setup.md11.9 KB
  • references/chart-templates.md13.0 KB
  • references/common-rules.md23.9 KB
  • references/decorations.md19.6 KB
  • references/design-system.md76.9 KB
  • references/docx-js-advanced.md9.5 KB
  • references/docx-js-core.md9.5 KB
  • references/faq.md11.6 KB
  • references/math-formulas.md7.7 KB
  • references/ooxml.md9.3 KB
  • references/toc.md10.8 KB
  • routes/comment.md2.8 KB
  • routes/create.md11.5 KB
  • routes/edit.md5.2 KB
  • routes/format.md4.6 KB
  • routes/read.md3.8 KB
  • scenes/academic.md32.6 KB
  • scenes/contract.md19.8 KB
  • scenes/copywriting.md5.4 KB
  • scenes/exam.md25.1 KB
  • scenes/official-doc.md15.3 KB
  • scenes/report.md14.7 KB
  • scenes/resume.md21.2 KB

SKILL.md(原文)

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

DOCX Creation, Editing, and Analysis

Quick Setup

bash "$SKILL_DIR/setup.sh"    # Interactive environment check + install

Local-font-first. Inspect fonts available in the user's local environment and prefer a suitable
installed font. Use bundled or downloaded fonts only as fallbacks; do not install fonts without the
user's confirmation.

Overview

A .docx file is a ZIP archive containing XML files. This skill provides tools for creating, editing, reading, and reviewing Word documents.

Original File Preserved

User-provided input files are read-only by default. Deliverables go to new files (<stem>_updated.docx next to the input); edit an original in place only when the user explicitly asks — and then copy it to <stem>_backup.docx next to it (never /tmp) first. See routes/edit.md for the full workflow.

Quick Route — Read This First

Step 1: Determine task type → load the corresponding route file
Step 2: Determine business scene → load the corresponding scene file (if applicable)
Step 3: Load references/design-system.md for cover recipes, palettes, and chart colors
Step 4: Load references/common-rules.md for shared layout, font, and quality rules
Step 5: Execute per route instructions
Step 6: Run the post-generation checklist

⚠️ MANDATORY — Cover Recipe Enforcement (Step 3):
When creating a document that needs a cover page, you MUST use one of the 7 validated cover recipes (R1–R7) from design-system.md. Free-form cover code is FORBIDDEN. The recipe provides the wrapper table, background, layout structure, border settings, and spacing — do not reinvent any of these.

Workflow: (1) Call selectCoverRecipe(docType, industry) to get recipe + palette → (2) Use the corresponding buildCoverRX() function code from design-system.md → (3) Pass your config (title, subtitle, metaLines, etc.) into the recipe builder. If you skip this and write cover code from scratch, the cover WILL have compatibility issues (blank pages in MS Office, missing borders, overflow, etc.).

Script Path Setup (MANDATORY before any script call)

All CLI tools live in scripts/ relative to this skill's directory. Before calling any script, resolve the absolute path once:

DOCX_SCRIPTS="<skill_directory>/scripts"   # ← parent directory of this SKILL.md

# Then all commands use $DOCX_SCRIPTS:
python3 "$DOCX_SCRIPTS/postcheck.py" output.docx
python3 "$DOCX_SCRIPTS/add_toc_placeholders.py" output.docx --auto

For Python imports (when generation code needs to import skill modules):

import sys, os
DOCX_SCRIPTS = os.path.join("<skill_directory>", "scripts")
if DOCX_SCRIPTS not in sys.path:
    sys.path.insert(0, DOCX_SCRIPTS)

⚠️ NEVER use bare python3 scripts/... — it only works if cwd happens to be the skill directory. Always use the absolute $DOCX_SCRIPTS path.

Task Router

User IntentRouteFiles to Load
Create/write/generate (no attachment)Createroutes/create.md + references/docx-js-core.md
Edit/modify/revise (has attachment)Editroutes/edit.md + references/ooxml.md
Format/layout/font/marginFormatroutes/format.md
Comment/annotate/reviewCommentroutes/comment.md
Read/analyze/extractReadroutes/read.md

Scene Router (Optional — load after route)

User KeywordsSceneFile
thesis, academic, research, paper, dissertation, abstract, journalAcademicscenes/academic.md
report, analysis, experiment, testing, survey, review, summary, proposal, feasibility, competitor, industry, operationsReportscenes/report.md
contract, agreement, terms, transfer, NDA, confidential, framework, cooperation, service terms, user agreement, procurementContractscenes/contract.md
resume, CV, job applicationResumescenes/resume.md
exam, test, quiz, paper (exam context), lesson planExamscenes/exam.md
official document, notice, letter, reply, minutes, red header, government, issuanceOfficialscenes/official-doc.md
broadcast script, product copy, livestream, speech, presentation script, video scriptCopywritingscenes/copywriting.md
plan, proposal (if not report context)Reportscenes/report.md
policy, regulation, standard, management rulesOfficialscenes/official-doc.md

If no scene matches, use default design rules from references/design-system.md and references/common-rules.md.

Formatting Standards (Always Apply)

→ See references/common-rules.md for full font profiles, spacing, indent, and layout rules.

Key rules (quick reference):

  • Line spacing: 1.3x (line: 312) — MANDATORY. Exceptions: resume 1.15x, official doc 28pt fixed, copywriting 400, contract 1.5x
  • CJK body: Justified + 2-char indent (firstLine: 480 SimSun / 420 YaHei)
  • Tables: margins set, ShadingType.CLEAR, tableHeader: true, cantSplit: true, title keepNext: true
  • Images: type parameter required, preserve aspect ratio via image-size, PageBreak inside Paragraph
  • Full-page Table row: rule: "exact" with 1200 twips safety margin

Unit Quick Reference

UnitValue
1 cm567 twips
1 inch1440 twips
1 pt20 half-points
A411906 × 16838 twips

For Chinese font size table and common margins, see references/common-rules.md.

Post-Generation — Two-Layer Verification

Layer 1: Manual Checklist (self-check during generation)

Basic Format

  • Line spacing is 1.3x (line: 312) or scene-specific override
  • CJK body has 2-char indent (firstLine: 480 or 420)
  • Tables have margins set
  • Images preserve aspect ratio via image-size — NEVER hardcode both width and height
  • PageBreak inside Paragraph
  • ShadingType uses CLEAR
  • Each numbered list uses unique reference
  • ⚠️ CRITICAL — Quotation marks in JS strings properly escaped. Chinese curly quotes ("" '') MUST use Unicode escapes (\u201c \u201d \u2018 \u2019); straight quotes (" ') use \" \' or alternate delimiters. This is the #1 most common code generation bug. Chinese text frequently contains "" for emphasis or proper nouns (e.g., "双11", "前低后高", "618") — every occurrence MUST be escaped. Failure to escape produces JS syntax errors that silently break document generation.
  • ImageRun includes type parameter
  • Header/footer present (unless scene says otherwise)

Heading Styles

  • All body chapter headings use heading: HeadingLevel.HEADING_X (never simulate with bold + large font)
  • Cover title may skip Heading style (not in TOC), but body headings MUST use Heading style

Page Break & Blank Page Prevention

  • Cover/content in separate sections
  • Three rules to prevent blank pages:
    • ① When using section(NEXT_PAGE), previous section must NOT end with PageBreak (double break = blank page)
    • ② PageBreak paragraph SHOULD contain visible text — exception: section-ending empty para + PageBreak is allowed (normal section separator, e.g., after cover page)
    • ③ No more than 3 consecutive empty paragraphs
  • Full-page Table row height uses rule: "exact" (never "atLeast" for tall tables)
  • No unwanted blank pages (check each section ending)

TOC

→ See references/toc.md for the complete TOC reference and checklist.

  • If TOC title exists → TableOfContents element must be present
  • ⚠️ MANDATORY PageBreak after TableOfContents — a Paragraph containing PageBreak MUST immediately follow the TableOfContents element; without it, TOC and body content will render on the same page. This is the #1 TOC formatting failure — never omit it
  • add_toc_placeholders.py --auto runs after generation; exit code = 0
  • TOC MUST be in its own section — body section sets page: { pageNumbers: { start: 1, formatType: NumberFormat.DECIMAL } } so page numbers start from the first body page, not from the TOC pages
  • Page number API nesting — pageNumbers MUST be inside page: {}, NOT at properties top level (see toc.md § Page Number API)
  • 3-section page numbering — Cover (no page#) → Front matter (Roman i,ii,iii, start=1) → Body (Arabic 1,2,3, start=1)
  • Post-process footers — Roman section footer instrText must contain PAGE \* ROMAN \* MERGEFORMAT; Arabic section PAGE \* arabic \* MERGEFORMAT (WPS ignores pgNumType fmt). ⚠️ NEVER use \* decimal in instrText — decimal is a docx-js API enum value (NumberFormat.DECIMAL), NOT a valid Word field format switch; using it causes page numbers to render as "1decimal", "2decimal". The correct Word field switch for Arabic numerals is \* arabic.
  • Remove empty pgNumType — Post-process to strip <w:pgNumType/> from cover section (docx-js emits empty element that confuses WPS)
  • ⚠️ TOC Refresh Hint MANDATORY — between TableOfContents element and the PageBreak, MUST add an italic gray note paragraph telling users to right-click TOC → "Update Field" to refresh page numbers (see toc.md § TOC Refresh Hint)

Table Cross-Page

  • Header rows: tableHeader: true
  • All rows: cantSplit: true
  • Title paragraph: keepNext: true

Cover

  • Cover MUST use a validated recipe (R1–R7) from design-system.md — free-form cover code is forbidden
  • Cover recipe matches document type (per selectCoverRecipe() in design-system.md)
  • Cover uses the 16838 outer wrapper table with allNoBorders (all recipes provide this)
  • Cover title uses calcTitleLayout() — never hardcoded font size above 40pt
  • Cover spacing uses calcCoverSpacing() — never hardcoded large spacing values
  • Cover content does not overflow (total height ≤ 15638 twips, Table uses rule: "exact")
  • Every TextRun on dark/colored background has explicit color set (Rule 9 — never rely on default black)
  • Cover section has no trailing PageBreak or empty paragraphs
  • Title lines split at semantic boundaries (no mid-word breaks, no single-char orphan lines)
  • No text-character decorative lines (───, ━━━) — use paragraph borders only

Output Files

  • The user's original input file is untouched at its original path (unless the user explicitly asked for in-place editing); any backup you created stays next to it — these are NOT temp/retry artifacts
  • Deliverable is a new file (<stem>_updated.docx), not the input path overwritten
  • Working directories from unpack/pack are cleaned up; only expected deliverables remain

Layer 2: Automated Post-Check Script

python3 "$DOCX_SCRIPTS/postcheck.py" output.docx

Automatically checks 14 business rules: blank pages, cover overflow (font size/spacing/trailing content), line spacing consistency, table margins, table cross-page control (cantSplit/tblHeader), image overflow, image aspect ratio distortion, font fallback, CJK indent, heading hierarchy, ShadingType misuse, TOC quality, document cleanliness (placeholder text/Markdown/HTML residuals), report content quality (abstract presence/heading specificity/vague conclusion detection).

⚠️ After generating any document, MUST run postcheck.py and fix all ❌ errors.

Math Formulas

Formula input uses LaTeX syntax, internally converted to docx-js Math objects.

  • Basic formulas (fractions, sub/superscript, roots, summation) → docx-js Math components
  • Complex formulas (3+ nesting, matrices, piecewise functions) → matplotlib PNG fallback

See references/math-formulas.md.

Charts

Default: matplotlib template library generates PNG for embedding.

6 ready-to-use templates: bar, line, pie, box, radar, heatmap.
Colors auto-derived from document palette.accent for style consistency.
Default palette: Morandi low-saturation (see design-system.md).

See references/chart-templates.md.

Dependencies

  • pandoc: Text extraction
  • docx: bun add docx or npm install docx (creating)
  • LibreOffice: PDF conversion, .doc support — install from the Tsinghua mirror (https://mirrors.tuna.tsinghua.edu.cn/libreoffice/libreoffice/stable/26.8.0/, see below)
  • Poppler: PDF to image (pdftoppm)
  • defusedxml: Secure XML parsing
  • python-docx: Simple comment operations

🔴 HARD REQUIREMENT — LibreOffice is missing

Any step that calls libreoffice/soffice (.doc → .docx, DOCX → PDF, visual verification) depends on LibreOffice.

If LibreOffice is not installed, you MUST install it. This is not a choice.

FORBIDDEN — do not do any of these:

  • ❌ Using Microsoft Word, WPS Office, Pages, or any other program already on the user's machine instead of installing LibreOffice.
  • ❌ Deciding on the user's behalf that the download is "too large", "too slow", or "not worth it".
    The package being large is NOT a reason to skip the install. It is expected to be large.
  • ❌ Asking the user "should I use Word instead to save time?" — that is the same violation dressed up as a question. Do not offer the substitution.
  • ❌ Silently degrading (skipping the PDF check, skipping visual verification) to avoid installing.

REQUIRED sequence — no steps skipped, in this order:

  1. Explain the necessity to the user. LibreOffice is the conversion engine that preserves the document's styles, layout, fonts, and page breaks faithfully — no other tool reproduces the same output, so substituting it degrades fidelity.
  2. Tell them the download is large (roughly several hundred MB) and may take a while. This is information for the user, not a decision point for you — state it and proceed to install.
  3. Install it now. Preferred source — Tsinghua TUNA mirror (fast in China, current build): https://mirrors.tuna.tsinghua.edu.cn/libreoffice/libreoffice/stable/26.8.0/ — pick the subdirectory for the platform/arch (deb/x86_64, deb/aarch64, rpm/x86_64, mac/aarch64, mac/x86_64, win/x86_64, win/aarch64) and download the main package from it. If 26.8.0 is no longer there, list https://mirrors.tuna.tsinghua.edu.cn/libreoffice/libreoffice/stable/ and take the newest version. Full per-platform download-and-install commands: env_setup/setup.md → "LibreOffice — Recommended Download Source". Package-manager fallback, only if the mirror is unreachable:
    • macOS: brew install --cask libreoffice
    • Linux (Debian/Ubuntu): sudo apt install libreoffice-core
    • Windows: winget install TheDocumentFoundation.LibreOffice
  4. Register the binary on PATH, then re-verify. An install that leaves soffice off the executable search path looks identical to "not installed" on the next probe — that is what causes the same several-hundred-MB package to be downloaded twice. The mechanism differs per OS (Linux/macOS: symlink into /usr/local/bin; Windows: append the program dir to the user PATH with setx). Full per-OS commands: env_setup/setup.md → "Register the binary on PATH". Re-run soffice --version and only continue once it prints a version. Corollary: probe before installing — if the binary already exists on disk but off-PATH, register it instead of reinstalling.
  5. Only after that install has actually been attempted AND failed may you use software already on the user's machine (Word, WPS, Pages). Report the install failure and what you switched to, and warn that output fidelity may differ.

The gate is simple: no install attempt = no substitute program. If you have not run the
install command and seen it fail, using Word/WPS/Pages/Keynote is a violation of this skill.

Final response citations

Place ::zcode-file-citation{...} inline in prose, not in a trailing list. Use purpose="source" for Q&A/no-op and purpose="output" for create/edit.

  • [HARD REQUIREMENT] Create/edit: cite each final file exactly once with a plain output citation. Summarize representative changes; do not cite every section/page or add a separate filename, path, or Markdown link. Example: Created ::zcode-file-citation{path="/abs/path/launch-plan.docx" purpose="output"}, highlighting the rollout and owners.
  • Q&A: do not edit/re-export.

Document

For non-in-place edits, preserve the source and export a copy; if unchanged, cite the source plainly.

For page-specific evidence, use a page number verified against the latest render/inspection.

Locators support only page_number; otherwise use a plain citation. Do not guess or add object, label, paragraph, table, or cell IDs. Do not cite intermediates unless asked. Inspect complete relevant pages and preserve material headings, question/table labels, footnotes, sources, and sample sizes; cite each needed page once.

::zcode-file-citation{path="/abs/path/file.docx" purpose="source" artifact_kind="document" page_number=4}

PDF

Citations currently support only plain file citations. Do not add artifact_kind, page_number, or other locators. Never cite rendered PNGs, scratch files, builders, or QA intermediates unless asked. Inspect the complete relevant pages, preserve material headings, table/figure labels, footnotes, sources, and sample sizes, and cite each source PDF once with a plain source citation.

Presentation

inspect the complete relevant slide, including callouts, question wording, chart/table titles, totals/sample sizes, and source/methodology footers. Answer directly, group same-slide claims, and cite that slide once. For concrete chart/table/image/diagram/callout evidence, include exact inspected slide_id, object_id, and a useful label when available.

For non-in-place edits, preserve the source and export a copy; if unchanged, cite the source plainly.

Use only locators verified against the latest render/inspection:

::zcode-file-citation{path="/abs/path/deck.pptx" purpose="source" artifact_kind="presentation" slide_number=3}
::zcode-file-citation{path="/abs/path/deck.pptx" purpose="source" artifact_kind="presentation" slide_number=1 slide_id="sl/gs5z1kshq0xv" object_id="ch/pz9t1r3ka8vn" label="ARR by segment chart"}

If IDs are not exact, stop at slide_number; never guess or cite intermediates unless asked.

Spreadsheets

  • Cite whole-workbook claims plainly; otherwise use the narrowest reliable sheet + range (the exact cell for a discrete value). Cite discontiguous cells separately. For objects, use sheet + exact inspected object_id; add object_kind/label only when useful. Never cite a sheet alone or guess locators.
  • Calculations: cite only distinct inputs, drivers, formulas, or results the answer needs.
::zcode-file-citation{path="/abs/path/book.xlsx" purpose="source" artifact_kind="workbook" sheet="Revenue Model" range="C27"}

Never cite intermediates unless asked.

レビュー

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

コメント

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

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

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

0 / 1000 文字

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

同じリポジトリのスキル

3d-object

無料概要あり

立体物をthree.jsで作成し、あらゆる角度から確認できるビューアーに表示します。OBJ + MTLやGLBで保存し、他の3D制作ソフトへ持ち込めます。

  • 立体物を作って全方向から確認したいとき
  • Blenderで編集するモデルの作成
  • シルエットや素材の見え方の確認
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

a11y-debugging

無料概要あり

Chrome DevTools MCPでWebページのアクセシビリティを監査し、見出し構造、ラベル、キーボード操作、フォーカス、タップ領域、色のコントラストに関する問題を調べます。

  • ページ全体のアクセシビリティを監査したいとき
  • フォームのラベルや画像の代替テキストを確認したいとき
  • キーボード操作とフォーカスを点検したいとき
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

action-items

無料概要あり

個人用のタスク一覧に、やることや期限、返答待ち、作業が止まる理由を記録します。進捗や依存関係を更新し、重複や完了済みの項目も整理するスキルです。

  • 期限付きのタスクや約束の記録
  • 返答待ちや作業が止まる理由の整理
  • 前提タスク完了後の依存関係の更新
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

agents

無料概要あり

作業の目標と完了条件を整理し、必要に応じて複数のエージェントへ分担します。進捗報告、成果の検証、PRのマージまで、プロジェクトとして進行を管理します。

  • 独立した作業を並行して進めたいとき
  • 進行中の各作業の状況確認
  • 中断したプロジェクトの再開
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

agy-customizations

無料概要あり

Antigravityのカスタマイズの種類や読み込み順、検出場所を説明し、スキル、ルール、プラグイン、フック、MCPサーバーの作成方法を案内します。

  • カスタマイズの種類を選びたいとき
  • 読み込み場所や優先順位を確認したいとき
  • スキルやルールを作成したいとき
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

animated-video

無料概要あり

再生・一時停止や時間位置の指定ができるアニメーションをHTMLページとして制作します。場面の長さや速度を調整し、横長・縦長の動画書き出しに備えます。

  • 製品の操作紹介を動画にしたいとき
  • 文字と図形で内容を説明したいとき
  • 縦長のアニメーション制作
asgeirtj/system_prompts_leaks7万2026年10月29日 更新

asgeirtj のスキルをすべて見る

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