cheatsheets

star 1

Kailash cheatsheets — patterns, nodes, workflows, cycles, perf, security, saga.

terrene-foundation By terrene-foundation schedule Updated 5/12/2026

name: cheatsheets description: "Kailash cheatsheets — patterns, nodes, workflows, cycles, perf, security, saga."

Kailash Patterns - Quick Reference Cheatsheets

Comprehensive collection of quick reference guides, common patterns, and best practices for Kailash SDK development.

When to Use

Use when asking about quick tips, cheat sheet, quick reference, common mistakes, node selection, workflow patterns library, cycle patterns, production patterns, performance optimization, monitoring, security config, multi-tenancy, distributed transactions, saga pattern, custom nodes, PythonCode data science, ollama integration, directoryreader patterns, or environment variables.

Overview

This skill provides quick access to:

  • Common workflow patterns and anti-patterns
  • Node selection and usage guides
  • Production-ready patterns
  • Performance and optimization tips
  • Security and enterprise patterns
  • Integration cheatsheets

Quick Reference Guides

Essential Guides

Node References

Cyclic Workflow Patterns

Production & Enterprise

Enterprise Patterns

Development Tools

Workflow Management

Integration Patterns

Quick Patterns

Basic Workflow

from kailash.workflow.builder import WorkflowBuilder
from kailash.runtime import LocalRuntime

workflow = WorkflowBuilder()
workflow.add_node("NodeType", "node_id", {"param": "value"})
runtime = LocalRuntime()
results, run_id = runtime.execute(workflow.build())

Common Node Selection

# Data processing
workflow.add_node("PythonCode", "transform", {"code": "..."})

# API calls
workflow.add_node("HTTPRequest", "api", {"url": "...", "method": "GET"})

# AI/LLM
workflow.add_node("LLMNode", "chat", {"model": os.environ["LLM_MODEL"], "prompt": "..."})

Cyclic Pattern

workflow.add_node("LoopNode", "loop", {"max_iterations": 5})
workflow.add_node("ProcessNode", "process", {})
workflow.add_connection("loop", "item", "process", "input")
workflow.add_connection("process", "output", "loop", "feedback")

CRITICAL Gotchas

Rule Why
❌ NEVER use raw SQL Use DataFlow instead
✅ ALWAYS call .build() Before runtime.execute()
❌ NEVER use relative imports Use absolute imports
❌ NEVER mock in Tier 2-3 Use real infrastructure
❌ NEVER train sklearn/torch directly Use km.train(...) (skill 34-kailash-ml)
✅ Cap parallel worktrees at 3 concurrent Opus agents Beyond 3, budget exhaustion & merge conflicts dominate

When to Use This Skill

Use this skill when you need:

  • Quick reference for common patterns
  • Solution to a specific problem
  • Best practices for production
  • Node selection guidance
  • Performance optimization tips
  • Security configuration help
  • Multi-tenancy patterns
  • Cyclic workflow help

Related Skills

Support

For cheatsheet-related questions, invoke:

  • pattern-expert - Pattern selection and usage
  • decide-framework skill - Choose appropriate patterns for your use case
Install via CLI
npx skills add https://github.com/terrene-foundation/kailash-py --skill cheatsheets
Repository Details
star Stars 1
call_split Forks 3
navigation Branch main
article Path SKILL.md
Occupations
More from Creator
terrene-foundation
terrene-foundation Explore all skills →