xlsx
БесплатноБез исполняемых скриптовНе проверенCreate and edit Excel spreadsheets (.xlsx): multiple sheets, live formulas, professional formatting, and data tables. Use whenever the user asks to build…
от phuetz★ 53 звезды на GitHubОб этом скилле
Create & edit Excel spreadsheets with openpyxl
Build real .xlsx files with the open-source openpyxl library (available as
python3 -c "import openpyxl"). Work in visible steps and verify before you
report done.
Workflow (one step at a time)
- Plan the sheet(s), columns, and any formulas/totals.
- Write a short Python script (a heredoc through the
bashtool) that builds the workbook with openpyxl and saves it to the requested path. - Verify: reopen with
load_workbook(path)andassertthe key cells and formulas are present, thenprint(path). - Report the saved path and a one-line summary.
Quality conventions
- Header row: bold, light fill (
PatternFill('solid', fgColor='D9EAF7')), thin borders. - Use formulas, never hardcoded totals: e.g.
ws['B5'] = '=SUM(B2:B4)'. - Number formats: currency
'$#,##0;($#,##0);-', percent'0.0%', multiples'0.0x'. - Financial color convention (optional, for models): blue font (
Font(color='0000FF')) for hardcoded inputs, black for formulas, green for cross-sheet links. - Size column widths to content;
ws.freeze_panes = 'A2'to keep headers visible. - Deliver zero formula errors (
#REF!,#DIV/0!,#VALUE!, …).
Example
python3 - <<'PY'
from openpyxl import Workbook, load_workbook
from openpyxl.styles import Font, PatternFill, Border, Side
from openpyxl.utils import get_column_letter
wb = Workbook(); ws = wb.active; ws.title = 'Items'
ws.append(['Item', 'Cost', 'Status'])
for r in [['Actuators', 8000, 'ordered'], ['Compute', 3500, 'done']]:
ws.append(r)
ws.append(['Total', '=SUM(B2:B3)', ''])
hdr = PatternFill('solid', fgColor='D9EAF7'); thin = Side(style='thin', color='B7B7B7')
for row in ws.iter_rows():
for c in row:
c.border = Border(top=thin, bottom=thin, left=thin, right=thin)
for c in ws[1]:
c.font = Font(bold=True); c.fill = hdr
for r in range(2, 4):
ws[f'B{r}'].font = Font(color='0000FF'); ws[f'B{r}'].number_format = '$#,##0'
ws['B4'].font = Font(bold=True); ws['B4'].number_format = '$#,##0'
for i in range(1, 4):
ws.column_dimensions[get_column_letter(i)].width = 16
ws.freeze_panes = 'A2'
wb.save('budget.xlsx')
wb2 = load_workbook('budget.xlsx')
assert wb2['Items']['B4'].value == '=SUM(B2:B3)'
print('budget.xlsx')
PY
Reading / editing existing files
- Read values/formulas:
load_workbook(path)(usedata_only=Truefor cached results). - Edit in place: modify cells/styles and
save()back to the same path; preserve the existing layout and formatting conventions rather than imposing new ones. - For data analysis on large sheets,
pandas.read_excelis also available.
Установить xlsx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл xlsx?
Create and edit Excel spreadsheets (.xlsx): multiple sheets, live formulas, professional formatting, and data tables. Use whenever the user asks to build, populate, or modify a spreadsheet/workbook/Excel file.
Как установить скилл xlsx?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xlsx запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic