ansible-scaffold-collection

Scaffold Red Hat CoP-compliant Ansible collections with galaxy.yml and metadata.

5|1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/stoleas/ansible-skills --skill ansible-scaffold-collection-stoleas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ansible-scaffold-collection
Source: https://github.com/stoleas/ansible-skills/tree/main/skills/ansible-scaffold-collection
Command: npx skills add https://github.com/stoleas/ansible-skills --skill ansible-scaffold-collection-stoleas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold Red Hat Communities of Practice–compliant Ansible collections from a clean, standards-aligned template, speeding up initial setup and ensuring consistency.

Core Features & Use Cases

  • Complete collection skeletons with galaxy.yml, README, docs, meta/runtime.yml, roles, plugins, tests, changelogs, lint configurations, and example scaffolds.
  • Provides template-driven scaffolding that enforces CoP structure and packaging for distribution.
  • Use cases include starting a new collection, aligning with CoP guidelines, and enabling rapid development and publishing.

Quick Start

Run the scaffold to generate a Red Hat CoP–compliant Ansible collection skeleton in your project.

Frequently Asked Questions about ansible-scaffold-collection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Red Hat CoP-compliant Ansible collection from scratch?

Scaffolding an Ansible collection requires creating a standard directory layout with galaxy.yml, meta/runtime.yml, roles, plugins, tests, and lint configurations. This tool automates that process by generating a complete CoP-compliant skeleton with ready-to-publish metadata from scratch.

What is included in an Ansible collection skeleton for Red Hat CoP compliance?

An Ansible collection skeleton includes galaxy.yml, README files, docs, meta/runtime.yml, roles, plugins, tests, changelogs, lint configurations, and example scaffolds. These components ensure alignment with Red Hat Communities of Practice guidelines for packaging and distribution.

Can I use this scaffolding tool to add docs and tests to an existing Ansible collection?

This tool is designed to create and structure Ansible collections from scratch rather than retrofitting existing ones. It applies CoP-compliant templates to generate complete skeletons, ensuring directory layouts, lint configurations, and metadata align properly from the initial setup.

What's the best way to align an Ansible collection with galaxy.yml and meta/runtime.yml standards?

The best way to align an Ansible collection with galaxy.yml and meta/runtime.yml standards is using template-driven scaffolding. This approach enforces CoP structure and packaging rules, automatically generating the required metadata files and example content for rapid, compliant development.

Do I need to manually configure linting for a new Ansible collection?

You do not need to manually configure linting for a new Ansible collection. The scaffolding process automatically includes lint configurations alongside the directory layout, roles, and plugins, ensuring the generated collection adheres to CoP guidelines immediately upon creation.

When should I use a template-driven scaffold for Ansible collections?

You should use a template-driven scaffold when starting a new namespace or collection, aligning with CoP guidelines, or enabling rapid development and publishing. It ensures consistency by applying standard directory layouts, packaging metadata, and example content from the beginning.