Img To Frontend 标志

Img To Frontend

社区热门
am-will
img-to-frontend

当用户希望直接根据图片,为任何类型的网站或网页完成从头到尾的高端视觉设计流程时使用。

Add to TypingMind

概览

发布者am-will
代码仓库codex-skills
技能名称img-to-frontend
星标数
1K
复刻数
60
附带文件
2
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 am-will 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Img To Frontend AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/am-will/codex-skills/tree/main/skills/img-to-frontend
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/am-will/codex-skills.git /tmp/codex-skills
mkdir -p .claude/skills
cp -r /tmp/codex-skills/skills/img-to-frontend .claude/skills/img-to-frontend
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Img To Frontend,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Img To Frontend。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Img To Frontend 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Img to Frontend

Overview

Use this skill to run an image-first design-to-code workflow for visually appealing awwward winning websites. It must adapt to the user's brief, audience, content model, interaction needs, and brand intent rather than forcing a fixed category or visual trope.

The workflow is intentionally staged:

  1. Invoke $imagegen to create four distinct website/page design images.
  2. Stop so the user can select the image or images to use as the design reference.
  3. Translate only the selected image into a precise implementation prompt.
  4. Build the real page and iterate against screenshots until structure, hierarchy, typography, spacing, color, media treatment, component geometry, interactions, and responsive behavior are close to the reference.

Load references/visual-iteration-checklist.md for design variety, implementation, close visual replication, premium website work, complex UI sections, or repeated visual refinement.

When To Use

Use this skill when the user asks to:

  • Create several distinct website or page concepts before coding.
  • Turn an image or generated design into a real frontend page.
  • Produce a detailed prompt another coding agent can use to build a design.
  • Replicate a screenshot as real HTML/CSS/React rather than as an image.
  • Iterate on visual details like spacing, scale, typography, media treatment, visual systems, component alignment, interaction states, or responsive breakpoints.

Do not use this skill for ordinary business-logic changes, backend features, simple copy edits, or design critique that will not lead to generated images, a detailed implementation prompt, or frontend code.

Non-Negotiable Image Gate

The first deliverable is always four generated images. Do not jump straight to text prompts, implementation prompts, or code.

Required behavior:

  • Load and use the $imagegen skill for phase 1.
  • Generate four unique website/page images with the built-in image generation tool by default.
  • Make one image-generation call per concept unless the image tool supports equivalent multi-output generation in the current environment.
  • Render or present all four images to the user, one at a time.
  • Stop after presenting the images and ask which one the user wants to explore.
  • Do not write the detailed build prompt until the user selects a specific image.
  • Do not implement frontend code until the selected-image prompt phase is complete or the user explicitly skips it.

If image generation is unavailable or fails, report that blocker and ask whether the user wants text-only fallbacks. Do not silently substitute text briefs for the image stage.

Core Workflow

1. Design Exploration

Start by identifying the site context, audience, goal, style constraints, viewport, and must-have sections. If the user already gave enough context, do not pause for more input.

Generate four distinct website/page images through $imagegen. Each image must have its own visual language, not minor palette swaps. Vary structure, hierarchy, typography strategy, interaction model, information architecture, content emphasis, density, and brand behavior.

Choose directions that fit the site's purpose and audience. Different website types should develop from their own communication needs, not from a shared default template.

Use ui-mockup as the image-generation use case unless the user asks for a different raster style. The images should be polished enough for the user to choose between real visual directions, not rough wireframes.

For each direction, briefly label:

  • Overall art direction and emotional tone.
  • Page layout and content hierarchy.
  • Typography treatment and scale relationship.
  • Color palette with exact roles.
  • Visual centerpiece appropriate to the site's purpose, content, and user task.
  • Credibility, context, or trust treatment when relevant.
  • Motion idea, if appropriate.
  • What makes it meaningfully different from the other three.

2. Selection Pause

After the four images are created, stop and wait for the user to pick one or request revisions. Do not write the detailed build prompt and do not begin implementation until the user selects an image or explicitly asks to skip selection.

When the user references a selected image, verify which image they mean from the conversation context. If there is ambiguity, ask a short clarification before writing the prompt or coding.

3. Deep Build Prompt

Before coding, convert the selected image into a granular implementation prompt. The prompt should be specific enough that another frontend agent can build a near exact replica without guessing.

Include:

  • Canvas and viewport assumptions, including desktop target size and responsive requirements.
  • Exact page structure, grid proportions, maximum widths, gutters, and alignment rules.
  • Typography hierarchy, font choices, letter spacing, line-height, weights, italics, uppercase treatments, and no-wrap constraints.
  • Color tokens for background, surfaces, borders, primary accents, muted text, active states, status states, shadows, and media treatments.
  • Component inventory covering only the modules that actually appear in the selected design, described by their role, hierarchy, layout behavior, and content type.
  • Detailed behavior for any complex visual systems present in the selected image, including their structure, anchors, scale rules, states, responsive behavior, and fallback behavior.
  • Animation rules that are restrained and purposeful.
  • Explicit "do not" constraints that prevent fake implementation, generic styling, broken geometry, unreadable content, and overlapping responsive modules.
  • Acceptance criteria and screenshot comparison checklist.

4. Codebase Discovery

Inspect the project before editing. Determine the framework, routing model, styling system, package manager, existing design tokens, component patterns, image/font handling, lint/test/build commands, and primary codepath.

Respect existing architecture and design-system conventions. If the user is asking about library or framework docs, use the appropriate documentation skill before relying on memory.

If a reference image includes browser chrome, operating system UI, or mock browser decorations, treat that chrome as presentation context only. Build the actual page content, not the browser wrapper, unless the user explicitly asks for a browser mockup component.

5. Implementation

Build the selected design as real UI code.

Requirements:

  • Use semantic structure and accessible interactive elements.
  • Define design tokens for colors, spacing, typography, borders, shadows, media treatment, and breakpoints.
  • Prefer real CSS/SVG/HTML for visual marks, controls, structured visuals, content modules, and other interface details.
  • Do not flatten the design into a static image.
  • If the design includes linked, anchored, or spatially related elements, keep them in a shared coordinate or layout system so they resize together.
  • Use responsive layout rules that shrink complex UI first, then stack or simplify before overlap.
  • Preserve premium whitespace while avoiding unusable dead zones on large monitors.
  • Keep copy readable and avoid truncation unless the design explicitly calls for it.
  • Add only meaningful motion: page-load reveals, subtle hover states, media transitions, scroll reveals, or interface ambience when it supports the design.

6. Visual Iteration Loop

Run the page locally and capture screenshots at the reference viewport plus at least one wide desktop, one constrained desktop/tablet, and one mobile width when feasible.

Loop until the implementation has no obvious visual mismatch:

  1. Compare the screenshot against the selected reference image.
  2. Identify the largest visible mismatch first: composition, scale, alignment, typography, spacing, color, imagery, component geometry, complex-widget behavior, or responsive behavior.
  3. Patch the implementation.
  4. Re-run the page and capture a new screenshot.
  5. Repeat until additional changes are minor refinements rather than structural corrections.

Pay special attention to failures that commonly appear in screenshot replication:

  • Content is bunched together because component scale is too large.
  • Large monitors have excessive deadspace because the layout max-width is too narrow.
  • Orientation elements are offset from the main content system.
  • First-read text elements do not share the alignment, rhythm, or hierarchy shown in the reference.
  • Action labels wrap, icons drift, or control geometry breaks.
  • Repeated content, media, input, or trust modules collide with adjacent sections.
  • Dense component labels truncate because internal spacing is too tight.
  • Anchored or connected visual elements separate from the objects they are meant to describe.
  • Complex widgets overlap before the layout stacks or simplifies.
  • Mobile layout waits too long to stack.

Ensure the accuracy of your final output, especially before yielding back to the user. The mock generated image and the final output should look nearly identical. Focus on the details and precision.

7. Verification And Closeout

Run the most relevant checks available for the project: lint, typecheck, build, unit tests, and visual browser verification. If a check cannot run, state why.

Final response should include:

  • What was built or changed.
  • Files changed.
  • Verification commands and results.
  • Any residual visual risks, especially if screenshot comparison was limited by tooling or missing references.

Quality Bar

The output should feel like a premium website, not a generated template. Favor confident hierarchy, intentional palette, sharp spacing, precise alignment, brief-appropriate content modules, and a single strong visual thesis.

When matching a reference, optimize for visible fidelity over code cleverness. Typography, spacing, alignment, imagery, component geometry, and responsive behavior are first-class deliverables, not polish.

When the user says something looks wrong, treat it as direct visual evidence. Inspect the current implementation and reference, then patch the specific mismatch rather than explaining it away.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Img To Frontend AI 技能有什么作用?

当用户希望直接根据图片,为任何类型的网站或网页完成从头到尾的高端视觉设计流程时使用。

为什么在 TypingMind 中使用 Img To Frontend?

因为您只需安装一次,就能搭配任何模型使用。Img To Frontend 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Img To Frontend?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/am-will/codex-skills/tree/main/skills/img-to-frontend。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Img To Frontend?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Img To Frontend 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Img To Frontend 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Img To Frontend AI 技能免费吗?

am-will 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