Communitygithub.com

aiskillstore/marketplace

変更履歴、コメント、書式保持、テキスト抽出をサポートする、プロフェッショナルな文書(.docx)の作成、編集、分析を包括的に行います。

marketplace とは?

このスキルは、Word文書(.docx)の作成、編集、分析を包括的に支援するためのツールです。特に、変更履歴(トラックチェンジ)の管理やコメントの追加といった、プロフェッショナルな文書レビューワークフローに重点を置いており、法的文書、学術論文、ビジネス文書など、厳密な変更管理が求められるシナリオに最適です。 主な機能は以下の3つに大別されます。 1. **文書の読み取り/分析**: pandocを使用したMarkdownへの変換や、OOXML構造への直接アクセス(Pythonライブラリ経由)により、テキスト抽出や詳細な構造解析が可能です。 2. **新規文書の作成**: JavaScriptライブラリ(docx-js)を使用して、プログラム的に新しい.docxファイルをゼロから作成できます。 3. **既存文書の編集**: Pythonライブラリ(Document library)を使用した編集と、変更履歴(Redliningワークフロー)の実装をサポートします。Redliningワークフローでは、まず変更計画をMarkdownで作成し、それを基に最小限かつ正確なOOXML編集を行うことで、クリーンでレビューしやすい変更履歴を生成します。SKILL.mdの指示に従い、複雑な編集はバッチ処理(3~10件の変更をグループ化)することで管理しやすく、デバッグも容易になります。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiskillstore/marketplace/tree/HEAD/skills/docx

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

DOCXファイルの作成、編集、分析

概要

ユーザーから.docxファイルの作成、編集、または内容の分析を依頼されることがあります。.docxファイルは基本的に、XMLファイルやその他のリソースを含むZIPアーカイブであり、読み取りや編集が可能です。タスクごとに異なるツールとワークフローが用意されています。

ワークフロー決定木

コンテンツの読み取り/分析

以下の「テキスト抽出」または「生XMLアクセス」のセクションを使用してください

新しいドキュメントの作成

「新しいWord文書の作成」ワークフローを使用してください

既存のドキュメントの編集

  • 自分のドキュメント + 簡単な変更 「基本のOOXML編集」ワークフローを使用してください

  • 他の人のドキュメント **「変更履歴ワークフロー」**を使用してください(推奨デフォルト)

  • 法律、学術、ビジネス、または政府の文書 **「変更履歴ワークフロー」**を使用してください(必須)

コンテンツの読み取りと分析

テキスト抽出

ドキュメントのテキストコンテンツを読むだけでよい場合は、pandocを使用してドキュメントをマークダウンに変換する必要があります。Pandocはドキュメント構造を保持するための優れたサポートを提供し、変更履歴を表示できます。

# 変更履歴を含めてドキュメントをマークダウンに変換
pandoc --track-changes=all path-to-file.docx -o output.md
# オプション: --track-changes=accept/reject/all

生XMLアクセス

コメント、複雑な書式設定、ドキュメント構造、埋め込まれたメディア、およびメタデータには、生XMLアクセスが必要です。これらの機能のいずれかを使用するには、ドキュメントを解凍し、生のXMLコンテンツを読み取る必要があります。

ファイルの解凍

python ooxml/scripts/unpack.py <office_file> <output_directory>

主要なファイル構造

  • word/document.xml - メインのドキュメントコンテンツ
  • word/comments.xml - document.xmlで参照されるコメント
  • word/media/ - 埋め込まれた画像とメディアファイル
  • 変更履歴は、<w:ins>(挿入)と<w:del>(削除)タグを使用します

新しいWord文書の作成

新しいWord文書をゼロから作成する場合は、docx-jsを使用してください。これにより、JavaScript/TypeScriptを使用してWord文書を作成できます。

