Skip to content
Back to skills

Plans Handler

ASecurity

Manage subscription plans, pricing, and quotas. Use when adding plan features, updating limits, or building pricing pages.

  • 509 stars
  • 0 votes
  • 0 copies
  • 12 views
  • Added February 7, 2026
developmentapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill plans-handler --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plans Handler?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plans Handler
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-plans-handler/badge)](https://www.skillsdirectory.com/skills/aiskillstore-plans-handler)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plans-handler
description: Manage subscription plans, pricing, and quotas. Use when adding plan features, updating limits, or building pricing pages.
tools: Read, Write, Edit
model: inherit
---

# Plans Handler

## Instructions

### 1. Adding a New Limit (Quota)
1.  **DB Schema**: Add field to `quotaSchema` in `src/db/schema/plans.ts`.
2.  **Validation**: Add field to `planFormSchema` in `src/lib/validations/plan.schema.ts`.
3.  **UI**: Add input to `src/components/forms/plan-form.tsx`.
4.  **Data**: Ask user to update the plan via `/super-admin/plans` dashboard.

### 2. Creating a Pricing Table
1.  Fetch plans via API.
2.  Use `getSubscribeUrl` for buttons.
3.  Display features from `plan.quotas`.

### 3. Accessing User Plan
- **Client**: `useCurrentPlan()` (SWR).
- **Server**: `withAuthRequired` wrapper -> `getCurrentPlan()`.

## Reference
For schema details and best practices, see [reference.md](reference.md).

Files in this skill

  • SKILL.md938 B
  • reference.md770 B
  • skill-report.json8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.