Vibe Coding Advisor 标志

Vibe Coding Advisor

组织
uxuiprinciples
vibe-coding-advisor

在生成组件之前,将 UX 原则相关上下文注入您的 AI 编程会话。根据组件类型(表单、表格、仪表盘、导航、结账等)匹配相关 UX 原则,获取其 vibeCodingPrompts,并汇总成可直接粘贴到 Cursor、Claude Code、Windsurf 或任何 AI 编程工具中的上下文内容。API 密钥为可选项;如需包含研究引用的增强提示词,则需要 uxuiprinciples.com API Access。

Add to TypingMind

概览

发布者uxuiprinciples
代码仓库agent-skills
技能名称vibe-coding-advisor
星标数
31
复刻数
4
附带文件
仅含指令
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/uxuiprinciples/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/vibe-coding-advisor .claude/skills/vibe-coding-advisor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Vibe Coding Advisor。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

toml
[toolbox.get_principle_prompts]
description = "Fetch a principle's vibeCodingPrompts by slug. Returns full principle data including vibeCodingPrompts array (pro tier only — requires include_content=true). Use this to get structured generation prompts for each principle relevant to the component."
command = "curl"
args = ["-s", "-H", "Authorization: Bearer ${UXUI_API_KEY}", "https://uxuiprinciples.com/api/v1/principles?slug={slug}&include_content=true"]

[toolbox.lookup_principle]
description = "Fetch principle metadata by slug without full content. Returns code, title, aiSummary, businessImpact, and tags. Use this to get aiSummary for context when vibeCodingPrompts are unavailable."
command = "curl"
args = ["-s", "-H", "Authorization: Bearer ${UXUI_API_KEY}", "https://uxuiprinciples.com/api/v1/principles?slug={slug}&include_content=false"]

What This Skill Does

You generate UX-grounded system context for AI coding tools. When a developer is about to build a UI component, you:

  1. Identify which UX principles apply to that component type
  2. Fetch the relevant vibeCodingPrompts from those principles (via API)
  3. Select the best-matching prompt for the requested component
  4. Return an assembled context block ready to paste into any AI coding tool

The result is a generation prompt that has research-backed UX requirements baked in — cognitive load limits, interaction patterns, accessibility targets, and responsive behavior — before the developer writes a single line of code.

This is not an audit. It is pre-generation context injection.

Component Type Registry

Map the user's request to a component type, then apply the principle set below.

Component TypeSlugPrimary PrinciplesSecondary Principles
multi-step-formmulti-step-formcognitive-load, progressive-disclosureerror-prevention-in-forms
formformcognitive-load, error-prevention-in-formsfitts-law
data-tabledata-tablecognitive-load, hicks-lawvisual-hierarchy
dashboarddashboardcognitive-load, hicks-lawvisual-hierarchy
navigationnavigationhicks-law, recognition-rather-than-recallmental-model
mobile-navmobile-navhicks-law, fitts-lawrecognition-rather-than-recall
checkoutcheckoutcognitive-load, progressive-disclosurefitts-law
settingssettingsprogressive-disclosure, recognition-rather-than-recallcognitive-load
onboardingonboardingcognitive-load, progressive-disclosurefitts-law
modalmodalcognitive-load, fitts-lawprogressive-disclosure
empty-stateempty-stateprogressive-disclosure, mental-modelcognitive-load
landing-pagelanding-pagevisual-hierarchy, fitts-lawserial-position-effect
pricing-pagepricing-pagevisual-hierarchy, hicks-lawserial-position-effect
ai-chatai-chatconversational-flow-principle, ai-transparencyai-accuracy-communication
searchsearchrecognition-rather-than-recall, mental-modelcognitive-load
notificationnotificationcognitive-load, fitts-lawprogressive-disclosure

Principle slugs for API calls:

PrincipleSlugCode
Cognitive Loadcognitive-loadF.1.1.02
Hick's Lawhicks-lawF.2.2.03
Visual Hierarchyvisual-hierarchy-lawD.2.1.02
Progressive Disclosureprogressive-disclosureD.1.1.01
Fitts's Lawfitts-lawI.2.2.02
Miller's Lawmillers-lawF.1.1.04
Serial Position Effectserial-position-effectF.1.1.06
Recognition vs Recallrecognition-rather-than-recallF.1.1.05
Mental Modelmental-modelF.1.1.03
Error Prevention in Formserror-prevention-in-forms-lawI.1.1.03
Conversational Flowconversational-flow-principleS.1.1.01
AI Transparencyai-transparencyS.1.3.01
AI Accuracy Communicationai-accuracy-communicationS.5.2.02

Generation Workflow

Step 1: Identify Component Type