ワークフロー

  1. 必須 - ファイル全体を読む: docx-js.md(約500行)を最初から最後まで完全に読んでください。このファイルを読むときは、範囲制限を絶対に設定しないでください。ドキュメント作成を進める前に、詳細な構文、重要な書式設定ルール、およびベストプラクティスについて、ファイルの全文を読んでください。
  2. Document、Paragraph、TextRunコンポーネントを使用してJavaScript/TypeScriptファイルを作成します(すべての依存関係がインストールされていることを前提としますが、そうでない場合は、以下の依存関係セクションを参照してください)
  3. Packer.toBuffer()を使用して.docxとしてエクスポートします

既存のWord文書の編集

既存のWord文書を編集する場合は、Documentライブラリ(OOXML操作用のPythonライブラリ)を使用します。このライブラリは、インフラストラクチャのセットアップを自動的に処理し、ドキュメント操作用のメソッドを提供します。複雑なシナリオでは、ライブラリを介して基になるDOMに直接アクセスできます。

ワークフロー

  1. 必須 - ファイル全体を読む: ooxml.md(約600行)を最初から最後まで完全に読んでください。このファイルを読むときは、範囲制限を絶対に設定しないでください。DocumentライブラリAPIと、ドキュメントファイルを直接編集するためのXMLパターンについて、ファイルの全文を読んでください。
  2. ドキュメントを解凍します: python ooxml/scripts/unpack.py <office_file> <output_directory>
  3. Documentライブラリを使用してPythonスクリプトを作成して実行します(ooxml.mdの「Document Library」セクションを参照)
  4. 最終的なドキュメントをパックします: python ooxml/scripts/pack.py <input_directory> <office_file>

Documentライブラリは、一般的な操作用の高レベルメソッドと、複雑なシナリオ用の直接DOMアクセスの両方を提供します。

ドキュメントレビューのための変更履歴ワークフロー

このワークフローにより、OOXMLで変更を実装する前に、マークダウンを使用して包括的な変更履歴を計画できます。重要: 完全な変更履歴を実現するには、すべての変更を体系的に実装する必要があります。

バッチ戦略: 関連する変更を3~10個のバッチにグループ化します。これにより、デバッグが管理しやすくなり、効率を維持できます。各バッチをテストしてから、次のバッチに進みます。

原則: 最小限で正確な編集 変更履歴を実装するときは、実際に変更されたテキストのみをマークします。変更されていないテキストを繰り返すと、編集のレビューが難しくなり、プロフェッショナルでない印象を与えます。置換を次のように分割します: [変更なしテキスト] + [削除] + [挿入] + [変更なしテキスト]。元の実行のRSIDを変更なしテキストに保持するには、元の<w:r>要素を抽出して再利用します。

例 - 文中の「30 days」を「60 days」に変更:

# 悪い例 - 文全体を置換
'<w:del><w:r><w:delText>The term is 30 days.</w:delText></w:r></w:del><w:ins><w:r><w:t>The term is 60 days.</w:t></w:r></w:ins>'

# 良い例 - 変更された部分のみをマークし、変更なしテキストには元の<w:r>を保持
'<w:r w:rsidR="00AB12CD"><w:t>The term is </w:t></w:r><w:del><w:r><w:delText>30</w:delText></w:r></w:del><w:ins><w:r><w:t>60</w:t></w:r></w:ins><w:r w:rsidR="00AB12CD"><w:t> days.</w:t></w:r>'

