Skip to content
cccskills
FreePublished on GitHub

web-design-analyzer

Analyze webpage screenshots to extract colors, typography, and component styles. Generate structured JSON describing reusable design rules and an AI coding prompt, or convert the results into brand styling for a presentation video.

OriginalShow the original description

网页与数字界面设计师和网页开发工程师在需要逆向分析网页截图时,使用本技能一键提取配色、排版及组件特征,自动生成结构化 Design System 数据与 AI Coding Prompt,让设计还原与前端开发更高效。

Works withOpenAI
See how to install

Good for

  • Extract design rules from a webpage screenshot
  • Prepare a coding prompt for a similar landing page
  • Export webpage styling for a presentation video

Files included (5)

  • SKILL.md4.7 KB
  • references/api-spec.md5.6 KB
  • references/roadshow-export-guide.md4.7 KB
  • scripts/analyze_design.py8.8 KB
  • scripts/convert_to_roadshow_style.py8.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Web Design Analyzer

任务目标

  • 本 Skill 用于:从网页截图中自动提取设计系统(Design System),包括色彩、排版、组件风格等核心要素
  • 能力包含:
    • 自动识别网页视觉风格(Vibe & Style)
    • 提取精确的色彩系统(Hex Code + Tailwind 类名)
    • 分析排版系统(字体类型、字重、行高)
    • 识别组件特征(圆角、阴影、边框)
    • 生成结构化 JSON 数据和可直接使用的 Coding Prompt
    • 导出为路演视频品牌风格配置(与 ppt-roadshow-generator 协同)
  • 触发条件:用户上传网页截图并要求分析其设计,或需要将网页设计风格应用于路演视频

前置准备

  • 依赖说明:scripts 脚本所需的依赖包及版本
    Pillow>=10.0.0
    
  • 非标准文件/文件夹准备:无

操作步骤

  • 标准流程:

    1. 接收图片

      • 用户上传网页截图(支持 PNG、JPG、JPEG 等常见格式)
      • 智能体确认图片文件路径
    2. 调用分析脚本

      • 智能体调用 scripts/analyze_design.py --image <图片文件路径> 执行分析
      • 脚本将自动调用 OpenAI GPT-4 Vision API 处理图片
      • 脚本返回结构化的分析结果
    3. 展示结果

      • 智能体展示 JSON 格式的设计系统数据
      • 智能体展示生成的 Coding Prompt
      • 智能体提供进一步操作建议(如:使用生成的 Prompt 创建 Landing Page)
  • 可选分支:

    • 当用户希望使用 Gemini API:提示当前版本仅支持 OpenAI,未来可能扩展
    • 当 API 调用失败:提供错误信息和可能的解决方案(如检查 API Key、图片格式等)

资源索引

注意事项

  • 仅在需要时读取参考,保持上下文简洁。
  • 确保用户上传的图片清晰度足够,以便准确提取设计细节。
  • 脚本会自动处理图片编码和 API 调用,无需手动干预。
  • 充分利用智能体的语言理解和展示能力,将 API 返回的结构化数据以友好的方式呈现给用户。

使用示例

示例 1:分析网页截图

  • 功能说明:上传一张网页截图,提取完整的设计系统
  • 执行方式:混合(用户上传 → 脚本分析 → 智能体展示)
  • 关键参数:图片文件路径
  • 简单示例:
    # 用户:请分析这张网页截图
    # 智能体调用脚本
    python scripts/analyze_design.py --image ./uploads/landing-page.png
    

示例 2:生成 Coding Prompt 后创建组件

  • 功能说明:先分析设计,然后使用生成的 Prompt 创建类似的 Landing Page
  • 执行方式:混合(脚本分析 → 智能体生成代码)
  • 关键要点:确保生成的 Coding Prompt 准确反映设计风格
  • 简单示例:
    # 用户:分析这个网页,然后用提取的设计规范创建一个 Hero Section
    # 智能体:
    # 1. 调用脚本分析图片
    # 2. 展示结果
    # 3. 使用生成的 Coding Prompt 指导代码生成
    

示例 3:导出为路演视频风格

  • 功能说明:将网页设计转换为路演视频可用的品牌风格配置
  • 执行方式:混合(脚本分析 → 转换脚本 → 导出配置)
  • 关键参数:设计系统 JSON 路径
  • 简单示例:
    # 用户:分析这个网页,然后导出为路演视频风格
    # 智能体:
    # 1. 调用 analyze_design.py 分析图片,生成 design_system.json
    # 2. 调用 convert_to_roadshow_style.py 转换,生成 brand_style.json
    # 3. 提示用户可以将 brand_style.json 用于路演视频生成
    

    1. 调用脚本分析图片

    2. 展示结果

    3. 使用生成的 Coding Prompt 指导代码生成

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

agent-team

FreeSummary

Organize AI agents into execution, management, and review roles for complex projects. Choose preset or custom teams, share project context and decisions, and combine their discussions and work into meeting records, feasibility reports, or implementation outputs.

  • Reviewing a technical architecture from several perspectives
  • Discussing product pricing across market and cost considerations
  • Assessing a new product's feasibility
anbeime/skill8.3KUpdated Oct 18, 2026

Generate character images, backgrounds, synthetic speech, and music for product videos featuring 小省导购员, a digital shopping presenter. Coordinate these assets with InfiniteTalk to produce a 25-second vertical video made from five scenes.

  • Producing a 25-second vertical product presentation video
  • Generating reference images for the 小省导购员 character
  • Creating business setting backgrounds for a video
anbeime/skill8.3KUpdated Oct 18, 2026

Convert PDF, Word, and Excel documents into structured Markdown for search and knowledge bases. The skill tries three parsers in sequence when needed and returns metadata, a confidence score, and the parser used.

  • Prepare documents for retrieval-augmented generation
  • Structure documents for an internal knowledge base
  • Extract structured text from contracts
anbeime/skill8.3KUpdated Oct 18, 2026

Organize parsed documents into four color-coded cards covering facts, explanations, risks, and actions. Preserve source references and generation details so readers can review evidence, identify uncertainty, and consider next steps in research, financial, or legal analysis.

  • Separating facts from interpretations in financial reports
  • Organizing evidence and risks in legal documents
  • Turning research documents into evidence-linked analysis cards
anbeime/skill8.3KUpdated Oct 18, 2026

Record operations across multiple AI agents and connect events into a traceable history. Search records by tracking ID, time window, or responsible component to support audits and investigations, with local storage available when the vector database fails.

  • Trace task dispatch and execution across agents
  • Search audit records by time or responsible component
  • Keep recording events during vector database failures
anbeime/skill8.3KUpdated Oct 18, 2026

Screen documents and external URLs before they enter a processing workflow. Check blocked domains and document permissions, then produce a pass or reject decision, a risk report, and a tracking ID for later review.

  • Screening documents before adding them to a knowledge base
  • Checking external URLs against a domain blocklist
  • Reviewing document permissions before processing
anbeime/skill8.3KUpdated Oct 18, 2026

See all skills by anbeime

Report a problem with this skill