Agent skill

Metronome

by fcakyon in fcakyon/claude-codex-settings

Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing…

MITAuto-check passedDocuments & Office

Install Metronome

skills CLI
$ npx skills add fcakyon/claude-codex-settings --skill metronome -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fcakyon/claude-codex-settings metronome --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fcakyon/claude-codex-settings.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/stripe-skills/skills/metronome .claude/skills/metronome && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
metronome
GitHub stars
1.2k
Token cost
~3.2k tokens
SKILL.md length
1,257 words
Files
1
Skills in repo
43
Repo updated
First seen
Licence
MIT

At a glance

Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing…

  • Reviewing any Metronome integration — including ingesting usage events
  • SKILL.md covers Integration routing, Operational workflows, Critical rules and Key documentation
  • Reaches api.metronome.com
  • Creating customers

What it does

Metronome is an agent skill from fcakyon/claude-codex-settings. Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing, products), invoicing lifecycle (grace periods, finalization, Stripe sync), credit and commit management (prepaid, postpaid, thresholds, auto-recharge), and Stripe integration (arrears invoicing, tax providers, line item limits). Use when building, modifying, or reviewing any Metronome integration — including ingesting usage…

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office, covering Forms and invoices and Payments and billing. It works with Stripe. The repository describes itself as: Battle-tested Claude Code, OpenAI Codex, Cursor configs, plugins, hooks and agents with Kimi, MiniMax and GLM API support. The licence is MIT.

When your agent uses it

  • Reviewing any Metronome integration — including ingesting usage events
  • Creating customers
  • Designing billable metric group keys
  • Managing credits and commits

Example prompts

  • “Use the metronome skill to guide Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable…”
  • “/metronome”

What it can do on your machine

Read from SKILL.md and the folder at commit 7a519d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.metronome.com

    Also links to:

    • docs.metronome.com
    • docs.stripe.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Metronome loads about 3.2k tokens when it runs. Until then it costs about 226 tokens; SKILL.md has 1,257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~226
When it runs · the whole SKILL.md, loaded when a task matches
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from fcakyon/claude-codex-settings at commit 7a519d8, republished under its MIT licence (© fcakyon). 1,257 words, ~3,241 tokens.

Download SKILL.mdSave it as .claude/skills/metronome/SKILL.md (or your agent's skills folder).
name
metronome
description
Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing, products), invoicing lifecycle (grace periods, finalization, Stripe sync), credit and commit management (prepaid, postpaid, thresholds, auto-recharge), and Stripe integration (arrears invoicing, tax providers, line item limits). Use when building, modifying, or reviewing any Metronome integration — including ingesting usage events, creating customers, contracts, or rate cards, designing billable metric group keys, managing credits and commits, configuring invoicing, syncing invoices with Stripe Billing, billing AI applications for token usage, setting up self-serve (PLG) pricing, reviewing customer health, commit burn, portfolios, or renewals, or migrating from Stripe Billing Meters to Metronome.
license
MIT

Metronome API base: https://api.metronome.com. Authenticate with a Bearer token in the Authorization header. Always use Contracts (not legacy Plans) for new integrations.

Integration routing

Building…Recommended APIDetails
Ingesting usage eventsPOST /v1/ingest (batch)Send usage events, the API quickstart, the Ingest API reference, and Set ingest aliases
Defining what to measureBillable Metrics APICreate billable metrics
Enterprise pricing agreementsContracts + Rate CardsProvision a customer contract, Create and manage rate cards, and the Create a contract and Add rates API references
Mid-term contract changesContract EditsEdit a contract, Contract edits and overrides, and Manage contract lifecycle
Invoice lifecycle and finalizationInvoices APIHow Metronome invoices work
Prepaid or postpaid commitments and one-off top-upsCommits + CreditsApply credits and commits to contracts and Payment-gated commits
Syncing invoices to StripeStripe billing provider configInvoice with Stripe
Prepaid balances, auto-recharge, spend alerts, and thresholdsNotifications APISet prepaid balance thresholds, Enforce spend thresholds, and Threshold notifications

Read the linked page before answering any integration question or writing code; the links return plain Markdown. If no row fits, use the documentation index to find the right page, and append .md to the page URL to fetch it as Markdown.

Operational workflows

Metronome publishes step-by-step skills for the tasks below. Read the linked skill in full before starting the task. Several of them create real Metronome objects through the API using the token in the environment: confirm which environment that token targets (sandbox and production share https://api.metronome.com; the token determines the environment) and get the user’s explicit confirmation before any write. Where a step also writes to Stripe, as the migration cutover does when it ends subscriptions, identify the Stripe account and mode behind the Stripe key (for example with GET /v1/account) and confirm those writes separately.

TaskMetronome skillWhat it does
Migrating from Stripe Billing Meters, Subscriptions, and Credit Grants to Metronomestripe-to-metronome-migrationChanges production state when executed: creates Metronome customers, contracts, and credits, flips billable status, and ends Stripe subscriptions at cutover. Also covers scoping, concept mapping, group key design, the parallel run, and rollback.
Designing group_keys, pricing_group_key, and presentation_group_key for a billable metricmetronome-group-keysCreates the billable metric and product after a confirmation gate. Sizes cardinality risk first: a compound key’s cost is the product of each dimension’s cardinality, and group_keys is immutable.
Setting up Metronome from scratch: billable metrics, products, rate card, customer, and contractmetronome-setup-catalogCreates objects. End-to-end setup from pricing intent to a verified draft invoice.
Creating a customer recordmetronome-create-customerCreates objects. Duplicate check and preview, then POST /v1/customers with name, ingest alias, Salesforce ID, and Slack channel.
Creating a new contract from signed order-form termsmetronome-create-contractCreates objects. Commits, credits, and rate overrides on a new contract, including commit-specific discounts; for an existing contract use Contract Edits (routing table above).
Billing an AI application for token usagemetronome-token-billingCreates objects. Models AI plans, builds the managed rate card with your markup over Stripe’s model catalog, provisions the customer, and validates the Stripe and Metronome flow.
Self-serve (PLG) billing setup, pricing changes, and single-customer diagnostics, in business termsmetronome-plg-billingCreates and changes objects in its start-billing and change-pricing modes; customer-story mode is a read-only diagnostic.
Customer health reviews for Metronome CSMs: anomalies, commit burn, portfolio briefing, renewal prepmetronome-csm-reviewsRead-only. Written for Metronome’s account team rather than for building an integration.

Critical rules

  • Always read the linked documentation page before naming a Metronome endpoint, field, or amount. Endpoint paths, request shapes, and units can be misremembered; the routing table above points to the page for each task.
  • Always use Contracts, not legacy Plans, for new customers. Plans are deprecated and lack rate card overrides, commits, and flexible scheduling. An existing Plans integration keeps working: don’t propose migrating it unless asked, and when migrating move credit balances with POST /v1/credits/migrateToContracts.
  • Always use Edits (POST /v2/contracts/edit), not deprecated Amendments (/v1/contracts/amend), for mid-term changes to a contract (new products, commits, overrides). Edits are the actively invested path and required for v2 subscription features. Create a new contract with transition: {type: "renewal", from_contract_id} only for renewals.
  • Always use batch ingestion (POST /v1/ingest with a bare JSON array of 1 to 100 event objects as the request body, not wrapped in an object) for production workloads. Single-event ingestion is acceptable only for testing. A 200 means the events were accepted, not rated: events whose event_type matches no billable metric are stored but excluded from usage, so create billable metrics before sending.
  • Always include a unique transaction_id on every event, fixed when the event is recorded and re-sent unchanged on every retry: a UUID stored with the event, or a value derived from the source record. This is the idempotency key that prevents double-counting on retries; an ID regenerated per attempt defeats it.
  • Always deliver usage for a billing period before its grace period ends (24 hours after billing_period_end_date by default). A finalized invoice ignores late events and can only be corrected by voiding and regenerating it; if your pipeline’s worst-case lag exceeds the grace period, ask Metronome support to lengthen it (it isn’t configurable through the API).
  • Always set a usage_filter (group_key and group_values) on each contract when a customer has more than one concurrent contract, so usage is rated on one contract instead of all of them. The group key must be a group key on the streaming billable metric (an event property for SQL metrics).
  • Never schedule a contract-level commit or credit access segment past the contract’s ending_before. Usage after the contract ends isn’t rated on it, so balance released after that date is stranded; end the last segment at the contract term and use rollover_fraction to carry a remaining balance into a renewal.
  • Never put applicable_product_ids, applicable_product_tags, or specifiers on a spend_threshold_configuration commit. Spend-threshold commits apply to all usage and take only product_id, name, description, and priority; only prepaid_balance_threshold_configuration commits accept product filters.
  • Never process multiple Metronome invoices for the same Stripe customer simultaneously. Concurrent processing causes race conditions on pending line items.
  • Never hardcode pricing directly in contracts. Define pricing in rate cards and use contract-level overrides for custom rates. This ensures un-overridden pricing stays current when the rate card changes.
  • Always send USD amounts in cents. Metronome’s default USD credit type is denominated in cents (1000 is 10.00 USD) for thresholds, commits, credits, and rate or override prices; other currencies use whole units.
  • Never finalize a Stripe invoice before tax calculation completes. If using Stripe Tax, Avalara, or Anrok, the tax provider must process the invoice before finalization.
  • Never exceed 250 line items per Stripe invoice. Exceeding this limit causes all line items to collapse into a single entry, losing per-product detail. Plan product granularity and use composite products to aggregate high-cardinality metrics.
  • Always reconcile payments against the Stripe invoice total, never the Metronome invoice total. Metronome sends untaxed line items and Stripe adds tax at finalization, so the Metronome total is pre-tax and can differ by sub-cent rounding.
  • Never set NetSuite as both a contract’s billing_provider_configuration and its revenue_system_configuration. Use the billing configuration when NetSuite issues and collects the invoice; use the revenue system configuration only when another provider such as Stripe bills and NetSuite needs the invoice for revenue recognition.
Show full SKILL.md (58 more words)Show less

Key documentation

When the user’s request doesn’t clearly fit a single domain above, consult:

© fcakyon, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/stripe-skills/skills/metronome of fcakyon/claude-codex-settings.

Open the folder on GitHubat commit 7a519d8

Compare with similar skills

Metronome next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Metronome compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Metronome this skillfcakyon/claude-codex-settings1.2k—~3.2kAutomated safety check: PassMIT
Metronomefossasia/eventyay1.7k—~2.3kAutomated safety check: PassApache-2.0
Cashclaw Invoicerertugrulakben/cashclaw302—~2.5kAutomated safety check: PassMIT
Trace A Paymentsuperset-sh/superset15k—~1.5kAutomated safety check: PassCustom licence
Stripe Patternsbybren-llc/safe-agentic-workflow421—~1.2kAutomated safety check: PassMIT
Int Stripeevolution-foundation/evo-nexus545—~720Automated safety check: PassCustom licence

Similar skills

  • Metronome

    fossasia/eventyay

    Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing…

    1.7k GitHub stars~2.3k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Cashclaw Invoicer

    ertugrulakben/cashclaw

    Handles invoice creation, payment link generation, payment status tracking, and automated reminders via Stripe API.

    302 GitHub stars~2.5k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Trace A Payment

    superset-sh/superset

    Answer a question about money that already moved in Stripe — why a charge failed, what a customer was billed, where an invoice or payout stands — by reading the object chain instead of guessing from…

    15k GitHub stars~1.5k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Stripe Patterns

    bybren-llc/safe-agentic-workflow

    Stripe payment integration patterns for checkout flows, webhooks, and subscriptions.

    421 GitHub stars~1.2k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Int Stripe

    evolution-foundation/evo-nexus

    Query and manage Stripe data via the Stripe API. An agent skill from evolution-foundation/evo-nexus.

    545 GitHub stars~720 tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • Stripe

    refly-ai/refly-skills

    Integrate with Stripe for payment processing. An agent skill from refly-ai/refly-skills.

    204 GitHub stars~470 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from fcakyon/claude-codex-settings

All 43 skills in this repo
  • Slides

    fcakyon/claude-codex-settings

    Create and edit presentation slide decks (.pptx) with PptxGenJS, bundled layout helpers, and render/validation utilities.

    1.2k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Openobserve API

    fcakyon/claude-codex-settings

    This skill should be used when user asks to "query OpenObserve", "create OpenObserve dashboard", "edit OpenObserve panel", "fetch OpenObserve logs", "run OpenObserve search", "list OpenObserve…

    1.2k GitHub starsUsed in 1 repo~4.1k tokens
    Auto-check passed
  • Supabase JS

    fcakyon/claude-codex-settings

    This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the…

    1.2k GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Yolo Training

    fcakyon/claude-codex-settings

    This skill should be used when user asks to "improve my mAP", "why is my model overfitting", "my training is diverging", "read my results.csv", "interpret my training curves", "my AP50 is good but…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Dokploy Deploy

    fcakyon/claude-codex-settings

    This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure…

    1.2k GitHub stars~891 tokensUpdated yesterday
    Auto-check passed
  • Openship Config

    fcakyon/claude-codex-settings

    This skill should be used when the user asks to "create openship.json", "configure an OpenShip deployment", "make a repo deployable on OpenShip", or fix "openship config validate" errors.

    1.2k GitHub stars~803 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Metronome

What does Metronome do?

Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing…. Metronome is an agent skill from fcakyon/claude-codex-settings. Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing, products), invoicing lifecycle (grace periods, finalization, Stripe sync), credit and commit management (prepaid, postpaid, thresholds, auto-recharge), and Stripe integration (arrears invoicing, tax providers, line item limits).

