/anafpy-workflows:personal-income-summaryfrom anafpy workflows
Summarizes personal income for Romanian natural persons by pulling ANAF SPV records (Adeverință de venit and D212). Handles casual Romanian/English queries and optionally produces an Excel summary.
Ships in anafpy workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Answer "what was my income?" for a Romanian natural person by pulling the authoritative ANAF records, extracting the figures, and presenting a clean per-year summary — with an optional Excel workbook.
Uses the anafpy MCP SPV tools. All amounts are in lei (RON).
The user is asking about their own personal income over one or more years — phrased in Romanian or English, formally or casually. This skill assumes personal (natural-person) income by default; see "Whose income" below for the company-income branch.
For personal income, two SPV reports are the right default — request both for each year:
Adeverinte Venit (income certificate) — the PRIMARY source. It
aggregates every realized income ANAF has on record for the person that year:
salaries (from employer D112 filings), independent activity / intellectual
property (from the Declarația Unică), interest (from D205), etc., each with
gross income, taxable base, and tax. This one certificate usually answers the
whole question.D212 (Declarația Unică duplicate) — SUPPORTING source. The person's own
self-declared return; use it to confirm/detail the independent-activity
portion. The adeverință already folds this in, so D212 is a cross-check, not
the headline.Do not default to company reports (D300, D101, bilanț, etc.) — those are for legal entities, not personal income.
Call spv_status (SPV rides the certificate session — the OAuth auth_status
says nothing about it). It returns the certificate
holder's cnp and authorized_cuis. If there is no active session, tell the
user to log in host-side (anafpy spv login) or, only if they explicitly ask,
call spv_login(confirm=true) (this fires their PIN/2FA). Do not proceed
without a session.
spv_status.cnp as the cui for every request. If authorized_cuis also
contains company CIFs and the user's wording is ambiguous about personal vs
company income, ask once which they mean; otherwise assume personal.For each target year, call spv_cerere:
spv_cerere(tip="Adeverinte Venit", cui=<CNP>, an=<year>, motiv="Altele")spv_cerere(tip="D212", cui=<CNP>, an=<year>)motiv must match ANAF's fixed list exactly (spv_nomenclature("income_certificate_reasons")).
Default to "Altele" unless the user states a real purpose (loan → "Institutie
financiar bancara asigurare etc.", health → "Sanatate", etc.) — the motiv is
printed on the certificate. Each call returns an id_solicitare.
For each id_solicitare, call spv_asteapta_raport(id_solicitare=..., save_as=<path>)
to save the PDF to the outputs folder. The handshake occasionally times out
(MCP -32001) even though the request is still valid — just call
spv_asteapta_raport again for that id; it is not an error. Name files clearly,
e.g. Adeverinta_<year>.pdf, DU_<year>.pdf.
Read each adeverință PDF. Each row has: category (Categoria de venit), source
document, income type (realizat/estimat — keep only Realizat), gross income
(Venit brut), taxable income (Venit impozabil), tax (Impozit). Capture
every row; the DU rows appear as "Decl.unica nr=...".
Give a concise per-year answer in chat: a small table per year with the line items and a TOTAL, plus a one-line trend across years. Note common quirks plainly — e.g. some salary rows show taxable income 0 when the person had an income-tax exemption (IT/construction). State that figures exclude CAS/CASS contributions paid separately via the Declarația Unică.
After the chat summary, offer to build an Excel workbook: "Want this as an Excel file?" Build it only if the user says yes (or asked for it up front). When building, follow the xlsx skill and this layout:
Sumar sheet: one row per year — An, Venit brut, Venit impozabil, Impozit,
and gross split by Salarii / Activități independente / Dobânzi — with a TOTAL
row. The brut/impozabil/impozit cells reference the per-year detail totals by
formula; the category splits are summed from the line items.2023, 2024, ...): every line item with its
source document and the three amount columns, ending in a =SUM(...) TOTAL row.#,##0 number format, and run
recalc.py until it reports zero errors. Save as Venituri_<first>-<last>.xlsx
and present it with present_files.present_files.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/declaratie-prepareBuild, validate, render, sign, and track a Romanian tax declaration starting from unstructured source data (an accountant's email, a spreadsheet, pasted numbers, "file my VAT return for March"). Identifies the right form, reads its completion guide, infers identification data via the public ANAF lookups (CUI → name, address, VAT status), asks the user for what cannot be inferred, and drives the declaration MCP tools (declaratie_validate loop → declaratie_render → declaratie_sign → declaratie_prepare/declaratie_submit filing, or manual filing when the portal tools are opted out → declaratie_status / declaratie_recipisa).
/etransport-declareFile a Romanian RO e-Transport declaration and obtain a UIT code from transport data found in any source — an email, a PDF invoice, a CMR, a spreadsheet, or the conversation. Use when the user wants to declare a transport, get/generate a UIT, file an e-Transport declaration, correct an already-issued one, or asks whether a transport must be declared and what the law requires of them. Trigger on Romanian phrasing too, with or without diacritics — "am de făcut un UIT" / "am de facut un UIT", "trebuie să declar un transport" / "trebuie sa declar un transport", "vreau un cod UIT", "am de declarat o marfă". Drives the anafpy MCP tools (etransport_prepare_declaration → etransport_submit).
npx claudepluginhub robert-malai/anafpy --plugin anafpy-workflowsOther plugins' skills for the same job