# datacrease

> Deterministic sub-millisecond data sanitization and cryptographic audit receipts for AI agent tool calls.

datacrease is a free AI agent skill on Agensi by Hypnotist, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Hypnotist](https://www.agensi.io/creators/hypnotist)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/datacrease
- Tags: llm-ops, python, data-sanitization, agent-reliability, sha-256

## About this skill

Dirty data strings, malformed numbers, and hidden control characters crash AI agent pipelines at the most critical moments. DataCrease acts as a deterministic iron, scrubbing noisy LLM outputs and untrusted inputs in under 0.2ms to ensure downstream APIs and databases never receive a payload that triggers a `ValidationError`.

### What it does
- **String Sanitization** strips invisible ASCII control characters, zero-width spaces, and Unicode junk that break JSON parsers.
- **Numeric Normalization** converts localized currency and number formats like `1.450,75 €` into standard floats.
- **Date Standardization** transforms regional date formats into ISO-8601 compliant strings for database compatibility.
- **Cryptographic Auditing** generates SHA-256 receipts for every record to prove data lineage and immutability.
- **Crash Prevention** catches and fixes malformed payloads before they reach external tool calls or webhooks.

### How it works
1. **Input Capture** takes a raw JSON string, file, or dictionary object from an agent's output or a web scraper.
2. **Deterministic Processing** runs the payload through the iron script to strip whitespace, fix encodings, and normalize types.
3. **Verification** generates a cryptographic receipt containing raw and clean hashes alongside microsecond latency metrics.
4. **Clean Delivery** returns a structured JSON response ready for immediate use in production environments.

### Frameworks & tools
This is a pure Python 3.10+ tool with zero external dependencies. It is designed for integration with Claude Code, Cursor, ElizaOS, and custom LLM agent pipelines using a CLI or a lightweight PyPI package.

### Why this beats prompting it yourself
LLMs are non-deterministic and often hallucinate "clean" data that still contains hidden characters or slightly off-spec formats. This skill provides a sub-millisecond, deterministic guarantee that data is structurally sound, removing the reliability gap inherent in text-based prompting.

### Use cases
- Sanitize web-scraped content before upserting into a vector database or RAG index.
- Normalize messy price and date strings from LLM tool-call arguments.
- Generate an audit trail for autonomous agent transactions via SHA-256 hashes.
- Clean localized data formats for ingestion into SQL databases or internal APIs.

### Known limitations
Requires Python 3.10 or higher. Does not perform semantic validation or schema enforcement beyond structural and type normalization.

## Requires

- Python

Runs 100% locally and offline in 0.2ms. Zero external dependencies, pure Python standard library.

## 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 datacrease 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 DataCrease differ from simply asking an LLM to 'format as clean JSON'?

DataCrease uses a deterministic iron script to strip invisible control characters, normalize regional number/date formats, and provide SHA-256 audit receipts, preventing the 'ValidationError' crashes common when LLMs produce slightly malformed data.

### Will adding this sanitization step significantly increase my agent's latency?

The skill is optimized for high-frequency agent loops, performing full sanitization and cryptographic hashing in under 0.2 milliseconds to ensure no perceptible lag in your pipeline.

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

You receive the full Python package, CLI access for local testing, and documentation for integrating the deterministic scrubbing and cryptographic auditing functions into your existing codebase.

### Are there any limitations to the types of data validation DataCrease performs?

DataCrease focuses on structural and type normalization (like fixing Unicode junk or date formats); it does not perform semantic validation or check data against custom business logic schemas.

### How does the cryptographic auditing feature help with agent transparency?

The cryptographic audit generates a SHA-256 receipt for every record, allowing you to prove data lineage and verify that the information has not been tampered with between the agent output and the final database entry.

---

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.
