deploy-metering

Automate the metering and billing pipeline for a Supabase app.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/SomtechSolutionMAxime/somtech-pack --skill deploy-metering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-metering
Source: https://github.com/SomtechSolutionMAxime/somtech-pack/tree/main/.claude/skills/deploy-metering
Command: npx skills add https://github.com/SomtechSolutionMAxime/somtech-pack --skill deploy-metering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploy Metering automates the end-to-end deployment of a usage metering and billing pipeline for a Supabase-based application, reducing manual setup and ensuring consistent instrumentation across environments.

Core Features & Use Cases

  • Auto-deploys metering tables, helper functions, Edge Functions, and cron jobs into a target project.
  • Centralizes usage data collection for reliable billing, analytics, and quota enforcement.
  • Supports multi-environment deployments and quick-rollbacks with a single source of truth.

Quick Start

Install the metering package into your project and run the deployment script to initialize tables, edge functions, and dashboards.

Frequently Asked Questions about deploy-metering

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

FAQPage Schema
How do I automate usage metering and billing deployment for a Supabase app?

You can automate usage metering by deploying metering tables, helper functions, Edge Functions, and cron jobs to a target Supabase project. This pipeline centralizes usage data collection for reliable billing instrumentation across production environments.

What is the best way to track API usage for billing in Supabase Edge Functions?

The best way to track API usage for billing is by instrumenting usage events in Supabase Edge Functions and deploying cron-based data collection. Automating this setup centralizes usage data into metering tables to generate daily metrics and enforce quotas.

Do I need a specific Supabase project setup to deploy metering pipelines?

Yes, deploying a metering pipeline requires an existing Supabase project with appropriate permissions. The automated setup executes database migrations, instrumentation, and cron-based data collection directly into the target project environment.

Can I use automated metering deployment across multiple Supabase environments?

Yes, automated metering deployment supports multi-environment workflows in Supabase. It provides a single source of truth for usage data collection, allowing teams to maintain consistent billing instrumentation and perform quick rollbacks across different environments.

How does cron-based data collection work for Supabase usage analytics?

Cron-based data collection for Supabase usage analytics works by scheduling daily metrics generation through deployed Edge Functions. This automated process aggregates usage events from metering tables to support reliable billing and quota enforcement.