Skip to content
architecture-decisions logo

Kailash Architecture Decisions

architecture-decisions

Architecture decision guides for Kailash SDK including framework selection (Core SDK vs DataFlow vs Nexus vs Kaizen), runtime selection (Async vs Sync), database selection (PostgreSQL vs SQLite), node selection, and test tier selection. Use when asking about 'which framework', 'choose framework',...

SKILL.md

Full skill instructions

Kailash Architecture Decisions

Decision guides for selecting the right frameworks, runtimes, databases, nodes, and testing strategies for your Kailash application.

Overview

Comprehensive decision guides for:

  • Framework selection (Core SDK, DataFlow, Nexus, Kaizen)
  • Runtime selection (AsyncLocalRuntime vs LocalRuntime)
  • Database selection (PostgreSQL vs SQLite)
  • Node selection for specific tasks
  • Test tier selection (Unit, Integration, E2E)

Reference Documentation

Framework Selection

  • decide-framework - Choose the right framework
    • Core SDK: Custom workflows with full control
    • DataFlow: Database-first applications
    • Nexus: Multi-channel platforms
    • Kaizen: AI agent systems
    • When to use each
    • Combining frameworks

Runtime Selection

  • decide-runtime - AsyncLocalRuntime vs LocalRuntime
    • Docker/​FastAPI → AsyncLocalRuntime
    • CLI/​Scripts → LocalRuntime
    • Performance implications
    • Threading considerations
    • Auto-detection with get_runtime()

Database Selection

  • decide-database-postgresql-sqlite - PostgreSQL vs SQLite
    • Production → PostgreSQL
    • Development/​Testing → SQLite
    • Feature comparison
    • Migration strategies
    • Multi-database support

Node Selection

  • decide-node-for-task - Choose the right node
    • AI tasks → AI nodes
    • API calls → API nodes
    • Custom logic → PythonCodeNode
    • Database → Database nodes or DataFlow
    • File operations → File nodes
    • Conditional logic → SwitchNode

Test Tier Selection

  • decide-test-tier - Unit vs Integration vs E2E
    • Tier 1: Unit tests (fast, mocking allowed)
    • Tier 2: Integration tests (real infrastructure)
    • Tier 3: End-to-end tests (full system)
    • When to use each tier
    • Coverage targets

Key Decision Frameworks

Framework Selection Matrix

NeedFrameworkWhy
Custom workflowsCore SDKFull control, 110+ nodes
Database CRUDDataFlowAuto-generated nodes
Multi-channel APINexusAPI + CLI + MCP instantly
AI agentsKaizenSignature-based agents
All of aboveCombine themThey work together

Runtime Selection Flow

Are you deploying to Docker/​FastAPI/​Kubernetes?
  ├─ YES → AsyncLocalRuntime (async-first, no threads)
  └─ NO → Is this a CLI/​script?
       ├─ YES → LocalRuntime (sync execution)
       └─ NO → Use get_runtime() for auto-detection

Database Selection Flow

What's your use case?
  ├─ Production deployment?
  │   └─ YES → PostgreSQL (scalable, enterprise)
  ├─ Development/​testing?
  │   └─ YES → SQLite (simple, fast setup)
  └─ High concurrency?
      └─ YES → PostgreSQL (better concurrency)

Node Selection Flow

What task are you doing?
  ├─ Custom Python logic → PythonCodeNode
  ├─ LLM/​AI tasks → LLMNode, OpenAINode, AnthropicNode
  ├─ Database operations → DataFlow auto-generated nodes
  ├─ HTTP API calls → APICallNode
  ├─ File reading → FileReaderNode
  ├─ Conditional routing → SwitchNode
  └─ Not sure? → Check nodes-quick-index

Test Tier Flow

What are you testing?
  ├─ Individual function → Tier 1 (Unit)
  ├─ Workflow execution → Tier 2 (Integration)
  ├─ Complete user flow → Tier 3 (E2E)
  └─ All of above → Use all tiers

Critical Decision Rules

Framework Decisions

  • ✅ Use Core SDK for custom workflows
  • ✅ Use DataFlow for database operations (don't use SQLAlchemy/​Django ORM)
  • ✅ Use Nexus for multi-channel platforms (don't use FastAPI directly)
  • ✅ Use Kaizen for AI agents (don't build from scratch)
  • ✅ Combine frameworks as needed
  • ❌ NEVER use ORM when DataFlow can generate nodes
  • ❌ NEVER build API/​CLI/​MCP manually when Nexus can do it
  • ❌ NEVER skip framework evaluation

Runtime Decisions

  • ✅ Docker/​FastAPI → AsyncLocalRuntime (mandatory)
  • ✅ CLI/​Scripts → LocalRuntime
  • ✅ Use get_runtime() when unsure
  • ❌ NEVER use LocalRuntime in Docker (causes hangs)
  • ❌ NEVER mix runtimes in same application

Database Decisions

  • ✅ Production → PostgreSQL
  • ✅ Development → SQLite (for speed)
  • ✅ Testing → SQLite in Docker (for isolation)
  • ✅ Multi-instance → One DataFlow per database
  • ❌ NEVER use SQLite for production high-concurrency
  • ❌ NEVER skip connection pooling config

When to Use This Skill

Use this skill when you need to:

  • Choose between Core SDK, DataFlow, Nexus, or Kaizen
  • Select AsyncLocalRuntime vs LocalRuntime
  • Decide between PostgreSQL and SQLite
  • Find the right node for a task
  • Determine test tier for a test case
  • Make architecture decisions
  • Understand trade-offs between options

Decision Templates

Starting a New Project

1. What's the primary use case?
   - Database CRUD → Start with DataFlow
   - Multi-channel API → Start with Nexus
   - AI agents → Start with Kaizen
   - Custom workflows → Start with Core SDK

2. What's the deployment target?
   - Docker/​K8s → Use AsyncLocalRuntime
   - CLI tool → Use LocalRuntime

3. What's the database?
   - Production → PostgreSQL
   - Dev/​Test → SQLite

4. How to test?
   - Tier 1: Fast unit tests
   - Tier 2: Real infrastructure integration
   - Tier 3: Full system E2E

Related Skills

Support

For architecture decisions, invoke:

  • framework-advisor - Framework selection and architecture
  • ultrathink-analyst - Deep analysis for complex decisions
  • requirements-analyst - Requirements breakdown
  • pattern-expert - Pattern recommendations

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View