.claude/skills/implement-feature/SKILL.md
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.
npx skillsauth add lazyoft/raymond-invoices implement-featureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
Quando l'utente chiede di implementare una feature, segui SEMPRE questo flusso:
references/fiscal-rules.md per intero. Il path è relativo al folder della skill.src/Fatturazione.Domain/src/Fatturazione.Api/Endpoints/tests/ per capire cosa è già copertoPresenta all'utente un piano strutturato che includa:
Regole fiscali applicabili:
Modifiche proposte:
Rischi di non-conformità:
Usa EnterPlanMode per presentare il piano e ottenere approvazione.
Dopo l'approvazione:
dotnet test prima di dichiarare completata la featureQuando implementi qualsiasi feature, tieni a mente queste regole cardinali:
ImponibileTotal, MAI su SubTotalMath.Round(..., 2))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]
references/examples.md per scenari comunireferences/fiscal-rules.mdtesting
Writes xUnit tests for SBA use cases in the Fatturazione invoicing system. Use when creating tests for use cases, services, or validators. Follows the three-phase testing pattern (load failures, validation failures, execution success/failure) with NSubstitute mocking and FluentAssertions. Preserves the project's existing test conventions.
testing
Implements two-tier error handling for the Fatturazione invoicing system following SBA patterns. Use when adding error handling to use cases, defining new domain exceptions, or setting up structured logging with actor context. Covers expected errors (validation, authorization) vs unexpected errors (infrastructure), logging levels, and exception-to-HTTP-status mapping.
testing
Creates SBA (Story-Based Architecture) use cases in C# following the three-phase pattern (Load, Validate, Execute). Use when adding new business operations like creating invoices, issuing credit notes, transitioning statuses, or any domain action that combines data loading, validation, and execution into a single cohesive unit.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.