Skip to content

DoHyun468/claw-hwp / plugins/claw-hwp/skills/hwp

FileKindSize
SKILL.mdskill md101.9 KB
references/README.mdmarkdown834 B
references/equation-syntax.mdmarkdown5.9 KB
references/hwp-internals.mdmarkdown4.9 KB
references/hwp-object-placement.mdmarkdown5.8 KB
references/hwpx-edit-ops.mdmarkdown52.8 KB
references/hwpx-format.mdmarkdown14.8 KB
references/hwpx-object-placement.mdmarkdown7.1 KB
references/hwpx-style-spacing.mdmarkdown10.7 KB
references/rhwp-api.mdmarkdown15.8 KB
scripts/README.mdmarkdown2.4 KB
scripts/cell-inspect.jsscript4.9 KB
scripts/cell-patch.jsscript525.8 KB
scripts/create.jsexecutablebinary235.8 KB
scripts/extract_text.jsexecutablescript12.0 KB
scripts/hwpx-edit.jsscript292.7 KB
scripts/launcher/preview-linux.shexecutablescript2.0 KB
scripts/launcher/preview-mac.commandexecutablescript1.9 KB
scripts/launcher/preview-windows.batscript2.1 KB
scripts/make_seal.pyscript3.4 KB
scripts/pack.pyexecutablescript8.0 KB
scripts/package-lock.jsonmanifest2.0 KB
scripts/package.jsonmanifest298 B
scripts/preview-server.jsscript5.3 KB
scripts/preview-viewer.htmlother11.5 KB
scripts/preview-viewer.jsscript17.2 KB
scripts/references/chart-templates/chart-0.jsonconfig6.4 KB
scripts/references/chart-templates/chart-1.jsonconfig6.4 KB
scripts/references/chart-templates/chart-10.jsonconfig6.3 KB
scripts/references/chart-templates/chart-11.jsonconfig6.3 KB
scripts/references/chart-templates/chart-12.jsonconfig6.5 KB
scripts/references/chart-templates/chart-13.jsonconfig6.5 KB
scripts/references/chart-templates/chart-14.jsonconfig6.5 KB
scripts/references/chart-templates/chart-15.jsonconfig6.5 KB
scripts/references/chart-templates/chart-16.jsonconfig5.9 KB
scripts/references/chart-templates/chart-17.jsonconfig5.9 KB
scripts/references/chart-templates/chart-18.jsonconfig6.3 KB
scripts/references/chart-templates/chart-19.jsonconfig6.3 KB
scripts/references/chart-templates/chart-2.jsonconfig6.4 KB
scripts/references/chart-templates/chart-3.jsonconfig6.4 KB
scripts/references/chart-templates/chart-4.jsonconfig6.4 KB
scripts/references/chart-templates/chart-5.jsonconfig6.3 KB
scripts/references/chart-templates/chart-6.jsonconfig5.9 KB
scripts/references/chart-templates/chart-7.jsonconfig5.9 KB
scripts/references/chart-templates/chart-8.jsonconfig5.9 KB
scripts/references/chart-templates/chart-9.jsonconfig6.3 KB
scripts/secure-fill.mjsscript38.0 KB
scripts/templates/hancom_native_stub.hwpxbinary128.0 KB
scripts/unpack.pyexecutablescript2.5 KB
scripts/validate.pyexecutablescript3.7 KB
themes/arctic-frost.mdmarkdown777 B
themes/botanical-garden.mdmarkdown751 B
themes/desert-rose.mdmarkdown748 B
themes/forest-canopy.mdmarkdown755 B
themes/golden-hour.mdmarkdown778 B
themes/midnight-galaxy.mdmarkdown766 B
themes/modern-minimalist.mdmarkdown766 B
themes/ocean-depths.mdmarkdown758 B
themes/sunset-boulevard.mdmarkdown811 B
themes/tech-innovation.mdmarkdown729 B

scripts/make_seal.py

View on GitHub
#!/usr/bin/env python3
"""Generate a simple 4-character square seal (날인) PNG with a transparent
background — a red-bordered square with the 4 chars laid out 2x2 in reading
order (top-left, top-right, bottom-left, bottom-right). For users who don't have
a real signature/seal image. A proper signature should come from the user's own
transparent PNG (e.g. macOS Preview > Markup > Signature) — see SKILL.md.

  python3 make_seal.py --text "홍길동인" --out ~/.claw-hwp/seal.png
  python3 make_seal.py --name "홍길동" --out seal.png      # appends 印 → 홍길동印

Output: transparent RGBA PNG, square. Default ~600px (scale-independent — size
on the page is set when inserting via insert_image width_mm/height_mm).
"""
import argparse, sys, os

def find_font(size, bold=True):
    candidates = [
        "/System/Library/Fonts/Supplemental/AppleGothic.ttf",
        "/System/Library/Fonts/AppleSDGothicNeo.ttc",
        "/Library/Fonts/AppleGothic.ttf",
        "/usr/share/fonts/truetype/nanum/NanumGothicBold.ttf",
        "/usr/share/fonts/truetype/nanum/NanumGothic.ttf",
        "/System/Library/Fonts/Helvetica.ttc",
    ]
    from PIL import ImageFont
    for p in candidates:
        if os.path.exists(p):
            try:
                return ImageFont.truetype(p, size)
            except Exception:
                continue
    return ImageFont.load_default()

def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("--text", help="exactly 4 characters (e.g. 홍길동인)")
    ap.add_argument("--name", help="name; 印 is appended to make 4 chars (e.g. 홍길동 → 홍길동印)")
    ap.add_argument("--out", required=True)
    ap.add_argument("--px", type=int, default=600)
    ap.add_argument("--color", default="#C8102E")  # 인주(seal) red
    args = ap.parse_args()

    text = args.text
    if not text and args.name:
        nm = args.name.strip()
        text = (nm + "印") if len(nm) == 3 else (nm if len(nm) == 4 else (nm + "印"))
    if not text:
        print("error: need --text (4 chars) or --name", file=sys.stderr); sys.exit(1)
    chars = list(text)[:4]
    while len(chars) < 4:
        chars.append("印")

    from PIL import Image, ImageDraw
    S = args.px
    img = Image.new("RGBA", (S, S), (0, 0, 0, 0))  # transparent
    d = ImageDraw.Draw(img)
    red = args.color
    # square border (double line for a seal feel)
    bw = max(6, S // 40)
    m = S // 14
    d.rectangle([m, m, S - m, S - m], outline=red, width=bw)
    inset = m + bw + S // 28
    d.rectangle([inset, inset, S - inset, S - inset], outline=red, width=max(3, bw // 2))
    # 2x2 cells, reading order TL, TR, BL, BR
    pad = inset + S // 22
    cw = (S - 2 * pad) / 2
    cell_font = find_font(int(cw * 0.86))
    centers = [
        (pad + cw * 0.5, pad + cw * 0.5),  # TL
        (pad + cw * 1.5, pad + cw * 0.5),  # TR
        (pad + cw * 0.5, pad + cw * 1.5),  # BL
        (pad + cw * 1.5, pad + cw * 1.5),  # BR
    ]
    for ch, (cx, cy) in zip(chars, centers):
        bb = d.textbbox((0, 0), ch, font=cell_font)
        w, h = bb[2] - bb[0], bb[3] - bb[1]
        d.text((cx - w / 2 - bb[0], cy - h / 2 - bb[1]), ch, font=cell_font, fill=red)

    out = os.path.expanduser(args.out)
    os.makedirs(os.path.dirname(out) or ".", exist_ok=True)
    img.save(out)
    try:
        os.chmod(out, 0o600)
    except Exception:
        pass
    print('{"wrote": "%s", "chars": "%s", "px": %d, "transparent": true}' % (out, "".join(chars), S))

if __name__ == "__main__":
    main()
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall