Toolverse
All skills

flowglad-feature-gating

by flowglad

Implement feature access checks using Flowglad to gate premium features, create paywalls, and restrict functionality based on subscription status. Use this skill when adding paid-only features or checking user entitlements.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
flowglad
Category
Security
Views
1

About this skill

Implement feature access checks using Flowglad to gate premium features, create paywalls, and restrict functionality based on subscription status. Use this skill when adding paid-only features or checking user entitlements.

How to use

  1. Zainstaluj skill Flowglad feature-gating w swoim projekcie i zaimportuj metodę checkFeatureAccess z biblioteki Flowglad.

  2. Przed wywołaniem checkFeatureAccess upewnij się, że hook billingowy załadował się całkowicie. Podczas ładowania funkcja zwraca null — czekaj na zakończenie ładowania, aby uniknąć błędów runtime'u. Użyj skeleton loading patterns do wyświetlania stanu ładowania.

  3. Identyfikuj funkcje za pomocą slugów, a nie ID-ów. Slug to czytelny identyfikator funkcji (np. "premium-export"), który jest bardziej niezawodny niż numeryczne ID-y.

  4. Na serwerze weryfikuj dostęp do funkcji przed zwróceniem danych lub wykonaniem akcji. Chrań trasy API poprzez sprawdzenie uprawnień użytkownika po stronie serwera, aby uniknąć obejścia kontroli dostępu.

  5. Opakuj komponenty funkcji premium w wrapper Feature Gate. Wyświetl zawartość tylko jeśli checkFeatureAccess zwróci true dla danej funkcji, w przeciwnym razie pokaż komunikat o konieczności uaktualnienia.

  6. Dla użytkowników bez dostępu skonfiguruj przekierowanie do strony uaktualnienia. Możesz przekierować po stronie klienta (natychmiast po kliknięciu) lub serwera (przed załadowaniem strony), w zależności od potrzeb aplikacji.

Related skills

zendesk

by vm0-ai

Zendesk Support REST API for managing tickets, users, organizations, and support operations. Use this skill to create tickets, manage users, search, and automate customer support workflows.

Security
11100

software-security

by project-codeguard

A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.

Security
1678

payload

by payloadcms

Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

Security
50171

ui-audit

by openclaw

AI skill for automated UI audits. Evaluate interfaces against proven UX principles for visual hierarchy, accessibility, cognitive load, navigation, and more. Based on Making UX Decisions by Tommy Geoco.

Security
1223

content-creator

by alirezarezvani

Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analyzer, SEO optimizer, content frameworks, and social media templates. Use when writing blog posts, creating social media content, analyzing brand voice, optimizing SEO, planning content

Security
25124

openapi-spec-generation

by wshobson

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

Security
18109