本文へスキップ
Skillpedia
インターフェース(UI/UX)41k · #6790

visual-edit-precision

できること

このツールは、画像で指し示したものや表示されたものに正確に従って、ウェブサイトやアプリに小さな変更を加えるのに役立ちます。必要な部分だけを変更し、他の部分は変えないようにします。

使う場面

  • ✓ボタンを指し示して、その色を変えたいとき。
  • ✓ウェブサイトの一部をどのように見せたいかを示す画像を送るとき。
  • ✓要素の上に矢印を描いて、変更箇所を示すとき。

スキルのリンク

https://github.com/wshobson/agents/blob/main/plugins/skill-forge-essentials/skills/visual-edit-precision/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/wshobson/agents/blob/main/plugins/skill-forge-essentials/skills/visual-edit-precision/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“この画像のとおりに、このボタンの色を青に変えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIは、あなたが選択または描いたものを正確に特定します。該当するコードを見つけ、他の部分には手を加えずに、目的を達成するための最小限の変更を加えます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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
よくある質問

一度にたくさんのことを変更するように頼んだらどうなりますか?

AIは各依頼を個別に処理します。同じものに対する依頼が2つある場合は、最新のものを採用します。

依頼された以上のことを変更しないことが重要なのはなぜですか?

依頼された部分だけを変更することで、すでに正しく動いている他の部分が壊れるのを防げます。

1か所を指し示しただけで、AIはコード全体を変更しますか?

いいえ。指定された要素に対応するコードだけを変更し、それ以外はそのまま残します。

詳細

作者による元の説明

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.

repo: wshobson/agents

人気

GitHubのスター
41k
ランキング
#6790
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル