Agent Skills › deepseek-ai/deepseek-harness › office-recalculate

office-recalculate

GitHub

使用 LibreOffice Kit CLI 刷新电子表格公式缓存,并验证计算结果。通过 openpyxl 双重检查确保公式存活且数据准确,保持原文件结构,适用于需要重新计算和校验 Excel 内容的场景。

packages/skill/skill-office/assets/office-recalculate/SKILL.md deepseek-ai/deepseek-harness

Trigger Scenarios

用户要求刷新电子表格中的公式计算值 需要验证 Excel 文件的缓存数据与预期逻辑是否一致

Install

npx skills add deepseek-ai/deepseek-harness --skill office-recalculate -g -y
More Options

Non-standard path

npx skills add https://github.com/deepseek-ai/deepseek-harness/tree/master/packages/skill/skill-office/assets/office-recalculate -g -y

Use without installing

npx skills use deepseek-ai/deepseek-harness@office-recalculate

指定 Agent (Claude Code)

npx skills add deepseek-ai/deepseek-harness --skill office-recalculate -a claude-code -g -y

安装 repo 全部 skill

npx skills add deepseek-ai/deepseek-harness --all -g -y

预览 repo 内 skill

npx skills add deepseek-ai/deepseek-harness --list

SKILL.md

Frontmatter
{
    "name": "office-recalculate",
    "description": "Refresh spreadsheet formula caches and verify calculated values with LibreOffice Kit."
}

Recalculate spreadsheet formulas

Use the installed LibreOffice Kit CLI through the shell with the absolute Node and CLI paths supplied below. In Bash, invoke "<node>" "<cli>"; in PowerShell, invoke & "<node>" "<cli>". Prefer bundled LibreOffice unless the user requests another installation. If the Office sidecar is missing, follow sidecar setup: ask whether the user wants to download it and install only after they agree. Do not invoke system soffice, use npx, or install a replacement to work around a failed recalculation with an installed sidecar.

Keep the original workbook and write a new file in the task workspace. Quote each input and output path.

"<node>" "<cli>" recalculate --input <workbook.xlsx> --output <recalculated.xlsx>

Verify the saved result with openpyxl, using load_workspace_dependencies for the Python path unless a project environment is required. Open it with both data_only=False and data_only=True. Check that formulas survive and cached results match the requested logic, expected totals, and cell types. Check required unchanged sheets, styles, and data. Recalculation does not validate business logic or guarantee Excel-specific feature compatibility.

If no supported recalculation engine is available or the command fails, preserve the workbook and explain that calculated values could not be refreshed. Do not replace requested formulas with constants or present stale/absent caches as fresh results. Deliver the verified output through present when available, keeping the file in place.

Version History

  • 687f282 Current 2026-10-18 17:47

Same Skill Collection

.agents/skills/agent-experience/SKILL.md
.agents/skills/cordis-styling-nitpicking/SKILL.md
.agents/skills/dsh-archive-agent-notes/SKILL.md
.agents/skills/dsh-ci-test-reliability/SKILL.md
.agents/skills/dsh-client-ui-ux/SKILL.md
.agents/skills/dsh-code-review/SKILL.md
.agents/skills/dsh-create-upgrade-guide/SKILL.md
.agents/skills/dsh-doc-site-sync/SKILL.md
.agents/skills/dsh-doc-standards/SKILL.md
.agents/skills/dsh-error-handling/SKILL.md
.agents/skills/dsh-find-simplifications/SKILL.md
.agents/skills/dsh-merging-stacked-prs/SKILL.md
.agents/skills/dsh-official-plugin-artwork/SKILL.md
.agents/skills/dsh-pre-push-checks/SKILL.md
.agents/skills/dsh-prose-standard/SKILL.md
.agents/skills/dsh-responsive-ui/SKILL.md
.agents/skills/dsh-speed-up-perf/SKILL.md
.agents/skills/dsh-translate-docs/SKILL.md
.agents/skills/dsh-trim-cot-leakage/SKILL.md
packages/preset/agent-preset/skills/agent-experience/SKILL.md
packages/preset/agent-preset/skills/cordis-composition-reference/SKILL.md
packages/preset/agent-preset/skills/cordis-plugin-development/SKILL.md
packages/preset/agent-preset/skills/editing-cordis-compositions/SKILL.md
packages/sandbox/sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md
packages/skill/skill-office/assets/office-docx/SKILL.md
packages/skill/skill-office/assets/office-export-pdf/SKILL.md
packages/skill/skill-office/assets/office-pptx/SKILL.md
packages/skill/skill-office/assets/office-render/SKILL.md
packages/skill/skill-office/assets/office-xlsx/SKILL.md
packages/skill/skill-office/assets/office/SKILL.md
.agents/skills/dsh-doc/SKILL.md
.agents/skills/record-browser-gif/SKILL.md

Metadata

Files
0
Version
687f282
Hash
acc37296
Indexed
2026-10-18 17:47

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-18 20:55
浙ICP备14020137号-1