# KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF

> Issue a Polish VAT invoice with one command: a client PDF and a KSeF-ready FA(3) XML from a single source, with safe sending to KSeF (dry run by default).

KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF is a paid AI agent skill on Agensi by Sebastian Kurzynowski, in Business & Operations. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Sebastian Kurzynowski](https://www.agensi.io/creators/sebastian-kurzynowski)
- Category: [Business & Operations](https://www.agensi.io/skills/business-operations)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ksef-faktury-polish-vat-invoices-pdf-fa-3-xml-ksef
- Tags: finance-accounting, business-operations, workflow-automation

## About this skill

**For Polish sole traders (JDG) and small businesses that issue their own invoices and must send them to KSeF, Poland's mandatory national e-invoicing system.**

You tell your agent "invoice ACME 4,500 PLN net for the implementation". The agent:

1. assigns the next number for the month (N/M/YYYY) from a local register,
2. generates the client PDF and the FA(3) XML **from the same data**, so amounts, number and description can never drift apart,
3. validates the XML against the official FA(3) schema of Poland's Ministry of Finance; an invalid XML never uses up an invoice number,
4. on your explicit "send" it submits the invoice to KSeF (API 2.0) and stores the KSeF number and the UPO receipt.

It can also download purchase and sales invoices from KSeF for any period, e.g. for your accountant.

### Safety
- **Sending to KSeF is a dry run by default.** A KSeF number is irreversible, so the skill first shows a summary and waits for your approval.
- The Ministry's test environment is available with `KSEF_ENV=test`, so you can rehearse sending with no consequences.
- Your KSeF token stays on your machine in `~/.ksef-faktury/.env` (chmod 600). The skill never asks you to paste it into the chat and sends it nowhere except the Ministry of Finance API.
- NIP (tax ID) checksum and VAT rates are validated before anything is written.

### Language
The skill works in Polish: Polish invoices, Polish tax authority, Polish wording for your accountant. It is built for businesses invoicing in Poland.

### Requirements
Python 3.9+, `pip install lxml cryptography`, Chrome or Chromium for PDF. Works on Linux and macOS.

### Not supported (yet)
Correction and advance invoices, 0% / exempt / not-taxable / OSS rates, currencies other than PLN, buyers without a Polish NIP. This is a tool, not tax advice.

### Author
Sebastian Kurzynowski, Decentprod: AI and automation implementations for small and medium businesses. Built for my own invoicing. → decentprod.com

---

**Po polsku:** wystawiasz fakturę VAT jednym poleceniem: PDF dla klienta i XML FA(3) z tych samych danych, walidacja schematem MF, bezpieczna wysyłka do KSeF (domyślnie suchy bieg, środowisko testowe dostępne) i pobieranie faktur dla księgowej. Token KSeF zostaje u Ciebie.

## Requires

- Python 3.9+
- lxml + cryptography (pip)
- Google Chrome or Chromium (PDF)
- KSeF token (for sending only)

Linux and macOS. Generate the KSeF token in the Ministry's taxpayer app (InvoiceWrite + InvoiceRead). Without a token the skill still creates the PDF and XML, it just doesn't send.

## Known limitations

Only standard VAT invoices in PLN for buyers with a Polish NIP. No correction (KOR) or advance (ZAL) invoices, no consumer or foreign buyers. Rates 23/8/5% only, no exempt, 0%, not-taxable or OSS. Bank transfer payment only. The skill itself works in Polish. A tool, not tax advice.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF do?

Issue a Polish VAT invoice with one command: a client PDF and a KSeF-ready FA(3) XML from a single source, with safe sending to KSeF (dry run by default).

### Which AI agents support KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF?

Connect your AI agent to Agensi through MCP, then ask it to use KSeF Faktury: Polish VAT Invoices → PDF + FA(3) XML → KSeF on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
