К основному содержанию
промпт GP ChatGPT

data — промпт для Claude Code: фильтры, пивоты и заметки в xlsx

Промпт data описывает для Claude операции над импортированными xlsx: ссылки, автофильтр, условное форматирование, проверки ввода, заметки и сводные таблицы. С ним агент правит книгу командами, а не наугад.

Apache-2.0 ★ 12 746 обновлён 2026-10-29

Установить в Claude Code · Вручную: положить файлы Все способы и платформы ↓
.claude/commands/data.md
Открыть на GitHub

Что делает data

Файл-инструкция для Claude по работе с импортированными xlsx: ссылки, автофильтр, условное форматирование, проверки ввода, заметки, сводные и именованные диапазоны. Все операции layout-класса — в один батч с контентными и форматными правками их ставить можно, со структурными (вставка или удаление строк, столбцов, листов) нельзя. Правки пишутся в журнал, файл сохраняется по ⌘S.

Перед изменением существующих настроек нужен read_sheet_features: он отдаёт диапазон фильтра и критерии по столбцам, правила форматирования, проверки, имена, инвентарь фигур. Для set_filter_criteria сначала прочитайте столбец через read_range — сравнение идёт по отображаемому тексту и дословно.

add_pivot строит нативный OOXML, который Excel обновляет сам. refresh_pivot пересчитывает все сводные листа по текущим данным и дописывает новые элементы категорий, если область роста пуста. Сдвинутые столбцы полей, переименованные заголовки и сводные на вычисляемых полях падают с явной ошибкой, их обновляют в Excel. А clear_conditional_formats снимает все правила листа, включая приехавшие с файлом.

Какие задачи решает

  • проставить ссылки в ячейках и снять их, не меняя текст
  • оставить в автофильтре две категории по столбцу
  • подсветить дубли и значения выше порога
  • повесить выпадающий список или чекбокс на диапазон
  • пересчитать сводную после правки исходных данных

Примеры запросов агенту

  • /data поставь ссылку в B2 на https://example.com и подсвети дубли в столбце A
  • /data покажи через read_sheet_features, какие правила фильтра и проверки уже стоят на Sheet1
  • /data пересчитай сводные на листе после того, как я дописал строки в источник

Как установить data

Вручную: положить файлы

.claude/commands/data.md

Вопросы о data

Как установить data в Claude Code?

Скопируйте файл в проект по пути .claude/commands/data.md. После этого в Claude появляется команда /data.

Что делает data?

Задаёт операции над импортированными xlsx: гиперссылки, автофильтр, условное форматирование, проверки ввода, заметки, сводные и именованные диапазоны. Все они layout-класса и не сочетаются в одном батче со вставкой или удалением строк, столбцов и листов.

Почему set_filter_criteria ничего не скрыл?

Нужен уже созданный автофильтр на листе, а значения сравниваются с отображаемым текстом ячеек дословно. Прочитайте столбец через read_range и передайте строки точно как в ячейках.

Исходный текст

data.md · Apache-2.0
# Data tools guide (data)

All operations below are **layout-class**: they can share a batch with content/format operations, but not with structural operations (row/column or sheet insertion/deletion). They all work only on imported real xlsx files; once applied they are recorded in the edit journal and ⌘S saves them into the file.

**Before modifying existing settings, read_sheet_features first**: it reads back the current filter range and column criteria, all conditional formatting rules, data validation rules, defined names, and the shape/image inventory.

## Hyperlinks

