claude-fix-unicode-decode

claude-fix-unicode-decode is a skill for Claude Code, Codex from hachiwar/codex-skills. It costs 116 tokens per session (937 once invoked), scanned A, original, no licence file.

A troubleshooting skill for text-encoding errors and garbled text, especially corrupted Chinese characters. Unicode is the standard computers use to represent text, while mojibake is text displayed incorrectly because the wrong encoding was used.

In plain words
What is it for?
Use it to diagnose and fix UnicodeDecodeError, UnicodeEncodeError, mojibake, replacement characters, unknown codecs, and broken Chinese text in Claude Code tasks.
Why use it?
It helps find why files, commands, tests, data, HTTP responses, or terminals show unreadable characters or encoding errors.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to diagnose and fix UnicodeDecodeError, UnicodeEncodeError, mojibake, replacement characters, unknown codecs, and broken Chinese text in Claude Code tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hachiwar/codex-skills/claude-fix-unicode-decode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hachiwar/codex-skills --skill claude-fix-unicode-decode
Clone the repo
git clone --depth 1 https://github.com/hachiwar/codex-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-fix-unicode-decode

README.md
[![agentmods](https://agentmods.dev/badge/skills/hachiwar/codex-skills/claude-fix-unicode-decode.svg)](https://agentmods.dev/skills/hachiwar/codex-skills/claude-fix-unicode-decode)
Your own site
<a href="https://agentmods.dev/skills/hachiwar/codex-skills/claude-fix-unicode-decode"><img src="https://agentmods.dev/badge/skills/hachiwar/codex-skills/claude-fix-unicode-decode.svg" alt="Measured on agentmods" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00116 $0.00937
Opus 5 $0.00058 $0.00468
Sonnet 5 $0.00023 $0.00187
Haiku 4.5 $0.00012 $0.00094

Measured 8d ago against content hash 4f8877ff2344, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

claude-fix-unicode-decode scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/diagnose_encoding.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(
claude-fix-unicode-decode/SKILL.md · 67 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 67 lines · 116 tokens per session scan A 4f8877ff2344

Subscribe to this mod's changes

claude-fix-unicode-decode is a skill published in the GitHub repository hachiwar/codex-skills (2 stars, last pushed 2mo ago), with no licence file. It adds 116 tokens to every session and 937 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bug-fix

Use when a bug, regression, or unexpected behaviour is reported and the user wants it fixed end to end — "why is X broken", "this stopped working after Y", "fix this crash". Also use when a symptom is known but its cause is not. Not for building new behaviour, and not for a change whose cause is already proven.

kardebadas/claude-plugin · 74 tokens

bug-investigate

Use when someone wants to know WHY something is broken and has not asked for it to be fixed — "why is this happening", "what's causing this error", "find out what's wrong", "diagnose this before we decide". Also use before committing to a fix, when the cause is unknown and the decision depends on it. Not for fixing …

kardebadas/claude-plugin · 83 tokens

root-cause-analysis

Produce a systemic, evidence-based incident RCA/postmortem after a failure: timeline, causal chain, contributing conditions, corrective actions, and prevention. Use when recurrence prevention and organizational learning are primary. Do not use as a generic live debugger.

Noorkhalel/saas-ai-skills · 53 tokens

debugging

Investigate and safely fix an active, observable software failure, error, regression, or unexpected behavior using reproduction and evidence. Use for the proximate technical cause and remediation. Do not use for a systemic incident postmortem or general performance tuning without a failure.

Noorkhalel/saas-ai-skills · 55 tokens

performance-optimization

Measure, diagnose, and improve a performance or capacity objective?latency, throughput, CPU, memory, scalability, or cost?without regressing correctness. Use when performance is the primary requested outcome. Do not use for generic code cleanup or an unmeasured incident postmortem.

Noorkhalel/saas-ai-skills · 61 tokens

query-loki-project-logs

Query Grafana Loki logs that are organized by labels such as projectname or project, env, and filename, where filename distinguishes nginx, web, worker, stdout, and stderr streams. Use when Codex needs to inspect logs with logcli, discover available projects or environments, list a project's log files, narrow to a…

Sube-py/awesome-skills · 108 tokens