# Jpk Ewp

> Generuje JPK_EWP — Ewidencję Przychodów ryczałtowca za cały rok (XML). Składasz raz w roku do 30.04 następnego roku, razem z PIT-28. Obowiązkowy od 1.01.2026 dla ryczałtowców rozliczających VAT miesięcznie. Użyj gdy user mówi "wygeneruj JPK_EWP", "ewidencja ryczałtu za 2026", "roczna ewidencja przychodów", "JPK do PIT-28".

- **Type:** Skill
- **Install:** `agentstack add skill-dithiothreitol-jdg-ksiegowy-jpk-ewp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dithiothreitol](https://agentstack.voostack.com/s/dithiothreitol)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dithiothreitol](https://github.com/dithiothreitol)
- **Source:** https://github.com/dithiothreitol/jdg-ksiegowy/tree/main/.claude/skills/jpk-ewp

## Install

```sh
agentstack add skill-dithiothreitol-jdg-ksiegowy-jpk-ewp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Generator JPK_EWP (ewidencja ryczałtu, roczna)

Generuje plik `JPK_EWP_{rok}.xml` na podstawie wszystkich faktur sprzedażowych z rejestru za dany rok.

## Wymagane dane

- **year** — rok podatkowy (4 cyfry)

Opcjonalnie:
- `ryczalt-rate` — stawka ryczałtu jako procent (`12`, `8.5`, `15`...). Domyślnie z `.env` (`SELLER_RYCZALT_RATE`).

Stawki dozwolone (słownik MF): `17, 15, 14, 12.5, 12, 10, 8.5, 5.5, 3`.

## Wywołanie

```bash
python3 skills/jpk-ewp/scripts/generate_ewp.py --year 2026
```

Lub z inną stawką:
```bash
python3 skills/jpk-ewp/scripts/generate_ewp.py --year 2026 --ryczalt-rate 8.5
```

Zwraca JSON:
```json
{
  "year": 2026,
  "invoice_count": 48,
  "total_revenue": "245000.00",
  "file_path": "data/jpk/JPK_EWP_2026.xml"
}
```

## Po wygenerowaniu

Pokaż userowi: rok, liczbę faktur, sumę przychodów, ścieżkę pliku (jako klikalny link).
Przypomnij: termin = **30.04 następnego roku** (razem z PIT-28).
Po wygenerowaniu możesz wysłać do MF skillem `jpk-submit`.

## ⚠️ Ważne

- JPK_EWP ma **inny schemat** niż JPK_V7M (XML namespace inny, struktura wierszy inna).
- Pierwsza obligatoryjna wysyłka dla ryczałtowców z VAT: **2026** (do złożenia 30.04.2027).
- Dla pozostałych ryczałtowców (bez VAT lub z kwartalnym JPK) — od **2027**.
- **Implementacja MVP**: namespace XSD JPK_EWP(4) jest ustawiony jako placeholder — przed wysyłką na PROD zweryfikuj zgodność ze schematem opublikowanym przez MF (do potwierdzenia po publikacji na gov.pl).

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dithiothreitol](https://github.com/dithiothreitol)
- **Source:** [dithiothreitol/jdg-ksiegowy](https://github.com/dithiothreitol/jdg-ksiegowy)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dithiothreitol-jdg-ksiegowy-jpk-ewp
- Seller: https://agentstack.voostack.com/s/dithiothreitol
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
