/skills:getty-perl-sugarfrom skills
Use when designing a new Perl DSL or sugar — Moose::Exporter keywords, declarative structures, metadata registries. Not for using an existing one.
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.
Read when SKILL.md points to them.
For the start of a structure: planning a new DSL, keyword exporter or declarative layer in Perl, so it is built right from its first keyword. Once the structure exists, using or extending it follows the project's own code, not this skill.
Turn repeated domain structure into declarations; keep execution policy in one place.
The bundled Example::Sugar shows the mechanism; it is not a module to depend on,
and project code follows getty-perl-core and getty-perl-moose.
Read architecture, then only the references the design
needs (table below). For a new DSL, read Sugar.pm, Sugar/RoleDSL.pm and
Sugar/Owners.pm under examples/reference/lib/Example/ first: class entry point,
role entry point, and owner collection across parents and roles.
Replacing an existing caller-based DSL, start with the
correction and adoption map.
Inspect the repository's actual exporters, consumers, role composition, Perl/Moose versions, and tests before changing its public syntax. A design note about the project is not a substitute for source inspection.
with_meta and pass $meta->name
into a shared registration backend. For caller-sensitive as_is exports, capture
the owner at the boundary or use a transparent goto &target shim.calculate_all_roles as a workflow-order API.Declaration keywords register and validate; they do not perform domain I/O or run step bodies. Loading a Perl module is nevertheless code execution, not safe data parsing.
step is an exported declaration function, not a generated instance method. The
runner invokes the stored body with $self; bodies may delegate to ordinary methods.
Keep registries separate from instance results and durable checkpoints. Never mutate a shared role bucket while composing one consumer. Never expose live registry hashes as public introspection data. Keep bodies and arbitrary predicates explicitly opaque.
Reject unknown options, missing coderefs, duplicate keys, unknown dependencies, cycles,
phase inversions, and incompatible active prerequisites before side effects begin.
Do not eval predicate strings. Do not infer semantic equality of separate callbacks.
A Future is not an execution pool. A cached result is not an exactly-once guarantee. An immutable Moose class is not a frozen external registry. Schema metadata is not authorization, and UI hints are not server-side validation.
use Example::Sugar;
step 'Collect inputs' => inputs => sub { return { count => 3 } };
step 'Summarize' => summary => sub {
return { count => $_[0]->result('inputs')->{count} };
}, phase => 'render', requires => ['inputs'];
no Example::Sugar;
__PACKAGE__->meta->make_immutable;
This syntax belongs to the bundled reference implementation, not to any existing project's API. See the implementation guide.
Routes — new DSL: architecture → exporters → registry → planning → the example. Async or durable: planning → predicates → Futures or resume → observability → security. Agent-facing inspection: planning manifests → tool schemas → security.
| Reference | Read when |
|---|---|
| architecture | Whether a DSL is justified and what belongs in each layer |
| exporters-and-caller | Class/role entry points, with_meta, as_is, goto, cleanup |
| registry-and-lifecycle | Validation, load timing, defensive copies, sealing, reloads |
| composition-and-inheritance | Role discovery, parent buckets, diamonds, order, conflicts |
| planning-and-dependencies | Phases, DAG checks, binding, group validation, manifests |
| predicates | Readers, maps, callbacks, purity, equality, safe parsing |
| runner-and-results | Runner API, state, errors, output validation, same-instance reruns |
| parallelism-and-futures | Real concurrency, aggregation, cancellation, loop integration |
| resume-and-idempotency | Durable resume: checkpoint identity, crash windows, leases |
| progress-and-observability | Active counts, dynamic gates, events, heartbeats, redaction |
| attributes-and-forms | Traits, UI projections, validation boundaries, secret fields |
| tool-schemas | Pure helpers, nullable enum, dialects, provider adapters |
| validation-and-localization | Preflight reuse, freshness, message IDs, deferred translation |
| security-and-trust | Loading code, authorization, untrusted inputs, tool dispatch |
| testing-and-debugging | Negative tests, caller debugging, integration gates, determinism |
| performance | Measurement, safe caching, planner complexity, backpressure |
| corrections-and-adoption | Common misstatements, migrating an existing DSL |
| recipes | Incremental adoption and what to extract first |
Provide the domain contract, chosen module boundaries, public declaration example, ordering/conflict policy, focused tests, and compatibility notes. Separate proposed production extensions from implemented behavior.
examples/reference/README.md (opens in a new tab)examples/reference/cpanfile (opens in a new tab)examples/reference/demo-core.pl (opens in a new tab)examples/reference/demo-moose.pl (opens in a new tab)examples/reference/lib/Example/Flow/Check.pm (opens in a new tab)examples/reference/lib/Example/Flow/Probe.pm (opens in a new tab)examples/reference/lib/Example/Sugar.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Executor.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Owners.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Plan.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Predicate.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Registry.pm (opens in a new tab)examples/reference/lib/Example/Sugar/RoleDSL.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Runner.pm (opens in a new tab)examples/reference/lib/Example/Sugar/Schema.pm (opens in a new tab)examples/reference/schema-demo.pl (opens in a new tab)examples/reference/t/00-load.t (opens in a new tab)examples/reference/t/10-caller.t (opens in a new tab)examples/reference/t/20-registry.t (opens in a new tab)examples/reference/t/30-plan.t (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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.