encoding-handler
Handle text encoding across platforms including UTF-8, Windows codepages, and BOM handling.
npx skills add a5c-ai/babysitter --skill encoding-handler --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Encoding Handler Handle text encoding across platforms. ## Capabilities - Detect file encoding - Convert between encodings - Handle BOM markers - Configure Windows codepage support - Normalize text encoding - Handle encoding errors ## Generated Patterns ```typescript import { Buffer } from 'buffer'; import iconv from 'iconv-lite'; export function detectBOM(buffer: Buffer): string | null { if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) return 'utf-8'; if (buffer[0] === 0xFF && buffer[1] === 0xFE) return 'utf-16le'; if (buffer[0] === 0xFE && buffer[1] === 0xFF) return 'utf-16be'; return null; } export function stripBOM(content: string): string { return content.charCodeAt(0) === 0xFEFF ? content.slice(1) : content; } export function decodeBuffer(buffer: Buffer, encoding = 'utf-8'): string { const bom = detectBOM(buffer); if (bom) { return stripBOM(iconv.decode(buffer, bom)); } return iconv.decode(buffer, encoding); } export function encodeString(content: string, encoding = 'utf-8', addBOM = false): Buffer { const encoded = iconv.encode(content, encoding); if (addBOM && encoding.toLowerCase() === 'utf-8') { return Buffer.concat([Buffer.from([0xEF, 0xBB, 0xBF]), e
- Capabilities
- Generated Patterns
- Target Processes
What does the encoding-handler skill do?
Handle text encoding across platforms including UTF-8, Windows codepages, and BOM handling.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill encoding-handler --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
