5 — Go deeper
Step 5 — Go deeper (when you need it)
Use this page as a map, not a checklist. Open links only when the topic applies to you.
Repository and layout
- README — module catalog, prerequisites,
Makefile, CI, registry authentication for local runs. - Architecture — StackGen module layers (foundation → integrations → agents → workflows); many bundles are AIOS-oriented for faster delivery.
examples/complete/— large runnable composition; good reference, not the smallest first read.
Continuous integration
.github/workflows/ci.yml— OpenTofutofu fmt/tofu validate, OPA; HashiCorp Terraform is interchangeable locally viamake TF=terraform.
This documentation site (GitHub Pages)
- Source:
/docson your default branch (_config.yml). - Forks / renames: update
url,baseurl, andrepositoryin_config.ymlso links and assets resolve (see Home — Enable this site for the Pages settings path).
StackGen Terraform provider
- Source & schema: appcd-dev/terraform-provider-stackgen —
docs/index.mdlists everysg_*resource and data source;AGENTS.mddocumentssgstruct tags and provider architecture. - Rendered docs: GitHub Pages reference (when published).
- Automation / LLMs: after
tofu init,tofu providers schema -jsonexports descriptions; use theprovider_schemaskey that matches your rootrequired_providers.sg.source(typicallyreleases.stackgen.com/stackgen/stackgen).
Policies (Rego)
- Policies live under
modules/*/policiesandmodules/aios-policies/policies/. make opa-checkvalidates each file in isolation (howsg_policyuses them), not as one merged bundle.- For sample evaluation payloads, the OPA Rego Playground, and links to the Rego language docs, see Writing Rego policies.
Previous: Step 4 — Use a module
Next: Step 6 — Author a package
Back: Onboarding hub