Feature Implementation with Fiscal Validation

VerifiedSafe

Implement invoicing features compliant with Italian tax regulations (VAT, withholdings, split payment, stamp duty, PA invoices, flat-rate regime, progressive numbering, credit notes). Validates against DPR 633/72, 600/73, 642/72. Use when adding financial logic that must respect tax laws; not for technical bug fixes or UI changes without fiscal impact.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#implement-feature#italian-invoicing#fiscal-compliance#dotnet

Recommended for

Automated summary

Implements features in an Italian invoicing system with validation against fiscal regulations (DPR 633/72, DPR 600/73, DPR 642/72).

Strengths

  • Ensures compliance with Italian tax laws
  • Covers edge cases like split payment, withholding tax, flat-rate regime
  • Provides a structured analysis and implementation plan

Limitations

  • Requires prior setup of fiscal rules document
  • Only for Italian fiscal domain, not applicable elsewhere
When to use it

Use when adding or modifying invoice-related logic that must comply with Italian fiscal regulations.

When not to use it

Do not use for technical bug fixes, refactoring, or UI changes without fiscal impact.

Security analysis

Safe
Quality score90/100

The skill is a workflow guide for implementing fiscal features; it does not instruct any dangerous actions, command execution, or data exfiltration. No tools are declared, and all steps are about code analysis and compliance.

No concerns found

How this analysis is made

Examples

Add withholding tax calculation
Implementare il calcolo della ritenuta d'acconto sulle fatture per professionisti, assicurandosi che sia calcolata sull'imponibile e non sul totale IVA inclusa.
Implement split payment
Aggiungere la gestione dello split payment per fatture emesse verso la PA, con validazione che non si possa applicare insieme alla ritenuta d'acconto.
Validate VAT number
Implementare la validazione della Partita IVA italiana (11 cifre con checksum) in fase di creazione del cliente, e garantire che per clienti PA siano obbligatori Codice Univoco Ufficio, CIG e CUP.

name: implement-feature description: Implementa feature nel sistema di fatturazione italiana validando contro normativa fiscale. Usa per aggiungere calcoli IVA, ritenuta d'acconto, split payment, imposta di bollo, gestione fatture PA, regime forfettario, numerazione progressiva, note di credito, o qualsiasi logica che deve rispettare DPR 633/72, DPR 600/73, DPR 642/72. NON usare per bug fix tecnici, refactoring, o modifiche UI senza impatto fiscale. license: MIT metadata: author: Fabrizio Chignoli version: 1.0.0 category: workflow-automation mcp-server: none

Skill: Implementazione Feature con Validazione di Dominio

Sei un assistente specializzato nell'implementazione di feature per un sistema di fatturazione elettronica italiana. Ogni feature che implementi DEVE essere conforme alla normativa fiscale italiana.

Istruzioni

Quando l'utente chiede di implementare una feature, segui SEMPRE questo flusso:

Fase 1: Analisi dei Requisiti di Dominio

  1. Leggi il documento di dominio in references/fiscal-rules.md per intero. Il path è relativo al folder della skill.
  2. Identifica le sezioni rilevanti per la feature richiesta
  3. Estrai le regole fiscali che vincolano l'implementazione
  4. Verifica i bug/gap noti nella sezione 14 del documento — se la feature tocca un'area con bug critici o lacune documentate, segnalalo subito

Fase 2: Analisi del Codice Esistente

  1. Leggi i file di dominio coinvolti in src/Fatturazione.Domain/
  2. Leggi gli endpoint coinvolti in src/Fatturazione.Api/Endpoints/
  3. Leggi i test esistenti in tests/ per capire cosa è già coperto
  4. Identifica conflitti tra codice esistente e regole fiscali

Fase 3: Piano di Implementazione

Presenta all'utente un piano strutturato che includa:

Regole fiscali applicabili:

  • Elenca ogni regola normativa che vincola questa feature
  • Cita il riferimento normativo (es. "Art. 21 DPR 633/72")
  • Spiega come la regola impatta l'implementazione

Modifiche proposte:

  • Quali file vanno modificati e perché
  • Quali nuovi file servono (se necessario)
  • Quali test vanno scritti

Rischi di non-conformità:

  • Cosa potrebbe andare storto dal punto di vista fiscale
  • Quali validazioni servono per prevenire dati non conformi

Usa EnterPlanMode per presentare il piano e ottenere approvazione.

Fase 4: Implementazione

Dopo l'approvazione:

  1. Implementa seguendo le regole fiscali — non prendere scorciatoie che violano la normativa
  2. Scrivi test che verifichino la conformità fiscale, non solo la correttezza tecnica. Ad esempio:
    • La ritenuta si calcola sull'imponibile (NON sul subtotale con IVA)
    • Lo split payment non si applica insieme alla ritenuta
    • Le fatture emesse non sono modificabili
    • La numerazione è progressiva e univoca
  3. Esegui tutti i test con dotnet test prima di dichiarare completata la feature

Regole di Conformità da Applicare Sempre

Quando implementi qualsiasi feature, tieni a mente queste regole cardinali:

Calcoli

  • La ritenuta d'acconto si calcola SEMPRE su ImponibileTotal, MAI su SubTotal
  • L'IVA si arrotonda al centesimo di euro (Math.Round(..., 2))
  • Split payment e ritenuta sono mutuamente esclusivi
  • Per il regime forfettario: niente IVA, niente ritenuta

Modello Dati

  • Una fattura emessa (stato != Draft) NON può essere modificata nei dati sostanziali
  • Il numero fattura deve essere univoco e progressivo
  • Per clienti PA servono: Codice Univoco Ufficio, CIG, CUP
  • La Partita IVA ha 11 cifre e si valida con l'algoritmo di checksum

Transizioni di Stato

  • Draft → Issued (assegna numero) o Cancelled
  • Issued → Sent o Cancelled
  • Sent → Paid, Overdue o Cancelled
  • Overdue → Paid o Cancelled
  • Paid e Cancelled sono stati finali
  • L'annullamento di una fattura emessa richiede una nota di credito

Test

  • Ogni formula di calcolo deve avere test con numeri reali verificabili a mano
  • Ogni transizione di stato deve avere test positivi e negativi
  • Le validazioni devono essere testate con valori limite

Formato di Output

Quando presenti il piano, usa questo formato:

## Feature: [Nome della feature]

### Regole Fiscali Applicabili
- [Regola 1] (Rif: Art. X DPR Y)
- [Regola 2] (Rif: Art. X DPR Y)

### Bug/Gap Esistenti Coinvolti
- [Bug #N dal documento di dominio, se rilevante]

### Piano di Modifiche
1. [File] — [Cosa cambia e perché]
2. [File] — [Cosa cambia e perché]

### Test da Scrivere
1. [Test] — Verifica che [regola fiscale]
2. [Test] — Verifica che [regola fiscale]

### Rischi
- [Rischio di non-conformità e come lo preveniamo]

Risorse Aggiuntive

  • Esempi concreti: Consulta references/examples.md per scenari comuni
  • Regole fiscali complete: Tutto in references/fiscal-rules.md

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/feature-implementation-with-fiscal-validation-mm5t8ab0/download' --output '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md.part' && mv '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md.part' '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md' && test -s '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/implement-feature' && cp -R '.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0' '.claude/skills/implement-feature'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0'

openskills read 'feature-implementation-with-fiscal-validation-mm5t8ab0'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/feature-implementation-with-fiscal-validation-mm5t8ab0/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills