cheatsheets

Provides quick reference cheatsheets for Kailash SDK workflow patterns, nodes, and best practices.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Hamza-Haadi/disease-risk-classifier-hamza --skill cheatsheets-hamza-haadi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cheatsheets
Source: https://github.com/Hamza-Haadi/disease-risk-classifier-hamza/tree/main/.claude/skills/06-cheatsheets
Command: npx skills add https://github.com/Hamza-Haadi/disease-risk-classifier-hamza --skill cheatsheets-hamza-haadi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers working with the Kailash SDK often need fast answers about node selection, cyclic workflow patterns, production deployment, and common pitfalls without reading full documentation. This Skill consolidates 42 quick reference guides into one searchable entry point. ## Core Features & Use Cases - Pattern Cheatsheets: Covers cyclic workflows, distributed transactions, saga patterns, query building, and data integration with working code examples. - Production Guidance: Includes production readiness checklists, monitoring and alerting patterns, resilience patterns, security configuration, and multi-tenancy guidance. - Mistake Prevention: Catalogs common mistakes and critical gotchas such as always calling .build() before runtime.execute() and using result.* prefixes in cycle mappings. - Use Case: When building a cyclic workflow that never converges, consult the cycle-debugging cheatsheet to find the try/except input_data pattern and correct result.* mapping prefix. ## Quick Start Ask the AI to show the Kailash cheatsheet for debugging a cyclic workflow that never converges.

Frequently Asked Questions about cheatsheets

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

FAQPage Schema
How do I create a cyclic workflow in Kailash SDK?▼

Build the workflow first with workflow.build(), then call create_cycle() on the built workflow and define connections with field mappings, max_iterations, and a converge_when condition. Note that cyclic workflows are a planned feature not yet implemented in SDK v0.9.31.

How do I choose the right node for a Kailash workflow?▼

Use the node-selection-guide cheatsheet, which provides a decision guide for choosing between nodes like PythonCodeNode for data transforms, HTTPRequest for API calls, and LLMNode for AI tasks. It is marked as a critical reference for workflow design.

Why does my Kailash cycle fail with a NameError on the first iteration?▼

The NameError happens because input_data does not exist on the first iteration of a cycle. Wrap access in a try/except block and provide default values, as shown in the cycle-debugging cheatsheet.

Does Kailash support distributed transactions across microservices?▼

Yes, the DistributedTransactionManagerNode automatically selects between Saga and Two-Phase Commit patterns based on your consistency and availability requirements. If any participant lacks 2PC support, it defaults to the Saga pattern with compensation actions.

What are the most common Kailash SDK mistakes to avoid?▼

Key mistakes include using raw SQL instead of DataFlow, forgetting to call .build() before runtime.execute(), using relative imports, mocking in tier 2-3 tests, and omitting the result.* prefix when mapping PythonCodeNode outputs in cycles.

How do I share a database connection pool across Kailash workflow nodes?▼

Create one pool at application startup and inject it into nodes using the external_pool parameter of AsyncSQLDatabaseNode. The SDK borrows the pool without closing it, preventing connection exhaustion in multi-worker deployments like Gunicorn with FastAPI.