# data insight runbook

> Turn raw CSV and SQL data into rigorous Markdown reports with verified metrics, trend charts, and anomaly detection.

data insight runbook is a free AI agent skill on Agensi by 陈硕, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [陈硕](https://www.agensi.io/creators/creator-660)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/data-insight-runbook
- Tags: research-analysis, duckdb, data-science, sql, reporting

## About this skill

Data analysis often fails when figures lack context or logic is hidden. This skill enforces a rigorous five-stage pipeline to transform raw data into structured Markdown reports that separate hard facts from business inferences.

### What it does
- **Data profiling** runs automated checks on CSV or SQL inputs to identify schemas, missing values, and data types.
- **Metric calculation** computes sums, means, percentiles, and period-over-period growth using standardized formulas.
- **Anomaly detection** flags outliers using Z-score and IQR methods with documented thresholds.
- **Multi-channel visualization** generates data tables, Mermaid diagrams, and ASCII bar charts for cross-platform compatibility.
- **Audit-ready reporting** outputs a full Markdown file including methodology, assumptions, and raw data references.

### How it works
1. **Input validation** involves identifying the source (CSV, SQL, or DuckDB) and confirming business definitions for core metrics.
2. **Exploration phase** performs technical profiling to handle missing data and duplicates before any calculation starts.
3. **Execution stage** runs analytical scripts or DuckDB queries to calculate Top-N, trends, and statistical distributions.
4. **Report generation** assembles the findings into a standardized template with a mandatory rigor checklist.

### Frameworks & tools
Built for data environments supporting Node.js for CSV profiling and DuckDB for high-performance SQL querying on large datasets.

### Why this beats prompting it yourself
Generic prompts often hallucinate numbers or lose track of calculation logic in long conversations. This skill uses a strict "gate-based" workflow where each phase must pass a rigor check before the next begins, ensuring every number in your report is traceable to a specific formula or raw data point.

### Use cases
- Generating weekly business performance reports from CSV exports.
- Auditing transaction data for statistical anomalies and outliers.
- Performing cohort analysis or Top-N category breakdowns via SQL.
- Creating reproducible data summaries for technical documentation.

### Known limitations
Large files over 2000 lines require DuckDB or local scripts to avoid context window limits. DuckDB integration requires a local CLI installation.

## Requires

- Node.js

## 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 data insight runbook 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

### How does this skill ensure my data reports are accurate compared to just asking a standard AI?

This skill eliminates 'hallucinated' numbers by using a five-stage gate-based workflow that validates every calculation against your raw CSV or SQL data before it reaches the final report.

### Which AI agents or platforms can run the Data Insight Runbook?

The skill is optimized for data environments that support Node.js and DuckDB, making it compatible with most modern AI agent platforms that allow for local file processing and script execution.

### Do I need to install any additional software to use the DuckDB features?

For standard CSV files, the skill works out of the box; however, for complex SQL queries or datasets exceeding 2,000 lines, a local installation of the DuckDB CLI is recommended for peak performance.

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

You receive the full runbook workflow, standardized Markdown reporting templates, and the rigorous logic gates designed for profiling, anomaly detection, and visualization.

### Are there any limits on the size of the data files I can analyze?

While the skill handles standard CSV and SQL inputs seamlessly, very large datasets are restricted by your AI agent's context window; we recommend using the integrated DuckDB workflow to process these files locally.

### Will I receive updates if the underlying frameworks or best practices change?

Yes, your purchase includes access to future refinements of the analytical logic and reporting templates to ensure compatibility with evolving data processing libraries.

---

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.
