billing-rate

billing-rate is a command for Claude Code from gonzalezpazmonica/savia. It costs 46 tokens per session (789 once invoked), scanned A, original, MIT.

A tool for setting legal-service rates, calculating fees from time records, creating invoices, and reporting on billing. It supports hourly, fixed, contingency, and mixed fee types.

In plain words
What is it for?
Use it to store professional rates, calculate charges from CSV time entries, generate PDF and XML invoices for a case and period, and review billing reports.
Why use it?
It reduces manual fee calculations and turns recorded hours and configured rates into itemised billing documents.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to store professional rates, calculate charges from CSV time entries, generate PDF and XML invoices for a case and period, and review billing reports.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gonzalezpazmonica/savia/billing-rate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/savia

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for billing-rate

README.md
[![agentmods](https://agentmods.dev/badge/commands/gonzalezpazmonica/savia/billing-rate/github.svg)](https://agentmods.dev/commands/gonzalezpazmonica/savia/billing-rate)
Your own site
<a href="https://agentmods.dev/commands/gonzalezpazmonica/savia/billing-rate"><img src="https://agentmods.dev/badge/commands/gonzalezpazmonica/savia/billing-rate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for billing-rate

Your own site · 80×15
<a href="https://agentmods.dev/commands/gonzalezpazmonica/savia/billing-rate"><img src="https://agentmods.dev/badge/commands/gonzalezpazmonica/savia/billing-rate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 789 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00789
Opus 5 $0.00023 $0.00394
Sonnet 5 $0.00009 $0.00158
Haiku 4.5 $0.00005 $0.00079

Measured 6d ago against content hash a315b832f800, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

billing-rate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/billing-rate.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gestor de Tarifas y Facturación

Controla tarifas horarias, honorarios fijos y cálculo de facturas.

Uso

billing-rate set <profesional> <tipo> <cantidad> [moneda]
billing-rate calculate <entrada-tiempo>
billing-rate invoice <caso> [periodo]
billing-rate report [filtros]
billing-rate list

Subcomandos

set

Define tarifa de profesional.

  • profesional: nombre abogado, paralegal, pasante
  • tipo: hourly | fixed_fee | contingency | mixed
  • cantidad: tarifa por hora o cantidad fija
  • moneda: EUR (default) | USD | GBP

Almacena en: projects/{proyecto}/legal/billing/rates.json

calculate

Calcula honorarios desde entradas de tiempo.

  • Input: fichero .csv con horas por profesional/materia
  • Aplica tarifa configurable
  • Output: desglose por profesional y materia
  • Soporta descuentos por volumen o relación

invoice

Genera factura en base a tiempo registrado.

  • caso: referencia del caso
  • periodo: MM-YYYY (default: mes actual)
  • Incluye: descripción servicios, profesionales, horas, tarifas, total
  • Formato: PDF + XML para compliance contable

report

Análisis de facturación.

  • filtros: por-lawyer | por-materia | por-cliente | por-periodo
  • Muestra: ingresos, promedio por hora, rentabilidad por materia
  • Tendencias: comparación trimestral, anual

list

Muestra todas las tarifas activas.

  • Tabla: profesional, tipo, cantidad, moneda, activo desde

Tipos de Facturación

hourly

Tarifa por hora. Requiere registro tiempo. Ejemplo: 150 EUR/h

fixed_fee

Honorario fijo por materia/caso. Ejemplo: 2.500 EUR por contestación

contingency

Sin pago hasta resultado. % sobre cantidad recuperada. Ejemplo: 25% de lo recuperado

mixed

Combinación (retainer + horas excedentes). Ejemplo: 1.000 EUR base + 100 EUR/h horas extra

Almacenamiento

{
  "rates": [
    {
      "id": "rate-001",
      "lawyer": "abogado-1",
      "type": "hourly",
      "amount": 150,
      "currency": "EUR",
      "active_since": "2026-01-01",
      "active_until": null
    }
  ],
  "invoices": [
    {
      "id": "inv-2026-001",
      "case": "C-2024-001",
      "period": "2026-03",
      "total_hours": 24.5,
      "gross_amount": 3675,
      "discounts": 0,
      "net_amount": 3675,
      "status": "draft|issued|paid",
      "issued": "2026-03-06"
    }
  ]
}

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 121 lines · 46 tokens per session scan A a315b832f800

Subscribe to this mod's changes

billing-rate is a command published in the GitHub repository gonzalezpazmonica/savia (50 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 789 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.