# Daily Retail Ledger Analytics

> Consolidate retail sales logs into verified Excel ledgers and interactive Chart.js profit analytics dashboards.

Daily Retail Ledger Analytics is a paid AI agent skill on Agensi by nwafor lawrence, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [nwafor lawrence](https://www.agensi.io/creators/nwafor-lawrence)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/daily-retail-ledger-analytics
- Tags: research, automation, finance, finance-accounting, pandas, data-analysis, retail, excel

## About this skill

Retailers often struggle to merge fragmented daily sales logs or transcribe handwritten records into actionable insights. This skill automates the consolidation of multiple CSV or Excel workbooks into a single, verified master ledger with built-in financial auditing.

### What it does
- **Multi-source consolidation** merges daily sales files (`sales_YYYY_MM_DD.xlsx` or `.csv`) into a single master ledger.
- **Financial auditing** flags uncosted items, zero-profit sales, and outlier transactions using strict formula integrity checks.
- **Logbook transcription** converts photos or scans of handwritten sales sheets into structured digital rows.
- **Interactive dashboarding** generates a standalone Chart.js HTML file with KPI cards, revenue trends, and Pareto 80/20 SKU analysis.
- **Multi-format export** produces both flat CSVs and formatted multi-sheet Excel workbooks with executive summaries.

### How it works
1. **Prepare inputs** by providing a single ledger file or a directory of daily sales workbooks.
2. **Validate schema** using the `--validate-only` flag to check for missing columns like `Qty`, `Particulars`, or `S_P`.
3. **Execute pipeline** via `run_ledger_pipeline.py` to calculate missing `Total` and `Profit` values while auditing cost coverage.
4. **Inspect outputs** to view the interactive HTML dashboard and the multi-sheet Excel summary in your working directory.

### Frameworks & tools
This system is built on `pandas`, `openpyxl`, and `SQLAlchemy`. It uses `Chart.js` for the frontend analytics visualization.

### Why this beats prompting it yourself
Generic prompts often fail to maintain formula integrity across hundreds of rows or miss "uncosted" items where the cost price is zero. This skill provides a rigid schema-validation engine and a production-ready dashboard that a standard LLM cannot generate as a single cohesive file.

### Use cases
- Consolidate 30 days of fragmented CSV sales logs into one executive report.
- Audit retail margins to find products sold without recorded cost prices.
- Generate a weekly performance dashboard for a physical storefront.
- Digitize handwritten sales slips into a searchable transaction database.

### Known limitations
Requires specific column headers or aliases like `Qty` and `S_P` to function. Handwritten transcription requires a manual review step to ensure OCR accuracy before running the audit.

## Requires

- Python 3.10+
- pandas +
- openpyxl
- SQLAlchemy
- Optional: PostgreSQL (or built-in SQLite)

Runs locally out of the box after pip install -r requirements.txt with zero API keys. Use --input-dir to merge multiple daily sales_*.xlsx/*.csv files, --currency to customize symbol (e.g. $, ₦, £), and optional --db-url for SQLite/PostgreSQL persistence.

## 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 Daily Retail Ledger Analytics skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this skill work with physical sales logbooks or just digital files?

The skill handles structured CSV and Excel files automatically. For handwritten logs, you provide an image or scan which the skill digitizes into rows for your final review before it merges them into the master ledger.

### Which AI agents or platforms can run this analytics skill?

The tool is designed for any Python-enabled AI agent environment. It relies on standard data libraries like pandas and openpyxl, making it compatible with most autonomous agents that have file-system access.

### What exactly is included in the purchase of this skill?

You receive the full automated pipeline (Python), schema validation scripts, the Chart.js dashboard template, and a sample dataset to help you map your existing retail columns to the skill's requirements.

### How does the financial auditing feature differ from a simple Excel sum?

The skill includes a 'strict formula integrity' engine that flags 'uncosted' items—transactions where the cost price is missing or zero—preventing your profit analytics from being artificially inflated.

### What happens if my sales logs use different column names than the ones listed?

The skill is built to be flexible; while it looks for standard headers like 'Qty' and 'S_P', it includes a validation flag that helps you identify and map your specific column names during the initial setup.

### Do I need a specific software subscription to view the interactive dashboards?

The dashboard is exported as a standalone, interactive HTML file. You can open it in any web browser to view KPI cards and Pareto analysis without needing to install additional business intelligence software.

---

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.
