Visual Edit Precision

Visual Edit Precision

Makes the AI apply minimal, targeted UI edits when guided by visual selections, annotations or screenshots, preserving all other styles and behaviour.

Skill files1 file
SKILL.md54 lines
1
---
2
name: visual-edit-precision
3
description: >-
4
Use when making UI/frontend changes guided by visual context, when the user
5
selects elements visually, draws annotations, or provides screenshots alongside
6
change requests. Also use when editing components where spatial context
7
(element identity, DOM references, layout data) supplements text instructions.
8
---
9
10
# Visual Edit Precision
11
12
## Overview
13
14
When visual context accompanies a change request (element selections, annotations, screenshots), make targeted, minimal edits. Precision over ambition: change exactly what was indicated, preserve everything else.
15
16
## Process
17
18
When visual context is provided:
19
20
1. **IDENTIFY** - What exact element(s) were indicated? Which component file owns them?
21
2. **SCOPE** - Change ONLY what was pointed at. Don't refactor surrounding code.
22
3. **PRESERVE** - Keep existing styles, classes, and behavior. Only modify what was asked.
23
4. **TARGETED** - Make the minimal CSS/markup change that achieves the visual result.
24
5. **VERIFY** - Confirm the change renders correctly without side effects.
25
26
## Key Principles
27
28
### Precision Over Ambition
29
30
Visual context gives a SPECIFIC element. Don't:
31
- Refactor the entire component when only one style was requested
32
- Change the component's API when only its appearance was pointed at
33
- Touch logic when only visuals were selected
34
35
Do:
36
- Find the exact file and line for the selected element
37
- Make the minimal edit that achieves the described visual change
38
- Preserve all existing behavior, event handlers, accessibility
39
40
### Multiple Edits
41
42
When multiple visual edits arrive:
43
- Each targets its own element independently
44
- Don't wait for one to finish before processing another
45
- If two edits conflict (same element, different requests), handle the most recent
46
47
## Common Mistakes
48
49
- Rewriting an entire component when the user pointed at one button
50
- Changing global config when only one element's color needs adjusting
51
- Breaking responsive behavior by adding fixed widths to match a selection
52
- Ignoring specificity (user indicated ONE card, agent changed ALL cards)
53
- Removing accessibility attributes (aria-*, role, tabindex) during visual edits
54

© Adit Jain · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…