CAIRA (Composable AI Reference Architectures) is a single repository for composing, validating, and deploying Azure AI solutions end to end. It includes deployable macro reference architectures, reusable infrastructure modules, application-layer components, a strategy builder that assembles supported deployment strategies, and the generated deployment strategies that CI validates every night.
For most users, the primary way to use CAIRA is to install the CAIRA skill and let a coding agent inspect this repository as reference material. Clone the repository only if you want to contribute to CAIRA itself or inspect the source directly.
Install the CAIRA skill from your project directory, then ask your coding agent to inspect CAIRA and adapt what it finds to your scenario.
If you do not already have bunx or npx, install Bun first:
curl -fsSL https://bun.com/install | bashRestart your terminal, then verify:
bun --versionFor Windows instructions, see https://bun.com/docs/installation.
cd /path/to/your-projectUsing Bun:
bunx skills add github.com/pablozaiden/caira/skillsUsing NPX:
npx skills add github.com/pablozaiden/caira/skillsAfter installation, restart your agent session and ask it to inspect CAIRA for your scenario. For example: Use CAIRA to design an Azure AI solution with Foundry, an API, and a frontend.
strategy-builder/infra/reference-architectures/foundry_agentic_app/— the default deployable reference architecture, composed from a Foundry foundation plus composable application-platform and service layers.strategy-builder/infra/modules/— reusable Terraform modules consumed by the reference architectures and generated strategies.strategy-builder/infra/testing/— Terraform test fixtures plus durable infrastructure pools reused by nightly validation.strategy-builder/— source-of-truth application components, contracts, generators, and validation tooling.deployment-strategies/— generated, committed end-to-end deployments built from the strategy builder.docs/andskills/— contributor guidance, operating docs, and discovery assets.
CAIRA is not Terraform-only and not infrastructure-only. The repository intentionally spans macro reference-architecture infra, application infra, application components, and the generation of supported end-to-end deployment combinations.
- Install the CAIRA skill with
bunx skills add github.com/pablozaiden/caira/skillsornpx skills add github.com/pablozaiden/caira/skills. - Ask the agent to inspect the CAIRA reference architectures, modules, strategy-builder assets, deployment strategies, and docs that fit your scenario.
- Let the agent adapt those discovered CAIRA assets into a solution for your specific use case.
- Use the repository directly only when you need to contribute to CAIRA itself or inspect the source directly.
- Clone the repository.
- Preferred: open the repository in the provided devcontainer.
- Local setup: install Task, then run
task setup. - Authenticate with Azure when you need deployment or integration workflows:
az login. - Use the Taskfile-first workflow from the repository root.
| Command | Purpose |
|---|---|
task setup |
Prepare a local machine for CAIRA development |
task validate:pr |
Run the fast pull-request validation suite |
task test |
Run the full local validation suite |
task strategy:generate |
Regenerate committed deployment strategies |
task strategy:dev -- deployment-strategies/<reference-architecture>/<name> |
Run one generated strategy locally with Docker Compose |
task strategy:dev:azure -- deployment-strategies/<reference-architecture>/<name> |
Run one generated strategy locally against Azure |
task strategy:deploy -- deployment-strategies/<reference-architecture>/<name> |
Deploy one generated deployment strategy to Azure |
task strategy:destroy -- deployment-strategies/<reference-architecture>/<name> |
Destroy one generated deployment strategy deployment |
task strategy:test:deployed -- deployment-strategies/<reference-architecture>/<name> |
Deploy, validate, and destroy one deployment strategy across the public, private, and private-capability-host profiles |
Use task strategy:deploy:reference only for specialized maintenance work: deploying the shared baseline infrastructure or regenerating strategy .env files from it. Most contributors should ignore this command and use the standard strategy commands above.
CAIRA/
├── infra/
│ ├── foundry_agentic_app/
│ ├── modules/
│ └── testing/
├── strategy-builder/
├── deployment-strategies/
├── docs/
└── skills/
- The default reference architecture under
strategy-builder/infra/reference-architectures/foundry_agentic_app/establishes the layered CAIRA baseline: Foundry foundation first, then composable application-platform and service layers. - The strategy builder turns reusable app-layer components plus infrastructure templates into committed deployment strategies.
deployment-strategies/is generated output and should stay in sync withstrategy-builder/.
- Pull requests run fast static validation only: linting, formatting, docs generation, docs build, Terraform validation, generator drift checks, and security scanners.
- Nightly validation deploys, validates, and destroys every committed deployment strategy in parallel while reusing durable supporting infrastructure.
- Start with
skills/caira/SKILL.mdif you want to use CAIRA through a coding agent. - Start with
docs/README.mdfor contributor and operator documentation. - Review
strategy-builder/infra/README.mdfor the infrastructure layout. - Review
strategy-builder/README.mdfor the app-layer and generator workflow. - Review the
deployment-strategies/*/README.mdfiles for generated strategy expectations.