- `{op:"set_hyperlink", sheetId, address:"B2", target:"https://example.com"}` — target can also be an in-workbook reference "Sheet1!A1" (# is added automatically); bare domains get https:// prepended automatically.
- `{op:"set_hyperlink", sheetId, address, target:null}` — removes the link (and clears the link styling).
- Setting a link gives the cell blue underlined styling; the cell content is unchanged.

## AutoFilter

- `{op:"set_filter", sheetId, range:"A1:D100"}` — creates an AutoFilter on the range (an existing filter is replaced); the first row of range is the filter header.
- `{op:"clear_filter", sheetId}` — removes the entire AutoFilter.
- `{op:"set_filter_criteria", sheetId, column:"B", values:["East","South"]}` — checkbox-style column criteria: rows whose **displayed cell text** is in values stay visible, other rows are hidden. Requires an existing AutoFilter on the sheet. values:null clears the column's criteria.
- read_range the column first to see which values actually exist before writing values; text must match verbatim.

## Conditional formatting

`{op:"add_conditional_format", sheetId, range, rule}` — rule discriminated by kind:

- `{kind:"number", operator:"greaterThan"|"greaterThanOrEqual"|"lessThan"|"lessThanOrEqual"|"equal"|"notEqual"|"between"|"notBetween", value, value2?, format}` — between/notBetween require value2
- `{kind:"text", operator:"contains"|"notContains"|"beginsWith"|"endsWith", text, format}`
- `{kind:"blank", blank:true|false, format}` — true highlights blank cells, false highlights non-blank
- `{kind:"duplicate", unique?, format}` — highlights duplicate values by default; unique:true highlights unique values instead
- `{kind:"top10", rank:10, percent?, bottom?, format}`
- `{kind:"formula", formula:"=B2>100", format}` — formula starts with =, written with relative references anchored at the range's top-left cell
- `{kind:"colorScale", minColor:"#63BE7B", midColor?, maxColor:"#F8696B"}` — color scale (no format field)
- `{kind:"dataBar", color?}` — data bar (no format field)

format: `{fillColor?, fontColor?, bold?, italic?}` with at least one property. Highlight colors follow the low-saturation principle (light background, dark text), e.g. red #FFC7CE/#9C0006, green #C6EFCE/#006100, yellow #FFEB9C/#9C6500.

`{op:"clear_conditional_formats", sheetId}` — clears **all** conditional formatting rules on the sheet (including ones that came with the file); confirm with the user before doing this.

## Data validation

`{op:"set_data_validation", sheetId, range, validation}` — validation discriminated by kind:

- `{kind:"list", values:["Yes","No"]}` — dropdown list (≤100 items)
- `{kind:"listRef", range:"H1:H20"}` — dropdown options taken from a cell range's values
- `{kind:"numberBetween", min, max}`
- `{kind:"dateBetween", start:"2026-01-01", end:"2026-12-31"}` — ISO dates
- `{kind:"checkbox"}`
- `{kind:"formula", formula:"=LEN(A1)<=10"}`
- `validation:null` — clears validation rules on the range

## Notes

- `{op:"set_note", sheetId, address:"B2", text:"This figure includes tax"}` — adds/edits a cell note (yellow sticky, shown on hover).
- `{op:"set_note", sheetId, address, text:null}` — deletes the note.
- Saved as Excel legacy comments; visible in Excel when hovering the cell. Read existing notes with read_sheet_features first.

## Pivot tables

- `{op:"add_pivot", sheetId, sourceRange, targetCell, rowFields, columnField?, values:[{field, agg, showDataAs?}]}` — **creates a native pivot table** (real OOXML, interactive and refreshable when opened in Excel); rowFields supports 1–8 levels of row grouping, showDataAs supports the percent, difference, running-total and rank display modes. Usage and limits in the `pivot` guide (load_guide).
- `{op:"refresh_pivot", sheetId}` — **recomputes all pivot tables on the sheet**: using the layout recorded in the file, recomputes the data area from current source data and writes it back (on save it also makes Excel rebuild the cache when the file is opened). Use it after the source data has changed to bring pivot results up to date.
- If refresh finds **new category members** in the source data, the layout grows automatically (new members appended, output region expanded — the growth area must be empty); moved field columns, renamed headers, or pivots using calculated fields/grouping/value filters still fail with an explicit error (suggest the user refresh in Excel in that case).
- read_sheet_features lists each pivot table's row/column/value fields, source range, and whether it is recomputable.
- Modifying an existing pivot table's field layout is not supported yet; the output region is read-only (direct AI writes are rejected).
- When the data is irregular, live formulas are needed for further computation, or add_pivot limits are exceeded, fall back to a **formula aggregation table** (SUMIFS/COUNTIFS, see the pivot guide's fallback plan).
- Summary tables follow the formatting guide's table style rules (headers, alignment, total rows).

## Defined names

- `{op:"add_defined_name", name:"SalesRegion", ref:"Sheet1!$A$1:$B$10"}` — name starts with a letter/underscore; ref is an A1 reference (absolute $ references recommended) or a constant.
- `{op:"delete_defined_name", name}` — deletes the name (formula text referencing it is untouched, but those formulas will turn into #NAME? — confirm no formulas use it before deleting).

© genspark-ai · Apache-2.0 · genspark-ai/genoffice

Похожие промпты

Все промпты по теме «Документы и офис» →
kimi-xlsx thvroyal Скилл kimi-xlsx для работы с таблицами: собирает .xlsx через openpyxl и pandas, проверяет формулы и строит сводные таблицы с графиками. CX Codex +1 437установок excel pluginagentmarketplace Анализирует таблицы Excel, формулы, сводные таблицы и Power Query. Помогает преобразовывать данные и готовить отчёты. CX Codex +1 3установок xlsx официальный anthropics Скилл для Claude Code и Claude.ai создаёт, правит и проверяет электронные таблицы. Запускается при работе с файлами xlsx, xlsm, csv или tsv. CX Codex +1 187 223установок xlsx-manipulation claude-office-skills Скилл xlsx-manipulation для работы с Excel-таблицами из кода: создаёт и правит .xlsx через openpyxl, добавляет формулы, форматирование и графики. CX Codex +1 6 900установок minimax-xlsx MiniMax-AI Скилл minimax-xlsx для Claude Code: создаёт, читает, редактирует и проверяет Excel-файлы (.xlsx, .xlsm, .csv, .tsv). Обрабатывает табличные данные, финмодели и формулы без потери форматирования. CX Codex +1 3 900установок agent-xlsx apetta Скилл agent-xlsx для работы с Excel-файлами в Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. Читает, пишет и форматирует таблицы через CLI, отдаёт JSON, CSV или Markdown — агенту не нужен Python-скрипт. CX Codex +1 782установок

Из того же набора65

Весь набор →
terms-of-service Скилл готовит проект terms of service и privacy notice под функции продукта и отдаёт их в Word. Перед запуском документ должен проверить юрист. CX Codex +1 ★ 12 746звёзд репо policy-compliance Скилл policy-compliance генерирует политики конфиденциальности и внутренние регламенты с чеклистами соответствия в Word и Excel. Не юридическая консультация — требует проверки юристом. CX Codex +1 ★ 12 746звёзд репо nda-drafter Скилл nda-drafter составляет односторонние и взаимные соглашения о конфиденциальности в формате Word с пояснениями к статьям и оценкой рисков. CX Codex +1 ★ 12 746звёзд репо labor-contract Скилл labor-contract для Claude Code готовит трудовой договор или offer letter в Word и добавляет чек-лист подписания. Создаёт документы для найма при разных форматах занятости. CX Codex +1 ★ 12 746звёзд репо pivot Инструкция по созданию интерактивных сводных таблиц через add_pivot или расчёту агрегаций формулами SUMIFS. GP ChatGPT ★ 12 746звёзд репо deck Промпт deck помогает Claude Code менять параметры всей презентации: размер слайдов, тему, колонтитулы, текст и разделы. При неоднозначной задаче он просит уточнить объём изменений. GP ChatGPT ★ 12 746звёзд репо table Промпт table объясняет агенту, когда в Excel-файле ставить настоящую таблицу Excel, а когда сымитировать её вид обычным диапазоном. GP ChatGPT ★ 12 746звёзд репо charts Промпт charts для Claude Code создаёт и редактирует диаграммы в таблицах. Он помогает выбрать тип графика и задать диапазон данных. GP ChatGPT ★ 12 746звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой