doctype-schema-expert

Design and validate Frappe DocType JSON schemas with field, permission, and naming rules.

1|Updated Jan 16, 2025
One-click install
npx skills add https://github.com/kehwar/frappe_tweaks --skill doctype-schema-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doctype-schema-expert
Source: https://github.com/kehwar/frappe_tweaks/tree/main/.github/skills/doctype-schema-expert
Command: npx skills add https://github.com/kehwar/frappe_tweaks --skill doctype-schema-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DocType Schema Expert helps teams design correct and scalable Frappe DocType schemas, guiding JSON structure, field definitions, and best practices to avoid common pitfalls.

Core Features & Use Cases

  • Comprehensive guidance on DocType schemas, JSON structures, core properties, field types, and permissions.
  • Quick reference patterns like Master-Detail, Single DocType, Tree structures, and settings patterns.
  • Use cases include creating a new DocType, adding fields, configuring permissions, and validating schema against references.

Quick Start

Review a DocType design task and apply the Master-Detail pattern to create a Sales Order with header and line items.

Frequently Asked Questions about doctype-schema-expert

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

FAQPage Schema
How do I design a Frappe DocType JSON schema with master-detail patterns?

To validate a Frappe DocType schema, check JSON structures against documented field properties, autoname patterns, and permissions. This process ensures adherence to best practices and prevents common structural pitfalls in ERP applications.

What's the best way to structure fields and permissions in a Frappe DocType?

The best way to structure fields and permissions is to follow Frappe JSON conventions, specifying valid field types, naming rules, and role-level access. This approach guarantees reliable data handling and secure ERP operations.

Can I create a tree structure DocType in Frappe for hierarchical data?

The DocType schema covers single-type doctypes, master-detail patterns, and tree structures. It provides comprehensive guidance on JSON structures, core properties, field types, and permission configurations to avoid common design pitfalls.

Why does my Frappe DocType schema validation fail on field properties?

DocType schema validation often fails when JSON field definitions do not adhere to documented Frappe field properties or autoname patterns. Aligning your schema with these references ensures correct configuration and prevents structural errors.