invoice

invoice is a skill for Claude Code from dithiothreitol/jdg-ksiegowy. It costs 108 tokens per session (735 once invoked), scanned A, original, MIT.

An invoicing tool for Polish sole traders (JDG) that creates a VAT invoice as a DOCX file for sending or printing and an XML file for KSeF, Poland’s e-invoicing system. It also records the invoice in a local SQLite database.

In plain words
What is it for?
Use it to issue an invoice for a customer, service, consultation, or billing period and get the invoice number and saved file paths.
Why use it?
It removes the need to prepare the same invoice in several formats and keep a separate invoice register. It asks for missing buyer or amount details instead of guessing.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/invoice/scripts/generate.py \.

Good fit Use it to issue an invoice for a customer, service, consultation, or billing period and get the invoice number and saved file paths.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dithiothreitol/jdg-ksiegowy
agentmods
npx agentmods add skills/dithiothreitol/jdg-ksiegowy/invoice

Made for: Claude Code.

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 invoice

README.md
[![agentmods](https://agentmods.dev/badge/skills/dithiothreitol/jdg-ksiegowy/invoice/github.svg)](https://agentmods.dev/skills/dithiothreitol/jdg-ksiegowy/invoice)
Your own site
<a href="https://agentmods.dev/skills/dithiothreitol/jdg-ksiegowy/invoice"><img src="https://agentmods.dev/badge/skills/dithiothreitol/jdg-ksiegowy/invoice/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 invoice

Your own site · 80×15
<a href="https://agentmods.dev/skills/dithiothreitol/jdg-ksiegowy/invoice"><img src="https://agentmods.dev/badge/skills/dithiothreitol/jdg-ksiegowy/invoice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 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.00108 $0.00735
Opus 5 $0.00054 $0.00367
Sonnet 5 $0.00022 $0.00147
Haiku 4.5 $0.00011 $0.00073

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

Security

Grade A, and why

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 11d 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.

.claude/skills/invoice/SKILL.md · 59 lines

What it actually says

Wystawianie faktury VAT (JDG)

Generuje fakturę w dwóch formatach jednocześnie:

  • DOCX — do wysyłki mailem lub druku
  • XML FA(3) — wymagany format KSeF (obowiązkowy od 1.04.2026)

Zapisuje rekord do data/registry.sqlite i pliki do data/faktury/YYYY/MM/.

Wymagane dane od usera

Zanim odpalisz skrypt, upewnij się że masz:

  • buyer-name — nazwa nabywcy
  • buyer-nip — NIP (10 cyfr)
  • netto — kwota netto w PLN (Decimal — nie float!)

Opcjonalnie: buyer-address, buyer-email, description, period (DD.MM.YYYY-DD.MM.YYYY).

Jeśli czegoś brakuje — dopytaj usera, nie zgaduj.

Wywołanie

python3 skills/invoice/scripts/generate.py \
  --buyer-name "Firma ABC Sp. z o.o." \
  --buyer-nip "1234567890" \
  --buyer-address "ul. Przykladowa 1, 00-001 Warszawa" \
  --description "Konsultacja w zakresie AI i automatyzacji" \
  --netto 10500 \
  --period "01.04.2026-30.04.2026"

Skrypt zwraca JSON na stdout:

{
  "number": "A1/04/2026",
  "netto": "10500.00",
  "vat": "2415.00",
  "brutto": "12915.00",
  "docx_path": "data/faktury/2026/04/faktura_A1_04_2026.docx",
  "xml_path": "data/faktury/2026/04/faktura_A1_04_2026.xml",
  "payment_due": "2026-05-01",
  "status": "generated"
}

Po wygenerowaniu

Pokaż userowi numer faktury, kwotę brutto, termin płatności i ścieżki plików (jako klikalne markdown linki). Jeśli user chce od razu wysłać do KSeF — użyj skilla ksef, przekazując xml_path zwrócone tutaj.

Zmienne środowiskowe (z .env)

Skrypt sam czyta dane sprzedawcy: SELLER_NAME, SELLER_NIP, SELLER_ADDRESS, SELLER_BANK_ACCOUNT, SELLER_BANK_NAME. Jeśli skrypt zwróci błąd o braku zmiennej — powiedz userowi że trzeba uzupełnić .env.

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. 11d ago First seen · 59 lines · 108 tokens per session scan A b35c498ba7d4

Subscribe to this mod's changes

invoice is a skill published in the GitHub repository dithiothreitol/jdg-ksiegowy (5 stars, last pushed 1mo ago), licensed MIT. It adds 108 tokens to every session and 735 once invoked, about $0.0005 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-31.