excel-cli — скилл для Claude Code: что делает и как установить
Автоматизирует работу с книгами Excel на Windows: читает ячейки, пишет формулы, обновляет данные и подключается к открытым сессиям через консоль.
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a claude-codeЧто делает excel-cli
Скилл управляет настольным Excel на Windows через скрипт запуска start-cli.ps1, который вызывает npx -y @sbroenne/excelcli@latest. Сама утилита не добавляется в PATH. Инструмент выполняет типовые задачи с файлами: чтение и запись ячеек, расчёт формул, обновление данных и автоматизацию без ручного переоткрытия окон.
Перед запуском файла скилл выполняет session discover и подключается к уже запущенному процессу через session attach --workbook-id <ID>. Такой подход бережёт несохранённые правки и параметры AutoSave. Если фоновая операция выполняется долго, проверять статус нужно через команду session list, не запуская повторный вызов вслепую.
Для работы требуются Windows с установленным классическим Excel, Node.js 18+ и PowerShell 7.4+ (pwsh). Стандартный Windows PowerShell 5.1 не поддерживается и приведёт к ошибке выполнения скрипта запуска.
Какие задачи решает
- читать и обновлять значения ячеек в книгах настольного Excel
- подключаться к уже открытому файлу Excel по
workbookId - записывать формулы и запускать обновление данных
- контролировать состояние фоновых сессий Excel через
session list
Примеры запросов агенту
- Выполни session discover, чтобы найти открытый отчёт и его workbookId
- Подключись к активной сессии через session attach --workbook-id <ID> и обнови данные
- Проверь через session list, завершилась ли операция в открытом файле Excel
Как установить excel-cli
1Через Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a claude-code2Вручную: положить файлы
~/.claude/skills/excel-cli/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/excel-cli/
1Через Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a codex2Вручную: положить файлы
.agents/skills/excel-cli/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a cursor2Вручную: положить файлы
.cursor/skills/excel-cli/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sbroenne/mcp-server-excel excel-cli2Вручную: положить файлы
.github/skills/excel-cli/SKILL.md1Через Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a gemini-cli2Командой платформы
gemini skills install https://github.com/sbroenne/mcp-server-excel --path skills/excel-cliВручную: положить файлы
.devin/skills/excel-cli/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add sbroenne/mcp-server-excel --skill excel-cli -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о excel-cli
Как установить excel-cli в Claude Code?
Выполните команду npx skills add sbroenne/mcp-server-excel --skill excel-cli -a claude-code. Для работы понадобятся Windows с настольным Excel, Node.js 18 или новее и PowerShell 7.4+.
Что делает скилл excel-cli?
Он запускает CLI-инструмент для чтения, записи, расчёта формул и обновления таблиц Excel на Windows. Скилл умеет находить запущенные копии программы и работать с ними без повторного открытия файла.
Можно ли использовать стандартный Windows PowerShell 5.1?
Нет. Скрипт запуска прямо требует современный PowerShell 7.4 или новее (pwsh), иначе запуск утилиты завершится сбоем.
Исходный текст
SKILL.md · MIT
--- name: excel-cli description: >- Discover and launch the Excel CLI for ordinary Excel workbook requests on Windows, including reads, writes, formulas, data refreshes, and workbook automation. Use the installed excel-cli plugin's npx launcher and native help to find commands; report presentation conventions are a separate optional skill. compatibility: Windows with desktop Excel, PowerShell 7.4 or later, Node.js 18 or later, and the excel-cli plugin. --- # Excel CLI discovery The plugin does not place `excelcli` on PATH. Its launcher runs `npx -y @sbroenne/excelcli@latest`; do not assume a standalone executable is installed or restore the retired GitHub-release downloader. For the plugin-bundled copy of this skill, `..\..\bin\start-cli.ps1` relative to the directory containing this `SKILL.md` locates the plugin launcher. Replace `<plugin-root>` below with that plugin's actual installed directory: Run these commands in PowerShell 7.4 or later (`pwsh`), not Windows PowerShell 5.1. ```powershell & "<plugin-root>\bin\start-cli.ps1" --help & "<plugin-root>\bin\start-cli.ps1" session --help ``` Use the same full launcher path for subsequent commands, especially quoted JSON arguments. Discover exact command names, flags, defaults, and save/close behavior through native `--help`; do not invent syntax. Inspect the existing workbook state relevant to the request. Preserve unrelated contents and save only the authorized result. If an operation fails, inspect its reported partial state rather than assuming rollback or automatically cleaning up. Before opening, run `session discover` to find an already-open workbook. Confirm the intended `workbookId`, then use `session attach --workbook-id <ID>` so the workbook is not reopened. Check discovery `complete` and `errors`; an incomplete scan cannot establish that a workbook is absent. Attach preserves unsaved edits and leaves the workbook open when the service exits. Its response reports the current AutoSave setting; open preserves it too. If enabled, Excel may save edits automatically. Normal service shutdown leaves unsaved owned workbooks open and visible without saving or discarding; save and close explicitly for completed jobs. If a wait expires, check `session list` for the operation's start time, pending work, and eventual outcome; do not automatically repeat it. Zero active requests does not mean Excel has finished. Inspect the workbook after completion. `service status` and `service stop` report recorded Excel copies from earlier services. Stopping an already-stopped service leaves those copies open, and they do not block a new service. `service stop` always stops the service; if a workbook was busy or its state could not be confirmed, that Excel copy is left as it is and reported in `shutdownWarning`. Use discovery and explicit attachment to inspect them; unknown or incomplete information is not permission to end Excel. For JSON errors, read `errorMessage` as the single error-text field; use `errorCategory` when present to guide recovery. Load `excel-cli-report-formatting` only for requested report presentation, not ordinary Excel reads or targeted updates.
© sbroenne · MIT · sbroenne/mcp-server-excel