Communitygithub.com

YepAPI/skills

分層方案比較佈局、功能門控、月/年切換和使用量計費的 UI。

skills 是什麼?

此技能提供建立 SaaS 定價頁面的完整指南與範例程式碼。它涵蓋三個核心層級:Free、Pro 與 Enterprise,並支援月/年訂閱切換,預設顯示年繳價格及節省百分比。技能著重於打造清晰易讀的功能比較表,並利用 TypeScript 定義的「功能門控模式」在執行階段檢查使用者權限,以決定介面上哪些功能可用。此外,它還包含使用量計費的動態計算器、社會證明元素(如客戶數量)以及常見問題區塊,以降低購買猶豫。所有設計建議與佈局範本都旨在避免開發者常見的錯誤,例如超過四個方案層級或對所有方案隱藏價格。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

定價頁面

規則

  • 最多 3 層方案:免費/入門版、專業版、企業版 — 在推薦方案上標示「最受歡迎」徽章
  • 月/年切換:顯示兩種價格,並標示年繳節省金額(例如「省 20%」)— 預設為年繳
  • 價格顯示:價格用大字體,週期用小字體(例如「/月」)— 年繳價格以每月等值呈現
  • 功能比較表:勾號代表有該功能,破折號代表無該功能 — 按類別分組功能
  • 每個方案的 CTA:「開始使用」(免費版)、「開始免費試用」(專業版)、「聯絡銷售」(企業版)— 每張卡片一個按鈕
  • 功能門控:在設定物件中定義每個方案的功能 — 執行時檢查 user.plan 與功能設定
  • 使用量計費:提供計算器/滑桿來選擇使用層級 — 價格隨使用者調整動態更新
  • 社會證明:在定價附近顯示客戶數量或標誌 — 「超過 5,000 個團隊信賴」
  • 定價下方常見問題區塊 — 解答常見異議(取消、退款、升級)

功能門控模式

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 ✗
[CTA 按鈕]

避免事項

  • 超過 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.

相關技能