image-clarity-enhancement

Evaluate pet image sharpness and enhance blurry photos with Real-ESRGAN.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/worm-13/pet-design-agent --skill image-clarity-enhancement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-clarity-enhancement
Source: https://github.com/worm-13/pet-design-agent/tree/main/.cursor/skills/image-clarity-enhancement
Command: npx skills add https://github.com/worm-13/pet-design-agent --skill image-clarity-enhancement

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill checks the clarity of a pet image and, when the quality is below a defined threshold, enhances it using Real-ESRGAN to deliver a sharper, more usable photo for downstream design workflows.

Core Features & Use Cases

  • Automatic clarity assessment using a blur score to decide if enhancement is needed.
  • Quality enhancement by invoking the Real-ESRGAN model to improve resolution and reduce blur for pet photographs.
  • Use Case: You have a blurry pet image; run this skill to obtain an enhanced image suitable for cropping, matting, or template application.

Quick Start

Run the clarity check on the input image and generate an enhanced_image path by applying Real-ESRGAN when the quality is below the threshold.

Frequently Asked Questions about image-clarity-enhancement

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enhance a blurry pet image using AI upscaling?

Pet image clarity enhancement uses a Laplacian-based blur score to evaluate sharpness, then automatically applies Real-ESRGAN to upscale and sharpen photos when quality falls below a defined threshold.

Do I need a Replicate API token to run AI image enhancement?

Yes, AI image enhancement requires the REPLICATE_API_TOKEN environment variable to authenticate and invoke the nightmareai/real-esrgan model for processing your pet photos.

Can I use this AI image enhancement skill for non-pet photos?

While designed for pet image clarity enhancement, the underlying Real-ESRGAN upscaling and Laplacian blur score logic can technically evaluate and enhance sharpness for any provided photo.

What is the best way to automatically check image sharpness before upscaling?

Automatic image sharpness checking uses a Laplacian-based blur score to evaluate photo quality, triggering Real-ESRGAN enhancement only when the image clarity falls below a defined threshold.

Why does my pet image enhancement workflow require a blur score threshold?

A blur score threshold prevents unnecessary AI upscaling by evaluating pet image sharpness first, ensuring Real-ESRGAN only processes photos that genuinely require clarity enhancement.

How do I integrate enhanced pet images into a matting or design composition workflow?

Enhanced pet images are output as file paths, allowing you to directly pass the upscaled Real-ESRGAN results into downstream design workflows such as cropping, matting, or template composition.