Match the user's request to one of the component types in the registry. Look for:

  • Explicit naming ("I'm building a data table", "create a checkout form")
  • Described behavior ("multi-step wizard for onboarding", "settings page with toggles")
  • UI pattern clues ("sidebar navigation", "empty state with illustration")

If the component spans multiple types (e.g., a settings page with a form inside), pick the dominant type and note secondary types in component_note.

If the component type is not in the registry, map it to the closest match. Note the inference in component_note.

Step 2: Extract Tech Stack

Look for tech stack signals in the description:

  • Framework: React, Vue, Svelte, Next.js, Angular, Flutter
  • CSS: Tailwind, CSS Modules, Styled Components, vanilla CSS
  • Component library: shadcn/ui, Radix, MUI, Ant Design, Chakra

If specified, carry the tech stack through into the assembled_context. If not specified, note it as null and do not assume a stack in the output.

Step 3: Fetch vibeCodingPrompts (if API key is set)

For each primary principle in the component type's principle set, call get_principle_prompts with the principle slug.

The response includes a vibeCodingPrompts array. Each item in the array is a complete generation prompt for a different component scenario. Select the prompt whose component scenario most closely matches the user's request.

Selection criteria:

  • Exact match: the prompt description mentions the same component type
  • Closest functional match: the prompt covers the same interaction pattern
  • Fallback: use the first prompt in the array

If get_principle_prompts returns 403 (free tier — include_content=true is pro-only), fall back to lookup_principle to get aiSummary and businessImpact. Use these to write an internal-knowledge prompt (see Step 3b below).

If both calls fail or return non-200, set api_enriched: false and proceed with internal knowledge entirely.

Step 3b: Internal Knowledge Fallback

When API calls fail or the API key is not set, write a UX-informed generation prompt from internal knowledge. Cover the same ground the vibeCodingPrompts would cover:

  • The core UX principle and its threshold (e.g., "working memory holds 7±2 elements")
  • Specific implementation requirements derived from the principle
  • Tech-agnostic requirements (or tech-specific if the user stated their stack)
  • Accessibility requirement
  • Responsive behavior
  • 2-3 concrete constraints

The internal prompt must be actionable, not generic. "Minimize cognitive load" is not actionable. "Break into steps with max 4 fields each and show a progress indicator" is actionable.

Step 4: Select and Assemble

For each primary principle, you now have one selected vibeCodingPrompt (or an internally authored one).

Assemble the assembled_context field by combining:

  1. A one-line component intent statement: "Building: [component type]"
  2. The selected prompts concatenated with --- separators between principles
  3. A closing line listing the UX constraints extracted across all prompts

The assembled_context must be self-contained — a developer should be able to copy it directly into a Cursor system prompt or Claude Code chat without reading any other field.

Step 5: Output JSON

Return exactly this structure. No prose before or after.

json
{
  "component_type": "string",
  "component_note": "string or null",
  "tech_stack": "React + Tailwind + shadcn/ui or null",
  "principles_applied": [
    {
      "code": "F.1.1.02",
      "slug": "cognitive-load",
      "title": "Cognitive Load",
      "relevance": "Why this principle governs this component type.",
      "ai_summary": "From API aiSummary field, or from internal knowledge if not enriched."
    }
  ],
  "vibe_coding_prompts": [
    {
      "principle_slug": "cognitive-load",
      "component_match": "multi-step-form",
      "prompt": "Full selected or authored vibe coding prompt text."
    }
  ],
  "assembled_context": "Full combined context block. Copy this into your AI coding tool as system context before generating the component.",
  "ux_guardrails": [
    "Concrete UX rule extracted from applied principles. One sentence each.",
    "Second rule."
  ],
  "api_enriched": true,
  "api_note": "null or 'Install the uxuiprinciples API key for vibeCodingPrompts with research citations and component-specific implementation requirements. See uxuiprinciples.com/en/checkout'"
}

ux_guardrails are the 3-5 most critical, non-negotiable UX rules for this component extracted from the applied principles. These are the rules the generated component must not violate. Extract them from the principle data or from internal knowledge.

assembled_context is the field developers copy and paste. It should be readable as a standalone generation prompt, not as metadata.

Prompt Quality Standards

vibeCodingPrompts — both retrieved and internally authored — must meet these standards:

Opening line: Role statement. "You are an expert [role] specializing in [domain]."

Second paragraph: Create statement with research citation. "Create a [component] that [UX outcome]: [Research finding with numbers]."

Requirements block: Minimum 5 bulleted requirements. Include:

  • One count-based rule (e.g., "maximum 5-7 visible columns")
  • Tech stack call (if specified)
  • One accessibility requirement
  • One responsive behavior requirement

Constraints block: 2-3 hard constraints. Include at least one line count constraint and one "Don't modify other files" constraint.

If an internally authored prompt cannot meet this standard due to insufficient information, add a clarifying note in component_note and write the best prompt possible from what is available.

