ag-logic-auditor

Audits Excel financial model formulas for contextual correctness and business-rule alignment.

1|Updated Jun 12, 2026
One-click install
npx skills add https://github.com/Sampi314/Sam-Plugin-Marketplace --skill ag-logic-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ag-logic-auditor
Source: https://github.com/Sampi314/Sam-Plugin-Marketplace/tree/main/Audit%20General/skills/ag-logic-auditor
Command: npx skills add https://github.com/Sampi314/Sam-Plugin-Marketplace --skill ag-logic-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Excel financial models often contain formulas that are mathematically correct but contextually wrong, leading to incorrect financial outputs, bad business decisions, and compliance risks. Manually auditing thousands of formulas for alignment with row labels, column headers, and business rules is time-consuming and error-prone.

Core Features & Use Cases

  • Contextual Formula Validation: Verifies formulas match their row descriptions, column headers, and business context, not just mathematical correctness.
  • Pattern Break & Hard-Code Detection: Automatically flags formula pattern breaks across time series rows and embedded hard-coded numeric literals that should be input cell references.
  • Sanity & Business Rule Checks: Runs sanity checks for impossible values (e.g., negative tax on positive profit, DSCR anomalies) and validates formulas against documented business rules and cross-sheet consistency.
  • Use Case: Financial analysts, model auditors, and finance teams can use this skill to audit project finance models, corporate budgets, and investment valuation models to catch critical logic errors before they impact decision-making.

Quick Start

Use the ag-logic-auditor skill to audit the formula logic of your attached Excel financial model and report any contextual errors, hard-coded values, or business rule mismatches.

Frequently Asked Questions about ag-logic-auditor

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

FAQPage Schema
How do I audit Excel financial model formulas for contextual logic errors?

To audit Excel financial model formulas for contextual logic errors, you can use an automated auditing skill that checks formulas against row labels and business rules, identifying mathematically valid but contextually misaligned calculations. This requires a pre-extracted workbook JSON file.

What is pattern break detection in financial models?

Pattern break detection in financial models identifies formula inconsistencies across time series rows, flagging calculations that deviate from expected patterns. It also detects embedded hard-coded numeric literals that should be input cell references, preventing silent calculation errors.

How do I check for hard-coded values in Excel financial models?

You can check for hard-coded values in Excel financial models by running an automated formula audit that identifies embedded numeric literals within formulas. The audit flags these literals, which should typically be replaced with input cell references for proper financial modeling standards.

Can I validate business rules and sanity checks in project finance models?

Yes, you can validate business rules and run sanity checks in project finance models to detect impossible values like negative tax on positive profit or DSCR anomalies. The auditing process cross-references formulas against documented rules and cross-sheet consistency.

Do I need to convert my Excel workbook before auditing financial formulas?

Yes, you need to convert your Excel workbook into a pre-extracted JSON file using a shared extraction script before auditing. The formula auditing process requires this structured JSON format to parse formulas and output standardized findings with R1C1 notation.

What is the best way to find mathematically correct but contextually wrong Excel formulas?

The best way to find mathematically correct but contextually wrong Excel formulas is using an automated logic auditor that cross-references calculations with row descriptions and column headers. This detects misaligned business logic that manual reviews often miss.