跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

html-prototype

Direct-invocation specialist for polished, responsive, self-contained HTML mockups and interactive prototypes grounded in the user's conversation, product context, and design language. Use when the user explicitly invokes html-prototype or the broad html skill routes a mockup or prototype request here. Do not activate independently from a general request. Treat a mockup as a noninteractive fidelity mode within this skill, not as a separate skill.

AI 与智能体3.6kskills/html-prototype/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/plannotator/effective-html/html-prototype/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

HTML Prototype

Build a credible model of a product decision. Match the artifact to the user's context instead of applying a recurring house style. The goal is not to make every possible screen. The goal is to make the important visual or behavioral question testable.

Choose the fidelity mode

Use one of two modes:

  • Mockup: Create a polished, responsive, mostly static artifact when the open question is visual hierarchy, layout, typography, color, or product fit.
  • Prototype: Create a working flow when the open question is navigation, input, state change, feedback, recovery, or transition.

Do not create a separate html-mockup skill. Do not add behavior merely to make a mockup seem more complete. If a user asks for both modes, preserve the same content and structure so changes in fidelity remain easy to compare.

Derive the direction from context

Inspect the conversation, supplied references, and project before designing. Look for design-system documentation, tokens, existing components, product screenshots, and nearby artifacts.

Authority runs in this order:

  1. The user's explicit visual and functional instructions.
  2. The project's established design language and interaction conventions.
  3. The product, audience, content, and scenario.
  4. Your own design judgment.

Before coding, settle:

  • the user and critical job;
  • the bounded scenario under review;
  • mockup or prototype mode;
  • the source of the visual direction;
  • the relevant state model;
  • the point where the real product would take over.

When no design system exists, create a specific direction from the subject and use case. Do not default to a gradient, a dark dashboard, interchangeable cards, or decorative metrics. A prototype for a field tool, an editorial workflow, and a financial approval should not feel like the same product.

When design-artifact is available and the visual direction remains open, read and compose it with this skill. Use it to choose the register, palette, type, and composition; keep this skill authoritative for fidelity, state, and interaction completeness.

Scope one credible experience

Choose the smallest flow that can answer the review question. Use realistic, internally consistent names, dates, statuses, quantities, and copy.

  • Make navigation work for the modeled scope.
  • Implement forms with labels, validation, submission feedback, and sensible defaults.
  • Use dialogs only when interruption or confirmation is part of the scenario.
  • Use transitions to clarify continuity or state change, not as decoration.
  • Remove dead buttons. If an action belongs to the real system, explain the boundary instead of pretending it completed.

Model relevant states

List the states before building. Include the states that the chosen scenario can actually reach:

  • loading;
  • empty;
  • error;
  • success;
  • disabled;
  • mobile;
  • domain-specific states from the brief.

An asynchronous-looking prototype action should normally show loading, success, and failure or recovery. A collection should normally consider empty state. A gated action should show why it is disabled. Do not force irrelevant states into the main flow just to satisfy a checklist. Make omitted states explicit in the handoff.

Make interaction complete

  • Use native elements when they provide the right semantics.
  • Support the entire modeled flow with a keyboard.
  • Keep focus visible and place it deliberately after meaningful transitions.
  • Give dialogs an accessible name, contain focus, close on Escape, and restore focus to the trigger.
  • Associate form errors with their controls and announce important status changes.
  • Do not hide essential behavior behind hover.
  • Respect prefers-reduced-motion while preserving state feedback.
  • Make touch targets usable and prevent accidental page-level horizontal overflow.

In mockup mode, preserve semantic structure and visible focus styles even if the controls are not wired. Make the static review boundary clear.

Build contract

  • Deliver one self-contained .html file with essential CSS and JavaScript inline.
  • Require no build tooling, authentication, live API, or external service.
  • Use a responsive composition rather than shrinking a desktop canvas.
  • Keep design tokens small and specific to the chosen direction.
  • Use accessible contrast and more than color alone to communicate state.
  • Prefer depth and correctness in one flow over breadth across a fake product.

Verify and hand off

Test the artifact at wide desktop and narrow mobile widths. Exercise every modeled state and control. Test Tab, Shift+Tab, Enter, Space, arrow keys where appropriate, and Escape for dialogs. Check the console, page overflow, long content, disabled behavior, focus restoration, and reduced-motion mode.

Inspect computed foreground and background colors on every distinct surface, especially text that may inherit the body color inside a dark or tinted region. If browser tooling is unavailable, say which visual and interaction checks remain unverified instead of treating source inspection as a substitute.

Return the absolute file path, the fidelity mode, the scenario modeled, the states implemented, and the production behavior deliberately left out.

Further reading

Read Plannotator's HTML wireframes and prototypes for coding agents for guidance on moving from an approved structure to a mockup or working prototype.

相似的 Skill

brand-guidelines
anthropics/skills180k

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

AI 与智能体

internal-comms
anthropics/skills180k

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

AI 与智能体

template-skill
anthropics/skills180k

template-skill

Replace with description of the skill and when Claude should use it.

AI 与智能体

mcp-builder
anthropics/skills180k

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

AI 与智能体

algorithmic-art
anthropics/skills180k

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

AI 与智能体

academy-guide
anthropics/skills180k

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

AI 与智能体