Skip to content

ZJU-REAL/Easel / skills/builtin/xhs-note-creator

xhs-note-creator

Verified

小红书内容总入口:生成标题、正文、caption、hashtags,以及 3-9 张图文卡片或短视频分镜,覆盖素材分析、卖点评估、去 AI 味和质检。 当用户说“写/做小红书笔记、小红书图文/种草/文案、出一套卡片、小红书视频”时使用。 整套笔记用本 SKILL;仅渲染卡片用 card-xiaohongshu;其他平台的通用文案用 social-content。

FileKindSize
EASEL-META.mdmarkdown554 B
SKILL.mdskill md8.0 KB
references/image-sourcing.mdmarkdown3.8 KB
references/material-intake.mdmarkdown5.4 KB
references/meta-schema.mdmarkdown4.6 KB
references/output-spec.mdmarkdown2.3 KB
references/reference-search.mdmarkdown2.9 KB
references/xiaohongshu-viral-methodology.mdmarkdown7.3 KB
scripts/analyze_material.pyexecutablescript4.9 KB
scripts/collage_3x4.pyexecutablescript3.4 KB
scripts/crop_watermark.pyexecutablescript1.6 KB
scripts/normalize_slug.pyexecutablescript2.1 KB
scripts/text_on_image.pyexecutablescript5.0 KB
scripts/validate_meta.pyexecutablescript5.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())
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall