Community编程与开发github.com

lilei0311/pixel-gaze

像素级凝视 Pixel Gaze — 4层视觉理解法:让AI像人一样分层看图,不再扫一眼就下结论 | A 4-layer visual comprehension methodology for AI agents

pixel-gaze 是什么?

pixel-gaze is a Claude Code agent skill that 像素级凝视 Pixel Gaze — 4层视觉理解法:让AI像人一样分层看图,不再扫一眼就下结论 | A 4-layer visual comprehension methodology for AI agents.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add lilei0311/pixel-gaze

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Pixel Gaze — 4-Layer Visual Comprehension Methodology

Why This Skill is Needed

AI possesses the ability to recognize text and details in images, but a single glance often misses critical small text, numbers, or states. This skill uses a layered processing mechanism to allow AI to deeply understand images step by step, just as humans read, rather than "guessing at a glance."

Core Methodology: 4-Layer Processing Flow

Each time you analyze an image, strictly follow these 4 layers without skipping any.

Layer 1: Global Scan

First, establish an overall understanding of the image:

  • What type of content is this? (screenshot/photo/chart/UI interface/document/product image...)
  • How many areas are in the frame? What is the general function of each area?
  • What overall information is being conveyed?

At this step, do not require reading all text details. The focus is on building a global map.

Layer 2: Identify Precision-Sensitive Areas

Based on the overall understanding from Layer 1, determine which areas are worth a closer look — reading these wrong would lead to subsequent comprehension errors:

  • Numerical data: prices, time/countdowns, quantities, serial numbers, dates, amounts
  • Status/operation elements: button text, selection states, toggle states, warnings/error messages
  • Critical small text: labels, footnotes, version numbers, units, legend descriptions
  • Others: any text you deem crucial to answering the user's question but appears small or dense

Like a detective, flag areas where "if you misread this, the entire answer is useless."

Layer 3: Targeted Re-examination of Sensitive Areas

Do not rely on your impression of these areas from the global scan. Just as humans "lean in for a closer look":

  • Before answering, reconfirm the specific content in these sensitive areas
  • Do not directly use the vague impression from Layer 1 to answer
  • For numerical content, additionally perform a logic self-check:
    • Does this number align with the context logically? (currency symbol, digit count, unit)
    • If there are two possible readings, choose the one that makes more logical sense
    • If necessary, express doubts in your answer
  • For dense text areas (tables, multi-line descriptions), confirm line by line in sections to avoid missing lines in a single scan

Layer 4: Honest Output

  • Prioritize results after close reading over impressions from the global scan
  • If a section remains blurry or uncertain even after careful examination, directly state "this part is uncertain/blurry" — do not fabricate
  • The final answer should integrate overall understanding with key details
    • Do not just list details while losing the structure
    • Do not just describe the structure without key numbers

Quick Judgment Rules

The 4-layer flow of this skill applies to all scenarios requiring precise information extraction from images. However, not all images require equal depth of processing:

ScenarioProcessing Method
Need to read precise numbers/text/states from the imageMust fully complete all 4 layers
Agent-generated outputs (code rendered screenshots, UI pages, frontend pages)Must fully complete all 4 layers, prohibited from skipping just because "it looks fine"
Background atmosphere images, purely decorative images, display images without precision requirementsGlobal scan only, proceed to Layer 2 as needed

Special Warning: Judging "whether this image is simple" is itself an act of "jumping to conclusions at a glance." This is especially dangerous in agent frontend self-review scenarios — you might easily think "the page looks fine" and skip detailed inspection. For any image involving precision verification, never grant a fast pass.

Relationship with Built-in AI Vision Capabilities

This skill is a behavioral methodology layered on top of AI's existing vision capabilities, not a replacement for the model's own recognition abilities. It changes not "whether it can see clearly," but "how to look":

  • Any AI model with image input capability can use this skill
  • Different models have varying baseline text recognition abilities, but the 4-layer flow improves accuracy on all models
  • This skill does not rely on external APIs or OCR tools — it is purely prompt-driven, ready to use immediately

Use Cases

  • User sends an image requesting content identification, text or number reading
  • Comparing two images for differences
  • Analyzing UI state and form content in screenshots
  • Reading product packaging, labels, tickets, receipts
  • Agent frontend self-review: Checking the rendered output of one's own generated pages (this is the skill's most powerful use case)
  • Any task requiring precise information extraction from images

Important Notes

  • Core principle: Better to say you can't read clearly than to fabricate a seemingly plausible answer
  • This skill is a behavioral methodology, independent of external APIs or tools
  • Suitable for all AI agents with visual comprehension capabilities
  • Complete examples are available in the references/ directory:
    • case-agent-self-review.md: Agent frontend self-review scenario (primary case)
    • case-product-label.md: Reading product labels scenario (classic case)

相关技能