invoice-send

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

An email sender for previously generated invoices that converts a DOCX invoice into a PDF and sends it as an attachment through an SMTP mail server. SMTP is the standard service used by email applications to send messages.

In plain words
What is it for?
Use it to email a specific invoice or the latest invoice, with optional CC recipients, subject text, and message body.
Why use it?
It avoids manually converting the invoice, composing the message, and attaching the PDF. It uses the recipient and mail-server settings provided in the configuration.

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-send/scripts/send.py \.

Good fit Use it to email a specific invoice or the latest invoice, with optional CC recipients, subject text, and message body.

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-send

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-send

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dithiothreitol/jdg-ksiegowy/invoice-send"><img src="https://agentmods.dev/badge/skills/dithiothreitol/jdg-ksiegowy/invoice-send.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 690 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.00116 $0.00690
Opus 5 $0.00058 $0.00345
Sonnet 5 $0.00023 $0.00138
Haiku 4.5 $0.00012 $0.00069

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

Security

Grade A, and why

invoice-send 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 12d 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-send/SKILL.md · 68 lines

What it actually says

Wysyłka faktury mailem

Konwertuje DOCX fakturę na PDF (przez LibreOffice) i wysyła mailem z załącznikiem.

Wymagane dane

  • --number LUB --latest — która faktura (numer albo ostatnia)
  • --to — email kontrahenta

Opcjonalnie: --cc, --subject, --body.

Wymagane w .env

SMTP_HOST=smtp.gmail.com
SMTP_PORT=587               # 465 dla SSL, 587 dla STARTTLS
[email protected]
SMTP_PASSWORD=<app-password>  # Gmail wymaga App Password, nie glownego hasla
SMTP_FROM=                  # pusty = uzywa SMTP_USERNAME
SMTP_USE_SSL=false          # true dla portu 465

Wymagania systemowe

  • LibreOffice zainstalowany (apt install libreoffice / brew install libreoffice)
  • Alternatywa: ustaw LIBREOFFICE_BIN w .env na ścieżkę do soffice

Wywołanie

# Wyślij konkretną fakturę:
python3 skills/invoice-send/scripts/send.py \
  --number "A1/04/2026" \
  --to "[email protected]"

# Wyślij ostatnią fakturę z CC:
python3 skills/invoice-send/scripts/send.py \
  --latest \
  --to "[email protected]" \
  --cc "[email protected]"

Zwraca JSON:

{
  "success": true,
  "to": "[email protected]",
  "subject": "Faktura A1/04/2026",
  "pdf_path": "data/faktury/2026/04/faktura_A1_04_2026.pdf"
}

Po wysłaniu

Pokaż userowi: adresata, subject, ścieżkę PDF-a. Domyślny subject: Faktura {numer}, domyślna treść po polsku z kwotą brutto i terminem.

Uwagi bezpieczeństwa

  • Nigdy nie loguj treści maila ani hasła SMTP.
  • Gmail blokuje "less secure apps" od 2022 → użyj App Password (panel Google → Bezpieczeństwo → Hasła do aplikacji).
  • Dla Office 365: SMTP wymaga włączonego SMTP AUTH w Exchange (może być wyłączony dla nowych tenantów).
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. 12d ago First seen · 68 lines · 116 tokens per session scan A 9b752401481d

Subscribe to this mod's changes

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