Works with the AI Agents you already use
KPI Definitions and Metrics Dictionary Builder
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
Free
KPI Definitions and Metrics Dictionary Builder
Example session with this skill installed
Run the KPI Definitions and Metrics Dictionary Builder skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the kpi definitions
Here is what the KPI Definitions and Metrics Dictionary Builder skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
# KPI dictionary. Validate: python3 scripts/validate_kpis.py kpis.yaml
version: 1
inputs:
- id: gross_revenue
description: Sum of order totals including shipping, before refunds
source: orders.csv (total), status in paid, shipped, delivered
aggregation: sum
- id: refunds
description: Sum of refunded amounts by refund date
source: refunds.csv (amount)
aggregation: sum
- id: orders
description: Count of distinct paid orders
source: orders.csv (order_id)
aggregation: count_distinct
- id: customers
description: Count of distinct customers with at least one paid order
source: orders.csv (customer_id)
aggregation: count_distinct
- id: repeat_customers
description: Distinct customers with two or more paid orders in the period
source: orders.csv (customer_id)
aggregation: count_distinct
kpis:
- id: net_revenue
name: Net revenue
description: Revenue kept after refunds, the headline sales number
formula: gross_revenue - refunds
unit: currency
currency: BDT
grain: month
owner: Finance (Head of Finance)
direction: up
- id: aov
name: Average order value
description: Net revenue per paid order
formula: net_revenue / orders
unit: currency
currency: BDT
grain: month
owner: Growth team
direction: up
zero_division: null
- id: repeat_rate
name: Repeat customer rate
description: Share of customers in the period who ordered at least twice
formula: repeat_customers / customers
unit: percent
grain: month
owner: CRM lead
direction: up
zero_division: 0
target: 0.3
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Write and validate a KPI dictionary (metric definitions) in YAML or JSON - each KPI with id, name, description, formula, unit, grain, owner and direction, built from declared inputs with source and aggregation. The validator parses every formula, finds unknown names and functions, circular definitions, divisions without a zero_division rule, placeholder owners, invalid grains/units, unused inputs and coarser-grain dependencies, and renders a Markdown metric dictionary.
Who it's for
Use when the user wants to define KPIs or metrics, agree on what "revenue", "AOV", "conversion rate" or "active customer" mean, document a dashboard's numbers, or review an existing metrics file.
What's inside
- Tested, offline Python script(s): validate_kpis.py (deterministic results, standard library only unless noted)
- Reference guides: kpi-catalog.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/data-analytics-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 days ago
- Free with an Agensi account
- Software
Python 3.8+