Install
openclaw skills install xhs-anti-detectionPost-processes Xiaohongshu AI images by cleaning metadata, adding subtle noise and color shifts, protecting text, and re-encoding to reduce AI detection risk.
openclaw skills install xhs-anti-detectionPost-processing skill for Xiaohongshu (小红书) AI-generated images to reduce detection probability while maintaining visual quality. Applies a multi-layer defense strategy: metadata cleaning, subtle pixel modifications, and re-encoding.
image-generation skillInput Image → Metadata Cleaner → Subtle Noise Adder → Color Shift →
Text Area Protection → Re-compression → Verification → Safe Output
# Process single image
bash /Users/tianqu/.deskclaw/nanobot/workspace/skills/xhs-anti-detection/scripts/process.sh \
--input /path/to/input.png \
--output /path/to/output.png
# Batch process directory
bash /Users/tianqu/.deskclaw/nanobot/workspace/skills/xhs-anti-detection/scripts/batch.sh \
--input-dir /path/to/images \
--output-dir /path/to/processed
| Flag | Description | Default |
|---|---|---|
--input | Input image path | (required) |
--output | Output image path | (required) |
--strength | Processing intensity: light/medium/heavy | medium |
--fake-camera | Camera model to fake | "Canon EOS R5" |
--verify | Run verification after processing | true |
--dry-run | Show what would be done without doing it | false |
After generating an image with the image-generation skill, automatically run:
# Get the generated image path from image-generation output
# Then process it
bash ~/.deskclaw/nanobot/workspace/skills/xhs-anti-detection/scripts/process.sh \
--input "$GENERATED_IMAGE" \
--output "$GENERATED_IMAGE".safe.png \
--strength medium
Edit references/safe_params.json to adjust:
{
"noise_sigma": 0.3,
"color_shift_hue_deg": 1,
"color_shift_saturation_pct": 2,
"recompression_quality": 98,
"text_sharpening_radius": 1,
"metadata_fields_to_remove": [
"Software", "Creator", "CreationDate", "DateTime",
"Artist", "Copyright", "ExifVersion"
],
"fake_camera_models": [
"Canon EOS R5",
"Sony A7M4",
"iPhone 15 Pro",
"Xiaomi 14 Ultra"
]
}
--verify): JSON with scores and warningsreferences/detection_patterns.md when new AI detection features are discoveredsafe_params.json if Xiaohongshu changes detection strategyxhs-anti-detection/
├── SKILL.md # This file
├── scripts/
│ ├── process.sh # Main entry point (bash wrapper)
│ ├── clean_metadata.py # EXIF cleaner
│ ├── add_noise.py # Gaussian noise adder
│ ├── color_shift.py # Subtle color modification
│ ├── protect_text.py # Text-aware processing
│ ├── recompress.py # Re-encoding with fingerprint randomization
│ ├── verify.py # Verification & reporting
│ └── batch.sh # Batch processing wrapper
├── references/
│ ├── safe_params.json # Tunable parameters
│ └── detection_patterns.md # Known detection signatures
├── hooks/
│ └── post_generate.py # Auto-trigger after image-generation
└── assets/
└── sample_report.json # Example verification output
Install:
pip install Pillow pyexiv2 numpy opencv-python