xlsx
GitHub处理Excel工作簿的创建、编辑、验证和渲染,保留公式、格式及宏等元数据。提供标准化工作流以确保数据完整性和计算准确性,支持CSV/TSV转换及严格的质量检查。
Trigger Scenarios
Install
npx skills add MemTensor/memmy-agent --skill xlsx -g -y
SKILL.md
Frontmatter
{
"name": "xlsx",
"description": "Create, inspect, edit, recalculate, validate, render, and deliver Excel workbooks while preserving formulas, formatting, drawings, links, macros, and metadata."
}
Workbook workflow
Trigger for .xlsx, .xlsm, .xltx, .csv, and .tsv workbooks or requests
to create, read, edit, clean, format, calculate, chart, or convert them. Do
not use it for ordinary documents, web pages, databases, or live external
spreadsheet APIs.
- Copy an existing workbook to a unique temporary directory and inspect it
with
scripts/inspect_workbook.mjs --input <file> --jsonbefore editing. - Preserve formulas, cached values, styles, merges, tables, filters, validations, conditional formatting, charts, images, shapes, comments, hidden sheets, links, macros, and metadata. Only modify the requested cells or objects.
- After adding or changing formulas run
scripts/recalculate_workbook.mjs --input <file> --output <file> --json. A completed recalculation with formula errors is reported aserrors_found; a conversion or process failure is a separate failure. - Run
scripts/check_workbook.mjs <file> --json; use--allow-lossyonly when the caller explicitly accepts the listed loss. The checker does not use PPTX or XSD data. - Render with
scripts/render_with_office.mjs <file> --output-dir <dir>and inspect every sheet/page. Reopen the output and verify formulas, cached values, objects, and that the original hash is unchanged.
CSV/TSV input requires an explicit encoding, BOM, delimiter, quote, newline, and malformed-row policy. Never replace formulas with constants unless a static export was requested. External links, macros, unsupported extensions, and objects that cannot be safely preserved fail closed.
All commands are standalone Node CLIs. They write stable JSON with --json,
diagnostics to stderr, and non-zero status for invalid input, missing Office,
timeout, or unsafe preservation. The bundled renderer is resolved through
MEMMY_OFFICE_RENDERING_ROOT, the legacy DOCX override during migration, the
packaged Office payload, and the source payload; it never silently falls back
to a system PATH installation.
See references/workbook-workflow.md, references/formula-recalculation.md,
and references/layout-and-preservation.md for the full SOP.
Version History
- 0074fc0 Current 2026-09-22 01:42


