Skip to content

aiskillstore/marketplace / skills/aayushbaniya2006/plans-handler

plans-handler

Verified

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

FileKindSize
SKILL.mdskill md938 B
reference.mdmarkdown770 B
skill-report.jsonconfig14.3 KB

reference.md

View on GitHub
# Plans Architecture Reference

## 1. Database Schema
- **File**: `src/db/schema/plans.ts`
- **Quotas**: JSONB column using `quotaSchema`.
- **Naming**: Use usage-based names (`images`) not time-bound (`monthly_images`).

## 2. Management UI
- **Form**: `src/components/forms/plan-form.tsx`.
- **Dashboard**: Super Admin dashboard is the source of truth.

## 3. Subscription Flow
- **Helper**: `src/lib/plans/getSubscribeUrl.ts`.
- **Usage**: `getSubscribeUrl({ codename, type, provider })`.

## Best Practices
1. **Dashboard First**: Do not manual seed plans. Ask user to use the UI.
2. **Schema Sync**: Keep DB, Validation, and Form schemas in sync.
3. **Provider IDs**: Ensure Stripe/Dodo/PayPal IDs are set in the plan (Ask user to set them in the plan dashboard).

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall