/skills:getty-perl-typingfrom skills
Use when typing Perl attributes or parameters — isa, Type::Tiny, Types::Standard, Moose constraints, or whether a project needs types at all.
Ships in skills. 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.
Two decisions, in this order: does this project need types at all, then
which tool. The common failure is pulling Type::Tiny into a 200-line Moo
distribution that had no shape problem. This skill is the authority on whether
to type; getty-perl-moo / getty-perl-moose cover the attribute mechanics.
| Situation | Use |
|---|---|
| Small Moo distribution, simple shapes | No type system. required => 1 and a clear attribute name carry it. |
| Moo, and the data genuinely is complex | Types::Standard (Type::Tiny). Moo has no types of its own. |
| Moose | Types::Standard in new code — same vocabulary as Moo, better messages. |
A dist already typed with strings (isa => 'ArrayRef[Int]') | Keep the strings — one type vocabulary per dist; no Types::Standard beside them. |
| The same domain type across many classes | A <Dist>::Types library on Type::Library (below). |
Start a type library when the same type is imported in several places and its definition needs one home — never just because the distribution has types.
Type what arrives from outside; be sparing inside.
Enum beats a Str with the values in a comment)._cache holding a hashref does not need HashRef.ArrayRef[Str] over ArrayRef.Maybe[X] for anything the source may send as null — not Str with a default that invents data. required => 1 (must be supplied) is a separate statement; both may apply.message { ... } when "did not pass type constraint" would not tell the reader what to fix.coerce for anything lossy. Coercion is the same value in another notation — a string to a Path::Tiny, an epoch to a DateTime. Anything that guesses, truncates or fills in a default belongs in explicit code.use Types::Standard qw( Str Maybe ); — spaces inside the parens. -types only inside a type library.package WWW::Example::Types;
# ABSTRACT: Domain types for WWW::Example
use Type::Library -base, -declare => qw( AccountName );
use Type::Utils -all;
use Types::Standard -types;
declare AccountName,
as Str,
where { /\A[^\s@]+@[^\s@]+\.[^\s@]+\z/ },
message { "$_ is not a valid account name" };
1;
Consumers import by name: use WWW::Example::Types qw( AccountName );
Getty code validates with Params::ValidationCompiler (validation_for( params => { name => { type => Str } } ));
Type::Params does the same job — one of the two per distribution. With
signature_for on a method, method => 1 is mandatory: without it $self
is read as the first argument and every call fails with a parameter-count error
that says nothing about the cause.
BUILD check, not a type. Types see one value.InstanceOf['DateTime']; with Moose's built-ins, isa => 'DateTime'.Type::Tiny::XS; do not remove the type.MooseX::Types → superseded; use Types::Standard.getty-perl-core — house rules the example follows.getty-perl-moo / getty-perl-moose — attribute mechanics per object system.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (getty/skills) — no native marketplace selected
npx claudepluginhub p/getty-skills129 skills in this plugin
/ai-playable-gamesUse when building a game or simulation that bots or LLM agents must play — observation and order interface, agent API or MCP server, AI seats beside humans, fog of war, replays; or when an AI player cheats, stalls, misreads the state or follows text other players wrote./ai-web-scrapingUse when scraping, crawling or extracting structured data from websites, especially with an LLM — Crawl4AI, Firecrawl, Scrapy, Crawlee, Playwright, browser-use; building a dataset or RAG corpus, watching pages for changes, or a scraper that returns empty, duplicated or invented records./cedar-engineeringUse when writing, validating or debugging Cedar authorization policies — .cedar and .cedarschema files, permit/forbid, entities and hierarchies, RBAC/ABAC/ReBAC, templates, multi-tenant access, partial evaluation, Amazon Verified Permissions, migrating to or from Cedar./cel-engineeringUse when writing, embedding or debugging Common Expression Language (CEL) — type environments, macros, missing fields, errors and unknowns, cost limits, Kubernetes x-kubernetes-validations and ValidatingAdmissionPolicy, Envoy, Google Cloud IAM Conditions./cisco-ios-routerUse when reading, auditing or changing a classic Cisco IOS 15.x router (ISR 900/1900/2900/3900, 800 series, c900-universalk9) — interfaces and SVIs, ACLs, NAT and port forwards, zone-based firewall, IP SLA failover, SSH hardening, licences, config rollback, IOS upgrades; IOS-XE differences noted./cisco-small-business-switchUse when configuring or auditing a Cisco Small Business switch (SG300/SF300/SG500, Sx350/Sx550, CBS250/CBS350) via CLI or web UI — VLANs and port modes, management IP, SSH users, LLDP and MAC lookups, PoE, mirroring, saving config, firmware upgrades. Not Catalyst IOS.Other plugins' skills for the same job