lucid-observability/skill/references/billing-health/SKILL.md
Monitor OpenMeter billing pipeline: outbox health, per-org usage, dead letter recovery, and anomaly detection
npx skillsauth add lucid-fdn/lucid-skills billing-healthInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Monitor the OpenMeter metering pipeline using Supabase MCP for direct SQL queries against the outbox ledger.
execute_sql toolopenmeter_event_ledger tableUse Supabase MCP execute_sql with this query to assess queue health:
SELECT
COUNT(*) FILTER (WHERE sent_at IS NULL AND attempts < 10) AS pending,
COUNT(*) FILTER (WHERE sent_at IS NOT NULL) AS sent,
COUNT(*) FILTER (WHERE attempts >= 10) AS dead_letter,
COUNT(*) FILTER (WHERE lease_until IS NOT NULL AND lease_until > now()) AS leased,
COUNT(*) AS total
FROM openmeter_event_ledger
WHERE created_at > now() - interval '24 hours'
See references/outbox-queries.md for all outbox queries.
Interpret results using references/thresholds.md:
pending > 500 → HIGH QUEUE DEPTHdead_letter > 0 → DEAD LETTERS — events failed 10+ timessent = 0 with total > 0 → NO EVENTS DELIVERED — check API connectivitySee references/usage-queries.md for SQL queries that break down usage by org, provider, and model.
When dead letters exist, retry them with this procedure:
See references/anomaly-detection.md for the spike/drop detection algorithm.
tools
PLUGIN_DESCRIPTION
testing
Generate short-form video content optimized for social media platforms
business
Generate 1:1 personalized video for sales prospecting and customer success
data-ai
Generate animated data report videos from KPIs, charts, and analytics