Communitygithub.com

Rylaispirit/rylai-codex-hermes-skills

建立、檢查、編輯和驗證 Word DOCX 檔案,使用 python-docx,支援 Markdown 轉換、文字取代、中繼資料檢視,並可選用 PDF 渲染。

rylai-codex-hermes-skills 是什麼?

此技能提供一套完整的 DOCX 文件處理工作流程,主要基於開源 python-docx 套件,讓 AI 代理(如 Claude Code、Codex、Hermes)能夠建立、檢查、編輯和驗證 Word 文件。它包含一個捆綁的命令列工具,支援從簡潔的 Markdown 建立樣式化文件、檢查文件結構與中繼資料、在不修改原始檔案的情況下進行文字取代,以及當系統安裝 LibreOffice 時可渲染為 PDF。工作流程建議先檢查來源檔案,然後建立新輸出檔案(避免覆蓋使用者來源),接著重新開啟 DOCX 驗證其可讀性,並對排版敏感的工作渲染 PDF 做最終確認。品質規則強調保留既有文件視覺慣例、使用真實標題樣式而非視覺放大的內文段落、保持表格可讀性,以及透過 inspect 命令驗證中繼資料、段落數、表格數和擷取文字。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/Rylaispirit/rylai-codex-hermes-skills/tree/HEAD/skills/docx

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Rylai DOCX

這是原創的 Rylai Codex-Hermes-Claude 工作流程。使用開源的 python-docx 套件進行文件處理,僅在需要本地渲染時才使用 LibreOffice。

執行環境

  • 捆綁腳本所需:Python 3 和 python-docx。
  • 選用:LibreOffice (soffice) 用於 PDF 渲染。
  • 相對於此技能資料夾解析 scripts/docx_tool.py。
  • 除非使用者同意安裝,否則不要安裝套件。
  • 將新文件或修改後文件的作者中繼資料設為 Rylai,除非使用者明確要求其他作者。

工作流程

  1. 檢查來源檔案並識別所需的文件結構。
  2. 將指令排除在最終文件主體之外。
  3. 建立新的輸出路徑,而不是覆蓋使用者的來源檔案。
  4. 重新開啟儲存的 DOCX 以驗證其可讀性。
  5. 對於排版敏感的工作,使用 LibreOffice 渲染為 PDF 並檢查結果。

捆綁的命令列工具

從簡潔的 Markdown 建立樣式化 DOCX:

python scripts/docx_tool.py create input.md output.docx --title "報告"

支援的 Markdown 包含標題、段落、項目符號清單、編號清單、區塊引用、簡單強調、行內程式碼和管線表格。

檢查結構和中繼資料:

python scripts/docx_tool.py inspect output.docx
python scripts/docx_tool.py inspect output.docx --text

在不修改來源檔案的情況下取代文字:

python scripts/docx_tool.py replace input.docx output.docx \
  --set "{{client}}=Rylai Studio" \
  --set "{{date}}=2026-08-09"

當 LibreOffice 可用時渲染為 PDF:

python scripts/docx_tool.py render output.docx rendered

品質規則

  • 保留既有文件的視覺慣例,除非使用者要求重新設計。
  • 使用真實標題樣式,而不是視覺上放大的內文段落。
  • 保持表格可讀性,避免在一頁中擠入太多欄位。
  • 使用 inspect 命令驗證中繼資料、段落數、表格數和擷取的文字。
  • 當 LibreOffice 不可用時,報告已跳過視覺驗證。

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 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, merge, split, rotate, and render PDF files with local open-source tools, including structural and visual verification.

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.

相關技能