跳到正文
Skillpedia
通用编程48k · #6065

unslop

它能做什么

Unslop 是一个用来清理 AI 生成文本的工具,会去掉常见的 AI 写作套路。它可以作为发布前的最后一步,让文字在上线前显得更自然。

适用场景

  • ✓当你的文字已经准备好发布,想做最后一轮清理时。
  • ✓当你通过命令行使用电脑,并希望自动保证文字质量时。
  • ✓当你在搭建会在内容上线前进行校验的系统时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/unslop/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/unslop/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请清理这段文字,去掉 AI 的写作痕迹:[在此粘贴文本]”

每周 5 个新技能,1 分钟读完。

工作原理

你把文字发送给 unslop 工具,它会处理后返回清理过的版本。这就像给文字加了一个过滤器,去掉“机器写作”的痕迹。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

unslop — Strip AI Writing Patterns via CLI

Overview

unslop is a CLI tool that post-processes text to remove AI writing patterns programmatically. Unlike skills that ask the agent to avoid AI-isms, unslop runs as a deterministic pipeline step: pipe text in, get clean text out. Use it as a final pass before committing docs, publishing posts, or sending any AI-generated content to production.

The --deterministic flag makes output reproducible — same input always produces same output. The --stdin flag reads from stdin, enabling shell pipeline composition.

When to Use This Skill

  • When you have AI-generated text ready to publish and want a final cleanup pass
  • When working in a shell pipeline where text quality needs to be enforced automatically
  • When writing commit hooks or CI steps that validate content before it ships
  • When you need reproducible text normalization across multiple runs

Setup

Install once:

pipx install unslop
# or
uv tool install unslop

Verify:

unslop --version

How It Works

Step 1: Pipe Text Through unslop

Standard cleanup (may vary slightly between runs):

echo "This leverages cutting-edge AI to deliver robust solutions." | unslop --stdin

Deterministic cleanup (same input → same output every run):

echo "This leverages cutting-edge AI to deliver robust solutions." | unslop --stdin --deterministic

Step 2: Use in Shell Pipelines

Pipe the output of any command through unslop:

cat draft.md | unslop --stdin --deterministic > clean.md

Or chain with other tools:

cat draft.md | unslop --stdin --deterministic | pbcopy   # macOS: copy clean text to clipboard

Step 3: Integrate into Commit Hooks or CI

Add to a pre-commit hook or CI step to enforce quality gates on any generated content before it ships:

# In .git/hooks/pre-commit or a CI script
CONTENT=$(cat docs/changelog.md)
CLEANED=$(echo "$CONTENT" | unslop --stdin --deterministic)
if [ "$CONTENT" != "$CLEANED" ]; then
  echo "Changelog contains AI writing patterns. Run: cat docs/changelog.md | unslop --stdin --deterministic > docs/changelog.md"
  exit 1
fi

Examples

Example 1: Clean a Draft Document

cat blog-post-draft.md | unslop --stdin --deterministic > blog-post-final.md

Example 2: Inline Cleanup During Writing

# Write content, pipe through unslop, write result back
cat README.md | unslop --stdin > README.clean.md && mv README.clean.md README.md

Example 3: Validate Before Submitting a PR

# Check if any generated docs need cleanup
for f in docs/*.md; do
  ORIGINAL=$(cat "$f")
  CLEANED=$(echo "$ORIGINAL" | unslop --stdin --deterministic)
  [ "$ORIGINAL" != "$CLEANED" ] && echo "Needs cleanup: $f"
done

Best Practices

  • ✅ Use --deterministic in CI and automation to ensure reproducible output
  • ✅ Run on the final draft, not intermediate iterations
  • ✅ Combine with the avoid-ai-writing skill for both generation-time guidance and post-processing
  • ❌ Don't run on code files — unslop targets prose, not source code
  • ❌ Don't skip review after unslop: automated cleanup can occasionally change meaning; read the output

Limitations

  • Processes prose only — not code, JSON, or structured data
  • Does not catch factual errors or substantive writing issues
  • Some replacements may not fit every context; review the output before publishing
  • Requires Python tooling such as pipx or uv for standalone CLI installation

Security & Safety Notes

  • unslop reads from stdin and writes to stdout — no file system side effects by default
  • --deterministic mode is local and does not make LLM API calls
  • Default LLM mode may use ANTHROPIC_API_KEY or the Claude CLI; use --deterministic for sensitive local files and CI gates
  • Safe to run in CI pipelines and commit hooks when pinned to deterministic mode
常见问题

什么是“AI 写作套路”?

这些是 AI 经常频繁使用的短语或句式,比如“值得注意的是”或“在这种情况下”。Unslop 会尝试去掉这些重复的表达。

unslop 可以用于任何文本吗?

它是为人类或 AI 写的正文文本设计的,不适用于编程代码、结构化数据或 JSON。

我需要安装什么吗?

需要。你要用类似 'pipx install unslop' 的命令把这个工具安装到电脑上。

详情

作者的原始描述

Post-process AI-generated text through the unslop CLI to strip AI writing patterns before publishing

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6065
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能