What problem does it solve?
This Skill prevents Frappe Workflows from breaking in production by guiding you to configure states, transitions, permissions, conditions, and docstatus behavior so documents move correctly instead of getting stuck or failing permission checks.
Core Features & Use Cases
- Workflow state machine correctness: Helps you design Workflow DocType states and transitions so docstatus moves in valid forward-only paths (Draft→Submitted→Cancelled) and avoids illegal 0→2 or backwards transitions.
- Role-based and conditional approvals: Ensures transitions use the correct
allowed roles and safe condition expressions so actions appear only for permitted users and required document fields/thresholds.
- Production-safe permission and self-approval handling: Covers workflow permission errors and self-approval control using
allow_self_approval, plus the rule that you should not manually call doc.submit()/doc.cancel() for workflow-controlled documents.
Quick Start
Use this skill to produce a complete Workflow configuration for a given DocType by specifying the target document lifecycle, required approval roles, optional conditional transitions (based on document fields), and the correct doc_status values for each state.