Generate Frappe DocType

Generate Frappe DocType JSON schemas, Python controllers, and JavaScript form scripts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ATXINVOX/frappe-microservices-poc --skill generate-frappe-doctype
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generate Frappe DocType
Source: https://github.com/ATXINVOX/frappe-microservices-poc/tree/main/.cursor/skills/generate-doctype
Command: npx skills add https://github.com/ATXINVOX/frappe-microservices-poc --skill generate-frappe-doctype

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates complete Frappe DocType definitions, Python controllers, and JavaScript form scripts, enabling rapid, consistent scaffolding for ERPNext modules.

Core Features & Use Cases

  • DocType JSON scaffolding: Create the standard {doctype}.json structure with fields, permissions, and links.
  • Controller & Client Script templates: Provide Python class controller and JavaScript form script scaffolds aligned to Frappe conventions.
  • Use Case: Bootstrap a new DocType for a CRM module or extend an existing one with consistent patterns across projects.

Quick Start

Use the generator to scaffold a complete DocType along with its controllers and client scripts.

Frequently Asked Questions about Generate Frappe DocType

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

FAQPage Schema
How do I generate a Frappe DocType JSON schema with fields and permissions?

To generate a Frappe DocType, you use scaffolding scripts to create the standard JSON structure complete with fields, permissions, and links following standard conventions. This provides consistent module patterns across development and production environments.

Can I scaffold Python controllers and JavaScript client scripts for an ERPNext module?

Yes, you can scaffold Python controllers and JavaScript client scripts for ERPNext modules. The generator outputs both the Python class controller and JavaScript form scripts aligned to standard conventions for rapid and consistent development.

What is the best way to update an existing DocType definition in an ERPNext project?

The best way to update an existing DocType definition is applying scaffolding scripts that modify the JSON schemas, Python controllers, and client scripts. This ensures updates follow standard conventions across both development and production environments.

Do I need to manually write form scripts when creating a new Frappe DocType?

No, you do not need to manually write form scripts when creating a new Frappe DocType. The generator automatically outputs JavaScript form scripts and Python controllers, enabling rapid and consistent scaffolding without manual boilerplate creation.

Does Frappe scaffolding work for both new DocTypes and extending existing ones?

Frappe scaffolding works for both bootstrapping new DocTypes and extending existing definitions in ERPNext projects. It generates the complete JSON schemas, Python controllers, and client scripts required for consistent patterns across projects.

How do I bootstrap a CRM module DocType in ERPNext without starting from scratch?

You bootstrap a CRM module DocType by using the generator to scaffold the complete definition, including the JSON structure, Python controller, and JavaScript form scripts. This enables rapid creation aligned with standard Frappe conventions.