Communitygithub.com

Rylai PDF

ローカルのオープンソースツールを使用して、PDFファイルの作成、検査、抽出、マージ、分割、回転、レンダリングを行います。構造的および視覚的な検証も含みます。

Rylai PDF とは?

このスキルは、Codex、Hermes、Claudeエージェント向けに設計されたRylai PDF操作ツールです。`pypdf`や`pdfplumber`などのローカル・オープンソースライブラリに依存し、PDFの検査、ページ抽出、マージ、分割、回転、レンダリングなどの操作を実行します。外部サービスへの依存を排除し、ファイルやパスワードの漏洩を防止します。ワークフローは、操作前に情報取得(`info`)を行い、編集後はページ数やテキスト抽出の結果を確認する品質チェックを含みます。また、スキャン文書にはローカルOCRエンジンを使用し、使用したツールと言語モデルを明示します。環境変数や外部依存関係のインストール手順も定義されており、プライバシーと透明性を重視した設計です。

対応✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/Rylaispirit/rylai-codex-hermes-skills/tree/HEAD/skills/pdf

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

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

ドキュメント

Rylai PDF は何をしますか?

RylaiによるオリジナルのCodex-Hermes-Claudeスキル。

ローカルファイルと決定論的ツールを使用します。ユーザーが明示的にインプレース置換を要求しない限り、元の文書を保持します。パスワードを勝手に生成したり、認証情報を埋め込んだり、直接の承認なしに文書を外部サービスにアップロードしたりしないでください。

ランタイム

Python 3と以下を使用します:

  • pypdf:ページレベルの検査と編集。
  • pdfplumber:より高品質なテキスト抽出が必要な場合。
  • pypdfium2またはPoppler pdftoppm:オプションのページレンダリング。
  • LibreOffice:OfficeソースをPDFに変換する場合のみ。

インストール前にプローブします:

python -c "import pypdf; print(pypdf.__version__)"
python -c "import pdfplumber; print(pdfplumber.__version__)"

不足しているPythonパッケージのみをインストールします:

python -m pip install pypdf pdfplumber pypdfium2

scripts/rylai_pdf.pyをこのスキルディレクトリからの相対パスで解決します。

ワークフロー

  1. 入力パス、要求された操作、出力パス、ページ範囲を確認します。
  2. 未知のPDFや暗号化されたPDFを編集する前に、infoを実行します。
  3. 新しい出力パスに書き込みます。置換が意図されている場合のみ--forceを使用します。
  4. 結果を再度開き、ページ数、メタデータ、該当する場合は抽出テキストを確認します。
  5. レイアウトに敏感な作業の場合は、代表的なページをレンダリングし、PNG出力を検査します。
  6. Poppler、LibreOffice、OCR、またはその他のオプションの依存関係がない場合は、スキップしたチェックを報告します。

有用なテキストレイヤーがないスキャン済みページには、利用可能なローカルOCRエンジンを使用します。元のPDFを保持し、使用したOCRツールと言語モデルを明記します。

バンドルCLI

検査:

python scripts/rylai_pdf.py info input.pdf

選択したページの抽出:

python scripts/rylai_pdf.py extract input.pdf output.txt --pages 1-3,7

マージ:

python scripts/rylai_pdf.py merge output.pdf first.pdf second.pdf

選択したページを個別のファイルに分割:

python scripts/rylai_pdf.py split input.pdf output-pages --pages 2-5

選択したページを時計回りに回転:

python scripts/rylai_pdf.py rotate input.pdf rotated.pdf 90 --pages 1,3

ローカルのPDFiumまたはPopplerでレンダリング:

python scripts/rylai_pdf.py render input.pdf rendered-pages --dpi 144

ユーザーがその文書のパスワードを提供した場合のみ--passwordを追加します。

品質基準

  • 出力は修復警告なしで開くこと。
  • ページ順序、枚数、回転、選択範囲がリクエストと一致すること。
  • 抽出テキストが黙って空にならず、スキャン済みページが識別されること。
  • レンダリングされたページに予期しないクリッピングや空白出力がないこと。
  • ソースファイル、一時ファイル、パスワード、ユーザーパスがスキルにバンドルされないこと。

Individual skills in this repo

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

Rylaispirit/rylai-codex-hermes-skills

Plan, build, render, and verify academic presentation decks with citations, accessible visuals, clear argument flow, speaker-ready pacing, and visual QA.

Rylaispirit/rylai-codex-hermes-skills

Create publication-quality chart images from supplied data using an available plotting library, with explicit scales, labels, and visual QA.

Rylaispirit/rylai-codex-hermes-skills

Plan, draft, and review persuasive copy for landing pages, product pages, ads, email, headlines, offers, calls to action, positioning, and message variants.

Rylaispirit/rylai-codex-hermes-skills

Plan, draft, revise, and audit creative or long-form writing with a portable core workflow that does not depend on missing legacy templates.

Rylaispirit/rylai-codex-hermes-skills

Create, inspect, edit, and verify Word DOCX files with python-docx, including Markdown conversion, text replacement, metadata inspection, and optional PDF render.

Rylaispirit/rylai-codex-hermes-skills

Create or optimize marketing images, social graphics, product mockups, banners, cover art, listing visuals, brand assets, image prompts, WebP files, and OG images.

Rylaispirit/rylai-codex-hermes-skills

Create, inspect, extract, edit, render, and verify PowerPoint presentations with python-pptx and optional LibreOffice.

Rylaispirit/rylai-codex-hermes-skills

Create editable PowerPoint decks from a local JSON specification using Rylai's visual system, python-pptx, deterministic slide types, and optional rendering.

Rylaispirit/rylai-codex-hermes-skills

Perform an evidence-led SEO audit using accessible pages, source code, crawl data, and current search documentation without assuming missing plugins.

Rylaispirit/rylai-codex-hermes-skills

Extract a practical design system from screenshots or mockups and produce implementation-ready UI specifications using vision and repository context.

Rylaispirit/rylai-codex-hermes-skills

Plan and produce video with available AI tools or programmatic frameworks. Use for video prompts, avatars, explainers, demos, templates, pipelines, and generation.

Rylaispirit/rylai-codex-hermes-skills

Create, inspect, edit, and verify Excel XLSX workbooks with openpyxl, including CSV import, formulas, styling, error checks, and optional LibreOffice rendering.

関連スキル