When should I use Metronome?

Metronome fits situations like: reviewing any Metronome integration — including ingesting usage events; creating customers; designing billable metric group keys; managing credits and commits.

How do I install Metronome in Claude Code?

Run `npx skills add fcakyon/claude-codex-settings --skill metronome -a claude-code`. Or copy the skill folder (plugins/stripe-skills/skills/metronome in fcakyon/claude-codex-settings) into .claude/skills/metronome in your project. Claude Code loads it when a task matches its description.

How do I install Metronome in Codex?

Run `npx skills add fcakyon/claude-codex-settings --skill metronome -a codex`. Or copy the skill folder (plugins/stripe-skills/skills/metronome in fcakyon/claude-codex-settings) into .agents/skills/metronome in your project. Codex loads it when a task matches its description.

Can I use Metronome in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fcakyon/claude-codex-settings --skill metronome -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/metronome, .gemini/skills/metronome, .github/skills/metronome and .opencode/skills/metronome in your project.

What does Metronome need to run?

SKILL.md names no scripts, command-line tools or credentials: Metronome is instructions for the agent only.

Does Metronome access the network?

SKILL.md names 3 domains. In commands or code: api.metronome.com; the agent is likely to contact it when it follows the instructions. As links in the text: docs.metronome.com and docs.stripe.com. This is read from the text; nothing was executed.

Is Metronome safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Metronome use?

Metronome is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Metronome use?

About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Metronome?

Skills that share tags, products or a category with Metronome: Metronome (fossasia/eventyay, 1.7k stars), Cashclaw Invoicer (ertugrulakben/cashclaw, 302 stars), Trace A Payment (superset-sh/superset, 15k stars) and Stripe Patterns (bybren-llc/safe-agentic-workflow, 421 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Metronome?

fcakyon (a GitHub user) maintains it in fcakyon/claude-codex-settings, which has 1,165 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on October 7, 2026.

Source: fcakyon/claude-codex-settings on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.