変更履歴ワークフロー

  1. マークダウン表現を取得: 変更履歴を保持したままドキュメントをマークダウンに変換:

    pandoc --track-changes=all path-to-file.docx -o current.md
    
  2. 変更を特定してグループ化: ドキュメントをレビューし、必要なすべての変更を特定し、論理的なバッチに整理します:

    位置特定方法(XML内の変更を見つけるため):

    • セクション/見出し番号(例:「セクション3.2」、「第IV条」)
    • 段落識別子(番号が付いている場合)
    • 一意の周囲テキストを使用したgrepパターン
    • ドキュメント構造(例:「最初の段落」、「署名ブロック」)
    • マークダウンの行番号は使用しない - XML構造に対応していません

    バッチ編成(バッチごとに3~10の関連変更をグループ化):

    • セクション別: 「バッチ1: セクション2の修正」、「バッチ2: セクション5の更新」
    • タイプ別: 「バッチ1: 日付の修正」、「バッチ2: 当事者名の変更」
    • 複雑度別: 単純なテキスト置換から始め、複雑な構造変更に進む
    • 順次: 「バッチ1: 1~3ページ」、「バッチ2: 4~6ページ」
  3. ドキュメントとドキュメントの解凍を読む:

    • 必須 - ファイル全体を読む: ooxml.md(約600行)を最初から最後まで完全に読んでください。範囲制限を絶対に設定しないでください。「Document Library」と「Tracked Change Patterns」のセクションに特に注意してください。
    • ドキュメントを解凍: python ooxml/scripts/unpack.py <file.docx> <dir>
    • 推奨RSIDに注意: 解凍スクリプトは、変更履歴に使用するRSIDを提案します。このRSIDをコピーして、ステップ4bで使用します。
  4. 変更をバッチで実装: 変更を論理的にグループ化し(セクション、タイプ、または近接性によって)、1つのスクリプトでまとめて実装します。このアプローチは:

    • デバッグを容易にします(バッチが小さいほど、エラーの特定が容易になります)
    • 段階的な進行を可能にします
    • 効率を維持します(バッチサイズ3~10が適切に機能します)

    推奨バッチグループ化:

    • ドキュメントセクション別(例:「セクション3の変更」、「定義」、「終了条項」)
    • 変更タイプ別(例:「日付変更」、「当事者名更新」、「法的用語置換」)
    • 近接性別(例:「1~3ページの変更」、「ドキュメント前半の変更」)

    関連する変更の各バッチについて:

    a. テキストをXMLにマッピング: word/document.xmlをgrepして、テキストが<w:r>要素間でどのように分割されているかを確認します。

    b. スクリプトを作成して実行: get_nodeを使用してノードを見つけ、変更を実装し、doc.save()を実行します。パターンについては、ooxml.mdの**「Document Library」**セクションを参照してください。

    注意: スクリプトを作成する直前に必ずword/document.xmlをgrepして、現在の行番号を取得し、テキストコンテンツを確認してください。行番号は、スクリプトを実行するたびに変更されます。

  5. ドキュメントをパック: すべてのバッチが完了したら、解凍されたディレクトリを.docxに変換し直します:

    python ooxml/scripts/pack.py unpacked reviewed-document.docx
    
  6. 最終確認: 完全なドキュメントを包括的にチェックします:

    • 最終ドキュメントをマークダウンに変換:
      pandoc --track-changes=all reviewed-document.docx -o verification.md
      
    • すべての変更が正しく適用されたことを確認:
      grep "original phrase" verification.md  # 見つからないはず
      grep "replacement phrase" verification.md  # 見つかるはず
      
    • 意図しない変更が導入されていないことを確認します

ドキュメントの画像への変換

Word文書を視覚的に分析するには、2段階のプロセスを使用して画像に変換します:

  1. DOCXをPDFに変換:

    soffice --headless --convert-to pdf document.docx
    
  2. PDFページをJPEG画像に変換:

    pdftoppm -jpeg -r 150 document.pdf page
    

    これにより、page-1.jpg、page-2.jpgなどのファイルが作成されます。

オプション:

  • -r 150: 解像度を150 DPIに設定します(品質とサイズのバランスを調整)
  • -jpeg: JPEG形式で出力します(PNGが望ましい場合は-pngを使用)
  • -f N: 変換を開始する最初のページ(例:-f 2は2ページ目から開始)
  • -l N: 変換を終了する最後のページ(例:-l 5は5ページ目で停止)
  • page: 出力ファイルのプレフィックス

特定の範囲の例:

pdftoppm -jpeg -r 150 -f 2 -l 5 document.pdf page  # 2~5ページのみを変換

コードスタイルガイドライン

重要: DOCX操作用のコードを生成する場合:

  • 簡潔なコードを作成する
  • 冗長な変数名や不必要な操作を避ける
  • 不要なprint文を避ける

依存関係

