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
Use when adding or modifying invoice-related logic that must comply with Italian fiscal regulations.
Do not use for technical bug fixes, refactoring, or UI changes without fiscal impact.
Security analysis
SafeThe 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 madeExamples
Implementare il calcolo della ritenuta d'acconto sulle fatture per professionisti, assicurandosi che sia calcolata sull'imponibile e non sul totale IVA inclusa.Aggiungere la gestione dello split payment per fatture emesse verso la PA, con validazione che non si possa applicare insieme alla ritenuta d'acconto.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
- Leggi il documento di dominio in
references/fiscal-rules.mdper intero. Il path è relativo al folder della skill. - Identifica le sezioni rilevanti per la feature richiesta
- Estrai le regole fiscali che vincolano l'implementazione
- 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
- Leggi i file di dominio coinvolti in
src/Fatturazione.Domain/ - Leggi gli endpoint coinvolti in
src/Fatturazione.Api/Endpoints/ - Leggi i test esistenti in
tests/per capire cosa è già coperto - 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:
- Implementa seguendo le regole fiscali — non prendere scorciatoie che violano la normativa
- 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
- Esegui tutti i test con
dotnet testprima 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 suSubTotal - 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.mdper 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 filesThis 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.mdFrom 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 installationopenskills 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 syncManual 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.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.