.claude/skills/waifu2x/SKILL.md
--- name: waifu2x description: Upscale images using waifu2x-ncnn-vulkan with configurable scale, noise, model, format, and tile size argument-hint: [-default] [image-path-or-folder] allowed-tools: Bash, Read, Glob --- # Upscale Image(s) with waifu2x You are helping the user upscale one or more images using `waifu2x-ncnn-vulkan`. The input can be a single image file or a folder containing images. ## Step 0: Check for default flag Check if `$ARGUMENTS` contains `-d` or `--default`. If it does,
npx skillsauth add eryet/claude-skill-collection .claude/skills/waifu2xInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are helping the user upscale one or more images using waifu2x-ncnn-vulkan. The input can be a single image file or a folder containing images.
Check if $ARGUMENTS contains -d or --default. If it does, enable quick mode: skip all prompts and use default settings (scale=2, noise=2, model=cunet, format=png, tile=0). Remove the -d/--default flag from the arguments before proceeding — any remaining text is treated as the image/folder path.
Determine the input path using the following priority:
$ARGUMENTS: If provided (after removing any flags), use that as the input path.[Image: source: <path>] — extract the file path from that.After resolving the path, check whether it is a file or a directory:
*.{png,jpg,jpeg,webp,bmp,tga} (non-recursive — only the top level of the folder). Skip any files that already have _waifu2x_ in their name to avoid re-processing previous outputs. If no images are found, tell the user and stop. Otherwise, proceed with batch mode (multiple images to process).If quick mode is enabled (from Step 0), skip this step entirely.
Otherwise, first ask the user whether they want to use default settings or customize. Use AskUserQuestion with a single question:
If the user picks Use defaults, skip straight to Step 3 with the default values.
If the user picks Customize settings, present the following options using AskUserQuestion:
models-cunet (default, best quality), models-upconv_7_anime_style_art_rgb (fast, anime), or models-upconv_7_photo (fast, photos)png (default), jpg, or webpCheck if a memory file exists at the project memory directory that stores the waifu2x executable path. Look for a memory file about the waifu2x path (e.g., reference_waifu2x_path.md).
waifu2x-ncnn-vulkan directly first. If that fails (command not found), ask the user where waifu2x-ncnn-vulkan.exe is located.Construct each output filename as: <original-name>_waifu2x_<scale>x.<format>
For example: photo.png with scale 2 and png format becomes photo_waifu2x_2x.png
Place each output file in the same directory as its input file.
Run the command once:
<waifu2x-path> -i "<input-path>" -o "<output-path>" -s <scale> -n <noise> -m "<model-path>" -f <format> -t <tile-size>
Process each image in the folder sequentially. For each image, run:
<waifu2x-path> -i "<input-path>" -o "<output-path>" -s <scale> -n <noise> -m "<model-path>" -f <format> -t <tile-size>
Print a progress line for each image as it completes (e.g., [1/5] Done: image1.png). If a single image fails, log the error and continue with the remaining images — do not stop the entire batch.
Use the resolved executable path from Step 3. When using a full path, also pass the model directory as a full path relative to the executable's folder.
After all processing completes:
ls -lh on the output)content-media
Generate SVG Color Palette
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------