Visual Edit Precision

by wshobson46891e7e60daNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Use when making UI/frontend changes guided by visual context, when the user selects elements visually, draws annotations, or provides screenshots alongside change requests. Also use when editing components where spatial context (element identity, DOM references, layout data) supplements text instructions.

Instructions onlySoftware Development
AI-generated overview

Guides minimal, targeted UI/frontend edits when visual context such as element selections, annotations or screenshots is provided.

What it does
This skill provides a process for making UI and frontend changes that are guided by visual context, such as a selected element, a drawn annotation or a screenshot. It walks through identifying the exact element and owning component file, scoping the change to only what was indicated, preserving existing styles and behavior, making the minimal CSS or markup edit, and verifying the result. It also covers handling multiple simultaneous visual edits and lists common mistakes to avoid.
When to use it
Use it when a change request comes with visual context, for example when the user selects elements visually, draws annotations, or supplies screenshots alongside the requested change. It also applies when editing components where spatial context such as element identity, DOM references or layout data supplements text instructions.
Requirements
No scripts or tools are required; it is an instructions-only skill. It assumes the agent can access the relevant component files and visual context.

Visual Edit Precision

Overview

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.

Process

When visual context is provided:

  1. IDENTIFY - What exact element(s) were indicated? Which component file owns them?
  2. SCOPE - Change ONLY what was pointed at. Don't refactor surrounding code.
  3. PRESERVE - Keep existing styles, classes, and behavior. Only modify what was asked.
  4. TARGETED - Make the minimal CSS/markup change that achieves the visual result.
  5. VERIFY - Confirm the change renders correctly without side effects.

Key Principles

Precision Over Ambition

Visual context gives a SPECIFIC element. Don't:

  • Refactor the entire component when only one style was requested
  • Change the component's API when only its appearance was pointed at
  • Touch logic when only visuals were selected

Do:

  • Find the exact file and line for the selected element
  • Make the minimal edit that achieves the described visual change
  • Preserve all existing behavior, event handlers, accessibility

Multiple Edits

When multiple visual edits arrive:

  • Each targets its own element independently
  • Don't wait for one to finish before processing another
  • If two edits conflict (same element, different requests), handle the most recent

Common Mistakes

  • Rewriting an entire component when the user pointed at one button
  • Changing global config when only one element's color needs adjusting
  • Breaking responsive behavior by adding fixed widths to match a selection
  • Ignoring specificity (user indicated ONE card, agent changed ALL cards)
  • Removing accessibility attributes (aria-*, role, tabindex) during visual edits

Source and attribution

Source:wshobson/agentsinplugins/skill-forge-essentials/skills/visual-edit-precisionat commit46891e7

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal