autumn-gating
Installation
SKILL.md
Checking and Tracking Usage
Autumn handles your customer's payments and grants them the features defined in your plan configuration. There are 2 functions you need to enforce limits and gating:
checkfor feature access, before allowing a user to do somethingtrackthe usage in Autumn afterwards (if needed)
Your Autumn configuration is in
autumn.config.ts. If it doesn't exist, runnpx atmn initto log in and generate the file.
Step 1: Detect Integration Type
Check if the codebase already has Autumn set up:
- If there's an
AutumnProviderandautumnHandlermounted -> React hooks available (can use for UX) - Backend SDK should always be used to enforce limits server-side
Report what you detected before proceeding.