/skills:rexfrom skills
Use when writing, reviewing, debugging or running Perl Rex automation — Rexfile, tasks, groups and inventory, CMDB, SSH/OpenSSH/LibSSH transports, sudo, SFTP or filesystem failures, idempotency, deployments, Rex::GPU, Rex::Rancher.
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.
Use this skill for the Perl automation framework, not unrelated products named Rex. Identify the installed release, enabled feature flags, active connection, effective Exec/Fs/File drivers, target OS, privilege context, and intended change scope first. The researched baseline is Rex 1.16.1; repository observations are separately pinned in SOURCE_LOCK.json. A development checkout is not a CPAN release.
Read only the relevant route below. Consult the reference index for narrower questions. Do not load the entire reference tree or the archived skill.
run_task has its own locality rules.
Stop a remote-only task when Rex::is_local() is true. Confirm the resolved host set.ssh-keyscan alone does not establish server identity. Never "fix" failures by
silently disabling verification, changing the transport, or forcing a lock.run 'true' does not validate filesystem access.auto_die => 1 for required command success, or capture $? immediately after
auto_die => 0. Zero/nonzero is portable across inspected backends; numeric decoding
is not. Do not unconditionally shift $?; preserve raw status and driver identity.execve. Keep the
executable trusted; avoid interpolated shell programs and validate option operands.rex -c enables caching; it is not check mode.| Task | Read first | Then, only as needed |
|---|---|---|
| New Rexfile or existing-project entry | Execution model | Installation and features, CLI |
| Groups, environments, task composition | Tasks and inventory | CMDB, Rollouts |
| Backend selection or SFTP failure | Capability matrix | OpenSSH/SSH, SFTP-less procedure |
| Rex::LibSSH behavior | LibSSH | Source audit, Sudo/local |
| Commands, status, injection, timeout | Run and status | Quoting, Errors/timeouts |
| Convergent configuration | Idempotency | Files, Packages, Services |
| Platform-dependent administration | Facts/platforms | Users/cron, Resource routing |
| Diagnosis, testing, performance | Debugging | Testing, Security |
| Reusable modules or new backends | Module authoring | Backend internals |
| GPU or RKE2/K3s automation | GPU integration or Rancher integration | Optional ecosystem |
Inspect → establish versions and context → classify capabilities → read the relevant reference → define preconditions and recovery → implement the smallest change → test on a disposable target → verify a second run → canary → approve wider execution. For diagnosis, stop after the read-only evidence stage unless mutation was authorized.
use strict;
use warnings;
use Rex -feature => ['1.4'];
# Explicitly select the backend only after checking the target's capabilities.
set connection => 'OpenSSH';
desc 'Read the kernel name on an explicitly selected remote host';
task 'inspect_kernel', sub {
die "Remote host required\n" if Rex::is_local();
my $output = run 'uname', ['-s'], auto_die => 1;
print "$output\n";
};
Use rex -f Rexfile -H approved-host inspect_kernel only after inspecting the file,
verifying host identity, and resolving credentials. The feature bundle imports the
common DSL; normal Exporter selective-import syntax is not Rex::Exporter's API.
Examples distinguish runnable lab assets from design skeletons. Static review is a heuristic, not a Perl parser or security proof. Offline inventory reads installed module text without loading Rex. Validation states what ran and what did not. Use the change brief for operational handoff and the reproduction template for backend issues.
MANIFEST.json (opens in a new tab)README.md (opens in a new tab)SOURCE_LOCK.json (opens in a new tab)VALIDATION.md (opens in a new tab)audit/original-skill.md (opens in a new tab)audit/results/example-static-review.json (opens in a new tab)audit/results/module-inventory.json (opens in a new tab)audit/results/perl-tests.txt (opens in a new tab)audit/results/python-tests.txt (opens in a new tab)evals/README.md (opens in a new tab)evals/cases.json (opens in a new tab)examples/README.md (opens in a new tab)examples/Rexfile.libssh (opens in a new tab)examples/Rexfile.local-smoke (opens in a new tab)examples/Rexfile.remote (opens in a new tab)examples/Rexfile.status (opens in a new tab)examples/cmdb/app-01.example.test.yml (opens in a new tab)examples/cmdb/default.yml (opens in a new tab)examples/config-activation.pl.example (opens in a new tab)examples/module/lib/Example/Plan.pm (opens in a new tab)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.Other plugins' skills for the same job