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.
npx skills add oleg494/coding-kit --skill windows-encoding-fixesgit clone --depth 1 https://github.com/oleg494/coding-kitWrote 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.
[](https://agentmods.dev/skills/oleg494/coding-kit/windows-encoding-fixes)<a href="https://agentmods.dev/skills/oleg494/coding-kit/windows-encoding-fixes"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/windows-encoding-fixes/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oleg494/coding-kit/windows-encoding-fixes"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/windows-encoding-fixes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.02423 |
| Opus 5.5 | $0.00044 | $0.00969 |
| Sonnet 5.5 | $0.00022 | $0.00485 |
| Haiku 4.5 | $0.00011 | $0.00242 |
Grade A, and why
windows-encoding-fixes scanned grade A with 2 findings 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 13d ago.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| `curl` in PowerShell | resolves to `Invoke-WebRequest`, different flags | call `curl.exe` explicitly | Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
**Symptom:** `subprocess.run(["npm", "install"])` → How it starts
The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Windows: encodings, console, child processes
Field notes from Windows 10 installers and CLIs that also have to run on Linux. Each section is one symptom, its cause and a verified fix. The fixes belong in a shared compatibility helper used by the entry points, not copied into every module.
1. Console output dies on non-ASCII
Symptom: UnicodeEncodeError: ... codec can't encode character '\u2713'
when printing ✓, ✗ or Cyrillic. Appears when output is redirected
(script > log 2>&1) and in a cp1251 console.
Cause: the console code page is cp1251, and Python 3.12 adopts the console encoding for redirected output; Unicode does not fit.
Where it applies: any script that prints non-ASCII. Pure ASCII scripts need nothing.
Fix — one call at each entry point, from the shared helper:
try:
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
sys.stderr.reconfigure(encoding="utf-8", errors="replace")
except Exception: # reconfigure is optional; a missing stream must not crash
pass
When editing coding-kit, call fix_encoding() in memory/scripts/_compat.py;
elsewhere, reuse the target project's helper if one exists rather than
assuming that module.
For bash wrappers:
export PYTHONIOENCODING="${PYTHONIOENCODING:-utf-8}"
Machine-wide mitigation (user scope, worth doing once per box):
[Environment]::SetEnvironmentVariable("PYTHONUTF8", "1", "User")
2. Writing files: CRLF breaks md5 checks
Symptom: Path.write_text() on Windows produces \r\n; the canonical form
is \n. Any md5 check over mirrors or copies then fails as "files diverged".
Fix when writing — pin the newline and compare bytes:
dst.write_text(content, encoding="utf-8", newline="\n")
if dst.read_bytes() == content.encode("utf-8"): ... # freshness check
Fix when comparing in bash — normalize before hashing:
first=$(tr -d '\r' < "${MIRRORS[0]}" | md5sum | cut -d' ' -f1)
What ships with it
1 file 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.
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.
- 13d ago Changed 3084cfd2d81c
- 23d ago Changed be2db4cacf8f
- 1mo ago Changed · -10 lines · +1 tokens per session 3b256ecec121
- 1mo ago Changed 4fc6b0d19da7
- 1mo ago Changed 41dfa1fc03cb
- 1mo ago Changed c37fd44ab1f8
- 1mo ago Changed a14c32e80cbf
- 1mo ago Changed 27e7b5894145
- 1mo ago Changed 480bc6686380
- 2mo ago First seen · 234 lines · 108 tokens per session scan A e64b75e903ae
windows-encoding-fixes is a skill published in the GitHub repository oleg494/coding-kit (3 stars, last pushed 14d ago), licensed MIT. It adds 109 tokens to every session and 2,423 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
windows-encoding-fixes compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| windows-encoding-fixesoleg494/coding-kit | Skill | 3 | 14d ago | MIT | A | 109 | Claude Code, Codex |
| troubleshootmystilleef/spae-framework | Skill | 2 | 5d ago | MIT | C | 81 | Claude Code |
| spae-fixmystilleef/spae-framework | Skill | 2 | 5d ago | MIT | C | 41 | Claude Code |
| puritymystilleef/spae-framework | Skill | 2 | 5d ago | MIT | C | 15 | Claude Code |
| refactormystilleef/spae-framework | Skill | 2 | 5d ago | MIT | D | 21 | Claude Code |
| debugging-livekit-agentsfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 116 | Claude Code |
| gcloud-usagefcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 49 | Claude Code |