Communitygithub.com

Rylai XLSX

使用 openpyxl 创建、检查、编辑和验证 Excel XLSX 工作簿,支持 CSV 导入、公式、样式、错误检查以及可选的 LibreOffice 渲染。

Rylai XLSX 是什么?

Rylai XLSX 是一个面向 AI 代理(如 Codex Hermes 和 Claude)的工作流技能,专注于通过开源库 `openpyxl` 对 Excel XLSX 文件进行程序化操作。它允许代理创建、检查、编辑和验证工作簿,支持从 CSV 或 TSV 导入数据、应用公式和样式,并自动检查 `#REF!` 等常见错误。该技能提供命令行工具 `scripts/xlsx_tool.py`,支持创建、检查、设置单元格、重新计算公式(通过 LibreOffice)以及将工作表渲染为 PDF。其工作流程强调先检查再修改、保留现有内容、保存到新路径以及验证结果,确保数据完整性。主要运行环境依赖 Python 3 和 openpyxl,LibreOffice 为可选组件用于公式重算和 PDF 输出。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Rylai XLSX 是做什么的?

这是一个原始的 Rylai Codex-Hermes-Claude 工作流。使用开源的 openpyxl 包进行工作簿操作,LibreOffice 仅用于可选的公式重算或 PDF 渲染。

运行时

  • 捆绑脚本所需:Python 3 和 openpyxl。
  • 可选:LibreOffice (soffice) 用于重算和 PDF 渲染。
  • 解析相对于此技能文件夹的 scripts/xlsx_tool.py。
  • 除非用户批准安装,否则不要安装软件包。
  • 将工作簿创建者和最后编辑者设置为 Rylai,除非用户明确要求其他作者。

工作流程

  1. 在修改之前检查工作簿或源表。
  2. 除非任务要求更改,否则保留现有工作表名称、公式和样式。
  3. 保存到新的输出路径,而不是覆盖源文件。
  4. 重新打开保存的工作簿并检查公式和错误计数。
  5. 当需要刷新公式结果时,如果 LibreOffice 可用,请使用其重算功能。

捆绑的 CLI

从 CSV 或 TSV 创建带样式的工作簿:

python scripts/xlsx_tool.py create input.csv output.xlsx --sheet Data
python scripts/xlsx_tool.py create input.tsv output.xlsx --delimiter tab

检查工作簿结构、公式和可见的电子表格错误:

python scripts/xlsx_tool.py inspect output.xlsx

在保持源文件不变的情况下更新单元格或公式:

python scripts/xlsx_tool.py set input.xlsx output.xlsx \
  --cell "Summary!B2=1250" \
  --cell "Summary!B3==SUM(Data!B2:B20)"

第一个 = 将单元格地址与其值分隔开。因此公式使用第二个 =。

通过 LibreOffice 保存往返过程重新计算公式:

python scripts/xlsx_tool.py recalc input.xlsx recalculated.xlsx

将工作簿工作表渲染为 PDF:

python scripts/xlsx_tool.py render input.xlsx rendered

质量规则

  • 对于当输入变化时应更新的值,使用公式。
  • 将带前导零的标识符保留为文本。
  • 冻结标题行并为新创建的数据表启用筛选器。
  • 对日期、百分比、货币和总计使用清晰的数字格式。
  • 将 #REF!、#DIV/0!、#VALUE!、#NAME?、#N/A 和 #NUM! 视为交付障碍,除非用户明确期望它们出现。
  • 当 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, 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, 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.

相关技能