cloud-init-crafter

Expert assistant for creating, modifying, and debugging cloud-init scripts. Supports multiple formats (YAML, shell, MIME archives), Jinja templating with instance-data, and multi-platform validation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cloud-init-crafter" with this command: npx skills add zenless-lab/skills/zenless-lab-skills-cloud-init-crafter

Cloud-init Crafter

This skill provides a structured framework for generating and maintaining cloud-init configurations. It utilizes a library of baseline templates, localized reference guides, and automated validation scripts to ensure production-ready deployments.

Core Principles

  1. Plan Before Execution: Always define a concise implementation plan (listing target modules, target format, baseline templates, and validation logic) before generating code.
  2. Format Awareness: Recognize that cloud-init accepts multiple formats. Default to #cloud-config (YAML 1.1) but proactively suggest shell scripts, boothooks, or MIME archives when the user's operational timing requires it.
  3. Security by Default: Prohibit plaintext passwords. Use ssh_authorized_keys or hashed_passwd exclusively. Ensure sensitive instance-data is accessed securely.
  4. Idempotency: Ensure all runcmd, bootcmd, and custom scripts are idempotent to allow safe re-execution.

Local References (Load On-Demand)

Load these reference documents on-demand when specific technical details, formats, or troubleshooting steps are required to save token context.

Format Guides

Load these when defining the structure of the user-data payload or combining multiple execution types:

Data & Templating

  • Instance Data - Standardized v1 keys, JSON structure, and Jinja templating usage for dynamic, environment-aware configurations.

Core Concepts & Guidelines

  • Concepts and Boot Stages - Overview of cloud-init principles and the five boot stages (Detect, Local, Network, Config, Final).
  • Cloud-config API - Detailed syntax, configuration schema, and examples for common configuration modules.
  • Best Practices - Strategic guidelines for writing robust, idempotent, and maintainable cloud-init scripts.
  • Security Guidelines - Critical security hardening, credential management, and SSH host key verification.
  • CLI Reference - Comprehensive command-line interface guide for cloud-init and cloud-init-per.
  • Error Cheatsheet - Troubleshooting workflows, log paths, status codes, and common failure modes.

Platform Launching Guides

Assets (Baseline Templates)

Use these templates as a starting point for new configurations:

  • Minimal Template - Essential SSH-only access with password authentication disabled.
  • Default Template - Standard baseline for production including users, SSH keys, and package updates.
  • Complete Template - Comprehensive setup including disk partitioning, file writing, and complex orchestration.

Validation Tools

  • Config Validator - A Python script (PEP 723) to offline validate YAML syntax and mandatory headers.

Official Documentation

Refer to these external resources for the most granular specifications:

Standard Operating Procedure (SOP)

  1. Discovery & Planning: Analyze the user's requirements. Determine the correct Boot Stage needed (early network vs. final execution) and select the appropriate format (e.g., #cloud-config, #cloud-boothook, or MIME). Decide if dynamic instance-data via Jinja is required. Output a concise plan.
  2. Context Loading: Silently load the relevant format guide from references/formats/ and references/instance-data.md if templating is needed.
  3. Execution: Generate or modify the configuration block. Ensure strict adherence to the loaded format's specific headers, syntax, and security constraints.
  4. Validation: Recommend validation via cloud-init schema -c <file> --annotate or the provided scripts/validate_config.py tool.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

skill-expert

No summary provided by upstream source.

Repository SourceNeeds Review
General

secret-leak-check

No summary provided by upstream source.

Repository SourceNeeds Review
General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
171Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2871Profile unavailable