/be:plan-entitlementsfrom Backend Skills
What an account's plan lets it use, kept apart from permissions — one entitlements map of features and limits instead of plan-name checks, the check order after permission, distinct error codes for "upgrade" versus "you can't", plan changes applied from the payment provider's webhooks, usage limits reserved in the work's transaction, trials, grace periods, downgrades over a limit, add-ons and credits, caching, the upgrade path in the UI, and tests. Use when gating a feature or a limit by plan, or changing plans.
Ships in Backend Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Access control answers "may this person do this?"; entitlements answer "does this account's plan include it?". They're separate checks with separate answers, so the person who can't act sees nothing to press, and the account that hasn't paid for something sees what it would take. Every entitlement is read from one map, on the server, from what the payment provider says was bought.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
hasFeature(entitlements, "custom-domain"), getLimit(entitlements, "storage-bytes"). A check like plan === "pro" breaks the day a plan is renamed, split or given away.custom-domain, storage-bytes), the same key the payment provider's product carries where it supports features, so the two can't drift.api-architecture).api-architecture's webhooks reference).The order on every route, after the rate limit (api-architecture):
feature-flags).auth, access-control)?FEATURE_NOT_IN_PLAN and PLAN_LIMIT_REACHED, with the key, the limit and the current usage in details. The UI branches on the code: a permission refusal hides or explains, an entitlement refusal offers the plan that includes it. Not 402, which HTTP still reserves for future use.used + requested > limit, and increment — all inside the transaction that creates the thing being counted, so two requests at the edge can't both fit. A check followed by a separate write lets both through.usage/<accountId>_<periodStart>), so it can sit in the work's transaction, and a new period starts at zero with no reset job to miss. Lifetime limits (storage, seats) have no period.rate-limiting).PLAN_LIMIT_REACHED until the account is back under. If the product ever removes data over a limit, it says so in its terms, gives a stated period, and reminds the account before it happens.redis, nextjs).access-control).FEATURE_NOT_IN_PLAN; one at its limit gets PLAN_LIMIT_REACHED; one within it succeeds.testing).Who may act, and the check order access-control · webhooks and audit entries api-architecture · rate limits versus quotas rate-limiting · counters and transactions firestore · cache invalidation redis, nextjs · switching a feature off feature-flags · usage emails transactional-email · tests testing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin be22 skills in this plugin
/access-controlAccess control for a Next.js API on Firebase — roles, relationships and attributes (RBAC, ReBAC, ABAC) behind permission verbs and one pure can(); guards as the only gate, 404 before 403; tenant scoping; invitations; escalation limits; two-person approval and access reviews; stale claims; API-key scopes; share links and passcodes; where plan and flag checks sit; UI gates that only hide; and tests. Use when adding a permission, role, guarded route, API key, share link, or a control only some people see./access-control-auditManually invoked. Access-control audit — guards on every route and Server Action (BFLA), 404 before 403 and tenant scoping (BOLA), allowlisted writes and projected reads (BOPLA), verbs never role names, roles that add up, escalation and invitations, claims and revocation, sessions and sign-in, API keys and share links, the plan and flag order, UI gates, data rules and the tests. Verifies each finding and writes a prioritised report./api-architectureHow an API route is built in a Next.js API — the fixed order of rate limit, authorise, validate, delegate, audit, respond; thin routes over services; the response envelope and typed errors; caching headers; concurrent edits; long-running work; cursor pagination and allowlisted sorts; resource paths, versions, deprecation and state-transition sub-routes; and what every new route ships with. Cron, webhooks and audit logs are references. Use when adding, changing or reviewing a route handler or the API layer's structure.Other plugins' skills for the same job