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
- kailash-quick-tips - Essential tips for Kailash development
- common-mistakes-catalog - Common pitfalls and solutions
- node-selection-guide - Choosing the right nodes
- workflow-patterns-library - Comprehensive pattern library
- README - Cheatsheets overview
Node References
- admin-nodes-reference - Admin and management nodes
- asyncsql-advanced - AsyncSQL node patterns
- pythoncode-data-science - Data science with PythonCode
- directoryreader-patterns - File system patterns
- ollama-integration - Local LLM integration
- query-builder - Query construction patterns
- query-routing - Intelligent query routing
Cyclic Workflow Patterns
- cyclic-patterns-advanced - Advanced cyclic patterns
- cycle-aware-nodes - Cycle-aware node development
- cycle-debugging - Debugging cyclic workflows
- cycle-testing - Testing cyclic workflows
- cycle-state-persistence - State management in cycles
- cycle-scenarios - Real-world cycle scenarios
- multi-path-cycles - Multi-path cyclic patterns
Production & Enterprise
- production-patterns - Production-ready patterns
- production-readiness - Production checklist
- performance-optimization - Performance tuning
- monitoring-alerting - Monitoring and alerting
- resilience-patterns - Resilience and fault tolerance
- security-config - Security configuration
- multi-tenancy-patterns - Multi-tenant architectures
Enterprise Patterns
- distributed-transactions - Distributed transaction patterns
- saga-pattern - Saga pattern for long transactions
- enterprise-mcp - Enterprise MCP patterns
- a2a-coordination - Agent-to-agent coordination
- mcp-resource-subscriptions - MCP resource patterns
Development Tools
- custom-node-guide - Creating custom nodes
- developer-tools - Developer tooling
- node-initialization - Node initialization patterns
- env-variables - Environment variable management
- validation-testing - Validation and testing patterns
- visualization - Workflow visualization
Workflow Management
- workflow-composition - Composing complex workflows
- workflow-design-process - Design process guide
- workflow-api-deployment - Deploying workflows as APIs
- workflow-export - Export and import patterns
Integration Patterns
- data-integration - Data integration patterns
- integration-mastery - Advanced integration techniques
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 |
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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: cheatsheets3description: Quick reference cheatsheets for Kailash SDK patterns, nodes, workflows, and best practices. 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'. Use when this capability is needed.4---56# Kailash Patterns - Quick Reference Cheatsheets78Comprehensive collection of quick reference guides, common patterns, and best practices for Kailash SDK development.910## Overview1112This skill provides quick access to:1314- Common workflow patterns and anti-patterns15- Node selection and usage guides16- Production-ready patterns17- Performance and optimization tips18- Security and enterprise patterns19- Integration cheatsheets2021## Quick Reference Guides2223### Essential Guides2425- **[kailash-quick-tips](kailash-quick-tips.md)** - Essential tips for Kailash development26- **[common-mistakes-catalog](common-mistakes-catalog.md)** - Common pitfalls and solutions27- **[node-selection-guide](node-selection-guide.md)** - Choosing the right nodes28- **[workflow-patterns-library](workflow-patterns-library.md)** - Comprehensive pattern library29- **[README](README.md)** - Cheatsheets overview3031### Node References3233- **[admin-nodes-reference](admin-nodes-reference.md)** - Admin and management nodes34- **[asyncsql-advanced](asyncsql-advanced.md)** - AsyncSQL node patterns35- **[pythoncode-data-science](pythoncode-data-science.md)** - Data science with PythonCode36- **[directoryreader-patterns](directoryreader-patterns.md)** - File system patterns37- **[ollama-integration](ollama-integration.md)** - Local LLM integration38- **[query-builder](query-builder.md)** - Query construction patterns39- **[query-routing](query-routing.md)** - Intelligent query routing4041### Cyclic Workflow Patterns4243- **[cyclic-patterns-advanced](cyclic-patterns-advanced.md)** - Advanced cyclic patterns44- **[cycle-aware-nodes](cycle-aware-nodes.md)** - Cycle-aware node development45- **[cycle-debugging](cycle-debugging.md)** - Debugging cyclic workflows46- **[cycle-testing](cycle-testing.md)** - Testing cyclic workflows47- **[cycle-state-persistence](cycle-state-persistence.md)** - State management in cycles48- **[cycle-scenarios](cycle-scenarios.md)** - Real-world cycle scenarios49- **[multi-path-cycles](multi-path-cycles.md)** - Multi-path cyclic patterns5051### Production & Enterprise5253- **[production-patterns](production-patterns.md)** - Production-ready patterns54- **[production-readiness](production-readiness.md)** - Production checklist55- **[performance-optimization](performance-optimization.md)** - Performance tuning56- **[monitoring-alerting](monitoring-alerting.md)** - Monitoring and alerting57- **[resilience-patterns](resilience-patterns.md)** - Resilience and fault tolerance58- **[security-config](security-config.md)** - Security configuration59- **[multi-tenancy-patterns](multi-tenancy-patterns.md)** - Multi-tenant architectures6061### Enterprise Patterns6263- **[distributed-transactions](distributed-transactions.md)** - Distributed transaction patterns64- **[saga-pattern](saga-pattern.md)** - Saga pattern for long transactions65- **[enterprise-mcp](enterprise-mcp.md)** - Enterprise MCP patterns66- **[a2a-coordination](a2a-coordination.md)** - Agent-to-agent coordination67- **[mcp-resource-subscriptions](mcp-resource-subscriptions.md)** - MCP resource patterns6869### Development Tools7071- **[custom-node-guide](custom-node-guide.md)** - Creating custom nodes72- **[developer-tools](developer-tools.md)** - Developer tooling73- **[node-initialization](node-initialization.md)** - Node initialization patterns74- **[env-variables](env-variables.md)** - Environment variable management75- **[validation-testing](validation-testing.md)** - Validation and testing patterns76- **[visualization](visualization.md)** - Workflow visualization7778### Workflow Management7980- **[workflow-composition](workflow-composition.md)** - Composing complex workflows81- **[workflow-design-process](workflow-design-process.md)** - Design process guide82- **[workflow-api-deployment](workflow-api-deployment.md)** - Deploying workflows as APIs83- **[workflow-export](workflow-export.md)** - Export and import patterns8485### Integration Patterns8687- **[data-integration](data-integration.md)** - Data integration patterns88- **[integration-mastery](integration-mastery.md)** - Advanced integration techniques8990## Quick Patterns9192### Basic Workflow9394```python95from kailash.workflow.builder import WorkflowBuilder96from kailash.runtime import LocalRuntime9798workflow = WorkflowBuilder()99workflow.add_node("NodeType", "node_id", {"param": "value"})100runtime = LocalRuntime()101results, run_id = runtime.execute(workflow.build())102```103104### Common Node Selection105106```python107# Data processing108workflow.add_node("PythonCode", "transform", {"code": "..."})109110# API calls111workflow.add_node("HTTPRequest", "api", {"url": "...", "method": "GET"})112113# AI/LLM114workflow.add_node("LLMNode", "chat", {"model": os.environ["LLM_MODEL"], "prompt": "..."})115```116117### Cyclic Pattern118119```python120workflow.add_node("LoopNode", "loop", {"max_iterations": 5})121workflow.add_node("ProcessNode", "process", {})122workflow.add_connection("loop", "item", "process", "input")123workflow.add_connection("process", "output", "loop", "feedback")124```125126## CRITICAL Gotchas127128| Rule | Why |129| ----------------------------- | -------------------------- |130| ❌ NEVER use raw SQL | Use DataFlow instead |131| ✅ ALWAYS call `.build()` | Before `runtime.execute()` |132| ❌ NEVER use relative imports | Use absolute imports |133| ❌ NEVER mock in Tier 2-3 | Use real infrastructure |134135## When to Use This Skill136137Use this skill when you need:138139- Quick reference for common patterns140- Solution to a specific problem141- Best practices for production142- Node selection guidance143- Performance optimization tips144- Security configuration help145- Multi-tenancy patterns146- Cyclic workflow help147148## Related Skills149150- **[01-core-sdk](../../01-core-sdk/SKILL.md)** - Core SDK fundamentals151- **[07-development-guides](../development-guides/SKILL.md)** - Detailed development guides152- **[08-nodes-reference](../08-nodes-reference/SKILL.md)** - Node reference documentation153- **[09-workflow-patterns](../workflows/SKILL.md)** - Industry workflow patterns154- **[17-gold-standards](../../17-gold-standards/SKILL.md)** - Mandatory best practices155156## Support157158For cheatsheet-related questions, invoke:159160- `pattern-expert` - Pattern selection and usage161- ``decide-framework` skill` - Choose appropriate patterns for your use case162163---164> Converted and distributed by [TomeVault](https://tomevault.io/claim/integrum-global) — claim your Tome and manage your conversions.165<!-- tomevault:4.0:skill_md:2026-04-11 -->