/linux:linux-cloud-initfrom linux
Authors, validates, and debugs cloud-init user-data, Ubuntu autoinstall, and RHEL-family Kickstart files for first-boot server provisioning.
Ships in linux. 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.
Two-family skill — but mind the distinction:
user-data / cloud-config is portable — the same file runs on
Ubuntu and Fedora/RHEL cloud images.references/kickstart-reference.md.| Concept | Debian/Ubuntu | RHEL family |
|---|---|---|
| Install automation | autoinstall (subiquity) | Kickstart (Anaconda) |
| Install config | autoinstall: schema | .ks directives, inst.ks= boot arg |
| First-boot config | cloud-init user-data | cloud-init user-data (same) |
| Admin group in cloud-config | sudo | wheel |
| Default cloud user | ubuntu | fedora / cloud-user / ec2-user |
| Time pkg in cloud-config | systemd-timesyncd | chrony |
| Network rendering | cloud-init → Netplan | cloud-init → NetworkManager |
Write distro-neutral cloud-config where possible (use package_update,
network-config v2, and group wheel on RHEL). See
references/kickstart-reference.md and
docs/multi-distro/plan.md.
cloud-init user-data for first boot.linux-server-provisioning.| Artefact | Source | Required? | If absent |
|---|---|---|---|
| User-data, autoinstall file, Kickstart file, or failure logs | Operator, image build, or affected host | required | Stop authoring or diagnosis and request the actual input. |
| Target distribution, release, image, and cloud/installer context | Operator or image metadata | required | Return a family-neutral outline; do not claim deployability. |
| Desired users, keys, packages, network state, and commands | Provisioning requirement | required for authoring | Produce a validation-only report if requirements are incomplete. |
linux-config-management.cloud-init status --long, stage logs, and rendered configuration.sudo group on a RHEL image. Fix: branch on the target family and use wheel plus family-correct packages.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Validated provisioning configuration | Image builder or cloud operator | Parser/schema checks pass and family-specific values match the target image. |
| Failure diagnosis | Incident owner | Names the failed stage, log evidence, root cause, and safe retry/rebuild path. |
| First-boot verification record | Provisioning handoff | Required users, SSH access, packages, services, and network state are observed on a test instance. |
| Artefact | Acceptance condition |
|---|---|
| Provisioning validation evidence | Contains parser output, test-instance cloud-init status --long, relevant log excerpts, and checks for every declared outcome. |
Read access to the source configuration is required. Execution on a disposable target is preferred. Editing, image publication, or production rebuilds require explicit authority; never place private keys or plaintext secrets in evidence.
If no parser or disposable instance is available, perform a read-only structural review, label runtime checks not assessed, and return the exact commands the operator must run. An unbooted configuration is not validated.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Existing cloud image first boot | Use cloud-config/user-data | Installer-only directives being ignored. |
| Bare-metal or ISO install | Use Ubuntu autoinstall or RHEL Kickstart | Applying the wrong installer schema. |
| Ongoing configuration drift | Hand off to linux-config-management | Re-running once-per-instance modules as a configuration manager. |
For a Rocky Linux image that must create an administrator and install Nginx, select cloud-config, use the wheel group and RHEL package names, validate the YAML, boot one disposable VM, then record the created user, key-only login, package version, and service state before scaling out.
This skill is self-contained. Every command below is a standard tool
present on both families (cloud-init, journalctl, yamllint) — see the
Distro support matrix above for what is portable versus family-specific.
The sk-*
scripts in the Optional fast path section are convenience wrappers —
never required.
This skill owns first-boot provisioning from YAML — cloud-init
user-data on cloud images (portable across both families), plus the
OS-install flow on the installer: Ubuntu's autoinstall and the RHEL
family's Kickstart (see
references/kickstart-reference.md).
It is the mechanism that takes a blank cloud image and turns it into a
server ready for linux-server-provisioning to finish.
It does not own:
linux-server-provisioning.linux-config-management.Informed by the Canonical Ubuntu Server Guide (cloud-init, autoinstall chapters).
user-data YAML for a cloud image.autoinstall config for a new installer ISO./var/log/cloud-init*.log on a provisioned host.linux-config-management (Ansible).linux-* skill directly./var/lib/cloud/ where it can be read later. Use vaulted
values or post-boot pulls from a secret store.runcmd is last resort. Prefer first-class modules (users,
packages, write_files, ssh_authorized_keys) where possible.
They log cleanly and are idempotent-friendly.runcmd step in every production server user-data
should install linux-skills. Templates live in the references./var/log/cloud-init.log has the module
trace; /var/log/cloud-init-output.log has stdout/stderr of
runcmd.# Built-in schema check (requires cloud-init installed)
cloud-init schema --config-file user-data.yaml
# With verbose output
cloud-init schema --config-file user-data.yaml --strict
# YAML syntax check first (basic)
yamllint user-data.yaml
# Overall status
cloud-init status --long
# How long each stage took
cloud-init analyze show
cloud-init analyze blame # slowest modules
cloud-init analyze dump # full event stream
# What datasource was used?
cloud-init query --format '{{ ds.platform }} / {{ ds.region }}'
# All the collected facts (ds metadata + user-data + vendor-data)
cloud-init query --all
# Main log — module start/end, failures, tracebacks
sudo less /var/log/cloud-init.log
# runcmd output
sudo less /var/log/cloud-init-output.log
# Filter for errors only
sudo grep -iE "error|fail|traceback" /var/log/cloud-init.log
# See which modules ran at each stage
sudo grep "Running module" /var/log/cloud-init.log
# Reset cloud-init and re-run (for testing in a disposable VM)
sudo cloud-init clean --logs --seeds
sudo reboot
# Installer has its own logs (on the target system during install)
sudo less /var/log/installer/cloud-init.log
sudo less /var/log/installer/curtin-install.log
sudo less /var/log/installer/subiquity-server-debug.log
# After install, look for autoinstall-specific failures
sudo journalctl -u cloud-init -u cloud-config -u cloud-final
Full user-data reference (every common module with 5 worked examples,
module ordering, idempotency, secrets note, datasource detection) — see
references/user-data-reference.md.
Full autoinstall reference (schema, storage layouts, LVM, ZFS,
autoinstall ISO build, serving over HTTP for PXE, 3 complete autoinstall
examples) — see
references/autoinstall-reference.md.
Full debugging guide (log layout, status decoding, re-run workflow) —
see references/debugging.md.
# 1. YAML sanity
yamllint user-data.yaml
# 2. cloud-init schema validation
cloud-init schema --config-file user-data.yaml --strict
# 3. Visual review of the modules it will run
grep -E '^[a-z_]+:' user-data.yaml
# 4. Check that runcmd uses absolute paths
grep -A20 '^runcmd:' user-data.yaml
# 5. Boot one in a disposable cloud VM or LXD container
lxc launch ubuntu:24.04 test --config=user.user-data="$(cat user-data.yaml)"
lxc exec test -- cloud-init status --wait
lxc exec test -- cloud-init status --long
lxc delete test --force
sudo cloud-init status --long # overall result
sudo grep -A2 "packages" /var/log/cloud-init.log # what package list was seen
sudo grep -iE "error|fail" /var/log/cloud-init-output.log | head -20
# Common causes:
# - packages: - nginx (YAML dash indentation wrong)
# - package_update: false (apt index is stale)
# - package_upgrade: true + slow mirror = timeout
# - apt sources unreachable
Put this as the final runcmd block in your production user-data:
#cloud-config
users:
- name: administrator
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh_authorized_keys:
- ssh-ed25519 AAAA... admin@example
packages:
- git
- curl
- unattended-upgrades
runcmd:
- sudo -u administrator bash -lc 'git clone https://github.com/<org>/linux-skills.git ~/.claude/skills'
- sudo bash /home/administrator/.claude/skills/scripts/setup-claude-code.sh
# Once install-skills-bin is available:
# - sudo /usr/local/bin/install-skills-bin core
Full templates for a web server, Docker host, LXD guest, and database
server in references/user-data-reference.md.
# Write the autoinstall user-data (see references/autoinstall-reference.md)
# and a meta-data file (can be empty):
mkdir /tmp/autoinstall
cat > /tmp/autoinstall/user-data <<'EOF'
#cloud-config
autoinstall:
version: 1
identity:
hostname: web01
username: administrator
password: '$6$...' # crypt(3) hash
ssh:
install-server: true
authorized-keys:
- ssh-ed25519 AAAA...
# ... rest of the autoinstall config
EOF
touch /tmp/autoinstall/meta-data
# Validate
cloud-init schema --config-file /tmp/autoinstall/user-data
# Serve over HTTP (trivial option)
cd /tmp/autoinstall && python3 -m http.server 3003
# Boot the installer with ds=nocloud-net;s=http://your-server:3003/
yamllint
doesn't enforce cloud-init semantics. Use
cloud-init schema --config-file as the real validator.runcmd with a relative path fails silently. Always use absolute
paths: /usr/bin/apt-get, not apt-get. cloud-init's PATH is
minimal at runcmd time.sudo cloud-init clean (deletes state) + reboot. Without that,
cloud-init thinks it's already done.package_upgrade: true on a slow mirror times out. The
install appears to hang, then continue without the upgraded packages.
Use package_upgrade: false for user-data where speed matters; run
unattended-upgrades after boot instead.storage
section produces an install that hangs at partitioning. Validate with
cloud-init schema and test in a VM before shipping the ISO.write_files default encoding is text, not base64. For binary
files set encoding: b64 explicitly.users: module replaces the default user completely unless you
include - default as the first entry.references/user-data-reference.md —
full user-data reference: every module with examples, 5 complete
worked templates, idempotency and secrets notes.references/autoinstall-reference.md —
full autoinstall schema, storage, network, 3 complete examples.references/kickstart-reference.md — Kickstart automated install (RHEL family)references/debugging.md — cloud-init
logs, status decoding, re-run workflow, autoinstall debug.No wrapper commands for this skill are shipped in this checkout. Use the native procedures above; planned wrappers remain in the script inventory until their source files are present.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
45 skills in this plugin
/cisco-ios-patternsUse when reading or reviewing Cisco IOS/IOS-XE configuration, selecting read-only show commands, or planning and verifying bounded router or switch configuration work. Not for Linux host networking, bulk SSH automation, or config preflight parsing; route those to linux-network-admin, netmiko-ssh-automation, or network-config-validation./linux-access-controlUse when creating, revoking, or auditing Linux users, groups, SSH keys, sudo/wheel access, PAM settings, SELinux user mappings, or file permissions. Use linux-secrets for credential material and linux-server-hardening for broader host policy./linux-archive-integrityUse when creating, signing, encrypting, listing, comparing, or restoring metadata-preserving tar archives on Debian/Ubuntu or RHEL-family hosts. Covers ACLs, xattrs, incrementals, and verification; use linux-rsync-sync for file-tree mirrors./linux-auditd-rulesUse when inspecting, designing, testing, persisting, or querying auditd rules for forensic attribution on Debian/Ubuntu or RHEL-family hosts. Covers watches, syscalls, loss, and immutable mode; use linux-file-integrity for drift and linux-benchmark-scanning for scoring./linux-bash-scriptingUse when writing or reviewing portable sk-* Bash scripts for this engine, including common.sh primitives, flags, preview mode, and safety gates; use linux-repo-sync for Git-update behaviour and not for one-off commands./linux-benchmark-scanningUse when running read-only OpenSCAP or Lynis scans, selecting distro-matched profiles, interpreting failures, or drafting remediation on Debian/Ubuntu or RHEL-family hosts. Use linux-auditd-rules for attribution and linux-file-integrity for AIDE drift.npx claudepluginhub peterbamuhigire/linux-skills --plugin linuxOther plugins' skills for the same job