agentsclimarketplace

Human aes expert

Skill WWIIITT/PortraitRetouch/skills/human-aes-expert

Analyzes portrait images across 12 aesthetic dimensions using Gemini Vision, then constructs precise non-destructive retouching prompts. Use when retouching portraits, enhancing facial features, improving skin tone, adjusting lighting, or cleaning up clothing wrinkles while preserving identity and background.From its SKILL.md

Install
npx -y skills add WWIIITT/PortraitRetouch --skill human-aes-expert

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.9 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

Portrait Retouch Skill

Intelligent portrait retouching that analyzes before editing — only fixes what's broken, preserves everything else.

When to Activate

  • User wants to retouch or enhance a portrait photo
  • User mentions "skin", "lighting", "wrinkles", "blemishes", "clothing fit"
  • User asks for "aesthetic analysis" or "portrait improvement"
  • User wants style transfer between portrait images

Architecture

Input Portrait ──► Gemini Analysis (12-Dim Scoring) ──► Aesthetic Score Report
                                                                │
                                                                ▼
Enhanced Portrait ◄── Gemini Image Edit ◄── Targeted Prompt (only low dimensions)

Core Principles

  1. Non-destructive: Never remove/add/relocate background objects unless explicitly requested
  2. Precision targeting: Only dimensions scoring below threshold get improvement prompts
  3. Identity preservation: Subject must remain recognizable as the same person
  4. Professional specificity: Name exact techniques ("fill light on face") not vague goals ("make it better")

The 12 Aesthetic Dimensions

DimensionWhat It MeasuresPriority
Facial Skin ToneSkin color naturalness, uniformity, color cast1.5x
Facial BrightnessFace illumination, shadow/highlight balance1.3x
OutfitClothing fit, wrinkle-free, visual coherence1.2x
EnvironmentBackground lighting consistency1.1x
Facial Feature ClaritySharpness of eyes, nose, lips, eyebrows1.0x
Facial AestheticOverall facial harmony and proportion0.95x
Facial Contour ClarityEdge sharpness of face outline0.9x
Overall AestheticHolistic image quality0.85x
LooksExpression engagement, eye contact0.8x
Facial StructureBone structure visibility, symmetry0.7x
General AppearanceGrooming, tidiness0.6x
CompositionSubject placement, headroom0.5x
Body ShapePosture quality, proportion in frame0.4x

Scoring Criteria

Scoring is STRICT — most casual photos score 5-7, only professional-grade gets 8+.

ScoreRatingAction
8-10ExcellentMinor refinements only
7GoodEnhancement recommended
5-6AcceptableTargeted improvement needed
0-4PoorPriority correction required

Prompt Construction Logic

  1. Score all 12 dimensions via Gemini vision analysis
  2. Filter dimensions below threshold (default: 7.0)
  3. Rank by priority weight (facial > body > environment)
  4. Map each low dimension to a specific improvement instruction
  5. Wrap in preservation rules that lock identity, pose, and background

Preservation Rules (Always Enforced)

  • Background objects: Never removed, added, or relocated
  • Identity: Face and recognizable features preserved exactly
  • Pose & body: Same body position, hand gestures, head/body angle
  • Clothing & accessories: Unchanged unless explicitly requested
  • Expression: Facial expression, eye gaze, smile must remain pixel-identical
  • No new dots: NEVER add any new black/dark dots, specks, points, acne, or marks on the face

Intensity Levels

LevelSkinFace ShapeEyes/LipsBody Skin
SubtleRemove obvious blemishes/acne (keep pores/texture)NO slimmingNO eye changesLight evening
ModerateSmooth wrinkles, even tone, remove temporary blemishes/acne (preserve natural skin texture)NO slimmingReduce eye bags, NO eye changesMUST match face
AggressiveStrongly smooth, clean skin, remove temporary blemishes/acne (still preserve some pore texture)NO slimmingRemove eye bags, NO eye changesIDENTICAL to face

All levels FORBID: Any face reshaping/slimming, over-brightening, expression changes, adding new black dots/moles/acne, making person unrecognizable, altering eyes/pupils/gaze.

Usage Modes

1. Auto-Enhance Mode

Analyzes all 12 dimensions, applies non-destructive enhancements to low-scoring areas.

2. Analysis-Only Mode

Returns aesthetic scores without applying changes. Useful for preview.

3. User-Guided Mode

User instructions integrated alongside auto improvements while respecting preservation rules.

Running the Server

cd /path/to/PortraitRetouch
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
python server.py

Server runs at http://127.0.0.1:8000

API Reference

See references/API.md for complete endpoint documentation.

Key Files

FilePurpose
src/agents/aesthetic_analyzer.py12-dimension scoring engine
src/agents/retouch_planner.pyPrompt construction with constraints
src/agents/interaction_memory.pyMulti-turn session memory
src/processors/face_local_retouch.pyHigh-resolution face region processing
src/prompts/system_prompts.pyAll system prompts and improvement maps

Example: Low Environment Score

If environment scores 5/10, the constructed prompt will say:

"Improve environmental lighting and color consistency: correct any color cast in the background, balance ambient lighting with facial lighting. Do NOT remove, add, or relocate any background objects."

It will NOT say "clean up background" — vague instructions cause destructive edits.

What ships with it: 1 file

4.6 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 326,422. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.