跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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

集成工具OpenAI
查看安装方法

适用场景

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

包含的文件(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(原文)

安装前可以查看交给 AI 代理的指令内容。

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 指导代码生成

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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/skill83412026年10月18日 更新

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/skill83412026年10月18日 更新

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/skill83412026年10月18日 更新

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/skill83412026年10月18日 更新

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/skill83412026年10月18日 更新

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/skill83412026年10月18日 更新

查看 anbeime 的全部技能

报告此技能的问题