cjk-safety

Detect and prevent CJK typographic quotes in Python source files during write operations.

3|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/eamars/KazusaAIChatbot --skill cjk-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cjk-safety
Source: https://github.com/eamars/KazusaAIChatbot/tree/main/.agents/skills/cjk-safety
Command: npx skills add https://github.com/eamars/KazusaAIChatbot --skill cjk-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill prevents encoding corruption that occurs when CJK typographic quotes are written into Python source files via tooling, which may silently convert them to ASCII quotes and break string literals.

Core Features & Use Cases

  • Rule-based guidance to prevent typographic quote corruption in Python strings.
  • Practical instructions to avoid introducing CJK quotes during writing, editing, or refactoring.
  • Quick-start guidance for immediate safe handling of CJK content in Python source files.

Quick Start

Review Python source files containing CJK content and rewrite any string literals that include typographic quotes using single-quoted delimiters to prevent syntax errors.

Frequently Asked Questions about cjk-safety

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

FAQPage Schema
Why do CJK typographic quotes break Python string literals?

Encoding corruption occurs when writing tools silently convert CJK typographic quotes to ASCII quotes, breaking Python string literals. This mismatch between intended and actual characters causes syntax errors in source files containing CJK text.

How do I prevent CJK quote corruption in Python source files?

Prevent CJK quote corruption by enforcing single-quoted delimiters for CJK string literals, avoiding passing CJK content through the Write tool, and ensuring UTF-8 encoding on all file I/O operations to maintain character integrity.

What causes encoding corruption when writing CJK text to Python files?

Encoding corruption is caused by tooling that silently converts CJK typographic quotes to ASCII quotes during write operations. Passing CJK content through such tools alters quote characters without warning, breaking Python string literal syntax.

Does this Skill apply when refactoring Python files that contain CJK text?

Yes, this Skill applies to Python codebase tasks involving creation, editing, or refactoring of .py files containing CJK text. It provides rule-based guidance to prevent typographic quote corruption during all such write operations.

What's the best way to handle CJK content in Python string literals?

The best way to handle CJK content in Python string literals is to use single-quoted delimiters and ensure UTF-8 encoding on all file I/O. Avoid passing CJK content through the Write tool to prevent silent quote conversion.