LLM Skills
~/catalogue/contenu web & blog//scrub
Contenu web & blogsource GitHub

Nettoyer les filigranes IA (Markdown)

/scrub

Utilisez cette commande pour supprimer les filigranes invisibles générés par l'IA et les motifs révélateurs des fichiers de contenu Markdown.

TheCraigHewittTheCraigHewitt
7.4k
10 avril 2026
MIT License
// contenu du skill

Scrub Command

Use this command to remove invisible AI-generated watermarks and telltale patterns from markdown content files.

Usage

/scrub [file path]

What This Command Does

  1. Removes invisible Unicode watermarks commonly embedded by AI systems
  2. Replaces em-dashes with contextually appropriate punctuation
  3. Cleans up whitespace and formatting artifacts
  4. Makes content appear naturally human-written
  5. Provides statistics on changes made

Why This Matters

AI language models often embed invisible Unicode characters as watermarks or identifiers in generated content. Additionally, AI tends to overuse certain punctuation patterns like em-dashes. This command removes these telltale signs to make content appear more naturally written.

Process

1. Watermark Detection & Removal

The scrubber identifies and removes several types of invisible Unicode characters:

#### Invisible Characters Removed

  • Zero-width spaces (U+200B): Often inserted between words
  • Byte Order Marks (U+FEFF): BOM characters that shouldn't appear in content
  • Zero-width non-joiners (U+200C): Invisible formatting characters
  • Word joiners (U+2060): Non-breaking invisible characters
  • Soft hyphens (U+00AD): Optional hyphenation points
  • Narrow no-break spaces (U+202F): Special spacing characters
  • All format-control characters: Unicode category Cf characters

2. Em-Dash Replacement

AI-generated content tends to overuse em-dashes (—). The scrubber intelligently replaces them based on context:

#### Contextual Rules

  • Attribution: Replaces with comma when used for quotes or attribution
  • Example: "Text — Author Name" becomes "Text, Author Name"
  • Independent Clauses: Replaces with semicolon when joining complete thoughts
  • Example: "First clause — second clause" becomes "First clause; second clause"
  • Strong Breaks: Replaces with period when separating distinct sentences
  • Example: "Sentence one — Sentence two" becomes "Sentence one. Sentence two"
  • Simple Separation: Replaces with comma for list items or simple separation
  • Example: "Item — detail" becomes "Item, detail"
  • Conjunctive Adverbs: Replaces with semicolon before words like "however", "therefore", "moreover"
  • Example: "Text — however, more text" becomes "Text; however, more text"

3. Whitespace Normalization

After removing watermarks and replacing em-dashes, the scrubber cleans up formatting:

  • Multiple Spaces: Reduces multiple consecutive spaces to single space
  • Punctuation Spacing: Removes spaces before punctuation marks
  • Post-Punctuation Spacing: Ensures single space after punctuation
  • Excessive Line Breaks: Reduces 3+ consecutive line breaks to 2

Output

The command displays:

Statistics Report

Content Scrubbing Complete:
  - Unicode watermarks removed: [count]
  - Format-control chars removed: [count]
  - Em-dashes replaced: [count]

File Update

  • Original file is overwritten with cleaned content
  • All changes are applied in-place
  • Original formatting and structure preserved (except cleaned elements)

Integration with Writing Workflow

This command is designed to run automatically after content generation:

Automatic Execution

After /write or /rewrite commands save article files, the scrubber should run automatically on:

  • Main article file in drafts/ directory
  • Any generated content that will be published

Manual Execution

You can also manually scrub any markdown file:

  • Testing content cleanliness
  • Cleaning legacy content
  • Processing externally generated content
  • Verifying scrubbing was successful

Technical Details

Implementation

The scrubbing functionality is implemented in:

  • Module: data_sources/modules/content_scrubber.py
  • Main Function: scrub_file(file_path, output_path, verbose)
  • Class: ContentScrubber with specialized methods for each cleaning operation

Idempotency

The scrubber is idempotent - running it multiple times on already-cleaned content produces no additional changes. This makes it safe to:

  • Run multiple times on same file
  • Include in automated workflows
  • Use as quality check without risk of over-processing

Safety

The scrubbing process:

  • Never modifies visible content or meaning
  • Only removes invisible/problematic characters
  • Preserves all markdown formatting
  • Maintains document structure
  • Safe for all content types

Example Usage

Basic Scrubbing

/scrub drafts/content-marketing-strategies-2025-10-31.md

What Gets Changed

Before:

Content​ marketing​ is​ a​ powerful​ strategy—businesses can reach global audiences—and convert more customers.

(Contains zero-width spaces after words and em-dashes)

After:

Content marketing is a powerful strategy; businesses can reach global audiences, and convert more customers.

(Clean text with appropriate punctuation)

Quality Standards

Every scrubbed file ensures:

  • Zero invisi
// source originale publique
TheCraigHewitt/seomachine
/.claude/commands/scrub.md
Licence : MIT License
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// installer ce skill
Collez cette commande dans votre terminal à la racine de votre projet :
mkdir -p .claude/commands && curl -o ".claude/commands/scrub.md" "https://raw.githubusercontent.com/TheCraigHewitt/seomachine/main/.claude/commands/scrub.md"
Ensuite dans Claude Code, tapez /scrub pour l'activer.
open_in_newVoir la source originale
// sauvegarder
Sauvegarde disponible après connexion.
loginSe connecter pour sauvegarder
// informations
Étoiles 7.4k
LicenceMIT License
Mis à jour10 avril 2026
Format.md
AccèsGratuit
// similaires

Skills Contenu web & blog

Voir toutarrow_forward