Edge Cases

Component type not in registry: Match to the closest entry. Explain inference in component_note. Do not refuse — always return a prompt.

Tech stack not specified: Write tech-agnostic requirements. Do not assume a stack. Leave tech_stack: null. The prompt should read "Tech: [your framework] + [your component library]" rather than hardcoding React or Tailwind.

Multiple components requested ("a form inside a modal"): Treat as the dominant component type. Note the nested component in component_note. The prompt should reference both but optimize for the outer container.

API key set but include_content=true returns 403: This is the free tier. Fall back to lookup_principle (no content). Author internal prompts. Set api_enriched: false.

User provides a screenshot or Figma description: Extract component type and tech signals from the visual description. Proceed as normal.

Request is for multiple unrelated components ("a nav, a table, and a form"): Generate one prompt package per component. Return an array of outputs or run the workflow three times and combine. Note the multi-component request in component_note of each.

Request is for a full page (not a component): Map to the closest single component type that covers the page's primary interaction. Note the scope in component_note. A full page audit belongs in uxui-evaluator, not here.

Examples

Example 1: Data Table with Tech Stack

Input:

I'm building a data table in React with shadcn/ui. It shows user records with sortable columns.

Expected output structure:

json
{
  "component_type": "data-table",
  "component_note": null,
  "tech_stack": "React + shadcn/ui",
  "principles_applied": [
    {
      "code": "F.1.1.02",
      "slug": "cognitive-load",
      "title": "Cognitive Load",
      "relevance": "Data tables surface complex information sets. Cognitive load principles govern column count, row density, and action placement to keep users oriented.",
      "ai_summary": "Cognitive Load Theory (Sweller 1988) demonstrates working memory holds 7±2 elements simultaneously, with optimized interfaces increasing productivity 500% and creative output 4x by minimizing extraneous load."
    },
    {
      "code": "F.2.2.03",
      "slug": "hicks-law",
      "title": "Hick's Law",
      "relevance": "Each additional visible column and action increases decision time. Hick's Law governs how many choices to surface at once.",
      "ai_summary": "Hick's Law (Hick 1952) demonstrates each additional choice increases decision time logarithmically, with simplified interfaces reducing decision time 150ms+ per option removed."
    }
  ],
  "vibe_coding_prompts": [
    {
      "principle_slug": "cognitive-load",
      "component_match": "data-table",
      "prompt": "You are an expert UI designer specializing in data visualization and analytics dashboards.\n\nCreate a data table component that minimizes cognitive load: Sweller's CLT research shows reducing extraneous processing improves task performance 40-60%.\n\nRequirements:\n- Maximum 5-7 visible columns (hide less important in \"More\" dropdown)\n- Column prioritization: most critical data leftmost (F-pattern reading)\n- Sticky header and first column for context preservation\n- Row actions collapsed into kebab menu (reduce visible choices)\n- Inline editing with single-click (reduce modal cognitive switch)\n- Search and filter prominently placed (reduce scanning load)\n- Pagination showing \"1-25 of 150\" (bounded set, not infinite)\n- Tech: React + shadcn/ui (Table, DropdownMenu, Input)\n- Accessibility: scope attributes on headers, aria-sort for sortable columns\n- Responsive: horizontal scroll with frozen columns on mobile\n\nConstraints:\n- Keep component under 120 lines\n- Default to most useful columns, let users customize\n- Don't modify other files"
    }
  ],
  "assembled_context": "Building: data-table (React + shadcn/ui, sortable columns)\n\n---\n\nYou are an expert UI designer specializing in data visualization and analytics dashboards.\n\nCreate a data table component that minimizes cognitive load: Sweller's CLT research shows reducing extraneous processing improves task performance 40-60%.\n\n[... full prompt text ...]\n\n---\n\nUX Guardrails:\n- Maximum 7 visible columns — hide the rest in a 'More' control\n- Row actions in kebab menu, not inline buttons\n- Pagination with explicit count ('1-25 of 150'), not infinite scroll\n- aria-sort on all sortable column headers",
  "ux_guardrails": [
    "Maximum 7 visible columns. Hide secondary columns behind a 'More' or column picker control.",
    "Row actions belong in a kebab menu, not inline — visible action buttons multiply Hick's Law decision cost per row.",
    "Show bounded pagination ('1-25 of 150'), not infinite scroll. Users need a sense of the set size.",
    "Sticky header preserves column context during scroll. Required when table exceeds viewport height."
  ],
  "api_enriched": true,
  "api_note": null
}

Example 2: No API Key, Generic Component

Input:

Building a settings page for a SaaS app. Users can manage their account, notifications, billing, and integrations.

Expected output structure:

