Set up a template authoring environment

To author templates in the layout that Red Hat Developer Hub expects, set up a repository first. The init command checks your tools, scaffolds a starter template, and creates the root location.yaml.

Before you begin

  • You have installed the rhdh-templates skill.
  • git is available in your environment.

Procedure

  1. Ask your agent to run the init command from your target directory to check your tools, scaffold the template repository layout, and create the root location.yaml.
  2. Optional: Ask your agent to also check connectivity to a running instance, and provide the instance URL.
  3. Review the reported results, including any missing tools, the scaffolded paths, and the connectivity status.
    Note

    For the recommended development loop, install djlint so that local validation can lint Nunjucks in skeleton files. If a running instance is unreachable, local authoring and validation still work.

Results

  1. The templates/ directory exists and has at least one template folder.
  2. A root location.yaml exists with the target ./templates/**/template.yaml.
  3. The init script exits with code 0 (ready) or 1 (layout created, but optional tools or RHDH are unavailable).

What to do next