Invoice send
Skill dithiothreitol/jdg-ksiegowy/.claude/skills/invoice-send
AI Asystent Księgowy dla JDG (Polska) — faktury, KSeF 2.0, JPK_V7M/EWP, ZUS, ryczałt. OpenClaw + Ollama + Claude.
npx -y skills add dithiothreitol/jdg-ksiegowy --skill invoice-sendAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Konwertuje wygenerowaną fakturę DOCX na PDF (LibreOffice headless) i wysyła mailem do kontrahenta z treścią po polsku. Używa SMTP skonfigurowanego w `.env`. Użyj gdy user mówi "wyślij fakturę mailem", "wyślij PDF fakturę do X", "roześlij fakturę A1/04/2026", "wyślij ostatnią fakturę", "mail do klienta z fakturą".
SKILL.md
2.1 KB, as published. Nobody here has run it
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_BINw.envna ścieżkę dosoffice
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).