agentation
1
总安装量
1
周安装量
#42759
全站排名
安装命令
npx skills add https://github.com/jtapias92672/onedrive_1_1-19-2026-2 --skill agentation
Agent 安装分布
openclaw
1
Skill 文档
Agentation
Translate visual UI feedback into precise code references.
Core Concept
Humans think visually: “Fix THAT button” Machines need coordinates: “Button at .header > .nav-btn:nth-child(2)”
Agentation bridges this gap.
When to Use
- User provides visual feedback (screenshots with annotations)
- User references specific UI elements
- Need to locate exact code for a visual element
- Debugging visual/layout issues
- Implementing pixel-perfect changes
How It Works
Input: Visual Reference
User provides:
- Screenshot with highlighted element
- Description: “The blue button in the header”
- Coordinates or selector if available
Process: Element Identification
-
Parse Visual Context
Element: Button Location: Header, right side Visual: Blue background, white text Approximate position: top-right quadrant -
Generate Selector Candidates
/* By class */ .header .btn-primary .nav-button.blue /* By structure */ header > nav > button:last-child /* By attributes */ button[data-action="submit"] -
Search Codebase
# Find by class name grep -r "btn-primary" --include="*.tsx" --include="*.css" # Find by component name grep -r "HeaderButton" --include="*.tsx"
Output: Code Location
## Element Found
**Visual**: Blue button in header
**Selector**: `.header-nav .btn-primary`
**File**: `src/components/Header.tsx:45`
**Code**:
```tsx
<button className="btn-primary" onClick={handleSubmit}>
Submit
</button>
Annotation Format
When receiving visual feedback, parse:
## Visual Feedback
**Element**: [What the user pointed to]
**Location**: [Where on screen]
**Issue**: [What's wrong / what to change]
**Selectors**: [CSS selectors to find it]
- Primary: [most specific selector]
- Fallback: [alternative selector]
**Files to Check**:
- [likely file 1]
- [likely file 2]
Selector Strategies
By Visual Characteristics
| Visual Cue | Selector Strategy |
|---|---|
| “Blue button” | button.blue, button.btn-primary |
| “In the header” | header *, .header * |
| “Third item” | :nth-child(3) |
| “The sidebar” | aside, .sidebar, [role="complementary"] |
By Position
| Position | Likely Selectors |
|---|---|
| Top-left | header, .logo, .brand |
| Top-right | .nav, .auth-buttons, .user-menu |
| Center | main, .content, .hero |
| Bottom | footer, .footer |
By Component Type
| Type | Common Patterns |
|---|---|
| Button | button, .btn, [type="submit"] |
| Input | input, .form-control, .input |
| Card | .card, .panel, .box |
| Modal | .modal, .dialog, [role="dialog"] |
Integration with Code Search
After identifying selectors:
# Find component definition
grep -r "className.*header-nav" src/
# Find style definition
grep -r ".header-nav" --include="*.css" --include="*.scss"
# Find test references
grep -r "header-nav" --include="*.test.*"
Feedback Loop
- User points: “This button is wrong”
- Identify: Parse visual â selector â file location
- Confirm: “Is this the element you mean?” [show code]
- Fix: Make the requested change
- Verify: “Does this look correct now?”
Common Visual-to-Code Mappings
"The logo" â .logo, .brand, header img
"Navigation" â nav, .navbar, .nav-menu
"Search bar" â input[type="search"], .search-input
"User avatar" â .avatar, .user-image, .profile-pic
"Dropdown" â .dropdown, select, [role="listbox"]
"Modal/popup" â .modal, .dialog, [role="dialog"]
"Loading spinner" â .spinner, .loading, .loader
"Error message" â .error, .alert-danger, [role="alert"]