/libvirt-toolkit:guest-accessfrom libvirt-toolkit
Use when an existing VM must be reached over SSH, guest access is refused or unreachable, a project must be copied or synchronized into a guest, or commands and tests must run inside the guest. Do not use for lifecycle-only requests such as listing, starting, stopping, snapshotting, or deleting VMs.
Ships in libvirt-toolkit. 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.
Continue an existing-VM request through verified access, transfer, and regular-user execution. Treat lifecycle state, guest prerequisites, SSH authentication, clone identity, transfer, and requested execution as separate claims. Never turn one successful signal into proof of another stage.
Use references/ssh-workflow.md for concrete SSH, host-key, transfer, and remote
execution commands.
Create or update a lightweight Markdown handoff. Preserve unknown values as
unknown until investigation produces evidence.
## Guest-access handoff
- Requested outcome:
- Provider / host / owner / session / domain:
- Connection origin:
- Candidate endpoint and provenance:
- Intended account / home:
- Domain and guest identity evidence:
- Available tooling:
- Lifecycle: untested
- Guest prerequisites: untested
- SSH authentication: untested
- Clone identity: untested
- Transfer: untested
- Requested execution: untested
Use only verified, failed, untested, or not applicable for stage status.
Keep the provider host, session, and domain explicit when supplied by another
skill. Invoke provider-specific skills by name for provider work; do not assume
their files or tools exist in a standalone installation.
Identify three locations separately:
Record every candidate address and port with provenance: provider inspection, guest report, configured forward, SSH config, or operator input. Inspect routing from the connection origin before interpreting an advertised guest IP or a refused connection. A host-local bridge address may be valid on the virtualization host but unreachable from the client. A loopback forward on a remote virtualization host is remote loopback, not client loopback; require an explicit route, jump, or tunnel rather than pretending it is local.
Use a bounded, noninteractive transport probe. Interpret timeout, refusal, host-key failure, and authentication failure as different evidence. Do not rewrite guest firewall, sshd, keys, or provider networking merely because the first candidate endpoint fails.
Verify the host key through a trusted channel before accepting it. Treat
ssh-keyscan output as an unauthenticated candidate key, never as identity
proof. Reconcile changed keys with clone/rebuild evidence instead of disabling
host-key checking.
Inventory effective SSH configuration with ssh -G. Preserve its endpoint,
identity, agent, and jump routing, but select an explicit writable trust store
containing the independently verified guest key and enforce it as the sole trust
store with StrictHostKeyChecking=yes for SSH, SCP, and rsync. Existing
permissive files, known-hosts commands, DNS SSHFP trust, post-handshake key
updates, or multiplexed master connections must not relax or bypass guest trust.
Require a fresh host-key exchange while preserving endpoint routing, identity,
and agent selection. Do not attempt guest authentication before host-key
verification. Authenticate noninteractively to the intended regular account and
distinguish successful TCP, host-key verification, and account authentication.
When working with a clone, verify guest and SSH identity independently where
relevant. Compare source or sibling evidence when it is available. Require that
comparison to pass only when the requested outcome or an applicable policy
explicitly requires clone-uniqueness proof. Otherwise, report an unavailable
comparison as untested, disclose the residual uncertainty, and continue: that
missing comparison does not block independently trusted SSH authentication,
transfer, or execution. Endpoint host-key trust and intended-account
authentication remain mandatory. A new domain UUID, MAC, or successful privileged
guest-agent command does not prove regenerated guest or SSH identity.
After authentication, query the intended account, effective UID, home directory,
hostname, and working directory. Require a regular user unless the user explicitly
requested an administrative diagnostic. Derive the destination from the guest's
reported home rather than assuming /home/<name> or expanding a local ~.
Keep path ownership clear:
Do not use root QGA output as normal-user setup evidence.
Choose an available transfer tool after inventory. Preserve the existing SSH configuration and verified host-key policy. Transfer into a destination owned by the intended guest user, then verify destination existence, ownership, expected files, and—when meaningful—a source/destination revision or checksum. Keep local and guest paths explicit. Do not claim transfer success from a zero exit alone if the destination was never inspected.
Run only the requested command as the intended guest account from an explicit guest working directory. Capture the exact command, endpoint, execution account, cwd, exit status, and relevant stdout/stderr. A test process starting is not the same as tests completing; use a bounded wait and preserve the final result.
Return a compact stage table and keep failures local to their stage:
| Stage | Status | Evidence / next action |
|---|---|---|
| Lifecycle | verified / failed / untested / not applicable | Provider/domain evidence |
| Guest prerequisites | ... | sshd/account/tool evidence |
| SSH authentication | ... | Endpoint, trusted key, account result |
| Clone identity | ... | Compared identities or unavailable comparison |
| Transfer | ... | Destination verification |
| Requested execution | ... | Command, location/account/cwd, exit, output |
Treat a stage as required only when the requested outcome or an applicable policy
depends on it. Do not report the requested outcome complete while such a stage is
untested or failed; state the narrow blocker and evidence needed next. For a
project workflow, endpoint host-key trust, intended-account authentication,
transfer verification, and requested execution evidence are required. Clone
source/sibling comparison is required only by an explicit clone-uniqueness need;
when it is unavailable otherwise, keep clone identity untested and disclosed
without blocking independently trusted authentication, transfer, or execution.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dotknewt/awesome-agency --plugin libvirt-toolkit2 skills in this plugin
Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Sep 18, 2026