必要な依存関係(利用できない場合はインストール):

  • pandoc: sudo apt-get install pandoc(テキスト抽出用)
  • docx: npm install -g docx(新しいドキュメント作成用)
  • LibreOffice: sudo apt-get install libreoffice(PDF変換用)
  • Poppler: sudo apt-get install poppler-utils(pdftoppmを使用してPDFを画像に変換するため)
  • defusedxml: pip install defusedxml(安全なXMLパース用)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

aiskillstore/marketplace

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

aiskillstore/marketplace

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

aiskillstore/marketplace

Use when the user asks to "pre-launch check the landing page", "run a Quality-Score preflight", or "verify ad-to-page message match before launch"; produces an ad↔page continuity report — message-match gaps, above-the-fold check, page-speed read, form-friction count, mobile-render flags — as a pass/fix punch list. Not for redesigning or rewriting the page — use landing-optimizer; not for scoring the account or the RQS — use ad-account-auditor. 落地页体验预检/广告落地页一致性检查

aiskillstore/marketplace

Use when the user asks to "optimize our landing page for influencer traffic", "fix our promo-code landing page", or "improve conversion from a creator campaign"; produces a message-match audit, page-structure and social-proof recommendations, a promo-code/CTA conversion plan, and an A/B test roadmap. Not for measuring campaign results after launch — use performance-analyzer.

aiskillstore/marketplace

Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, critique or improve a landing page, sales page, opt-in page, product page or checkout flow, when conversion rate is low, when paid traffic is not converting, or when someone asks "why isn't this page converting" or wants a CRO / landing page review.

aiskillstore/marketplace

This skill helps users extract GitHub repository project details and contributor contact information using keywords, stars, and update dates. Agent should proactively apply this skill when users express needs like search for GitHub projects by keywords, find top open-source contributors in specific domains, extract developer contacts from GitHub repositories, discover trending repositories with high stars, gather contributor profiles and social links for tech recruiting, retrieve GitHub project descriptions and metrics, build developer communities by finding active contributors, search for repositories updated recently, collect personal website and Twitter links of developers, generate targeted leads for developer tools, or track active open-source contributors for collaboration.

aiskillstore/marketplace

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

aiskillstore/marketplace

Using the Wonda CLI to generate images, videos, music, and audio from the terminal — plus LinkedIn, Reddit, and X/Twitter research and automation

aiskillstore/marketplace

Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.

aiskillstore/marketplace

Process video files with audio extraction, format conversion (mp4, webm), and Whisper transcription. Use when user mentions video conversion, audio extraction, transcription, mp4, webm, ffmpeg, or whisper transcription.

aiskillstore/marketplace

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.

aiskillstore/marketplace

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

aiskillstore/marketplace

Router skill for LLMQuant portfolio workflows. Use when the user needs company profiles, thesis tracking, theme research, watchlist monitoring, or alert management.

aiskillstore/marketplace

Account assets, equity and fund positions, P&L, cash flow records, account statements, margin ratios, buy-power estimates, order management, and DCA recurring investments via Longbridge (most require Trade permission). Frameworks: portfolio diagnosis, rebalancing, asset allocation, risk analysis (VaR/CVaR), performance attribution, and tax-loss harvesting. Triggers: "持仓", "账户", "盈亏", "资产", "对账单", "下单", "买入", "卖出", "撤单", "定投", "组合诊断", "再平衡", "资产配置", "风险分析", "绩效归因", "税损收割", "持倉", "賬戶", "盈虧", "對賬單", "下單", "買入", "賣出", "組合診斷", "再平衡", "稅損收割", "positions", "portfolio", "P&L", "order", "buy", "sell", "DCA", "statement", "risk analysis", "rebalancing", "tax harvesting", "我的风险", "持仓风险", "风险敞口", "資產", "資產配置", "風險分析", "績效歸因", "撤單

aiskillstore/marketplace

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

aiskillstore/marketplace

Use for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs/products and ChatGPT Work. Also use for model choice/migration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat/Work/Codex comparisons. Do not use for generic app/software tasks that merely mention Codex.

aiskillstore/marketplace

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

aiskillstore/marketplace

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

aiskillstore/marketplace

Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.

aiskillstore/marketplace

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

関連スキル