excel-formula-analyzer

Analyze Excel formulas to build dependency DAGs and trace calculation chains.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/tylermorganme/crop_plan_2025 --skill excel-formula-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excel-formula-analyzer
Source: https://github.com/tylermorganme/crop_plan_2025/tree/main/.claude/skills/excel-formula-analyzer
Command: npx skills add https://github.com/tylermorganme/crop_plan_2025 --skill excel-formula-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users understand complex Excel workbooks by reverse-engineering formula dependencies and tracing calculation chains, turning opaque spreadsheets into transparent, auditable logic.

Core Features & Use Cases

  • Dependency tracing: Build a directed acyclic graph (DAG) of Excel formulas to see how inputs propagate to outputs.
  • Formula auditing: Validate that calculations match expected results and identify potential logic gaps.
  • Code generation ready: Provide a structured blueprint that can be translated into reusable Python/TypeScript implementations.
  • Use Case: Imagine you have a large workbook with hundreds of interdependent cells; this skill helps you map the entire calculation flow and reproduce it in a programmatic calculator.

Quick Start

To trace dependencies, run the provided Python script: python .claude/skills/excel-formula-analyzer/scripts/trace-formula-dag.py "Workbook.xlsx" "Sheet Name" --columns 16-36,57,58,59

Frequently Asked Questions about excel-formula-analyzer

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

FAQPage Schema
How do I trace Excel formula dependencies in a complex workbook?

You can trace Excel calculation chains by running the provided Python script against your workbook. It builds a dependency DAG from the formulas to show how inputs propagate to outputs, making complex calculation logic transparent and auditable.

What is a dependency DAG and how does it help with Excel formula auditing?

A dependency DAG is a directed acyclic graph that maps how values calculate from inputs to outputs in Excel formulas. It helps auditing by tracing calculation chains to validate logic and identify potential gaps in complex workbooks.

Can I generate Python or TypeScript code from existing Excel formulas?

Yes, you can generate code from Excel formulas because this skill creates a structured blueprint of the calculation logic. This dependency DAG can be translated into reusable Python or TypeScript implementations for programmatic calculators.

Does this Excel formula analyzer work with specific columns in a sheet?

Yes, the Excel formula analyzer works with specific columns by passing a column range argument to the Python script. You can target columns like 16-36 and 57-59 in a specified sheet to trace dependencies for selected calculation chains.

What is the best way to reverse-engineer a large Excel workbook calculation flow?

The best way to reverse-engineer a large Excel workbook is to build a dependency DAG that traces how inputs propagate to outputs. This maps the entire calculation flow across hundreds of interdependent cells to reproduce the logic programmatically.

Why does my Excel formula validation show logic gaps in the calculation chain?

Excel formula validation may show logic gaps when the dependency DAG reveals broken or unexpected calculation chains. Tracing how values calculate from inputs to outputs helps identify where the spreadsheet logic diverges from expected results.