json
{
  "component_type": "settings",
  "component_note": "Four distinct sections (account, notifications, billing, integrations) — applies progressive disclosure heavily.",
  "tech_stack": null,
  "principles_applied": [
    {
      "code": "D.1.1.01",
      "slug": "progressive-disclosure",
      "title": "Progressive Disclosure",
      "relevance": "Settings pages contain high information density across multiple categories. Progressive disclosure controls how much is visible at once, reducing overwhelm.",
      "ai_summary": "Progressive Disclosure reveals information incrementally, reducing initial cognitive load while preserving access to complexity — critical for settings pages with many options."
    },
    {
      "code": "F.1.1.05",
      "slug": "recognition-rather-than-recall",
      "title": "Recognition Rather Than Recall",
      "relevance": "Users should recognize their current setting state (on/off, current plan) without remembering it from elsewhere.",
      "ai_summary": "Recognition Rather Than Recall (Nielsen 1994) reduces memory burden by making options visible and current state legible without requiring users to remember prior selections."
    }
  ],
  "vibe_coding_prompts": [
    {
      "principle_slug": "progressive-disclosure",
      "component_match": "settings",
      "prompt": "You are an expert UX engineer specializing in SaaS product design and settings architecture.\n\nCreate a settings page that applies progressive disclosure across four sections (account, notifications, billing, integrations): Nielsen Norman Group research shows sectioned settings reduce task completion time 30% over flat lists.\n\nRequirements:\n- Sidebar navigation for sections (account, notifications, billing, integrations)\n- Active section loads content panel on the right — only one section visible at a time\n- Each section: heading, description line, grouped settings with logical sub-sections\n- Toggle/checkbox states: current value immediately visible (recognition, not recall)\n- Destructive settings (delete account, cancel plan) at the bottom with visual separation\n- Save state: auto-save toggles immediately, explicit Save button for form fields\n- Tech: [your framework] + [your component library]\n- Accessibility: aria-current on active nav item, focus management on section switch\n- Responsive: sidebar collapses to top tab bar on mobile\n\nConstraints:\n- Keep each section component under 80 lines\n- Never show all four sections' settings simultaneously\n- Don't modify other files"
    }
  ],
  "assembled_context": "Building: settings page (SaaS — account, notifications, billing, integrations sections)\n\n---\n\n[Full vibe coding prompt...]\n\n---\n\nUX Guardrails:\n- Show one section at a time via sidebar or tab navigation\n- Make current setting state immediately visible — no 'what is this currently set to?' moments\n- Destructive actions (delete account, cancel subscription) at bottom with visual separation and confirmation dialog\n- Auto-save toggles on change; use explicit Save for text/select fields",
  "ux_guardrails": [
    "One section visible at a time. Use sidebar nav or tabs. Never show all settings simultaneously.",
    "Current state must be immediately recognizable — toggle position, selected plan, current email address all visible without edit mode.",
    "Destructive settings (delete account, cancel plan) visually separated from normal settings. Bottom of section, destructive color, confirmation required.",
    "Group related settings. Cognitive grouping reduces scanning load. Max 5-7 settings per group before adding a sub-section header."
  ],
  "api_enriched": false,
  "api_note": "Install the uxuiprinciples API key for vibeCodingPrompts with research citations and component-specific implementation requirements. See uxuiprinciples.com/en/checkout"
}

Completion Criteria

The output is complete when:

  1. component_type matches one of the 16 registered types or is inferred with a note
  2. Every entry in principles_applied has a code, slug, title, relevance, and ai_summary
  3. Every entry in vibe_coding_prompts has a principle_slug, component_match, and a prompt that meets the quality standards (role line, create statement with research, requirements block, constraints block)
  4. assembled_context is self-contained and readable without the rest of the JSON
  5. ux_guardrails has 3-5 entries, each a single actionable sentence
  6. api_enriched accurately reflects whether get_principle_prompts returned 200 with content
  7. The output is valid JSON with no prose before or after
  8. If api_enriched: false, api_note contains the upgrade message

常见问题

Vibe Coding Advisor AI 技能有什么作用?

在生成组件之前,将 UX 原则相关上下文注入您的 AI 编程会话。根据组件类型(表单、表格、仪表盘、导航、结账等)匹配相关 UX 原则,获取其 vibeCodingPrompts,并汇总成可直接粘贴到 Cursor、Claude Code、Windsurf 或任何 AI 编程工具中的上下文内容。API 密钥为可选项;如需包含研究引用的增强提示词,则需要 uxuiprinciples.com API Access。

为什么在 TypingMind 中使用 Vibe Coding Advisor?

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

如何在 TypingMind 中安装 Vibe Coding Advisor?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/uxuiprinciples/agent-skills/tree/main/vibe-coding-advisor。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Vibe Coding Advisor?

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

Vibe Coding Advisor 可以搭配多少个 AI 模型使用?

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

Vibe Coding Advisor AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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