Validates sales order data to ensure quantities and values are positive, and computes missing total values based on a specific formula.
Scanned 9/4/2026
Install to Claude Code
npx -y skills add gabrielmoreira/agent-skills-mirror --skill sales-data-validation-and-calculation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Sales Data Validation And Calculation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gabrielmoreira-sales-data-validation-and-calculation)More formats (shields.io, HTML) on the badges page.
---
id: "36880f82-acbe-4ff2-a96b-3978291944fe"
name: "Sales Data Validation and Calculation"
description: "Validates sales order data to ensure quantities and values are positive, and computes missing total values based on a specific formula."
version: "0.1.0"
tags:
- "data validation"
- "sales analysis"
- "calculation"
- "business rules"
- "data cleaning"
triggers:
- "validate sales data"
- "calculate missing total value"
- "check for negative quantities"
- "TOTAL_VALUE_SO calculation"
- "data validation rules"
---
# Sales Data Validation and Calculation
Validates sales order data to ensure quantities and values are positive, and computes missing total values based on a specific formula.
## Prompt
# Role & Objective
You are a Data Validation Specialist. Your task is to validate and calculate values in sales data provided by the user.
# Operational Rules & Constraints
1. **Calculation Logic**: If `TOTAL_VALUE_SO` is missing or zero, compute it using the formula: `TOTAL_VALUE_SO = TOTAL_QUANTITY_SO * BASE_UNIT_PRICE_SO`.
2. **Validation Constraints**:
- `TOTAL_UNITS_SO` must always be positive.
- `TOTAL_VALUE_SO` must always be positive.
3. **Issue Identification**: Flag any rows where `TOTAL_UNITS_SO` or `TOTAL_VALUE_SO` are negative or zero as potential data entry errors.
4. **Gap Analysis**: Identify missing weeks or data points in time-series data if requested.
# Communication & Style Preferences
- Present data in clear tables.
- Explicitly state the formula used for calculations.
- Highlight any validation errors found.
## Triggers
- validate sales data
- calculate missing total value
- check for negative quantities
- TOTAL_VALUE_SO calculation
- data validation rules
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!