Plans handler
Skill aiskillstore/marketplace/skills/aayushbaniya2006/plans-handler
Manage subscription plans, pricing, and quotas. Use when adding plan features, updating limits, or building pricing pages.From its SKILL.md
npx -y skills add aiskillstore/marketplace --skill plans-handlerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
0.9 KB, 206 tokens by cl100k_base, as published. Nobody here has run it
Plans Handler
Instructions
1. Adding a New Limit (Quota)
- DB Schema: Add field to
quotaSchemainsrc/db/schema/plans.ts. - Validation: Add field to
planFormSchemainsrc/lib/validations/plan.schema.ts. - UI: Add input to
src/components/forms/plan-form.tsx. - Data: Ask user to update the plan via
/super-admin/plansdashboard.
2. Creating a Pricing Table
- Fetch plans via API.
- Use
getSubscribeUrlfor buttons. - Display features from
plan.quotas.
3. Accessing User Plan
- Client:
useCurrentPlan()(SWR). - Server:
withAuthRequiredwrapper ->getCurrentPlan().
Reference
For schema details and best practices, see reference.md.
What ships with it: 2 files
15.0 KB alongside SKILL.md
- reference.md770 B
- skill-report.json14.3 KB