data-processorlisted
Install: claude install-skill aiskillstore/marketplace
# Data Processor Skill
A general-purpose data processing skill for transforming arrays of objects. This skill demonstrates the token efficiency benefits of code execution - instead of describing transformations in natural language, write code once and reuse it.
## What This Skill Does
Processes arrays of data with common transformations:
- Filter records based on conditions
- Map fields to new values
- Aggregate data (sum, average, count, etc.)
- Sort and group data
- Remove duplicates
- Merge datasets
## When to Use This Skill
Use this skill when you need to:
- Transform large datasets (hundreds or thousands of records)
- Apply consistent business logic to data
- Aggregate or summarize data
- Clean or normalize data
- Combine data from multiple sources
**Token Efficiency**: Processing 1000 records in code uses ~500 tokens. Describing the same operations in natural language would use ~50,000 tokens.
## Implementation
```javascript
/**
* Data Processor - General purpose data transformation
* @param {Array} data - Array of objects to process
* @param {Object} operations - Operations to apply
* @returns {Object} Processed data and statistics
*/
async function processData(data, operations = {}) {
if (!Array.isArray(data)) {
throw new Error('Data must be an array');
}
let result = [...data];
const stats = {
inputCount: data.length,
operations: [],
};
// Filter operation
if (operations.filter) {
const beforeCount = result.length;