| name | cheatsheets |
| description | Kailash Rust cheatsheets — patterns, workflows, cycles, multi-tenancy, sagas, common mistakes. |
Kailash Patterns - Quick Reference Cheatsheets
Comprehensive collection of quick reference guides, common patterns, and best practices for Kailash SDK development.
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
workflow.add_node("PythonCode", "transform", {"code": "..."})
workflow.add_node("HTTPRequest", "api", {"url": "...", "method": "GET"})
workflow.add_node("LLMNode", "chat", {"model": "gpt-4", "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 |
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