Strip Pangu Spacing
Keep Chinese mixed-script prose compact without damaging syntax or meaningful whitespace.
Apply the rule while writing
Write 使用React开发 instead of 使用 React 开发.
Write GPT模型包含3个阶段 instead of GPT 模型包含 3 个阶段.
Preserve spaces inside English phrases, for example Hello World.
Preserve language syntax, indentation, Markdown marker spacing, code, URLs, paths, command arguments, and tabular delimiters.
Do not rewrite generated files, dependencies, vendored content, lockfiles, or binary files.
Choose a safe scope
Run the bundled script directly on prose files such as .md, .mdx, .markdown, .txt, .rst, and .adoc.
For source code, modify only the Chinese comments, documentation, captions, or UI strings touched by the task. Do not run a whole-file rewrite unless the user explicitly requests it and the diff can be reviewed safely.
Restrict cleanup to the files created or edited for the current task unless the user asks for a repository-wide normalization.