# Unicode Boundary Guard

> Prevent silent Unicode corruption across PowerShell, Python, JSON, CDP, and browser forms with exact destination verification.

Unicode Boundary Guard is a free AI agent skill on Agensi by Nguyễn Văn Duy, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Nguyễn Văn Duy](https://www.agensi.io/creators/clownnvd)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-08
- Security: scan passed (2026-10-08); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/unicode-boundary-guard
- Tags: automation, testing, translation, unicode, python, browser-automation, qa

## About this skill

Unicode can be corrupted even when every command returns success. A Windows shell, Python subprocess, JSON payload, CDP expression, or React-controlled input can silently turn a correct name into question marks, replacement characters, or mojibake. Unicode Boundary Guard makes exact destination verification the completion condition.

### What it does
- Preserves one authoritative expected string before it crosses a tool boundary.
- Chooses a safe transport: UTF-8 files, `utf-8-sig` decoding, or ASCII-only JSON literals.
- Generates React-compatible DOM setters that dispatch `input` and `change` events.
- Compares exact code points and UTF-8 SHA-256 values at source and destination.
- Detects `?`, U+FFFD, mojibake, dropped characters, and unintended normalization.
- Stops before submit, publish, send, or another external write when verification fails.

### Why it is different
A success toast only proves that the application accepted an action. This skill reads the destination again and proves that the saved value is identical to the source. The included dependency-free `unicode_guard.py` utility returns CI-friendly exit codes and ASCII-safe JSON reports.

### Use cases
- Vietnamese names and localized profile data
- Multilingual UI copy and emoji
- PowerShell-to-Python automation
- JSON and JavaScript generation
- CDP and browser form automation
- Database and API write verification

### Known limitations
The skill requires Python 3 for its deterministic helper. It verifies text integrity but does not grant permission to submit a form or perform another external write.

## 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 Unicode Boundary Guard 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 Unicode Boundary Guard differ from standard error handling in my scripts?

This skill addresses 'silent corruption' where tools report success while actually mangling text into question marks or mojibake. It verifies that data remains identical at the code-point level after passing through PowerShell, JSON payloads, or browser inputs.

### What assets are included in the purchase?

The package includes the core AI agent logic, the dependency-free `unicode_guard.py` utility for CI/CD integration, and pre-configured React-compatible DOM setters for browser automation.

### Can I use this to pass multilingual data between a Windows PowerShell environment and a Python script?

Yes, the skill is designed to bridge these environments by generating safe transport formats like ASCII-only JSON literals and UFT-8-sig decoding to ensure text survives Windows-specific shell limitations.

### What are the technical requirements for running this skill?

The skill requires Python 3 for its deterministic verification helper and is compatible with any AI agent capable of executing Python or interacting with the Chrome DevTools Protocol (CDP).

### Does the skill just check if the data was sent, or does it verify the final saved state?

Unlike standard verification, this skill performs a 'round-trip' check by reading the destination value back and comparing its SHA-256 hash against the source to guarantee 100% data integrity before a final submission.

---

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.
