TI

tier-entitlements

Provides centralized configuration and API methods to enforce feature gating and track usage based on subscription tiers.

Install

mkdir -p .claude/skills/tier-entitlements && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4906" && unzip -o skill.zip -d .claude/skills/tier-entitlements && rm skill.zip

Installs to .claude/skills/tier-entitlements

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Implement subscription tier-based feature gating and usage limits. Centralized tier configuration, database usage tracking, and clean APIs for checking limits.
159 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Define tier-based limits
  • →Track usage in database
  • →Perform atomic usage increments
  • →Generate rate limit headers

How it works

It centralizes entitlement logic by checking usage against tier-specific limits stored in a database, using atomic functions to prevent race conditions.

Inputs & outputs

You give it
User ID and tier
You get back
Rate limit status and headers

When to use tier-entitlements

  • →Implementing feature flags per subscription tier
  • →Tracking user usage against defined limits
  • →Building tier-based access control
  • →Setting up subscription usage hooks

About tier-entitlements

Centralizes the management of user entitlement logic by handling tier-based feature gating and usage tracking. It provides clean APIs to verify limits against database records.

Implement subscription tier-based feature gating and usage limits. Centralized tier configuration, database usage tracking, and clean APIs for checking limits.

When not to use it

  • →Non-subscription based gating
  • →Complex access control logic

Prerequisites

Supabase or SQL database

Limitations

  • →Requires database schema integration
  • →Depends on accurate usage tracking

How it compares

It provides a centralized, database-backed approach to entitlements, ensuring consistency across the application.

Compared to similar skills

tier-entitlements side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
tier-entitlements (this skill)17moNo flagsIntermediate
qruiq-google-auth06moReviewIntermediate
dev-supabase04moReviewIntermediate
permit2-allowance-flow06moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry