About range-config
range-config helps create valid Ludus YAML configurations and explain tradeoffs in topology, networking, and role design. It emphasizes schema validation, checking server templates and Ansible dependencies, and iterating in small steps.
Key features
- 01Guide VM and role definition
- 02Validate YAML with the schema header
- 03Check templates and Ansible dependencies
- 04Explain network and testing rule design
- 05Note hostname, VLAN, and related constraints
Use cases
- 01Write a range configuration for a target environment
- 02Check VLAN and IP address settings
- 03Verify roles and templates before deployment
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ badsectorlabs/ ludus-skills --skill range-configAfter installing, type/range-configin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlreferences/schema.md
Details
From the project READMELudus Range Configuration
Use this skill to build safe, valid Ludus YAML configurations and explain tradeoffs in topology, networking, and role design.
Key Principles
-
Always suggest the YAML schema validation header at the top of configs:
# yaml-language-server: $schema=https://docs.ludus.cloud/schemas/range-config.json -
Use
{{ range_id }}template strings in vm_name and hostname fields. This resolves to the user's range ID (e.g., "JS"). -
Windows hostnames are limited to 15 characters due to NETBIOS.
-
VLANs must be 2-255 and become the third octet of the VM's IP (e.g., vlan 10 = 10.X.10.Y).
-
ip_last_octet must be unique within a VLAN.
-
Set
linux: truefor Linux VMs,windows:key for Windows VMs,macOS: truefor macOS VMs. -
Domain roles are:
primary-dc,alt-dc, ormember. -
role_vars must be a dictionary - do not use hyphens to prefix variables.
-
Roles must exist on the server before deploy — verify installed roles and add any that are missing.
Workflow
- Clarify the target environment and intended use case.
- Define required VMs and roles.
- Verify that required templates are available on the server.
- Build or revise YAML in small, valid increments.
- Propose network rules and testing behavior appropriate for the scenario.
- Verify that required Ansible roles/collections are installed; recommend any that need to be added.
- Validate structure and values against the schema reference.
References
- Use
references/schema.mdfor full schema details, valid values, defaults, and complete examples. - Use
https://docs.ludus.cloud/docs/configurationfor official configuration guidance. - Use
https://docs.ludus.cloud/schemas/range-config.jsonfor schema-backed validation.