robertogallea/laravel-codicefiscale/using-laravel-codicefiscale
Claude Code and agent skill by robertogallea/laravel-codicefiscale
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when generating, parsing, validating, or matching an Italian codice fiscale, or when working with laravel-codicefiscale's birthplace domain or its Laravel-specific integrations (validation rule, Eloquent cast, Faker provider, codice-fiscale:update-places command). Covers the 3.x API only - for migrating 2.x application code, use the upgrading-laravel-codicefiscale-from-v2 skill instead.
Install
npx vskill@latest install robertogallea/laravel-codicefiscale/using-laravel-codicefiscaleSKILL.md
Using laravel-codicefiscale
Full API reference with runnable examples: README.md at this package's root. This skill is a map to it, not a replacement for it - read the relevant README section before writing code against an API you haven't confirmed.
Reach for these, don't hand-roll them
- `CodiceFiscale::from()`/`::tryFrom()` - an immutable value object; the only way to hold a codice fiscale. Checks structure only, not checksum/semantics.
- `Generator` - builds a
CodiceFiscalefrom aPersonDTO (Robertogallea\CodiceFiscale\Data\Person, with aBirthPlaceCode, not a name or string). - `Parser` - decodes a
CodiceFiscaleinto its parts.surnameCode()/nameCode()are 3-character encoded fragments, never the person's real name - there is no way to recover it.birthDate()/birthYear()are nullable: the two-digit year is inherently ambiguous between two candidate centuries, resolved via a swappableContracts\BirthDateResolver(defaultDefaultBirthDateResolver); both arenullwhen neither candidate is plausible. See README's "Reference-date resolution".birthPlace()returns the attributable era - the one valid on the birth date, else the earliest instituted after it - since the tax authority assigns codes as of issue time; it isnullonly for an unknown code or one that had ceased before the birth date. - `Validator` - checks format, checksum, and semantics as independently-callable tiers; never accepts a
Person. Returns aValidationResultwith aValidationErrorenum, not exceptions. Semantics judge the birthplace by attributability (README "Birthplace attributability"): a code instituted after the birth date passes;BirthPlaceNotValidOnDatemeans every era of the code ended before the birth date. - `Matcher` - cross-checks a
CodiceFiscaleagainst aPersonorPartialPerson. This is the only place a codice fiscale gets compared to a person -Validatornever does this. - `Omocodia` -
canonical(),level(),variants()for the digit/letter substitution scheme used to resolve collisions. - Birthplace domain -
Contracts\BirthPlaceRepository(find(),eras(),search()) backed by real ANPR/MAECI government data viacodice-fiscale:update-places, not a static list. To check whether a code exists at all, useeras($code) !== []-existedEver()is deprecated since 3.1.0.search()resolves a typed name to candidateBirthPlaceCodes; it never feeds back into generation.
Laravel-specific
codice_fiscalevalidation rule (format/checksum/semantics), or the fluentCodiceFiscaleRule::make()->matching(...)to cross-check other request fields.CodiceFiscaleCastfor an Eloquent attribute typed asCodiceFiscale.fake()->codiceFiscale()Faker provider - always a random, valid, fully-generated code; not for a specific person.php artisan codice-fiscale:update-places- required once before any semantic validation or birthplace lookup will succeed. Never touches the host application's own database.
Before writing code
- Confirm whether the target application is actually on 3.x - if you find calls like
->getFirstName(),->parse(),::generate($string, ...), or therobertogallea\LaravelCodiceFiscale\*namespace, that's 2.x; switch to theupgrading-laravel-codicefiscale-from-v2skill instead of applying 3.x guidance to it. - Read the specific README.md section for the API you're about to use - the signatures above are a map, not the full contract.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingresources/boost/skills/using-laravel-codicefiscale/SKILL.md
Popularity
- Repository stars
- 65
- Repository forks
- 19
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/robertogallea/laravel-codicefiscale/using-laravel-codicefiscale)