name: clip-summarize description: Extracts the title from a clipboard dump file's YAML Front Matter, generates a date-prefixed slug, renames the file to slug.md, and summarizes it using article-summary-integrator. Use when given a clipboard dump file to summarize.
Clip Summarize
Purpose
Process a clipboard dump file: extract the title via a bundled script, generate a slug, rename the file, and produce a Japanese summary via article-summary-integrator.
Arguments
input_file(required): Path to the clipboard dump file (e.g.,_clip.tmp)
Workflow
- Extract title: Run
uv run skills/clip-summarize/scripts/extract_title.py [input_file]- On success: stdout contains the title; proceed
- On error: stderr contains the error message; report it and stop
- Get date: Run
date +%Y%m%d - Generate slug: Compress the title to 2 English lowercase words →
YYYYMMDD-xxx-yyy - Check for conflict: If
YYYYMMDD-xxx-yyy.mdalready exists, extend to 3 words →YYYYMMDD-xxx-yyy-zzz - Confirm with user: Show the proposed slug and ask for approval before proceeding
- Rename file: Run
mv [input_file] SLUG.md - Summarize: Use the
article-summary-integratorskill withinput_file=SLUG.md