# nassau candy analytics

> Automated Python-based sales analytics to calculate product profitability, gross margins, and financial risk.

nassau candy analytics is a free AI agent skill on Agensi by Vamsi krishna Jami, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Vamsi krishna Jami](https://www.agensi.io/creators/vamsi-krishna-jami)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Version: 1.0
- Last updated: 2026-11-24
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/nassau-candy-analytics
- Tags: finance, python, csv-processing, data-analysis, sales

## About this skill

Manually auditing sales spreadsheets for margin leaks and high-risk products is slow and error-prone. This skill automates the analysis of business sales CSVs to deliver instant profitability reports and financial risk assessments.

### What it does
- **Profitability analysis** calculates revenue, gross profit, and per-unit margins at the product level.
- **Risk classification** identifies products with low margins or negative returns that threaten the bottom line.
- **Data validation** scrubs datasets for missing values, non-numeric strings, and invalid negative entries.
- **Automated reporting** generates structured CSV and JSON profitability reports alongside business summaries.
- **Insight generation** surfaces the most and least profitable items with natural language explanations.

### How it works
1. **Input CSV** with required fields like Product ID, Sales, Units, and Cost.
2. **Validation** checks the schema, handles alternative column names, and verifies numerical integrity.
3. **Python Execution** runs the `analytics_engine.py` and `profitability.py` scripts on the provided data.
4. **Report Output** delivers a business summary and downloadable report files for further use.

### Frameworks & tools
This skill utilizes a Python-based processing pipeline, including dedicated modules for preprocessing and analytics. It relies on standard data science patterns to handle CSV and JSON serialization.

### Why this beats prompting it yourself
Generic prompts often ignore data validation, leading to "hallucinated" averages or silent errors with negative values. This skill uses a hard-coded Python validation gate to ensure every business insight is grounded in verified math rather than LLM guesswork.

### Use cases
- Identify products with gross margins below 25% for immediate pricing review.
- Generate monthly profitability summaries for executive stakeholders.
- Audit raw sales exports for missing data or invalid financial entries.
- Find high-margin items (70%+) to prioritize for marketing spend.

### Known limitations
The current version does not support time-based forecasting or customer-level segmentation. It requires a CSV with standard sales headers to function.

## Requires

- Python

Requires Python and the dependencies listed in requirements.txt. The skill reads sales CSV files and generates business analytics reports in CSV and JSON formats.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the nassau candy analytics skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What data fields are required in my CSV file?

The dataset must contain the required product, sales, units, gross profit, and cost fields. The skill also supports certain alternative column names and normalizes column formatting. Date information is optional and is used for monthly profitability analysis when valid dates are available.

### How does this skill ensure accurate profitability reports?

The skill uses Python and pandas to validate input data and perform numerical calculations. It checks required columns, missing values, invalid numerical values, negative values, and non-finite numbers. It calculates product profitability, gross margins, profit per unit, revenue contribution, and risk classifications using the processed dataset.

### What is included in the Nassau Candy Analytics skill?

The package includes a Python analytics engine, data preprocessing module, product and division profitability analysis, margin risk identification, business insights, recommendations, and interactive business question answering. It can also generate structured business summary and product profitability reports in CSV and JSON formats.

### Which AI agents are compatible with this skill?

The skill follows the Universal SKILL.md Standard and is intended for compatible AI agents that can execute Python scripts, access user-provided CSV files, and save generated reports. Python and the dependencies listed in requirements.txt are required.

### Can this skill forecast future sales or analyze individual customers?

No. The current version focuses on historical sales analysis, product and division profitability, gross margins, and product-level risk assessment. It does not currently provide time-series forecasting or customer-level segmentation.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
