upscale
Skill2 starsChanged 4 months agoMITView on GitHub
Upscale raster images with a local OpenCV EDSR super-resolution model, then produce an exact target pixel size. Use when the user asks to upscale, enlarge, super-resolve, make a higher-resolution version, or create a wallpaper/print-size raster from an existing image while preserving the original artwork.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- guaardvark/guaardvarktheir own version, first seen Nov 5, 2026
- menot-you/n-soultheir own version, first seen Nov 1, 2026
- zrong/skillstheir own version, first seen Oct 29, 2026
- LL4nc33/code-workspace-enginetheir own version, first seen Apr 21, 2026
- stephenpadgett1/video-generatortheir own version, first seen Jan 28, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- guaardvark/guaardvark★ 306same name
- zrong/skills★ 13same name
- LL4nc33/code-workspace-engine★ 0same name
- menot-you/n-soul★ 0same name
- stephenpadgett1/video-generator★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auto-merge-dependabotSkill
- best-ofSkill
- codestorySkill
- codex-2nd-opinionSkill
- cpSkill
- extract-design-systemSkill
- investigateSkill
- is-skillSkill
- pm-autofix-prSkill
- pm-crSkill
- pm-deepenSkill
- pm-planSkill
- pm-riskSkill
- pm-simplifySkill
- pm-triageSkill
- rebase-prSkill
- review-offlineSkill
- vibeSkill
- wigoSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Create a real local super-resolution upscale from an existing raster image.
- Distinctive: line 16
If the user gives dimensions, use them exactly.
- Very specific: line 17
If they give only a multiplier, use --factor.
- Very specific: line 18
If the requested aspect ratio differs from the source, choose --fit stretch only when exact full-frame dimensions matter and the mismatch …
- Distinctive: line 19
Run the bundled script:
- Distinctive: line 32
Verify the final file:
- Very specific: line 44
Default model selection is auto: it chooses the smallest EDSR scale (x2, x3, or x4) that exceeds the requested target dimensions before …
- Distinctive: line 50
Do not call a plain ImageMagick resize a real upscale.
- Distinctive: line 51
Do not silently trust requested dimensions.
- Distinctive: line 52
If a faster model or Real-ESRGAN introduces block/tile artifacts, reject that output and keep the cleaner EDSR result.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Upscale
Create a real local super-resolution upscale from an existing raster image. Prefer this over image generation when the user wants the same image at a larger, verified pixel size.
Workflow
- Identify the source image path. If the image was attached in the current conversation, use the local image path from the session context.
- Pick the exact output size:
- If the user gives dimensions, use them exactly.
- If they give only a multiplier, use
--factor. - If the requested aspect ratio differs from the source, choose
--fit stretchonly when exact full-frame dimensions matter and the mismatch is small. Use--fit coverto preserve aspect by cropping, or--fit containto preserve aspect by padding.
- Run the bundled script:
uv run "/path/to/upscale/scripts/upscale_image.py" \
"/path/to/source.png" \
--size 5120x2160 \
--output "/path/to/output.png" \
--fit stretch \
--keep-rawResolve /path/to/upscale relative to this skill directory. If uv is unavailable, create a temporary Python venv, install opencv-contrib-python-headless pillow numpy, and run the script with that venv's Python.
- Verify the final file:
magick identify -format '%f %wx%h %[colorspace] %[channels]\n' "/path/to/output.png"
file "/path/to/output.png"Report the final path and the verified dimensions. If --keep-raw was used, mention the raw EDSR output path when useful.
Script Notes
- The script downloads EDSR
.pbmodels into~/.cache/codex-upscale/models/on first use. - Default model selection is
auto: it chooses the smallest EDSR scale (x2,x3, orx4) that exceeds the requested target dimensions before final resizing. - It processes large images in overlapping tiles to avoid huge memory spikes and reduce visible tile seams.
- The previous RR880 workflow used OpenCV
dnn_superreswithEDSR_x3, wrote a raw SR image, then resized to exactly5120x2160.
Quality Rules
- Do not call a plain ImageMagick resize a real upscale. Use the EDSR script first, then resize to exact dimensions.
- Do not silently trust requested dimensions. Always inspect the generated file after writing it.
- If a faster model or Real-ESRGAN introduces block/tile artifacts, reject that output and keep the cleaner EDSR result.
- Preserve the source file; write outputs to a new path.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

