cli-invoice

cli-invoice is a skill for Claude Code, Codex from thedavidweng/skills. It costs 70 tokens per session (1,577 once invoked), scanned A, original, MIT.

A command-line invoice generator that creates PDF invoices from a single terminal command.

In plain words
What is it for?
It generates, regenerates, and manages invoices with sender, recipient, item, quantity, and rate information.
Why use it?
It avoids maintaining separate invoice data and template files: the saved command contains the invoice details and can recreate the PDF when needed.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the david-skills plugin — 22 skills shipped together

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.

agentmods
npx agentmods add skills/thedavidweng/skills/cli-invoice
Any agent
npx skills add thedavidweng/skills --skill cli-invoice
Clone the repo
git clone --depth 1 https://github.com/thedavidweng/skills

Made for: Claude Code, Codex.

Or install david-skills, the plugin that ships this one along with the rest of its 22 skills.

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 cli-invoice

README.md
[![agentmods](https://agentmods.dev/badge/skills/thedavidweng/skills/cli-invoice.svg)](https://agentmods.dev/skills/thedavidweng/skills/cli-invoice)
Your own site
<a href="https://agentmods.dev/skills/thedavidweng/skills/cli-invoice"><img src="https://agentmods.dev/badge/skills/thedavidweng/skills/cli-invoice.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00070 $0.01577
Opus 5 $0.00035 $0.00788
Sonnet 5 $0.00014 $0.00315
Haiku 4.5 $0.00007 $0.00158

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

Security

Grade A, and why

cli-invoice 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.

document-generation/cli-invoice/SKILL.md · 186 lines

How it starts

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

CLI Invoice — Command-as-Source Invoice Management

Tool: maaslalani/invoice — Command line invoice generator

Philosophy

  • The CLI command IS the source file. No JSON, no YAML, no template file — just the command.
  • Store the command, not the PDF. Keep each invoice's generate command in a note (e.g., Obsidian code block). Regenerate on demand.
  • One command = one invoice. Each invocation produces a self-contained PDF.

Prerequisites & Installation

Check that invoice is available:

command -v invoice >/dev/null 2>&1 || { echo "ERROR: invoice CLI not installed"; exit 1; }

Install methods (pick one)

Method Command Requires
Homebrew (recommended on macOS) brew install invoice Homebrew
Go install go install github.com/maaslalani/invoice@main Go 1.19+
Binary download Download from GitHub Releases

Note: The Go install path uses @main, not @latest. This is per the upstream README.

Verify installation

invoice --help

Command Syntax

invoice generate \
  --from "Sender Name" \
  --to "Recipient Name/Company" \
  --item "Description" --quantity <N> --rate <PRICE> \
  [--item "Another item" --quantity <N> --rate <PRICE>] \
  [--tax <DECIMAL>] \
  [--discount <DECIMAL>] \
  [--note "Additional notes"] \
  [--output <path.pdf>]

Parameters

Flag Required Description
--from Yes Sender name or business
--to Yes Recipient name or business
--item Yes (1+) Line item description. Repeat with --quantity and --rate for each item
--quantity Yes Quantity for the preceding --item
--rate Yes Unit price for the preceding --item
--tax No Tax rate as decimal (e.g., 0.13 for 13%)
--discount No Discount rate as decimal (e.g., 0.15 for 15%)
--note No Footer note (e.g., payment terms)
--output No Output path (default: invoice.pdf in current directory)
--import No Import data from a JSON or YAML file (see Import from file)

Read the full file on GitHub · 186 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 186 lines · 70 tokens per session scan A 0185cdaa9c66

Subscribe to this mod's changes

cli-invoice is a skill published in the GitHub repository thedavidweng/skills (11 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 1,577 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

invoice

A printable invoice page — sender + recipient block, line items table, tax breakdown, totals, and payment instructions. Use when the brief mentions "invoice", "bill", "billing statement", or "发票".

nexu-io/open-design · 46 tokens

report-generator

Generate professional HTML/PDF investment reports with interactive visualizations.

yennanliu/InvestSkill · 11 tokens

iflytek-ocr-invoice

Use when user asks to recognize invoices, extract receipt data, or OCR bills and tickets. Recognize and extract structured data from invoices, receipts, and bills using iFlytek OCR API (科大讯飞票据识别). Supports VAT invoices, taxi receipts, train tickets, toll invoices, medical bills, bank receipts, and more.

iflytek/iFly-Skills · 77 tokens

cwicr-report-generator

Generate professional cost estimation reports from CWICR calculations. HTML, PDF, Excel outputs with charts and breakdowns.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 29 tokens

financial-document-parser

Extract and analyze data from invoices, receipts, bank statements, and financial documents. Categorize expenses, track recurring charges, and generate expense reports. Use when user provides financial PDFs or images.

XiaoLuoLYG/GOD · 42 tokens

procesar-mis-estados-de-cuenta

Proceso un lote de estados de cuenta bancarios y de tarjeta de crédito en PDF o CSV de principio a fin: extraigo cada transacción (subagentes Haiku en paralelo), normalizo los nombres de las contrapartes, categorizo contra tu plan de cuentas bloqueado (subagentes Sonnet en paralelo), detecto transferencias entre…

gethouston/houston · 151 tokens