unslop – skill Viết lách & Nội dung cho agent AI
Xử lý hậu kỳ văn bản do AI tạo ra qua CLI unslop để loại bỏ các mẫu viết của AI trước khi xuất bản.
Cài skill unslop bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/unslop-16d54.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /unslop – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/unslop-16d54.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $unslop – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/unslop-16d54.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /unslop – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/unslop-16d54.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /unslop – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 unslopVerify:
unslop --versionHow 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 --stdinDeterministic cleanup (same input → same output every run):
echo "This leverages cutting-edge AI to deliver robust solutions." | unslop --stdin --deterministicStep 2: Use in Shell Pipelines
Pipe the output of any command through unslop:
cat draft.md | unslop --stdin --deterministic > clean.mdOr chain with other tools:
cat draft.md | unslop --stdin --deterministic | pbcopy # macOS: copy clean text to clipboardNever redirect output into the input path: shell redirection truncates it before the tool reads it. Keep separate output and check the CLI exit status before comparing or replacing files. Pin the CLI version/configuration for reproducibility.
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=$(printf '%s\n' "$CONTENT" | unslop --stdin --deterministic) || exit 1
if [ "$CONTENT" != "$CLEANED" ]; then
echo "Review cleanup separately: unslop --stdin --deterministic < docs/changelog.md > docs/changelog.clean.md"
exit 1
fiExamples
Example 1: Clean a Draft Document
cat blog-post-draft.md | unslop --stdin --deterministic > blog-post-final.mdExample 2: Inline Cleanup During Writing
# Write content, pipe through unslop, write result back
unslop --stdin --deterministic < README.md > README.clean.md
# Review the diff before explicitly replacing README.md; preserve the original.Example 3: Validate Before Submitting a PR
# Check if any generated docs need cleanup
for f in docs/*.md; do
ORIGINAL=$(cat "$f")
CLEANED=$(printf '%s\n' "$ORIGINAL" | unslop --stdin --deterministic) || exit 1
[ "$ORIGINAL" != "$CLEANED" ] && echo "Needs cleanup: $f"
doneBest Practices
- ✅ Use
--deterministicin CI and automation to ensure reproducible output - ✅ Run on the final draft, not intermediate iterations
- ✅ Combine with the
avoid-ai-writingskill 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
pipxoruvfor standalone CLI installation
Security & Safety Notes
- unslop reads from stdin and writes to stdout — no file system side effects by default
--deterministicmode is local and does not make LLM API calls- Default LLM mode may use
ANTHROPIC_API_KEYor the Claude CLI; use--deterministicfor sensitive local files and CI gates - Safe to run in CI pipelines and commit hooks when pinned to deterministic mode
Skill liên quan
- unsloth-finetuning – Tinh chỉnh và hậu huấn luyện LLM bằng Unsloth Core trên một GPU tiêu dùng: ước lượng…
- using-neon – Neon là nền tảng Postgres serverless tách biệt compute và storage, cung cấp autoscaling…
- verify-citations – Kiểm chứng trích dẫn và tài liệu tham khảo trong tài liệu, báo cáo hoặc bài viết với…
- video-content-extractor – Trích xuất khung hình chính từ video MP4 theo khoảng thời gian tùy chỉnh, chạy OCR bằng…
- wechat-cover-maker – Cài đặt và sử dụng gói WeChat Article Cover chính thức, ghim theo digest, cho các công…
- wechat-official-account-strategist – Phát triển WeChat Official Accounts (微信公众号) với chiến lược nội dung chuyển đổi cao, công…
- why-did-this-post-flop – Chẩn đoán vì sao một bài đăng trên Twitter/X hoặc LinkedIn hoạt động kém: không được…
- wiki-changelog – Tạo changelog có cấu trúc từ lịch sử git. Dùng khi người dùng hỏi "có gì thay đổi gần…