Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

excel-spreadsheetsExcel 电子表格

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

870

周安装

37

GitHub Stars

151

下载量

305
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:excel-spreadsheets(Excel 电子表格)
来源仓库:https://github.com/aws-samples/sample-strands-agent-with-agentcore
仓库路径:skills/excel-spreadsheets
安装命令:
npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill excel-spreadsheets
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill excel-spreadsheets

简介

用于创建、修改、读取和预览 Excel 电子表格。

  • 支持新建或更新现有工作簿结构。excel-spreadsheets 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 可在操作前后调用预览功能验证实际布局。
  • 适用于需要精确控制表格结构的开发场景。
  • 建议按顺序执行工具调用以避免文件读写冲突。

SKILL.md

Excel Spreadsheets

When to Use

ToolUse When
create_excel_spreadsheetUser asks to create/generate a NEW spreadsheet
modify_excel_spreadsheetUser asks to edit/update an EXISTING spreadsheet
list_my_excel_spreadsheetsUser asks what spreadsheets are available
read_excel_spreadsheetUser wants to download or read spreadsheet contents
preview_excel_sheetsCheck actual sheet appearance when editing

Workflow

  1. Before modifying: call preview_excel_sheets to check current layout.
  2. After creation/modification: call preview_excel_sheets to verify.
  3. Run tools sequentially (never parallel) to prevent file race conditions.

Professional Formatting

  • Font: Arial for all cells unless an existing template specifies otherwise.
  • Negative numbers: parentheses format (1,234) — not minus -1,234.
  • Currency: $#,##0 format. Specify units in headers (e.g., "Revenue ($mm)").
  • Percentages: 0.0% (one decimal place).
  • Years: format as text ("2024" not "2,024").
  • Zeros: display as "-" using a custom number format.
# Example: professional number formatting
from openpyxl.styles import numbers
ws['B2'].number_format = '$#,##0'          # Currency
ws['C2'].number_format = '0.0%'            # Percentage
ws['D2'].number_format = '#,##0;(#,##0)'   # Negative in parentheses
ws['E2'].number_format = '@'               # Year as text
ws['F2'].number_format = '#,##0;(#,##0);"-"'  # Zeros as dash

Financial Model Color Coding

When building financial models, apply these conventions:

ColorHexUsage
Blue text0000FFHardcoded inputs and assumptions
Black text000000All formulas and calculations
Green text008000Links pulling from other worksheets
Yellow backgroundFFFF00Key assumptions needing attention
from openpyxl.styles import Font, PatternFill
ws['B2'].font = Font(name='Arial', color='0000FF')       # Blue: input
ws['B3'].font = Font(name='Arial', color='000000')       # Black: formula
ws['B4'].font = Font(name='Arial', color='008000')       # Green: cross-sheet link
ws['B5'].fill = PatternFill('solid', fgColor='FFFF00')   # Yellow bg: key assumption

Images

from openpyxl.drawing.image import Image
ws.add_image(Image('file.png'), 'E1')

Code Rules

  • Workbook is pre-initialized as wb = Workbook(), active sheet as ws = wb.active (create), or loaded as wb (modify). Do NOT include Workbook() or wb.save().
  • Available libraries: openpyxl, matplotlib, pandas, numpy (seaborn NOT available)
  • ALWAYS use Excel formulas, NEVER hardcode calculated values.

- Wrong: ws['B10'] = total - Right: ws['B10'] = '=SUM(B2:B9)'

  • Place assumptions in separate cells, reference them in formulas (e.g., =B5*(1+$B$6) not =B5*1.05).
  • Avoid circular references.
  • Filenames: letters, numbers, hyphens only.

Tool Reference

create_excel_spreadsheet

Create a new Excel spreadsheet using openpyxl code.

ParameterTypeRequiredDescription
python_codestrYesPython code using openpyxl (see Code Rules above)
spreadsheet_namestrYesFilename without extension (letters, numbers, hyphens only)

Example tool_input:

{
  "python_code": "ws.title = 'Sales'\nws['A1'] = 'Quarter'\nws['B1'] = 'Revenue'\nfor i, (q, r) in enumerate(zip(['Q1','Q2','Q3','Q4'], [100,150,130,180]), start=2):\n    ws[f'A{i}'] = q\n    ws[f'B{i}'] = r",
  "spreadsheet_name": "quarterly-sales"
}

WARNING: Parameter is spreadsheet_name, NOT filename or name.

modify_excel_spreadsheet

Modify an existing spreadsheet and save with a new name.

ParameterTypeRequiredDescription
source_namestrYesExisting spreadsheet name (without.xlsx)
output_namestrYesNew output name (MUST differ from source)
python_codestrYesPython code to modify the spreadsheet

Example tool_input:

{
  "source_name": "quarterly-sales",
  "output_name": "quarterly-sales-v2",
  "python_code": "ws = wb.active\nws['B6'] = '=SUM(B2:B5)'"
}

list_my_excel_spreadsheets

List all spreadsheets in workspace. No parameters needed.

read_excel_spreadsheet

Retrieve a specific spreadsheet for download.

ParameterTypeRequired
spreadsheet_namestrYes

preview_excel_sheets

Get sheet screenshots for visual inspection before editing.

ParameterTypeRequiredDescription
spreadsheet_namestrYesSpreadsheet name without extension
sheet_nameslist[str]YesSheet names to preview (empty list [] for all sheets)

UI Guidance (from tools-config)

Sequential Execution Required: Run modification tools sequentially, never in parallel (prevents race conditions on S3 file read/write).

When to Use:

  • create_excel_spreadsheet: User asks to create/generate a NEW Excel spreadsheet
  • modify_excel_spreadsheet: User asks to edit/modify/update an EXISTING spreadsheet
  • list_my_excel_spreadsheets: User asks what spreadsheets are available
  • read_excel_spreadsheet: User wants to download or read spreadsheet contents
  • preview_excel_sheets: Check actual sheet appearance when editing

Before Modifying: Always use preview_excel_sheets first to see the current layout.

CRITICAL — Formulas, Not Hardcoded Values:

  • ALWAYS use Excel formulas. NEVER calculate in Python and hardcode the result.
  • Wrong: ws['B10'] = total. Right: ws['B10'] = '=SUM(B2:B9)'
  • Place assumptions in separate cells, reference them in formulas (e.g., =B5*(1+$B$6) not =B5*1.05)
  • Formulas are auto-recalculated via LibreOffice after save.
  • Avoid circular references.

Professional Formatting:

  • Font: Arial for all cells unless existing template specifies otherwise
  • Negative numbers: parentheses format (1,234) not minus -1,234
  • Currency: $#,##0 format; specify units in headers ("Revenue ($mm)")
  • Percentages: 0.0% (one decimal)
  • Years: format as text ("2024" not "2,024")
  • Zeros: display as "-" using custom number format

Financial Model Color Coding (when applicable):

  • Blue text (0,0,255): Hardcoded inputs and assumptions
  • Black text (0,0,0): All formulas and calculations
  • Green text (0,128,0): Links pulling from other worksheets
  • Yellow background (255,255,0): Key assumptions needing attention

Filenames: Letters, numbers, hyphens only (e.g., "Q4-sales.xlsx")

Available Libraries: openpyxl, matplotlib, pandas, numpy (seaborn NOT available)

Images: from openpyxl.drawing.image import Image; ws.add_image(Image('file.png'), 'E1')

QA: Always use preview_excel_sheets after creation to verify appearance.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.24%
按下载量换算107

Claude

27.44%
按下载量换算84

Cursor

19.34%
按下载量换算59

Gemini CLI

8.81%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills