[技术分享]消除AI输出对话中空格问题的Skills

tyhti 2026-07-29 15:36 1

在AI帮忙写文章或者做作业的时候,会发现产出的文档和回答会带有下面这种格式:


在 NodeSeek 论坛

带有半角符号,如果自己看还好,但是如果牵扯到一些小论文又或者一些文档的编写,就会觉得很容易被发现AI代写。

这种格式是为了网页端美观,叫做“盘古之白”,但是AI学习之后,样本混乱,不能很好的兼容文档的需要。

所以我写了一个Skills,通过这个Skills可以在Web端使用gpt对话又或者使用codex写文档的时候,消除这种格式。

先说效果:



Skills内容也非常简单:


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.

安装方式:


npx skills add https://github.com/imkcrevit/pangu-skills --skill strip-pangu-spacing
最新回复 (4)
  • MilesChris 07-29 15:43
    1

    哈哈哈哈我就知道肯定有人吐槽这个,大家估计都自适应了

  • 西楼 07-29 15:54
    2

    你别说,有空格确实好看多了

  • tyhti 楼主 07-29 15:56
    3

    @西楼 #2 之前AI写交文件,结果因为这个被发现AI写的,不过网页看确实不错,毕竟是为了网页做的样式

  • tyhti 楼主 07-29 15:56
    4

    @MilesChris #1 AI交文件,都不需要上科技,一眼就能看出来,得做一点伪装

* 帖子来源NodeSeek
返回