🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

OpenCC

by @kai-tw

Chinese character conversion between Simplified/Traditional and regional variants. Use when Pi needs to convert Chinese text with precision and awareness of...

Versionv1.0.0
Installs2
⚑ When to Use
TriggerAction
1. **Blog writing with regional awareness** β€” Ensure blog uses consistent Taiwan/Mainland terminology
2. **Content localization** β€” Convert content for different Chinese-speaking regions
3. **Character normalization** β€” Standardize variant characters (e.g., 裏 vs 裑)
4. **Multi-script content** β€” Convert between Chinese and Japanese Kanji as needed
### Region-Specific Guidance
- **Mainland China**: Use `s2t` for traditional, `t2s` for simplified
- **Taiwan (ζ­£ι«”)**: Use `s2tw` for precise Taiwan terminology, `s2twp` for common phrases
- **Hong Kong**: Use `s2hk` for Hong Kong variant
- **Japan**: Use `t2jp` for modern Japanese Kanji
πŸ’‘ Examples

Basic Conversions

import opencc

Simplified β†’ Traditional

converter = opencc.OpenCC('s2t.json') result = converter.convert('汉字') # β†’ ζΌ’ε­—

Traditional β†’ Simplified

converter = opencc.OpenCC('t2s.json') result = converter.convert('ζΌ’ε­—') # β†’ 汉字

Simplified β†’ Taiwan Standard (ζ­£ι«”)

converter = opencc.OpenCC('s2tw.json') result = converter.convert('θ½―δ»Ά') # β†’ θ»Ÿι«”

Simplified β†’ Hong Kong variant (繁體)

converter = opencc.OpenCC('s2hk.json') result = converter.convert('θ½―δ»Ά') # β†’ 軟仢

View on ClawHub
TERMINAL
clawhub install opencc

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’