mvc-generator

Official

Generate Protheus MVC screens with validation

Authortotvs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the repetitive, error-prone work of manually scaffolding Protheus ADVPL/TLPP MVC CRUD screens (ModelDef, ViewDef, MenuDef, and Browse integration) by producing a consistent framework-aligned structure that you can adapt quickly.

Core Features & Use Cases

  • MVC screen scaffolding: Generates the required functions and wiring for Protheus MVC using FWFormModel, FWFormView, and FWFormBrowse.
  • Single entity and master-detail support: Produces both Modelo 1 (single CRUD) and Modelo 3 (header + items grid) patterns based on what you’re building.
  • Validation, triggers, and commit integration: Adds guardrails like field and grid line validations plus commit handling using framework-safe patterns (e.g., FWFormCommit, validation handlers).

Use cases include: generating a new CRUD screen for a Protheus table, building a master-detail screen (e.g., invoice header and line items), and migrating or modernizing legacy screens to MVC patterns.

Quick Start

Ask the AI to create a master-detail Protheus MVC screen for my tables ZZ2 (header) and ZZ3 (items), including ModelDef/ViewDef/MenuDef with grid relation, field validations, and FWFormCommit persistence.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mvc-generator
Download link: https://github.com/totvs/engpro-advpl-tlpp-skills/archive/main.zip#mvc-generator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.