visual-edit-precision – skill Thiết kế & UI cho agent AI
Dùng khi thực hiện thay đổi UI/frontend dựa trên ngữ cảnh trực quan, khi người dùng chọn phần tử trực tiếp, vẽ chú thích, hoặc gửi ảnh chụp màn hình kèm yêu cầu thay đổi. Cũng dùng khi chỉnh sửa component mà ngữ cảnh không gian (định danh phần tử, tham chiếu DOM, dữ liệu layout) bổ sung cho chỉ dẫn bằng văn bản.
Cài skill visual-edit-precision bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/visual-edit-precision-87c69.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /visual-edit-precision – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/visual-edit-precision-87c69.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $visual-edit-precision – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/visual-edit-precision-87c69.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /visual-edit-precision – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/visual-edit-precision-87c69.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /visual-edit-precision – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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
Skill liên quan
- expo-tailwind-setup – Thiết lập Tailwind CSS v4 trong Expo với react-native-css và NativeWind v5 để tạo kiểu…
- expo-ui – Xây dựng giao diện native với package @expo/ui: SwiftUI thật trên iOS và Jetpack Compose…
- expo-ui-jetpack-compose – Xây dựng giao diện Android native với Expo SDK 55 bằng Jetpack Compose views/modifiers…
- expo-ui-swift-ui – Xây dựng giao diện iOS native với Expo SDK 55 bằng SwiftUI views/modifiers, nhúng…
- web-component-design – Nắm vững các mẫu component của React, Vue và Svelte, bao gồm CSS-in-JS, chiến lược…
- fal-image-edit – Chỉnh sửa hình ảnh bằng AI với chuyển đổi phong cách và xóa đối tượng
- fal-upscale – Nâng độ phân giải và cải thiện chất lượng hình ảnh và video bằng AI
- favicon – Tạo favicon từ một ảnh nguồn