What problem does it solve?
This Skill helps you implement reliable Frappe document controllers without guessing which hook to use, how to structure validation, or how to avoid lifecycle mistakes that break saves, submits, and post-save logic.
Core Features & Use Cases
- Hook selection: Choose the right lifecycle method for validation, calculations, insert-only actions, submit/cancel workflows, deletions, and change detection.
- Controller architecture: Build custom DocType controllers, override standard ERPNext controllers safely, and extend child-table or submittable document behavior.
- Safety and maintainability: Apply flags, avoid common anti-patterns, preserve saved field changes, and keep heavy or external work out of validation paths.
- Testing and patterns: Follow practical examples for validation, autoname, linked-document updates, and controller tests in real custom app scenarios.
Quick Start
Ask the Skill to design or review a Frappe controller for your DocType and specify the fields, lifecycle events, and validation rules you want implemented.