clerk-billing

Render Clerk PricingTable checkout UIs and enforce plan and feature entitlements.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/awfixers-stuff/forged.codes --skill clerk-billing-awfixers-stuff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-billing
Source: https://github.com/awfixers-stuff/forged.codes/tree/main/.agents/skills/clerk-billing
Command: npx skills add https://github.com/awfixers-stuff/forged.codes --skill clerk-billing-awfixers-stuff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Clerk billing setup and entitlement gating are hard to get right, and teams often ship pricing UI that silently renders nothing or enforce the wrong entitlements.

Core Features & Use Cases

  • Render pricing and checkout UI: Show Clerk-configured plans using <PricingTable /> (including B2B org plans via for="organization") and enable in-app plan switching.
  • Gate features and tiers safely: Authorize access with has({ feature: '...' }) for capability entitlements and has({ plan: '...' }) for tier-level gates.
  • Handle subscription lifecycle via webhooks: Verify and branch on Clerk billing webhook event types to sync subscription and payment state to your database.
  • Support B2B seat-limit billing patterns: Protect org-scoped routes by checking orgId presence and using seat-limit plan slugs like org:team.

Quick Start

Ask the clerk-billing skill to produce a Next.js /pricing page that renders <PricingTable /> and includes the prerequisite checklist to enable Billing in the Clerk Dashboard before you test subscriptions.

Frequently Asked Questions about clerk-billing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render a Clerk PricingTable for subscription checkout in my SaaS app?

To render Clerk subscription checkout UI, use the <PricingTable /> component to display configured plans and enable in-app plan switching for B2C and B2B flows.

What's the difference between Clerk has({ plan }) and has({ feature }) for entitlement gating?

Clerk entitlement gating uses has({ plan: '...' }) for tier-level access gates and has({ feature: '...' }) for specific capability entitlements. Using the wrong check can silently fail to protect routes.

How do I handle Clerk billing webhook events for subscription lifecycle synchronization?

Handle Clerk billing webhooks by verifying webhook signing secrets and branching on Clerk event types to sync subscription and payment state to your database. Clerk event naming differs from Stripe event naming.

Does Clerk billing support B2B organization plans with seat limits?

Clerk billing supports B2B organization plans with seat limits by rendering <PricingTable for="organization" /> and protecting org-scoped routes using orgId presence and seat-limit plan slugs like org:team.

What prerequisites do I need to enable Clerk Billing before testing subscriptions?

Before testing Clerk Billing subscriptions, you must enable Billing in the Clerk Dashboard and obtain a webhook signing secret for validating incoming Clerk billing webhook events.