devkit-encoding-hygiene

Detect and normalize text encoding issues in DevKit workflows.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Xpotato1024/xpotato-devkit --skill devkit-encoding-hygiene
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: devkit-encoding-hygiene
Source: https://github.com/Xpotato1024/xpotato-devkit/tree/main/SKILLs/devkit-encoding-hygiene
Command: npx skills add https://github.com/Xpotato1024/xpotato-devkit --skill devkit-encoding-hygiene

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Detect and normalize text encoding issues (UTF-8, BOM, mixed newlines) in DevKit workflows to prevent mojibake and inconsistent text handling across projects.

Core Features & Use Cases

  • Detection of encoding irregularities (UTF-8 validity, BOM presence, newline consistency) in target files.
  • Normalization of encoding and newline styles on targeted file sets with guidance for safe application.
  • Use Case: Ensure repository-wide text hygiene before commits or automated reviews to maintain deterministic behavior.

Quick Start

Run a targeted encoding check on the touched files, then normalize any issues and re-check.

Frequently Asked Questions about devkit-encoding-hygiene

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I normalize text encoding and fix BOM issues in my repository?▼

To normalize text encoding, you can run a DevKit encoding check to detect BOM presence and mixed newlines, then apply a normalization command to fix these irregularities across targeted file sets.

Why does my repository have mixed newlines and mojibake across different files?▼

Mojibake and mixed newlines occur when text encoding is not deterministic. Detecting UTF-8 validity and normalizing newline styles before commits ensures consistent text handling and prevents these issues.

Can I preview text encoding normalization before applying changes to my files?▼

Yes, you can safely preview text encoding normalization by running the DevKit normalize command with the --dry-run flag, allowing you to verify corrections before modifying files.

What is the best way to enforce deterministic UTF-8 encoding in a CI pipeline?▼

The best way to enforce deterministic UTF-8 encoding in CI is to run DevKit encoding checks as a validation step to detect irregularities and block Pull Requests with invalid text hygiene.

Does DevKit encoding normalization work on individual files or only entire repositories?▼

DevKit encoding normalization works on both individual files and entire file sets across a repository, making it suitable for targeted pre-commit checks as well as broader CI validation.