Why can't AI just add a space?
An agent skill / plugin for Claude Code, Codex, Antigravity, Cursor, Gemini CLI, and other AI coding agents. It applies paranoid text spacing (盤古之白) as the agent writes CJK-mixed replies, docs, comments, and commit messages.
It spaces the prose created or edited for your task while preserving code, markup, URLs, paths, and exact quotations. Your requested format and editing scope take priority; existing text outside that scope stays as received.
The text rules follow pangu.js for Han ideographs, Japanese kana, and bopomofo; Hangul is unchanged. Spacing also covers specific Unicode ranges, including é, β, Ⅻ, ✓, and ℃, at CJK boundaries. Joined slashes stay intact; superscript suffixes such as ² and ™ stay attached to the preceding text. All runtime rules fit in one SKILL.md.
You type
我用Claude Code寫了3個component,修好login的bug
With spacing
我用 Claude Code 寫了 3 個 component,修好 login 的 bug
The live demo shows pangu.js on plain text. The agent handles prose boundaries; the demo applies the library directly.
Claude Code
claude plugin marketplace add shihyuho/pangu.skill
claude plugin install pangu@panguCodex
codex plugin marketplace add shihyuho/pangu.skill
codex plugin add pangu@panguAntigravity
agy plugin install https://github.com/shihyuho/pangu.skill.gitUsing Gemini CLI, Cursor, Windsurf, GitHub Copilot, Kiro, or OpenCode? The full install guide covers them all.
Paranoid text spacing has a whole family of ports.
- pangu.js (JavaScript, upstream / SoT)
- pangu.go (Go)
- pangu.java (Java)
- pangu.py (Python)
- pangu.clj (Clojure / ClojureScript)
- pangu.dart (Dart)
- pangu.ex (Elixir)
- pangu.objective-c (Objective-C)
- pangu.php (PHP)
- pangu.rb (Ruby)
- pangu.rs (Rust)
- pangu.swift (Swift)
If pangu.skill helps you, you can support its maintenance through Buy Me a Coffee.
MIT © Shihyu Ho