plan-based-features

Implement a 3-layer feature system with IPlanService validation for subscription plans.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lyraarteltda/MEGA-BRAIN-JARVIS-v2 --skill plan-based-features
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plan-based-features
Source: https://github.com/lyraarteltda/MEGA-BRAIN-JARVIS-v2/tree/main/.fnd/skills/plan-based-features
Command: npx skills add https://github.com/lyraarteltda/MEGA-BRAIN-JARVIS-v2 --skill plan-based-features

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized system for managing features and limits that vary based on user subscription plans, ensuring consistent access control and feature gating.

Core Features & Use Cases

  • Feature Flagging: Easily add and manage boolean feature flags (e.g., reportsExport).
  • Limit Management: Define and enforce quantitative limits (e.g., workspaces, projects).
  • Plan Validation: Integrate with IPlanService to validate feature access and limits in controllers and services.
  • Use Case: When a new user signs up, this system automatically applies the correct feature set and limits based on their chosen subscription plan, preventing them from accessing features they haven't paid for.

Quick Start

Use the plan-based-features skill to check if the current workspace can use the 'reportsExport' feature.

Frequently Asked Questions about plan-based-features

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage feature flags and limits based on user subscription plans?

You can manage subscription plan variations by implementing a 3-layer feature system for limits, flags, and display. This system enforces access control and feature gating by validating user plans through IPlanService within your application controllers and services.

How does subscription plan validation work for feature access control?

Subscription plan validation works by integrating IPlanService in your controllers and services to check boolean feature flags and enforce quantitative limits. When a user signs up, the system automatically applies the correct feature set based on their chosen subscription tier.

What is the best way to add new boolean flags and numeric limits to existing subscription plans?

The best way to add new boolean flags and numeric limits is by updating the feature types and modifying the plan data. You can manage these subscription plan changes through your Manager app or by applying database migrations directly.

Can I use this feature gating approach to restrict workspace and project quantities by subscription tier?

Yes, you can restrict workspace and project quantities by defining and enforcing quantitative limits within the plan management system. The 3-layer feature system validates access and automatically prevents users from exceeding the limits set by their subscription plan.

When do I need a 3-layer feature system for plan management?

You need a 3-layer feature system when your application requires standardized access control to manage features and limits that vary based on user subscription plans. It ensures consistent feature flagging and prevents users from accessing features they haven't paid for.

Are there limitations to enforcing feature flags within controllers and services?

Enforcing feature flags requires modifying plan data via migrations or the Manager app to update type definitions. The system depends on IPlanService integration, meaning access control validation must be explicitly implemented within each controller and service to prevent unauthorized feature usage.