encoding-touched-guard
CommunityCatch encoding issues the moment you touch files.
Authoreaglhuang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a fast self-check workflow to prevent encoding corruption in recently edited text files by detecting UTF-8 BOM, U+FFFD, and mojibake and re-checking before finishing work, ensuring Chinese characters are preserved.
Core Features & Use Cases
- Fast pre-check after edits: Run encoding checks on the files you just changed to catch issues immediately.
- File-type scope: Targets high-risk text files such as .md, .json, .ts, .js, and .ps1.
- Final guard before commit: Re-check before finishing work to prevent broken encodings from being committed.
Quick Start
After editing, run npm run check:encoding:touched -- --files <files> to scan the touched files for BOM, U+FFFD, and mojibake.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: encoding-touched-guard Download link: https://github.com/eaglhuang/cocos_new/archive/main.zip#encoding-touched-guard Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.