Communitygithub.com

定价页面

层级对比布局、功能门控、月/年切换以及基于使用量的计费界面。

定价页面 是什么?

该技能专注于为SaaS产品创建有效的定价页面。它通过限制最多三个层级(免费/入门版、专业版、企业版)并突出推荐层级来避免用户决策瘫痪。支持月度和年度计费切换,默认显示年度价格,并清晰标注节省比例。页面包含功能对比表,使用勾选和叉号清晰展示各层级功能,并按类别分组。每个价格卡片都有一个明确的行动号召按钮,如“开始使用”、“开始免费试用”或“联系销售”。该技能还提供了功能门控模式,通过配置对象和运行时检查用户计划来动态控制功能访问。此外,支持基于使用量的定价计算器,允许用户通过滑块调整用量并实时更新价格。页面底部包含社会证明(如用户数量)和常见问题解答(FAQ)部分,以增强信任并解决用户疑虑。该技能适用于Claude Code、Cursor、Codex等AI代理平台,帮助开发者快速生成标准化的定价页面代码。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/pricing-pages

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

定价页面 是做什么的?

规则

  • 最多3个层级:免费/入门版、专业版、企业版 — 用“最受欢迎”徽章突出推荐层级
  • 月/年切换:显示两种价格,展示年度节省(“节省 20%”) — 默认年度
  • 价格显示:大字体显示价格,小字体显示周期(“/月”) — 年度价格显示为月均价格
  • 功能对比表:已包含功能用对勾,未包含功能用叉号 — 按类别分组功能
  • 每个层级一个行动号召按钮:“开始使用”(免费版),“开始免费试用”(专业版),“联系销售”(企业版) — 每个卡片只有一个按钮
  • 功能门控:在配置对象中定义每个计划的功能 — 运行时根据 user.plan 检查功能配置
  • 基于使用量的定价:显示一个用量层级计算器/滑块 — 用户调整时动态更新价格
  • 社会证明:在定价附近显示客户数量或徽标 — “受 5,000+ 团队信赖”
  • 定价下方提供常见问题解答(FAQ)部分 — 解决常见疑虑(取消、退款、升级)

功能门控模式

const PLAN_FEATURES = {
  free: { maxProjects: 3, analytics: false, api: false },
  pro: { maxProjects: 50, analytics: true, api: true },
  enterprise: { maxProjects: Infinity, analytics: true, api: true },
} as const;

function hasFeature(plan: string, feature: string): boolean {
  return !!PLAN_FEATURES[plan]?.[feature];
}

定价卡片布局

[徽章:“最受欢迎”]
计划名称
$XX/月(按年计费)
$YY/月(按月计费)
- 功能 1 ✓
- 功能 2 ✓
- 功能 3 ✗
[行动号召按钮]

避免

  • 超过 4 个层级 — 会导致决策瘫痪
  • 对所有层级都隐藏定价在“联系销售”后面 — 开发者会离开
  • 没有年度折扣 — 年度计划可减少流失并改善现金流
  • 功能对比没有明确分组 — 当功能超过 10 个时变得难以阅读

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能