quota-enforcement-runtime

Community

Atomic runtime quota enforcement for SaaS plans.

Authormarquesfelip
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Enforces per-tenant quota limits at action time, preventing overuse and enabling predictable resource governance across a multi-tenant SaaS product.

Core Features & Use Cases

  • Atomic check-and-increment on quota usage to avoid race conditions.
  • Distinguishes hard (reject) vs soft (warn/bill) limits and supports unlimited mode.
  • Tracks per-tenant usage with periodic resets and maintains audit trails for billing and analytics.
  • Exposes a QuotaService interface with CheckAndIncrement, Decrement, GetUsage, and ResetPeriodic for easy integration.
  • Integrates as middleware for resource-creation endpoints and ensures rollback on failures.

Quick Start

Integrate the quota service and invoke the CheckAndIncrement call at action time to enforce per-tenant limits.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: quota-enforcement-runtime
Download link: https://github.com/marquesfelip/agents-and-skills/archive/main.zip#quota-enforcement-runtime

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.