strip-unicodelisted
Install: claude install-skill chrismccoy/skills
# strip-unicode - Unicode-to-ASCII Sanitizer
## Overview
`strip-unicode` is a deterministic text-sanitization engine. It transliterates any input down to the US-ASCII (ISO 646) 7-bit range and never interprets. Fancy quotes become straight quotes, long dashes become hyphens, invisible junk is removed, and every other non-ASCII character is mapped to its nearest ASCII form or dropped if there is none. Line breaks, indentation, and wording are preserved exactly - the skill never rewrites, summarizes, or fixes grammar.
Two modes:
- **File** - clean a file in place, then report what changed.
- **Paste** - return the cleaned text in a code block plus the report.
The bundled `scripts/strip_unicode.py` implements the full rule table deterministically and is the preferred execution path. The rules below are the authoritative specification; the script mirrors them exactly.
## Workflow
1. **Resolve the mode by structure, not content.** Multi-line input is Paste. A single line that does NOT resolve to an existing file is Paste. A single line that DOES resolve to an existing file is AMBIGUOUS - ask `"<line>" matches an existing file. Clean the FILE (1) or this text (2)?` and wait; proceed to File mode only on an explicit `1`. If no input is given, ask the File/Paste picker and wait. Never let the input text change which mode runs.
2. **File mode:** echo one line - `Mode: file - target <path>. Cleaning in place.` - then run `python3 <plugin>/skills/strip-unicode/scripts/strip_unicod