xhs-writer
Verified生成小红书(RedNote)笔记:把主题或用户提供的素材(文字/图片/视频)做成一套竖版卡片(图文) 或一段带分镜脚本的视频稿(视频),配 caption + hashtags,落盘到 output/小红书/。 使用时机:用户说 写小红书 / 做小红书笔记 / 小红书图文 / 小红书种草 / 出一套 xhs 卡片 / 小红书视频 / write a Xiaohongshu note / make a RedNote post。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.7 KB |
| agents/openclaw.yaml | config | 930 B |
| references/humanizer-zh.md | markdown | 15.4 KB |
| references/image-sourcing.md | markdown | 3.7 KB |
| references/material-intake.md | markdown | 5.4 KB |
| references/meta-schema.md | markdown | 4.5 KB |
| references/output-spec.md | markdown | 4.2 KB |
| references/reference-search.md | markdown | 2.9 KB |
| references/xiaohongshu-viral-methodology.md | markdown | 17.1 KB |
| scripts/analyze_material.pyexecutable | script | 4.9 KB |
| scripts/collage_3x4.pyexecutable | script | 3.4 KB |
| scripts/crop_watermark.pyexecutable | script | 1.6 KB |
| scripts/image_generator.py | script | 17.5 KB |
| scripts/normalize_slug.pyexecutable | script | 2.1 KB |
| scripts/text_on_image.pyexecutable | script | 5.0 KB |
| scripts/validate_meta.pyexecutable | script | 5.8 KB |
scripts/crop_watermark.py
View on GitHub#!/usr/bin/env python3
"""Crop edge watermark off an image (deterministic wrapper over PIL).
Usage:
python3 crop_watermark.py INPUT OUTPUT --edge bottom --pixels 40
python3 crop_watermark.py INPUT OUTPUT --box LEFT TOP RIGHT BOTTOM
"""
from __future__ import annotations
import argparse
import sys
from pathlib import Path
try:
from PIL import Image
except ImportError:
print("ERROR: Pillow required", file=sys.stderr)
sys.exit(2)
def main() -> int:
ap = argparse.ArgumentParser()
ap.add_argument("input")
ap.add_argument("output")
ap.add_argument("--edge", choices=("top", "bottom", "left", "right"))
ap.add_argument("--pixels", type=int, default=40)
ap.add_argument("--box", nargs=4, type=int,
metavar=("L", "T", "R", "B"),
help="absolute crop box (overrides --edge)")
args = ap.parse_args()
img = Image.open(args.input)
w, h = img.size
if args.box:
box = tuple(args.box)
elif args.edge == "bottom":
box = (0, 0, w, max(0, h - args.pixels))
elif args.edge == "top":
box = (0, min(h, args.pixels), w, h)
elif args.edge == "left":
box = (min(w, args.pixels), 0, w, h)
elif args.edge == "right":
box = (0, 0, max(0, w - args.pixels), h)
else:
print("ERROR: provide --edge or --box", file=sys.stderr)
return 2
out = img.crop(box)
Path(args.output).parent.mkdir(parents=True, exist_ok=True)
out.save(args.output, quality=92)
print(f"OK: {args.output} ({w}x{h} -> {out.size[0]}x{out.size[1]})")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |