enterprise-infrastructure

Deploy scalable Kailash infrastructure from SQLite to multi-worker using environment variables.

2|5|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/terrene-foundation/kailash-py --skill enterprise-infrastructure-terrene-foundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enterprise-infrastructure
Source: https://github.com/terrene-foundation/kailash-py/tree/main/.claude/skills/15-enterprise-infrastructure
Command: npx skills add https://github.com/terrene-foundation/kailash-py --skill enterprise-infrastructure-terrene-foundation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kailash infrastructure patterns enable scalable deployment from a zero-config single-process setup to multi-worker deployments, leveraging environment-driven configuration to upgrade stores, queues, and workers without code changes.

Core Features & Use Cases

  • Progressive infrastructure model (Level 0/1/2) controlled by environment variables
  • Dialect-portable SQL and StoreFactory with lazy imports
  • SQL-backed and Redis-backed task queues; worker registry and idempotency support
  • Schema versioning and migration guards to prevent downgrades

Quick Start

Set KAILASH_DATABASE_URL (and optionally KAILASH_QUEUE_URL) and initialize the StoreFactory to auto-detect and activate Level 0–2 backends without code changes.

Frequently Asked Questions about enterprise-infrastructure

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

FAQPage Schema
How do I scale infrastructure from SQLite to multi-worker deployments without code changes?

You can scale infrastructure from SQLite to multi-worker deployments by setting environment variables like KAILASH_DATABASE_URL. The StoreFactory auto-detects and lazy imports the appropriate DB backends, activating Level 0, 1, or 2 configurations without requiring code modifications.

What is the progressive infrastructure model for configuring stores and queues?

The progressive infrastructure model is a Level 0 to Level 2 scaling framework controlled by environment variables. It configures stores, queue backends, and schema versioning, starting from zero-config SQLite and scaling to shared databases and multi-worker setups with task queues.

How does StoreFactory handle dialect-portable SQL and database backend initialization?

StoreFactory handles dialect-portable SQL by using lazy imports to auto-detect and initialize database backends. This mechanism allows the same SQL patterns to work across different database dialects without hardcoding dependencies or requiring manual backend configuration.

Does Kailash infrastructure support idempotency and worker registry for distributed task queues?

Yes, Kailash infrastructure supports idempotency and worker registry for distributed task processing. It provides SQL-backed and Redis-backed task queues at Level 2, ensuring reliable multi-worker execution and preventing duplicate task processing across the deployment.

Can I use environment variables alone to configure schema versioning and migration guards?

Yes, you can use environment variables alone to configure schema versioning and migration guards. This environment-driven approach prevents schema downgrades and applies progressive migrations automatically when upgrading between infrastructure levels.