xlsx

Create and edit Excel spreadsheets with formulas and pandas analysis.

2.9k|257|Updated Apr 7, 2025
One-click install
npx skills add https://github.com/snyk/agent-scan --skill xlsx-snyk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/snyk/agent-scan/tree/main/tests/skills/xlsx
Command: npx skills add https://github.com/snyk/agent-scan --skill xlsx-snyk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, openpyxl, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines spreadsheet management by enabling the creation, editing, and analysis of Excel files, including complex formulas, formatting, and data visualization.

Core Features & Use Cases

  • Comprehensive Spreadsheet Operations: Create new .xlsx files with custom formulas and formatting.
  • Data Analysis & Visualization: Utilize pandas for in-depth data analysis and generate charts.
  • Formula Recalculation & Verification: Ensure formula integrity and accuracy using the recalc.py script.
  • Use Case: Automatically generate a financial projection model in Excel, complete with industry-standard color coding, number formatting, and dynamic formulas that update based on input assumptions.

Quick Start

Use the xlsx skill to create a new spreadsheet named 'sales_report.xlsx' with columns for 'Date', 'Product', and 'Revenue', and populate it with sample data.

Frequently Asked Questions about xlsx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use pandas and openpyxl to create an Excel spreadsheet with formulas?

To create an Excel spreadsheet with formulas, use openpyxl and pandas to define custom formulas and apply formatting to new .xlsx files programmatically. This approach enables comprehensive spreadsheet creation with dynamic calculations and structured data layouts.

Can I edit an existing Excel file while preserving its formulas?

Yes, you can edit an existing Excel file while preserving its formulas by utilizing openpyxl to load and modify the workbook structure. This ensures formula integrity and accuracy are maintained throughout the modification process.

How do I recalculate and verify Excel formulas after modifying spreadsheet data?

You can recalculate and verify Excel formulas after modifying spreadsheet data by executing the recalc.py script to ensure formula integrity and accuracy. This process validates that dynamic calculations update correctly based on new input assumptions.

What's the best way to perform data analysis and visualization on an Excel spreadsheet?

The best way to perform data analysis and visualization on an Excel spreadsheet is to utilize pandas for in-depth data manipulation and generate charts directly from the dataset. This enables robust analysis and visual representation of spreadsheet data within Python.

Does openpyxl support generating a financial projection model with custom formatting?

Yes, openpyxl supports generating a financial projection model in Excel complete with industry-standard color coding, number formatting, and dynamic formulas. This allows automated creation of professional financial models that update based on input assumptions.